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 49 * col2 FROM tab2
----
1127
1960
2842

query I rowsort
SELECT + 11 * + + col1 + - - 87 FROM tab0 WHERE - + 52 / - 73 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab0 AS cor0 WHERE NOT + 93 * 1 = - col2
----
22

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

query II rowsort
SELECT - 93, - col1 AS col0 FROM tab2
----
-93
-51
-93
-67
-93
-77

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

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

query I rowsort
SELECT DISTINCT - 36 * - - col0 FROM tab0 AS cor0
----
-3132
-3492
-540

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

query I rowsort
SELECT DISTINCT - col0 * - + col0 + - + col0 * + ( - - col1 ) FROM tab1 AS cor0
----
1887
4004
6800

query I rowsort
SELECT ALL - - 56 * - col0 AS col1 FROM tab1 AS cor0
----
-2856
-4760
-5096

query I rowsort
SELECT ALL col2 * 89 AS col2 FROM tab0
----
4183
8811
890

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

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

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

skipif mysql # not compatible
query I rowsort label-13
SELECT - + CAST ( + MAX ( ALL 60 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT 36 * - 91 AS col0 FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
9 values hashing to cb3523109b2174a71294bf141e0d170d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 10, col0 col1 FROM tab2
----
-10
46
-10
64
-10
75

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT DISTINCT - col1 DIV col0 DIV + col0 + - 60 AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT - col1 / col0 / + col0 + - 60 AS col2 FROM tab1 AS cor0
----
-60

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

query I rowsort
SELECT - col1 + - - 8 AS col1 FROM tab1 AS cor0
----
-39
-6
3

query I rowsort
SELECT + col0 + - - 36 FROM tab2 cor0
----
100
111
82

query I rowsort
SELECT - col0 * - 89 + col2 + - + col2 FROM tab1 AS cor0
----
4539
7565
8099

query I rowsort
SELECT - ( - + 77 ) + - col1 AS col1 FROM tab0 AS cor0
----
-4
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT COUNT( * ) + - 60 col0 FROM tab0
----
-57

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

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

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

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

query I rowsort
SELECT ALL col0 + + 52 FROM tab1
----
103
137
143

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

query I rowsort
SELECT 7 + 20 * + col1 AS col0 FROM tab0
----
1627
27
427

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT - MIN( ALL + - 88 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT - MIN ( ALL + - 88 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + + SUM( - 54 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-486

skipif mysql # not compatible
query I rowsort label-34
SELECT + + SUM ( - 54 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-486

query I rowsort
SELECT - - col2 * - ( 88 ) FROM tab0 AS cor0
----
-4136
-8712
-880

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <> 75
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT ALL - col1 DIV + - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - col1 / + - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-39
SELECT ALL COUNT( * ) DIV + MAX( col0 ) FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL COUNT ( * ) / + MAX ( col0 ) FROM tab2 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ( + + 41 ) AS col1 FROM tab2
----
41
41
41

query II rowsort
SELECT col0, + 20 * 34 FROM tab0
----
15
680
87
680
97
680

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 13 ) * 8 BETWEEN ( + + ( - - col1 ) ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - - col2 + 38 FROM tab0 AS cor0
----
138
2247
9839

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

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

query I rowsort
SELECT + ( 97 ) + col1 AS col0 FROM tab0
----
118
178
98

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

query I rowsort
SELECT DISTINCT + 56 + col1 * + col2 FROM tab1
----
1400
3252
351

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT DISTINCT 53 + + col0 * + CAST( + col0 AS SIGNED ) FROM tab0
----
278
7622
9462

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 53 + + col0 * + CAST ( + col0 AS INTEGER ) FROM tab0
----
278
7622
9462

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 60 ) < - col1
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

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

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

query I rowsort
SELECT 69 FROM tab2 WHERE NULL < - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT CAST( col2 AS SIGNED ) * 30 AS col2 FROM tab2
----
1200
1740
690

skipif mysql # not compatible
query I rowsort label-54
SELECT CAST ( col2 AS INTEGER ) * 30 AS col2 FROM tab2
----
1200
1740
690

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-56
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-56
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( col1 ) col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT SUM( 90 ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-58
SELECT SUM ( 90 ) FROM tab0
----
270

query I rowsort
SELECT DISTINCT 22 * 6 AS col0 FROM tab0
----
132

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> ( + 69 + - col1 )
----

query I rowsort
SELECT DISTINCT - 12 * + 27 FROM tab2
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT SUM( ALL col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-62
SELECT SUM ( ALL col1 ) FROM tab2
----
195

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL - COUNT( * ) * ( ( 86 ) ) AS col2 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - COUNT ( * ) * ( ( 86 ) ) AS col2 FROM tab1
----
-258

query I rowsort
SELECT col0 - - col1 * + col1 FROM tab0
----
528
6576
98

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

query I rowsort
SELECT - col0 - - ( - 73 ) AS col1 FROM tab1
----
-124
-158
-164

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 IN ( 34 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT DISTINCT col1 DIV 59 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT col1 / 59 FROM tab2
----
0
1

query I rowsort
SELECT ( - col1 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN ( 79 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT + col2 DIV + col0 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-76
SELECT + col2 / + col0 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT DISTINCT 2 * - COUNT( * ) - 17 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT 2 * - COUNT ( * ) - 17 FROM tab1
----
-23

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

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL + COUNT ( * ) / - ( - 37 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT + 84 DIV + COUNT( * ) AS col0 FROM tab0 WHERE NOT - 64 * col1 - + col0 IS NULL
----
28

skipif mysql # not compatible
query I rowsort label-79
SELECT + 84 / + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 64 * col1 - + col0 IS NULL
----
28

query I rowsort
SELECT ALL + 0 FROM tab2 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT + 70 * col2 AS col1 FROM tab2 WHERE - 35 IS NOT NULL
----
1610
2800
4060

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT 76 * 72 + col2 DIV col1 FROM tab0
----
5472
5472
5571

skipif mysql # not compatible
query I rowsort label-82
SELECT 76 * 72 + col2 / col1 FROM tab0
----
5472
5472
5571

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT DISTINCT + 7 * + 21 + - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
143
147
50

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT + 7 * + 21 + - col0 / col1 AS col1 FROM tab0 AS cor0
----
143
147
50

query I rowsort
SELECT + col0 * 37 FROM tab2
----
1702
2368
2775

query I rowsort
SELECT 98 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

query I rowsort
SELECT ALL - 17 * - col2 FROM tab1
----
1003
1156
1632

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 91 < - 66 - - col0
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-92
SELECT COUNT( * ) * - 83 FROM tab0 cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) + col2 ) NOT IN ( col0 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-92
SELECT COUNT ( * ) * - 83 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS REAL ) + col2 ) NOT IN ( col0 * - col2 )
----
0

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

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

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

query I rowsort
SELECT DISTINCT 63 * 37 AS col0 FROM tab2 AS cor0 WHERE NOT + 37 + 68 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 64 / col0 BETWEEN NULL AND 34 - + 32
----

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

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

skipif mysql # not compatible
query I rowsort label-98
SELECT - COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( ( - 60 ) - 73 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 40 col0 FROM tab2 AS cor0
----
-1600
-2320
-920

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT - 74 DIV - 14 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-102
SELECT - 74 / - 14 FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + MIN( ALL - 3 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + MIN ( ALL - 3 ) FROM tab1
----
-3

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT col1 DIV + 63 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-107
SELECT col1 / + 63 FROM tab2
----
0
1
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-108
SELECT CAST ( - col1 AS REAL ) col1 FROM tab1 WHERE NOT col0 BETWEEN NULL AND 92
----

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

query I rowsort
SELECT ALL + 99 * - col1 * col1 AS col2 FROM tab2
----
-257499
-444411
-586971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - col2 col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - 17 * + col0 FROM tab1 AS cor0
----
-1445
-1547
-867

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

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

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

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

query I rowsort
SELECT ALL - 55 + + col0 + + col1 * ( + col2 * + col0 ) AS col1 FROM tab1 AS cor0
----
25105
290872
68540

query I rowsort
SELECT - 10 AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----

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

skipif mysql # not compatible
query I rowsort label-117
SELECT + COUNT ( * ) * + 64 FROM tab0
----
192

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

query I rowsort
SELECT - 87 + + ( + - col1 ) FROM tab2 AS cor0
----
-138
-154
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT DISTINCT + + col1 DIV + + 52 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT + + col1 / + + 52 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT + col1 + - 50 FROM tab2 AS cor0
----
1
17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT + COUNT( * ) + + 82 * COUNT( * ) FROM tab0 AS cor0 WHERE - col2 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-123
SELECT + COUNT ( * ) + + 82 * COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 <= ( NULL )
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - 38 col1 FROM tab0
----
-137
-48
-85

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

query I rowsort
SELECT + + col0 FROM tab1 WHERE - col2 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT + 99 - - ( + + col1 ) FROM tab2
----
150
166
176

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT + 12 * - SUM( ALL + col1 ) FROM tab0 AS cor0
----
-1236

skipif mysql # not compatible
query I rowsort label-130
SELECT + 12 * - SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-1236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT col0 + + ( 44 ) * + 7 FROM tab1 AS cor0 WHERE NOT ( - col1 / + + CAST( NULL AS SIGNED ) ) < + col0 / + col2
----

skipif mysql # not compatible
query I rowsort label-131
SELECT col0 + + ( 44 ) * + 7 FROM tab1 AS cor0 WHERE NOT ( - col1 / + + CAST ( NULL AS INTEGER ) ) < + col0 / + col2
----

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

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col0 FROM tab2
----
-185

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + 0 = ( + 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + 6 ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-137
SELECT - col2, - col0 - - col0 * + - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-137
SELECT - col2, - col0 - - col0 * + - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

query II rowsort
SELECT ALL + - 58 AS col2, - 74 AS col0 FROM tab1 AS cor0
----
-58
-74
-58
-74
-58
-74

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT DISTINCT + SUM( 5 ) AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + SUM ( 5 ) AS col1 FROM tab1 AS cor0
----
15

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

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT + 77 / - + 74 = + + 48 * - 5
----
10
47
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-146
SELECT DISTINCT CAST( - 33 AS SIGNED ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT CAST ( - 33 AS INTEGER ) FROM tab2
----
-33

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 53 * col1 + - - 18 * col1 ) AND - 75
----
0

skipif mysql # not compatible
query I rowsort label-149
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( 53 * col1 + - - 18 * col1 ) AND - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT 69 * - - COUNT( * ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-150
SELECT 69 * - - COUNT ( * ) FROM tab2
----
207

query III rowsort
SELECT + 15 AS col0, - col0 AS col1, 64 FROM tab0
----
9 values hashing to 46f50f686b203c34857d8d55f6e13fe6

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

query II rowsort
SELECT ALL - 64 AS col0, - 33 * + - col0 AS col2 FROM tab1 AS cor0
----
-64
1683
-64
2805
-64
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL - COUNT( - 97 ) + COUNT( * ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-154
SELECT ALL - COUNT ( - 97 ) + COUNT ( * ) col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT ALL SUM( ALL 73 ) + + MAX( DISTINCT col0 ) + + 34 + 8 * - - COUNT( * ) + - 10 AS col0 FROM tab0
----
364

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL SUM ( ALL 73 ) + + MAX ( DISTINCT col0 ) + + 34 + 8 * - - COUNT ( * ) + - 10 AS col0 FROM tab0
----
364

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT + 92 * + 62 + COUNT( * ) FROM tab0
----
5707

skipif mysql # not compatible
query I rowsort label-157
SELECT + 92 * + 62 + COUNT ( * ) FROM tab0
----
5707

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 > + + 49
----
46
51
23

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-162
SELECT ALL - - CAST( MIN( ALL - 73 ) AS SIGNED ) FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL - - CAST ( MIN ( ALL - 73 ) AS INTEGER ) FROM tab2 cor0
----
-73

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

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT - 13 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-10

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

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

query I rowsort
SELECT + 49 - - + 32 AS col1 FROM tab2 AS cor0
----
81
81
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT DISTINCT - CAST( 32 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
-17
55
65

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - CAST ( 32 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
-17
55
65

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT DISTINCT - MIN( + col2 ) * + COUNT( * ) FROM tab2 WHERE - - col2 * - ( - - col2 ) / col2 / + col2 * + 79 + col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT - MIN ( + col2 ) * + COUNT ( * ) FROM tab2 WHERE - - col2 * - ( - - col2 ) / col2 / + col2 * + 79 + col1 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-169
SELECT DISTINCT - 17 DIV - + 18 + + + 52 AS col1, - 67 - + col0 FROM tab2
----
52
-113
52
-131
52
-142

skipif mysql # not compatible
query II rowsort label-169
SELECT DISTINCT - 17 / - + 18 + + + 52 AS col1, - 67 - + col0 FROM tab2
----
52
-113
52
-131
52
-142

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN 84 AND 43 - + col0
----

query I rowsort
SELECT ALL col1 + - - 64 AS col1 FROM tab2
----
115
131
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT ALL + COUNT( * ) DIV - 82 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + COUNT ( * ) / - 82 FROM tab0
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-175
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-175
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - - 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT 18 AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT * FROM tab2 WHERE NOT + 81 NOT IN ( - - col1 )
----

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

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

query I rowsort
SELECT 65 * col2 * + 22 AS col2 FROM tab0 AS cor0
----
141570
14300
67210

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT - 13 * - + col0 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
5559
6120
7371

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - col1 + - - col2 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT col1 + 15 + + col1 - - col2 DIV col2 DIV 68 col1 FROM tab2
----
117
149
169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-187
SELECT col1 + 15 + + col1 - - col2 / col2 / 68 col1 FROM tab2
----
117
149
169

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

query I rowsort
SELECT ALL - 72 * - col2 FROM tab0
----
3384
7128
720

query I rowsort
SELECT - 73 AS col0 FROM tab0 WHERE + col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT DISTINCT CAST( 46 AS SIGNED ) col1 FROM tab0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-193
SELECT DISTINCT CAST ( 46 AS INTEGER ) col1 FROM tab0
----
46

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

query I rowsort
SELECT ALL - col2 + col2 + 8 FROM tab2 cor0
----
8
8
8

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

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

query I rowsort
SELECT col2 - - + col0 FROM tab0
----
196
62
97

query I rowsort
SELECT col2 * - col0 + - - col1 AS col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT - - ( - col0 ) * + col0 * + + col1 + + 47 FROM tab0 AS cor0
----
-158902
-18178
-9362

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

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

query I rowsort
SELECT DISTINCT - - col2 + + + ( + col1 ) + col1 * + 83 * - + col1 AS col2 FROM tab0 AS cor0
----
-36572
-544435
17

query I rowsort
SELECT - - 49 + + 92 * - col2 * + 3 FROM tab0 AS cor0
----
-12923
-2711
-27275

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND - 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT COUNT( * ) + + - 40 + MIN( ALL - col2 ), - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-133
-3

skipif mysql # not compatible
query II rowsort label-207
SELECT COUNT ( * ) + + - 40 + MIN ( ALL - col2 ), - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-133
-3

query I rowsort
SELECT DISTINCT col2 + - 59 AS col1 FROM tab0 AS cor0
----
-12
-49
40

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

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

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

query I rowsort
SELECT DISTINCT + 76 - - col1 AS col0 FROM tab0 AS cor0
----
157
77
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-214
SELECT DISTINCT + MIN( ALL col1 ) DIV - ( - + 87 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT + MIN ( ALL col1 ) / - ( - + 87 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( - + 95 ) AS col1 FROM tab2
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-216
SELECT * FROM tab1 WHERE NOT + 61 / - CAST( + ( - - 82 ) AS DECIMAL ) * - col1 - + col1 + - - col2 + + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-216
SELECT * FROM tab1 WHERE NOT + 61 / - CAST ( + ( - - 82 ) AS REAL ) * - col1 - + col1 + - - col2 + + + col0 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 / + col0 + + - col2 + col0 < + 64
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL 45 * MIN( - - 85 ) col2 FROM tab2
----
3825

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-219
SELECT ALL 45 * MIN ( - - 85 ) col2 FROM tab2
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT MIN( ALL - col0 ) + 30 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT MIN ( ALL - col0 ) + 30 FROM tab0
----
-67

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

query I rowsort
SELECT 5 + - 47 FROM tab1 AS cor0
----
-42
-42
-42

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

query I rowsort
SELECT 52 + + col2 FROM tab1 AS cor0
----
111
120
148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-227
SELECT DISTINCT - 27 * - ( - COUNT( * ) ) + 70 AS col1, - COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-11
0

skipif mysql # not compatible
query II rowsort label-227
SELECT DISTINCT - 27 * - ( - COUNT ( * ) ) + 70 AS col1, - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-11
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-228
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col2 ) >= + CAST( - ( - + col0 ) AS SIGNED )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-228
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col2 ) >= + CAST ( - ( - + col0 ) AS INTEGER )
----
15
81
47
97
1
99

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

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

skipif mysql # not compatible
query I rowsort label-230
SELECT ( COUNT ( * ) ) * - ( 38 ) AS col2 FROM tab0
----
-114

query I rowsort
SELECT - col1 * - 61 FROM tab1
----
2867
305
854

onlyif mysql # DIV for integer division: 
query II rowsort label-232
SELECT - 65 DIV + col2, col0 FROM tab2
----
-1
64
-1
75
-2
46

skipif mysql # not compatible
query II rowsort label-232
SELECT - 65 / + col2, col0 FROM tab2
----
-1
64
-1
75
-2
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 * - col0 col2 FROM tab0
----
-1230
-7134
-7954

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-234
SELECT + 31 / CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT + 31 / CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT 59 - + + ( + col1 ) FROM tab1
----
12
45
54

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 + + - col0 + - col0 > col0 AND col0 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col0 * + - col0 - - col1 + col2 + + col0 AS col1 FROM tab2
----
-163659
-326050
-48548

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 87 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

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

skipif mysql # not compatible
query III rowsort label-239
SELECT * FROM tab0 WHERE - - CAST ( - col2 AS INTEGER ) <> - CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + AVG ( ( - col2 ) ) col2, - 68 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 99 ) IS NOT NULL
----
NULL
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 * - col1 col2 FROM tab1 AS cor0
----
-340
-4186
-663

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

query I rowsort
SELECT ALL + 61 AS col2 FROM tab2 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT DISTINCT + - 92 * COUNT( * ) AS col2 FROM tab0 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT + - 92 * COUNT ( * ) AS col2 FROM tab0 cor0
----
-276

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-247
SELECT - + CAST( - + MAX( + col1 ) AS SIGNED ) col0 FROM tab0 WHERE NOT + col2 NOT IN ( - - 26 * col1 / + + col0 - col0 - - col0, col0 * + 85 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-247
SELECT - + CAST ( - + MAX ( + col1 ) AS INTEGER ) col0 FROM tab0 WHERE NOT + col2 NOT IN ( - - 26 * col1 / + + col0 - col0 - - col0, col0 * + 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT + MIN( 32 ), - 44 AS col2 FROM tab1
----
32
-44

skipif mysql # not compatible
query II rowsort label-248
SELECT + MIN ( 32 ), - 44 AS col2 FROM tab1
----
32
-44

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

skipif mysql # not compatible
query I rowsort label-249
SELECT - COUNT ( - col1 ) / - 95 AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col0 ) * - col0 + + - col2 >= + ( - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 98, 31 AS col0 FROM tab2
----
98
31
98
31
98
31

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

query II rowsort
SELECT DISTINCT col2 AS col1, 79 * col0 FROM tab2
----
23
3634
40
5056
58
5925

query I rowsort
SELECT ALL 36 * + 53 FROM tab1 cor0
----
1908
1908
1908

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT - col2 DIV 45 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-255
SELECT - col2 / 45 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT ALL + 18 AS col1, - 66 AS col0 FROM tab0 AS cor0
----
18
-66
18
-66
18
-66

query I rowsort
SELECT - col0 * + col2 * - - col2 - - col0 * + - col0 AS col2 FROM tab1 cor0
----
-303110
-429065
-472617

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT DISTINCT col2 * CAST( - - 13 AS SIGNED ) * col1 * 8 - col2 + + col2 * + col2 FROM tab0
----
19998
21930
398090

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT col2 * CAST ( - - 13 AS INTEGER ) * col1 * 8 - col2 + + col2 * + col2 FROM tab0
----
19998
21930
398090

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

query I rowsort
SELECT ALL - + 34 * 10 FROM tab1 AS cor0
----
-340
-340
-340

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

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

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

query I rowsort
SELECT DISTINCT - ( 57 ) * - + col2 FROM tab0 AS cor0
----
2679
5643
570

query I rowsort
SELECT - + col2 + + 68 * + 70 FROM tab1 AS cor0
----
4664
4692
4701

query II rowsort
SELECT ALL + col1 AS col2, 73 AS col1 FROM tab0
----
1
73
21
73
81
73

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

query I rowsort
SELECT 79 + - 7 AS col2 FROM tab1
----
72
72
72

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-269
SELECT ALL * FROM tab2 WHERE NOT + col2 + - CAST( NULL AS DECIMAL ) < + 34 - - 4
----

skipif mysql # not compatible
query III rowsort label-269
SELECT ALL * FROM tab2 WHERE NOT + col2 + - CAST ( NULL AS REAL ) < + 34 - - 4
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - 74 * - + 70 FROM tab0
----
1
5180
21
5180
81
5180

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT - 89 + + ( MAX( ALL - 89 ) ) AS col0 FROM tab2
----
-178

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - 89 + + ( MAX ( ALL - 89 ) ) AS col0 FROM tab2
----
-178

query III rowsort
SELECT * FROM tab1 WHERE + col0 IN ( + col2 * + 68 * - + 53 / - col0, + col1, - - col2 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 + + + 45 col2 FROM tab1 AS cor0
----
110
135
183

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 + col1 + + + col0 col1 FROM tab1 AS cor0
----
15
40
88

query I rowsort
SELECT DISTINCT + + 6 + + ( - 55 ) FROM tab0 AS cor0
----
-49

query I rowsort
SELECT DISTINCT col0 * - + 32 - - - col1 FROM tab1
----
-1646
-2725
-2959

query I rowsort
SELECT - + 54 FROM tab0 AS cor0 WHERE NOT - col1 * + col2 / - - 26 + col2 NOT BETWEEN NULL AND - col2 / + + col0 - - - 34 + - col2
----

query I rowsort
SELECT col2 * - col0 + + 94 FROM tab2 AS cor0
----
-2466
-4256
-964

query I rowsort
SELECT DISTINCT + 26 * 27 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT - 63 * + 23 AS col1, COUNT( * ) * 50 AS col1 FROM tab0 AS cor0
----
-1449
150

skipif mysql # not compatible
query II rowsort label-283
SELECT - 63 * + 23 AS col1, COUNT ( * ) * 50 AS col1 FROM tab0 AS cor0
----
-1449
150

query I rowsort
SELECT col1 * 34 * - + col1 FROM tab0 AS cor0
----
-14994
-223074
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-285
SELECT + 73 DIV + col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-285
SELECT + 73 / + col0 FROM tab2 cor0
----
0
1
1

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-290
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col1, + CAST( - 25 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-290
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col1, + CAST ( - 25 AS INTEGER ) )
----

query I rowsort
SELECT + ( - 70 ) FROM tab2 WHERE NOT col0 / + 30 - + 43 IS NULL
----
-70
-70
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-292
SELECT DISTINCT col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + 7, col0, col1, 2 / 97 )
----

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

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

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

query I rowsort
SELECT + col2 * + 55 FROM tab0 WHERE NOT NULL <= - col0 * - col0
----

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

query I rowsort
SELECT + 1 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT - COUNT( * ) * - - ( - - 70 ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT - COUNT ( * ) * - - ( - - 70 ) FROM tab0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT 5 + + COUNT( * ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-302
SELECT 5 + + COUNT ( * ) AS col0 FROM tab2
----
8

query I rowsort
SELECT col2 + - - 52 + + 54 FROM tab2
----
129
146
164

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL - AVG ( ALL col0 ) / - 78 + - MIN( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL - AVG ( ALL col0 ) / - 78 + - MIN ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL <> col0
----
NULL

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

query I rowsort
SELECT ALL - col2 + + - col1 * + col1 * + col0 FROM tab1 AS cor0
----
-10092
-201087
-2184

query I rowsort
SELECT ALL - 49 AS col1 FROM tab0 AS cor0 WHERE + 82 * ( - - col2 ) IS NULL
----

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

query I rowsort
SELECT DISTINCT 53 + + 84 FROM tab2 cor0
----
137

query I rowsort
SELECT ALL col2 * + col0 + - col0 FROM tab2
----
1012
2496
4275

query III rowsort
SELECT * FROM tab1 WHERE + 51 * + col0 * + 14 * + col0 < NULL
----

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

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

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

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

query I rowsort
SELECT col0 - + col2 * ( - + col0 ) AS col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT - ( - col2 ) - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 18 - col0 - - 63 * + 8 * + 24 + + col1 AS col0 FROM tab2
----
12106
12119
12127

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

skipif mysql # not compatible
query II rowsort label-317
SELECT + 19 - - 40 AS col0, COUNT ( * ) AS col1 FROM tab0
----
59
3

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 94 > 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN 40 AND + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT + MIN( ALL + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT + MIN ( ALL + col2 ) FROM tab1
----
59

query I rowsort
SELECT ( + - 99 ) FROM tab0
----
-99
-99
-99

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

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

query I rowsort
SELECT + col2 * 5 AS col1 FROM tab0 AS cor0
----
235
495
50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col1 * + 9
----

query I rowsort
SELECT ( - col1 ) * - 19 FROM tab0 AS cor0
----
1539
19
399

query I rowsort
SELECT + - col1 - + - col0 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 <> - + 65 * col2 + + col0 - - 76 + - - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT - 45 * COUNT( * ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-328
SELECT - 45 * COUNT ( * ) FROM tab2 AS cor0
----
-135

query I rowsort
SELECT col1 * + - col2 + + ( - col0 ) + - col1 FROM tab0 AS cor0
----
-197
-318
-3903

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 68 NOT BETWEEN col1 * - col1 AND - + 22 + + ( + - col1 ) + + + col2
----

query II rowsort
SELECT 7 AS col2, col1 AS col0 FROM tab0 AS cor0
----
7
1
7
21
7
81

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

skipif mysql # not compatible
query I rowsort label-332
SELECT + CAST ( - ( MIN ( ALL col1 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT COUNT( * ) * + 66 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-333
SELECT COUNT ( * ) * + 66 FROM tab1
----
198

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - 23 * 38 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-336
SELECT ALL CAST( col1 AS SIGNED ) col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-336
SELECT ALL CAST ( col1 AS INTEGER ) col1 FROM tab1
----
14
47
5

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + col2 * ( - - col0 ) * + col2 - - col1 / + col0 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-339
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN 93 AND col2
----

skipif mysql # not compatible
query III rowsort label-339
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN 93 AND col2
----

query I rowsort
SELECT - 66 AS col1 FROM tab1 cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT SUM( DISTINCT + 69 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
69

skipif mysql # not compatible
query I rowsort label-341
SELECT SUM ( DISTINCT + 69 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL <> - col1
----
0

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

query I rowsort
SELECT DISTINCT + col0 + + ( + col2 ) + 71 FROM tab0 AS cor0
----
133
168
267

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

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

query I rowsort
SELECT DISTINCT - + 44 + - ( ( - col1 ) ) FROM tab2 AS cor0
----
23
33
7

query I rowsort
SELECT ALL + + ( col2 ) * + col0 - - col1 FROM tab0 AS cor0 WHERE + 11 NOT BETWEEN ( col0 ) AND col0
----
786
891
9604

query I rowsort
SELECT + col1 + 18 FROM tab0 cor0
----
19
39
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-349
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - CAST ( - 72 AS INTEGER ) col1 FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 + + + col2 + - ( - ( - 62 ) ) - - - col1 + - - col1 * col2 * - 35 col0 FROM tab0 AS cor0
----
-133255
-3343
-7337

query I rowsort
SELECT - col0 + - col0 - + col0 * - col2 FROM tab1
----
4794
4845
6006

query I rowsort
SELECT - ( + - 30 ) * - col0 FROM tab1 WHERE NULL IS NULL
----
-1530
-2550
-2730

query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-354
SELECT ALL - col1 DIV + col0 + - - 83 FROM tab2
----
82
82
83

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - col1 / + col0 + - - 83 FROM tab2
----
82
82
83

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT + col0 DIV ( + col0 ) AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-358
SELECT + col0 / ( + col0 ) AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-359
SELECT DISTINCT + - col2 * - col2 AS col0, CAST( + + 33 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - + col2 <> + col2 * - col1 / + col0 - col0
----

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT + - col2 * - col2 AS col0, CAST ( + + 33 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - + col2 <> + col2 * - col1 / + col0 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + col2 col2, + 97 AS col1 FROM tab0 AS cor0
----
0
97
0
97
0
97

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

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

query I rowsort
SELECT - 77 - - 30 FROM tab1 AS cor0
----
-47
-47
-47

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-365
SELECT COUNT( * ) AS col2, 15 FROM tab2 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-365
SELECT COUNT ( * ) AS col2, 15 FROM tab2 AS cor0
----
3
15

query I rowsort
SELECT DISTINCT + ( 25 ) AS col1 FROM tab0, tab2 AS cor0
----
25

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

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

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

query I rowsort
SELECT ALL + - 4 * col1 - - col1 AS col2 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT - COUNT( * ) * + 41 * - + 19 AS col2 FROM tab0 AS cor0
----
2337

skipif mysql # not compatible
query I rowsort label-371
SELECT - COUNT ( * ) * + 41 * - + 19 AS col2 FROM tab0 AS cor0
----
2337

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

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

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

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

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

query I rowsort
SELECT ALL + ( + col1 ) * + col0 * + + ( + 2 ) + - col2 AS col1 FROM tab1 AS cor0
----
1332
791
8486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT DISTINCT + 92 * + 26 * - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
208104
232024
35880

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT + 92 * + 26 * - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
208104
232024
35880

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

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL COUNT( ALL 41 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL COUNT ( ALL 41 ) AS col2 FROM tab1
----
3

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * + 72 + + 90 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-383
SELECT MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

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

query I rowsort
SELECT - - 49 * 65 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-385
SELECT 42 DIV - CAST( - col2 AS SIGNED ) FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-385
SELECT 42 / - CAST ( - col2 AS INTEGER ) FROM tab0
----
0
0
4

query I rowsort
SELECT ALL ( + + ( col1 ) ) + 74 * - 41 + - ( + col0 ) FROM tab1
----
-3071
-3078
-3114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 WHERE NOT - ( col1 ) / + - 75 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - ( col1 ) / + - 75 IS NULL
----
3

query I rowsort
SELECT - - 46 AS col2 FROM tab1 AS cor0
----
46
46
46

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

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NOT 67 IS NOT NULL
----

query I rowsort
SELECT 2 * - col2 * + col1 FROM tab1 AS cor0
----
-2688
-590
-6392

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

skipif mysql # not compatible
query II rowsort label-393
SELECT DISTINCT - MAX ( 43 ) AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-43
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-394
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + col1 AS col1 FROM tab1 cor0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + COUNT( DISTINCT + col2 ) * + 16 FROM tab0 AS cor0 WHERE NULL = 20
----
NULL

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT + col2 ) * + 16 FROM tab0 AS cor0 WHERE NULL = 20
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 < - 7 + - col0
----
51
14
96

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

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

query I rowsort
SELECT col1 * - 52 - col2 FROM tab0
----
-1102
-151
-4259

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-400
SELECT 30 DIV col1 DIV + CAST( + col1 AS SIGNED ) + - - col2 AS col0 FROM tab1
----
60
68
96

skipif mysql # not compatible
query I rowsort label-400
SELECT 30 / col1 / + CAST ( + col1 AS INTEGER ) + - - col2 AS col0 FROM tab1
----
60
68
96

query I rowsort
SELECT 72 * - col0 * + col1 + + col0 FROM tab1
----
-30515
-307853
-51357

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-403
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
59
68
96

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

query I rowsort
SELECT ALL 97 * col0 AS col2 FROM tab0 AS cor0
----
1455
8439
9409

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

query I rowsort
SELECT - col2 * - 53 AS col0 FROM tab1 AS cor0
----
3127
3604
5088

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT + ( - COUNT( * ) ) * + - 36 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-410
SELECT + ( - COUNT ( * ) ) * + - 36 FROM tab1 AS cor0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT + 87 DIV - col1 FROM tab0 AS cor0
----
-1
-4
-87

skipif mysql # not compatible
query I rowsort label-411
SELECT + 87 / - col1 FROM tab0 AS cor0
----
-1
-4
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + COUNT( * ) * + ( + 79 ) * + 69 + COUNT( * ) AS col0 FROM tab1
----
16356

skipif mysql # not compatible
query I rowsort label-412
SELECT + COUNT ( * ) * + ( + 79 ) * + 69 + COUNT ( * ) AS col0 FROM tab1
----
16356

query I rowsort
SELECT - 82 * col0 AS col1 FROM tab2
----
-3772
-5248
-6150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-414
SELECT ALL - ( + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
0

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

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE NOT - ( - - col1 ) * - 11 + + + 5 IS NULL
----
51
85
91

query II rowsort
SELECT + + col0, + col0 AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

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

query I rowsort
SELECT col0 + - 45 + + ( - 33 ) + + col2 AS col0 FROM tab0
----
-16
118
19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 43 / + 5 AND NULL
----

query I rowsort
SELECT - col1 * + col1 + - col0 + col0 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-421
SELECT ALL 32 + - col0 AS col0, - 83 + col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-14
NULL
-32
NULL
-43
NULL

skipif mysql # not compatible
query II rowsort label-421
SELECT ALL 32 + - col0 AS col0, - 83 + col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-14
NULL
-32
NULL
-43
NULL

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

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

query I rowsort
SELECT - + col2 + - 39 FROM tab0 AS cor0
----
-138
-49
-86

query I rowsort
SELECT DISTINCT + + ( 77 ) + col1 FROM tab1 AS cor0
----
124
82
91

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

query I rowsort
SELECT ALL - ( - col1 ) + + ( + 48 ) AS col2 FROM tab1 AS cor0
----
53
62
95

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

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

query I rowsort
SELECT DISTINCT 73 + - col2 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
271
293
3927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + 25 col1 FROM tab0 AS cor0
----
124
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT 63 + - + SUM( DISTINCT + 65 ) col1 FROM tab2 cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-430
SELECT 63 + - + SUM ( DISTINCT + 65 ) col1 FROM tab2 cor0
----
-2

query I rowsort
SELECT - + 47 + - - col1 * - + col1 FROM tab1 AS cor0
----
-2256
-243
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-432
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 IN ( - 12, + CAST( 24 AS SIGNED ) * + 21, + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-432
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 IN ( - 12, + CAST ( 24 AS INTEGER ) * + 21, + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 43 + - 7 + - 99 AS col1 FROM tab2
----
-63

query I rowsort
SELECT col0 * - 41 AS col1 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL - 71 * - COUNT( * ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL - 71 * - COUNT ( * ) FROM tab2 AS cor0
----
213

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * col2 * - col2 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT DISTINCT + col2 + - 41 * 51 DIV - - 41 FROM tab2 AS cor0
----
-11
-28
7

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT + col2 + - 41 * 51 / - - 41 FROM tab2 AS cor0
----
-11
-28
7

query II rowsort
SELECT DISTINCT + 56 AS col0, 36 FROM tab1 AS cor0
----
56
36

query I rowsort
SELECT col0 * + 29 * - - col0 * + col1 FROM tab0
----
272861
4609521
528525

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

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

query I rowsort
SELECT col1 * 84 * - col2 AS col2 FROM tab2
----
-258720
-326424
-98532

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

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

query I rowsort
SELECT 34 * + col0 AS col1 FROM tab0
----
2958
3298
510

query I rowsort
SELECT + col1 * - 51 FROM tab1
----
-2397
-255
-714

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + col1 + col0 FROM tab2 AS cor0
----
46
64
75

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - + col1 + - col0 - col0 AS col2 FROM tab0 AS cor0
----
-192
-196
-216

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 BETWEEN - col2 AND + 74 * - - col0 - + col0 + + - col2 * col0 * - col2 - - col2
----

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

query I rowsort
SELECT ALL + + 74 AS col2 FROM tab2 cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT DISTINCT COUNT( 51 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT COUNT ( 51 ) FROM tab2
----
3

query I rowsort
SELECT col2 * + 21 FROM tab2
----
1218
483
840

onlyif mysql # aggregate syntax: 
query II rowsort label-462
SELECT COUNT( * ), 92 * - 12 * + 26 AS col2 FROM tab2
----
3
-28704

skipif mysql # not compatible
query II rowsort label-462
SELECT COUNT ( * ), 92 * - 12 * + 26 AS col2 FROM tab2
----
3
-28704

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

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

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

query II rowsort
SELECT - 25 AS col0, + col2 AS col1 FROM tab2 WHERE NOT NULL IN ( 59 + - 14 * + col0, 31, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-466
SELECT ALL + col1, + col2 * - - CAST( + 86 AS SIGNED ) - + col0 AS col0 FROM tab0
----
1
8417
21
773
81
4027

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL + col1, + col2 * - - CAST ( + 86 AS INTEGER ) - + col0 AS col0 FROM tab0
----
1
8417
21
773
81
4027

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL - COUNT( * ) + + 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - COUNT ( * ) + + 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 43 col1 FROM tab2 cor0
----
101
66
83

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 + - - 68 col1 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query II rowsort label-476
SELECT - MIN( + 54 ) AS col0, 1 AS col0 FROM tab0 AS cor0
----
-54
1

skipif mysql # not compatible
query II rowsort label-476
SELECT - MIN ( + 54 ) AS col0, 1 AS col0 FROM tab0 AS cor0
----
-54
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-477
SELECT ALL + COUNT( * ) + - 74 AS col2, 81 DIV COUNT( * ) col1 FROM tab1 AS cor0
----
-71
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-477
SELECT ALL + COUNT ( * ) + - 74 AS col2, 81 / COUNT ( * ) col1 FROM tab1 AS cor0
----
-71
27

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

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

query I rowsort
SELECT - 70 + + 5 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - col2 * - - 75 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT DISTINCT 76 * + col1 AS col1 FROM tab1
----
1064
3572
380

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT DISTINCT - col1 DIV - + col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT - col1 / - + col0 FROM tab2
----
0
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT + - 30 DIV + 85 * - ( + + 87 ) + - - SUM( - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-484
SELECT + - 30 / + 85 * - ( + + 87 ) + - - SUM ( - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT 65 + + col2 AS col2 FROM tab2 AS cor0
----
105
123
88

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 16 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT ALL - col0 * CAST( - col1 AS SIGNED ) FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL - col0 * CAST ( - col1 AS INTEGER ) FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + - col1 col1 FROM tab0
----
-1296
-1848
-98

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

skipif mysql # not compatible
query I rowsort label-490
SELECT - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + + + 46 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + - 38 * - ( col1 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL 53 + col0 AS col2, - 83 FROM tab1 AS cor0
----
104
-83
138
-83
144
-83

query I rowsort
SELECT - 33 * - 85 + + - col1 FROM tab1 AS cor0
----
2758
2791
2800

query I rowsort
SELECT - 84 * - 11 + 19 FROM tab2 AS cor0
----
943
943
943

query I rowsort
SELECT - - 61 * - - col1 * col2 AS col1 FROM tab1 cor0
----
17995
194956
81984

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-495
SELECT - COUNT ( ALL + - 83 ) col2 FROM tab2 AS cor0
----
-3

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

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

query I rowsort
SELECT DISTINCT - 53 * + col1 AS col1 FROM tab1 AS cor0
----
-2491
-265
-742

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

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT DISTINCT MAX( + col2 ) AS col1, ( 10 ) AS col2 FROM tab1
----
96
10

skipif mysql # not compatible
query II rowsort label-499
SELECT DISTINCT MAX ( + col2 ) AS col1, ( 10 ) AS col2 FROM tab1
----
96
10

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

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

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

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

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

query I rowsort
SELECT - col2 * + col0 + + + col1 - - col1 AS col0 FROM tab2 AS cor0
----
-2406
-4216
-956

query I rowsort
SELECT col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT 5 FROM tab2 AS cor0 WHERE + 6 < - + 37
----

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

skipif mysql # not compatible
query I rowsort label-506
SELECT MAX ( - + 50 ) FROM tab2 AS cor0
----
-50

query I rowsort
SELECT ALL - - col1 + - ( + + ( + col2 ) ) FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT - + 20 FROM tab0 AS cor0
----
-20

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

query I rowsort
SELECT - col1 * 48 * - col2 AS col0 FROM tab0
----
10080
182736
4752

query I rowsort
SELECT - col2 - + 53 + + ( + - ( + col2 ) ) AS col2 FROM tab2
----
-133
-169
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT + COUNT( * ) + + - ( - - 82 ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-512
SELECT + COUNT ( * ) + + - ( - - 82 ) FROM tab1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-513
SELECT + - ( + ( 52 ) ) + COUNT( * ), ( 28 ) AS col2 FROM tab2 AS cor0
----
-49
28

skipif mysql # not compatible
query II rowsort label-513
SELECT + - ( + ( 52 ) ) + COUNT ( * ), ( 28 ) AS col2 FROM tab2 AS cor0
----
-49
28

query I rowsort
SELECT + 66 + 27 AS col2 FROM tab2 AS cor0
----
93
93
93

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= + 79
----

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

skipif mysql # not compatible
query I rowsort label-516
SELECT ( - MAX ( - - col1 ) ) FROM tab0
----
-81

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

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

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

query I rowsort
SELECT DISTINCT + 94 * col2 FROM tab2 cor0
----
2162
3760
5452

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

skipif mysql # not compatible
query II rowsort label-520
SELECT ALL + col0 AS col0, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT - - 15 * - ( + ( 63 ) ) FROM tab2 AS cor0
----
-945

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - 91 * COUNT( * ) AS col1 FROM tab1 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-524
SELECT - 91 * COUNT ( * ) AS col1 FROM tab1 cor0
----
-273

query II rowsort
SELECT 98, - 95 AS col1 FROM tab1
----
98
-95
98
-95
98
-95

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

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

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

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

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

query II rowsort
SELECT ALL col0, col0 - + col2 FROM tab0
----
15
-32
87
77
97
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 46 NOT BETWEEN col2 / + + 71 - 6 + + - 88 + + + col2 + - - col2 * col1 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 34 AS col0, col0 - - + col2 AS col0 FROM tab2 AS cor0
----
34
104
34
133
34
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-532
SELECT + - 42 DIV - + MAX( + 10 ) AS col0 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-532
SELECT + - 42 / - + MAX ( + 10 ) AS col0 FROM tab0 cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT DISTINCT + 20 * + CAST( SUM( DISTINCT + + col2 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
2420

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-533
SELECT DISTINCT + 20 * + CAST ( SUM ( DISTINCT + + col2 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
2420

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT + 89 DIV + ( - col1 ) col2 FROM tab0 AS cor0
----
-1
-4
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-534
SELECT + 89 / + ( - col1 ) col2 FROM tab0 AS cor0
----
-1
-4
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT DISTINCT + 81 + + + 34 * - - COUNT( col0 ) - - COUNT( * ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT + 81 + + + 34 * - - COUNT ( col0 ) - - COUNT ( * ) FROM tab1 AS cor0
----
186

query I rowsort
SELECT - 2 + + 70 - + 6 AS col0 FROM tab0 cor0
----
62
62
62

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-538
SELECT ALL + COUNT( * ) - COUNT( ALL col2 ) DIV - + 1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + COUNT ( * ) - COUNT ( ALL col2 ) / - + 1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT + - 12 + - col1 * - col2 FROM tab0 AS cor0
----
198
3795
87

query I rowsort
SELECT - 97 + + col1 AS col0 FROM tab1
----
-50
-83
-92

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-543
SELECT + COUNT ( * ) / - 25 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col2 - - 36 AS col1 FROM tab0 AS cor0
----
135
46
83

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 43 )
----

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

query I rowsort
SELECT ALL 50 + col0 * - col1 FROM tab1
----
-375
-4227
-664

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 36 * - 37 ) > ( + col0 + col1 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL + COUNT( DISTINCT + 99 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + COUNT ( DISTINCT + 99 ) AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT + col0 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - 3 + - 44 * 16
----

skipif mysql # not compatible
query I rowsort label-552
SELECT + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - 3 + - 44 * 16
----

query I rowsort
SELECT ( - 28 ) FROM tab2
----
-28
-28
-28

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

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

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

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

query I rowsort
SELECT DISTINCT 97 * 33 AS col1 FROM tab1 WHERE NOT ( NULL ) >= - col0
----

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

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

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

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

query I rowsort
SELECT col0 * col2 + - col2 AS col0 FROM tab1 WHERE - col2 IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-562
SELECT DISTINCT 68 DIV - COUNT( * ) - - ( - COUNT( * ) ) col1 FROM tab2
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-562
SELECT DISTINCT 68 / - COUNT ( * ) - - ( - COUNT ( * ) ) col1 FROM tab2
----
-25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT 80 + - 51 * - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( 62 ) IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-564
SELECT 80 + - 51 * - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( 62 ) IS NOT NULL
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-565
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 10 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT + CAST ( NULL AS REAL ) + 10 AS col1 FROM tab0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-566
SELECT COUNT ( DISTINCT - col2 ) col0 FROM tab0
----
3

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

skipif mysql # not compatible
query I rowsort label-567
SELECT - COUNT ( + col2 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - 35 + + col1 AS col0 FROM tab2
----
16
32
42

query I rowsort
SELECT DISTINCT - col2 * - col1 + - 33 FROM tab1
----
1311
262
3163

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - COUNT( * ) col0 FROM tab2 WHERE NOT ( NULL ) <= 19 / - 51
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-570
SELECT - COUNT ( * ) col0 FROM tab2 WHERE NOT ( NULL ) <= 19 / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ALL SUM( ALL + 48 ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL SUM ( ALL + 48 ) FROM tab0
----
144

query I rowsort
SELECT ALL 90 * col0 FROM tab2 AS cor0
----
4140
5760
6750

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( ( 6 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT COUNT( DISTINCT + col0 ) + + MIN( ALL - col1 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-575
SELECT COUNT ( DISTINCT + col0 ) + + MIN ( ALL - col1 ) FROM tab2
----
-74

query I rowsort
SELECT DISTINCT 95 - 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
35

query I rowsort
SELECT + 41 + col2 * - 9 FROM tab2
----
-166
-319
-481

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT + col0 + - 81 DIV 73 AS col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-578
SELECT + col0 + - 81 / 73 AS col0 FROM tab2
----
45
63
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-579
SELECT + col2 DIV col2 + + CAST( + 88 AS SIGNED ) FROM tab1
----
89
89
89

skipif mysql # not compatible
query I rowsort label-579
SELECT + col2 / col2 + + CAST ( + 88 AS INTEGER ) FROM tab1
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT - col2 DIV 43 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-580
SELECT - col2 / 43 FROM tab0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT DISTINCT + 3 DIV - col2 + + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT + 3 / - col2 + + col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 * + col2 col1 FROM tab1 AS cor0
----
5074
5848
8256

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

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

query I rowsort
SELECT ALL + - col2 + 26 AS col1 FROM tab2 AS cor0
----
-14
-32
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 39
----

query I rowsort
SELECT ALL + - ( - 53 ) * col2 FROM tab0 AS cor0
----
2491
5247
530

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col1 + - 40 * col2 col0 FROM tab2 AS cor0
----
1480
1566
253

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( 4 + + 44 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - 83 AS col2 FROM tab0 AS cor0
----
-130
-182
-93

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE col0 + - 28 <= col1 * - 23
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT + COUNT( + + col2 ) - - SUM( ALL + 93 ) AS col1 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + COUNT ( + + col2 ) - - SUM ( ALL + 93 ) AS col1 FROM tab2
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT COUNT( * ) - - ( + 51 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-595
SELECT COUNT ( * ) - - ( + 51 ) FROM tab0
----
54

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

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

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

skipif mysql # not compatible
query I rowsort label-597
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE 53 * 40 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT COUNT( * ) * - 26 - - COUNT( * ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-598
SELECT COUNT ( * ) * - 26 - - COUNT ( * ) AS col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL 76 + - COUNT( ( + 20 ) + col2 ) AS col0 FROM tab1 WHERE NOT + col1 NOT IN ( col0 )
----
76

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL 76 + - COUNT ( ( + 20 ) + col2 ) AS col0 FROM tab1 WHERE NOT + col1 NOT IN ( col0 )
----
76

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

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

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

query I rowsort
SELECT - ( - + col1 ) * 3 - - 81 FROM tab1
----
123
222
96

query I rowsort
SELECT col0 - + col1 + + col1 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT + col2 - + col1 * + 84 FROM tab0
----
-1754
-6757
15

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

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

query I rowsort
SELECT + 13 + - col2 * 41 FROM tab2
----
-1627
-2365
-930

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

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT - - SUM( ALL col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-608
SELECT - - SUM ( ALL col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-609
SELECT + ( col1 ) * + + col2 * + CAST( 19 AS SIGNED ) FROM tab1
----
25536
5605
60724

skipif mysql # not compatible
query I rowsort label-609
SELECT + ( col1 ) * + + col2 * + CAST ( 19 AS INTEGER ) FROM tab1
----
25536
5605
60724

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT DISTINCT + MIN( DISTINCT + 84 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT + MIN ( DISTINCT + 84 ) FROM tab2
----
84

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

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

query I rowsort
SELECT DISTINCT + 10 / - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 64 AND ( + col1 + + 18 )
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - + col0 >= ( NULL ) OR + 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT + MAX( ALL - + 99 ) col0 FROM tab1 AS cor0
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT - COUNT( col2 ) AS col0 FROM tab0 WHERE NOT - 67 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT - COUNT ( col2 ) AS col0 FROM tab0 WHERE NOT - 67 = NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - col0 + + + ( + + 30 ) * - + ( - col0 ) AS col0 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NULL > ( + + col0 )
----

query I rowsort
SELECT ALL - 95 + + 75 + - + col2 * - + 58 AS col1 FROM tab0 AS cor0
----
2706
560
5722

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-626
SELECT DISTINCT + col1 DIV CAST( - 44 AS SIGNED ) + - - 46 FROM tab0
----
45
46

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + col1 / CAST ( - 44 AS INTEGER ) + - - 46 FROM tab0
----
45
46

query III rowsort
SELECT * FROM tab0 WHERE + 33 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-628
SELECT ALL - col1 + + - CAST( NULL AS SIGNED ) - - 47, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-628
SELECT ALL - col1 + + - CAST ( NULL AS INTEGER ) - - 47, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

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

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

query I rowsort
SELECT ALL - 66 + - 96 AS col1 FROM tab1 AS cor0
----
-162
-162
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT + MIN( col0 ) + + 64 + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - 25 IS NOT NULL
----
118

skipif mysql # not compatible
query I rowsort label-631
SELECT + MIN ( col0 ) + + 64 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - 25 IS NOT NULL
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT - COUNT( * ) * + - 51 + + 9 AS col0 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-632
SELECT - COUNT ( * ) * + - 51 + + 9 AS col0 FROM tab1 AS cor0
----
162

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

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

query I rowsort
SELECT ALL + col2 + - - col1 FROM tab2 AS cor0
----
117
125
74

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

query II rowsort
SELECT DISTINCT - 18 - + col2 AS col0, col2 FROM tab0
----
-117
99
-28
10
-65
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-637
SELECT ALL col1 - - CAST( col0 AS SIGNED ) FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL col1 - - CAST ( col0 AS INTEGER ) FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-638
SELECT ALL + COUNT( - col1 ) FROM tab2 WHERE NULL NOT IN ( ( - - col2 ) + + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) - + col0 / + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + COUNT ( - col1 ) FROM tab2 WHERE NULL NOT IN ( ( - - col2 ) + + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) - + col0 / + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 27 >= NULL
----

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

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

query II rowsort
SELECT DISTINCT - col1 AS col1, col0 - + + 88 + + + col2 * + + col0 * - 60 AS col1 FROM tab2
----
-51
-63522
-67
-261013
-77
-153624

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

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - + col2 / + col0 FROM tab0 AS cor0
----
-1
-3
0

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

query II rowsort
SELECT + + 79 AS col2, col2 + 17 AS col1 FROM tab0 AS cor0
----
79
116
79
27
79
64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT DISTINCT - 72 * - CAST( - col2 AS SIGNED ) FROM tab1
----
-4248
-4896
-6912

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT - 72 * - CAST ( - col2 AS INTEGER ) FROM tab1
----
-4248
-4896
-6912

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

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

query I rowsort
SELECT ( + - 69 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-651
SELECT SUM( ALL + col0 ), + 92 * + - CAST( NULL AS SIGNED ) / + + 95 AS col0 FROM tab0
----
199
NULL

skipif mysql # not compatible
query II rowsort label-651
SELECT SUM ( ALL + col0 ), + 92 * + - CAST ( NULL AS INTEGER ) / + + 95 AS col0 FROM tab0
----
199
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 32 col1, + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
32
14
32
47
32
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 35 * - col2 IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 35 * - col2 IN ( + col1 )
----
0

query I rowsort
SELECT ALL + + 25 AS col1 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-656
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS DECIMAL ) + + 64 + - 71 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS REAL ) + + 64 + - 71 AS col1 FROM tab1 AS cor0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT 87 DIV col1 FROM tab0
----
1
4
87

skipif mysql # not compatible
query I rowsort label-659
SELECT 87 / col1 FROM tab0
----
1
4
87

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

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

query I rowsort
SELECT ALL - col1 * + 21 AS col2 FROM tab0
----
-1701
-21
-441

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT + col0 < col2 / + ( 91 )
----
46
64
75

query II rowsort
SELECT - 14, 78 AS col0 FROM tab0
----
-14
78
-14
78
-14
78

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 > + - 43 + + col2 + - - col2 / - - col2 + + - col1
----
75
67
58

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

skipif mysql # not compatible
query I rowsort label-666
SELECT + COUNT ( * ) + - - 0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL - 44 + - COUNT( * ) - + ( - 71 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
18

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - 44 + - COUNT ( * ) - + ( - 71 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT + 18 - + COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT + 18 - + COUNT ( * ) FROM tab2
----
15

query I rowsort
SELECT + col2 * - 23 FROM tab2
----
-1334
-529
-920

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

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

query I rowsort
SELECT DISTINCT 44 * 53 + - - col0 * 68 AS col1 FROM tab0
----
3352
8248
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT + + MAX( - + col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + + MAX ( - + col1 ) FROM tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - + col1, 85 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 30 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + col0 * - + col2 + - 15 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 * - + col2 + - 15 >= NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT DISTINCT - - 14 + MIN( 86 ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT - - 14 + MIN ( 86 ) AS col2 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-678
SELECT DISTINCT + 46 - COUNT( * ) AS col0, + COUNT( * ) * 83 col1 FROM tab2 AS cor0
----
43
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-678
SELECT DISTINCT + 46 - COUNT ( * ) AS col0, + COUNT ( * ) * 83 col1 FROM tab2 AS cor0
----
43
249

query I rowsort
SELECT - + 66 - - 3 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT - SUM( - 76 ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-680
SELECT - SUM ( - 76 ) FROM tab0
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NOT + - col1 BETWEEN + + 62 AND - 56
----
14
47
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT MAX( 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-685
SELECT MAX ( 94 ) FROM tab1
----
94

query I rowsort
SELECT - 57 * - 55 + - 29 FROM tab0 cor0
----
3106
3106
3106

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL >= ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-688
SELECT + col0 * + CAST( - col1 AS SIGNED ) * + col1 + + 0 AS col1 FROM tab0
----
-38367
-97
-98415

skipif mysql # not compatible
query I rowsort label-688
SELECT + col0 * + CAST ( - col1 AS INTEGER ) * + col1 + + 0 AS col1 FROM tab0
----
-38367
-97
-98415

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

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT DISTINCT MIN( DISTINCT - - col0 ), COUNT( * ) AS col0 FROM tab2
----
46
3

skipif mysql # not compatible
query II rowsort label-690
SELECT DISTINCT MIN ( DISTINCT - - col0 ), COUNT ( * ) AS col0 FROM tab2
----
46
3

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( - col1 + - + col1 * 54 ) IS NULL
----
51
67
77

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - col1 + + - 38 AS col0 FROM tab0 AS cor0
----
-49
-72
60

query I rowsort
SELECT ALL + - col1 + - 36 FROM tab0 AS cor0
----
-117
-37
-57

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

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

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

query I rowsort
SELECT col2 + - - col2 AS col0 FROM tab1 cor0
----
118
136
192

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

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

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

query II rowsort
SELECT ALL col2 * + col1 * + + col1 + + col1 AS col1, - col1 FROM tab1 WHERE NOT - - 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT - MIN( col2 ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-59

skipif mysql # not compatible
query I rowsort label-703
SELECT - MIN ( col2 ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-59

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-705
SELECT ALL - 98 - CAST( col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-172
-215
-223

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL - 98 - CAST ( col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-172
-215
-223

query I rowsort
SELECT DISTINCT + col1 - - + 91 AS col0 FROM tab0
----
112
172
92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT 87 DIV 99 + + 60 AS col0 FROM tab2 cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-708
SELECT 87 / 99 + + 60 AS col0 FROM tab2 cor0
----
60
60
60

query I rowsort
SELECT - 94 + + col1 AS col1 FROM tab1 AS cor0
----
-47
-80
-89

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

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

query I rowsort
SELECT 25 AS col1 FROM tab1 cor0
----
25
25
25

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

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

query I rowsort
SELECT DISTINCT - col0 * + - 38 AS col1 FROM tab2
----
1748
2432
2850

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

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

query I rowsort
SELECT 44 * - col1 AS col0 FROM tab0
----
-3564
-44
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) * 35 col0 FROM tab1 AS cor0
----
1645
175
490

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

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT ALL 83 DIV + + 79 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL 83 / + + 79 AS col1 FROM tab1
----
1
1
1

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

query I rowsort
SELECT + col1 * + col2 + 79 * col2 * - col2 FROM tab1
----
-274704
-362100
-726720

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT col1 + - - 33 DIV - col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-722
SELECT col1 + - - 33 / - col2 FROM tab1
----
14
47
5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + col0 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-725
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - - 66 >= NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= 38 * col2 * - 83 + + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT - col1 DIV + - col2 col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL - 40 * + col2 FROM tab0
----
-1880
-3960
-400

query II rowsort
SELECT + col0 * + col0, + col0 + col0 AS col1 FROM tab1
----
2601
102
7225
170
8281
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT ALL MIN( ALL - ( CAST( CAST( - 83 AS SIGNED ) AS SIGNED ) ) ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL MIN ( ALL - ( CAST ( CAST ( - 83 AS INTEGER ) AS INTEGER ) ) ) FROM tab1
----
83

query II rowsort
SELECT + col1 * col0, + 83 - + col1 + + col1 AS col0 FROM tab2
----
2346
83
4928
83
5025
83

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

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

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

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

query I rowsort
SELECT col2 + + - col1 + + 25 FROM tab0 AS cor0
----
-9
123
14

query I rowsort
SELECT DISTINCT + - col1 + - col2 + - + col2 FROM tab1 cor0
----
-123
-183
-206

query I rowsort
SELECT ALL + 87 * + col2 * - 67 + - col2 AS col0 FROM tab1 AS cor0
----
-343970
-396440
-559680

query I rowsort
SELECT DISTINCT + + 47 / + col2 * - col0 FROM tab2 AS cor0 WHERE NOT - 11 * col2 * - 37 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-743
SELECT ALL - CAST( + col0 AS SIGNED ), col2 * - + col2 * ( + 24 ) col1 FROM tab1 AS cor0
----
-51
-221184
-85
-83544
-91
-110976

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-743
SELECT ALL - CAST ( + col0 AS INTEGER ), col2 * - + col2 * ( + 24 ) col1 FROM tab1 AS cor0
----
-51
-221184
-85
-83544
-91
-110976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col2, 61 - - + col2 AS col2, + col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-746
SELECT MIN( DISTINCT col0 ) DIV 7 AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-746
SELECT MIN ( DISTINCT col0 ) / 7 AS col1 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 13, col1 + + 89 * + 16 + - - col2 col0 FROM tab1
----
-13
1488
-13
1534
-13
1539

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

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

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

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

query I rowsort
SELECT DISTINCT 47 * - 38 AS col2 FROM tab0
----
-1786

query I rowsort
SELECT ALL - 67 * + col0 FROM tab1 AS cor0 WHERE NOT 70 >= + + 37 + - + ( - col1 )
----
-6097

query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col0 FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 88 * col0 BETWEEN - col2 AND - col2 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT CAST( + - 65 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-755
SELECT CAST ( + - 65 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-756
SELECT col2 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) * + ( col0 ) + + 17 + + CAST( - 38 AS DECIMAL ) + - 87 * - + CAST( 82 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-756
SELECT col2 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) * + ( col0 ) + + 17 + + CAST ( - 38 AS REAL ) + - 87 * - + CAST ( 82 AS INTEGER ) IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-759
SELECT ALL COUNT( * ) + - 49, + 27 + SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
-46
-76

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL COUNT ( * ) + - 49, + 27 + SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
-46
-76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT ALL 18 * - col1 + col2 + - col0 DIV + - 27 FROM tab1 AS cor0
----
-155
-28
-775

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL 18 * - col1 + col2 + - col0 / + - 27 FROM tab1 AS cor0
----
-155
-28
-775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-762
SELECT col0 + 86 + - CAST( - 28 AS SIGNED ) col0 FROM tab0 AS cor0
----
129
201
211

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-762
SELECT col0 + 86 + - CAST ( - 28 AS INTEGER ) col0 FROM tab0 AS cor0
----
129
201
211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 * - + 12 + - + col2 col0 FROM tab0
----
-10450
-115335
-8507

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - COUNT( * ) * - COUNT( * ) + - + 75 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-764
SELECT - COUNT ( * ) * - COUNT ( * ) + - + 75 FROM tab2
----
-66

query III rowsort
SELECT * FROM tab0 WHERE + 43 + 13 > NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col2 * - + 49 AS col2 FROM tab2
----
125440
213150
51842

query II rowsort
SELECT ALL - 1 * - - col2 + - col0 * 14 + - ( + + 2 ) AS col2, 29 + col1 FROM tab0 AS cor0
----
-1230
50
-1459
30
-259
110

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

skipif mysql # not compatible
query II rowsort label-768
SELECT DISTINCT + ( - - 51 ) + - COUNT ( * ) AS col2, COUNT ( DISTINCT + col1 ) FROM tab2 cor0
----
48
3

query I rowsort
SELECT 54 * + + col1 * col2 - + 45 AS col2 FROM tab0 AS cor0
----
11295
205533
5301

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

query I rowsort
SELECT + - col2 * - - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 * - + col2 + col1 * 44 + - - col2 * - col0 )
----

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

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

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

query I rowsort
SELECT - + ( + + ( 58 ) ) * - col1 * - col0 FROM tab2 cor0
----
-136068
-285824
-291450

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

query I rowsort
SELECT - col1 + - 23 AS col1 FROM tab0 WHERE NOT + 28 - - 32 - 16 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - 99 < - 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 / + + 3 + - ( col1 ) * + col2 FROM tab2 WHERE NOT - col0 * 89 * + + 31 <= - 36
----

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

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

query I rowsort
SELECT ALL + 57 AS col1 FROM tab1 WHERE NULL NOT BETWEEN 52 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-782
SELECT DISTINCT + col2 AS col1 FROM tab0 cor0 WHERE NOT + 58 + - col1 * - + CAST( - col2 AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT + col2 AS col1 FROM tab0 cor0 WHERE NOT + 58 + - col1 * - + CAST ( - col2 AS INTEGER ) IS NULL
----
10
47
99

query I rowsort
SELECT + 5 * + 20 AS col2 FROM tab0 cor0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT DISTINCT - COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT - COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ( + 36 ) FROM tab1
----
36
36
36

query I rowsort
SELECT + 34 FROM tab2 AS cor0 WHERE NULL BETWEEN + 33 AND + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col0 FROM tab1 cor0
----
60
60
60

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

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + - MAX ( - col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE - CAST( col1 AS SIGNED ) + + 20 BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE - CAST ( col1 AS INTEGER ) + + 20 BETWEEN col0 AND NULL
----

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

query I rowsort
SELECT ALL - col1 - 57 + col0 FROM tab1 AS cor0
----
-13
-20
23

query I rowsort
SELECT ALL + 33 FROM tab1 AS cor0 WHERE 18 >= NULL
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) - - - ( 37 ) AS col2 FROM tab0
----
-22
50
60

query II rowsort
SELECT col1 - col2, col2 * + 98 AS col0 FROM tab1
----
-21
6664
-54
5782
-82
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT DISTINCT COUNT( * ) * + COUNT( * ) - 38 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) - 38 FROM tab2
----
-29

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

query I rowsort
SELECT DISTINCT - 18 * - col2 FROM tab1
----
1062
1224
1728

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

query I rowsort
SELECT DISTINCT - col1 + + - 65 AS col0 FROM tab2 AS cor0
----
-116
-132
-142

query I rowsort
SELECT DISTINCT 84 FROM tab2 cor0
----
84

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT 52 * - COUNT( ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-807
SELECT 52 * - COUNT ( ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-156

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-810
SELECT CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-810
SELECT CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT + ( - 86 ) * + SUM( ALL - 35 ) * - 54 AS col0 FROM tab2 AS cor0
----
-487620

skipif mysql # not compatible
query I rowsort label-811
SELECT + ( - 86 ) * + SUM ( ALL - 35 ) * - 54 AS col0 FROM tab2 AS cor0
----
-487620

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

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

query II rowsort
SELECT ALL 54 AS col1, 73 AS col0 FROM tab2
----
54
73
54
73
54
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-8

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

query I rowsort
SELECT col1 + + - 42 + col2 FROM tab0
----
-11
58
86

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-818
SELECT ALL col1, + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
1
-1
21
-21
81
-81

skipif mysql # not compatible
query II rowsort label-818
SELECT ALL col1, + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-819
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( + col2 )
----
3

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

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

query I rowsort
SELECT DISTINCT + - ( - 82 ) + - col0 AS col1 FROM tab0 AS cor0
----
-15
-5
67

query I rowsort
SELECT 56 * - col0 FROM tab1 AS cor0
----
-2856
-4760
-5096

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

query I rowsort
SELECT - 63 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-825
SELECT ALL + MIN ( - ( col2 ) ) col1 FROM tab0
----
-99

query II rowsort
SELECT ALL col1 * - col0 AS col2, + col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT + 0 + + 73 + col0 FROM tab1 AS cor0
----
124
158
164

query I rowsort
SELECT DISTINCT - col0 + + + 23 + 15 FROM tab1 AS cor0
----
-13
-47
-53

query II rowsort
SELECT + 18 + + col0 + 25 AS col0, - col1 FROM tab0 AS cor0
----
130
-21
140
-1
58
-81

query I rowsort
SELECT 93 + 42 FROM tab1 AS cor0
----
135
135
135

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT col2 DIV - 10 AS col0 FROM tab1 WHERE NULL IS NULL
----
-5
-6
-9

skipif mysql # not compatible
query I rowsort label-833
SELECT col2 / - 10 AS col0 FROM tab1 WHERE NULL IS NULL
----
-5
-6
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE ( - col2 ) / - + 58 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL col1 - - 14 + 68 + - - col0 FROM tab2
----
179
223
224

query I rowsort
SELECT + col0 * - 82 AS col1 FROM tab0
----
-1230
-7134
-7954

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 85 ) > col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL + SUM( + + col2 ) * - MAX( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-21408

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + SUM ( + + col2 ) * - MAX ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-21408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-841
SELECT + SUM( ALL - - CAST( 78 AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
702

skipif mysql # not compatible
query I rowsort label-841
SELECT + SUM ( ALL - - CAST ( 78 AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
702

query I rowsort
SELECT ALL + 22 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT DISTINCT + COUNT( * ) + 34 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
43

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT + COUNT ( * ) + 34 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
43

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + 87 col0 FROM tab1 AS cor0
----
112
2296
283

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-847
SELECT ALL 1 DIV + - SUM( DISTINCT + col0 ) * + + COUNT( * ) AS col2, MIN( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
0
10

skipif mysql # not compatible
query II rowsort label-847
SELECT ALL 1 / + - SUM ( DISTINCT + col0 ) * + + COUNT ( * ) AS col2, MIN ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
0
10

query I rowsort
SELECT DISTINCT + + col2 * + col1 * - - col0 AS col0 FROM tab0 cor0
----
18270
57105
9603

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-851
SELECT DISTINCT MAX( DISTINCT col1 ) AS col1, + 97 AS col0 FROM tab2 AS cor0
----
77
97

skipif mysql # not compatible
query II rowsort label-851
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col1, + 97 AS col0 FROM tab2 AS cor0
----
77
97

onlyif mysql # DIV for integer division: 
query II rowsort label-852
SELECT + col1 DIV - col2 * + col2 AS col1, 54 + - col1 + + col0 col1 FROM tab1
----
0
134
0
91
0
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-852
SELECT + col1 / - col2 * + col2 AS col1, 54 + - col1 + + col0 col1 FROM tab1
----
0
134
0
91
0
98

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 64 * - - ( + + 17 ) <> NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT - - 49 + - ( + COUNT( * ) ) + 93 - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
124

skipif mysql # not compatible
query I rowsort label-856
SELECT - - 49 + - ( + COUNT ( * ) ) + 93 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
124

query II rowsort
SELECT DISTINCT 8 AS col1, - col0 AS col0 FROM tab0
----
8
-15
8
-87
8
-97

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

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - col2 * - col1 * - - col0 FROM tab1
----
25075
290836
68544

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT - 12 + - col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT col1 * - 99 * - - col2 IS NULL )
----
-13
-33
-93

query I rowsort
SELECT ALL 97 + + col0 FROM tab0 AS cor0
----
112
184
194

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col2 + col2 col0 FROM tab2 cor0
----
-5
3
49

query I rowsort
SELECT ALL - col1 + - - 9 FROM tab1 AS cor0
----
-38
-5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL 22 - + 4 + + COUNT( + + 37 ) AS col1 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL 22 - + 4 + + COUNT ( + + 37 ) AS col1 FROM tab0
----
21

query I rowsort
SELECT DISTINCT + col0 - - ( col0 ) AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL - col2 * - 1 - - - col2 * + + col0 * - + col2 * col1 AS col0 FROM tab2
----
1241057
16904158
7884840

query I rowsort
SELECT - col2 + col1 + col0 AS col1 FROM tab2
----
101
74
84

query I rowsort
SELECT - 36 * + 12 + + ( - + 20 ) AS col2 FROM tab2
----
-452
-452
-452

query I rowsort
SELECT - 87 FROM tab0 AS cor0 WHERE NOT + col1 - 97 <> - - col2 + + 88 - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL + ( - COUNT( * ) ) * - 72 + - SUM( ALL 45 ) AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + ( - COUNT ( * ) ) * - 72 + - SUM ( ALL 45 ) AS col0 FROM tab2 AS cor0
----
81

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

query I rowsort
SELECT - - 47 * - col1 * - 95 * + 36 * + + col1 FROM tab2 AS cor0
----
418084740
721561860
953027460

onlyif mysql # DIV for integer division: 
query II rowsort label-875
SELECT + col2 AS col0, - col1 DIV + - 33 FROM tab2
----
23
1
40
2
58
2

skipif mysql # not compatible
query II rowsort label-875
SELECT + col2 AS col0, - col1 / + - 33 FROM tab2
----
23
1
40
2
58
2

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

onlyif mysql # DIV for integer division: 
query II rowsort label-877
SELECT ALL col0, 97 * 81 DIV 45 * - - col1 * + col2 AS col2 FROM tab1
----
51
233856
85
51330
91
556104

skipif mysql # not compatible
query II rowsort label-877
SELECT ALL col0, 97 * 81 / 45 * - - col1 * + col2 AS col2 FROM tab1
----
51
233856
85
51330
91
556104

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

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

query II rowsort
SELECT DISTINCT - col1 * 89 * - col1, col0 AS col1 FROM tab2 cor0
----
231489
46
399521
75
527681
64

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

query II rowsort
SELECT col1, - ( + - 99 ) AS col2 FROM tab2 AS cor0
----
51
99
67
99
77
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-884
SELECT - CAST( + col1 AS SIGNED ) * col2 col1, - col2 AS col1 FROM tab1 AS cor0
----
-1344
-96
-295
-59
-3196
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-884
SELECT - CAST ( + col1 AS INTEGER ) * col2 col1, - col2 AS col1 FROM tab1 AS cor0
----
-1344
-96
-295
-59
-3196
-68

query I rowsort
SELECT DISTINCT + col1 * - + 34 FROM tab0 AS cor0
----
-2754
-34
-714

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT - col2 + col0 DIV + 46 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-887
SELECT - col2 + col0 / + 46 FROM tab1
----
-58
-67
-95

query I rowsort
SELECT + 22 + + + col0 + - ( col0 ) * - col1 FROM tab2
----
2414
5014
5122

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

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

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

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

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

query I rowsort
SELECT ALL + 14 + col0 + + - col1 AS col0 FROM tab1 cor0
----
51
58
94

query II rowsort
SELECT ALL 73 AS col2, + col0 FROM tab0
----
73
15
73
87
73
97

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

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

query I rowsort
SELECT + col2 + - 68 - col1 * - col1 AS col0 FROM tab0 cor0
----
32
383
6540

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + + MAX( + + 67 ) * - 44 + - 83 FROM tab1 AS cor0
----
-3031

skipif mysql # not compatible
query I rowsort label-897
SELECT + + MAX ( + + 67 ) * - 44 + - 83 FROM tab1 AS cor0
----
-3031

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

query I rowsort
SELECT + 39 + col2 AS col0 FROM tab1 AS cor0
----
107
135
98

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

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

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

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

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

query I rowsort
SELECT + 45 * + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-904
SELECT ALL - - CAST( NULL AS SIGNED ) / col0 AS col0, - col1 AS col1 FROM tab0 WHERE + 73 = col2
----

skipif mysql # not compatible
query II rowsort label-904
SELECT ALL - - CAST ( NULL AS INTEGER ) / col0 AS col0, - col1 AS col1 FROM tab0 WHERE + 73 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL - MIN( + 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - MIN ( + 42 ) FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - MIN( + - 51 ) + - + ( COUNT( * ) ) * - - 83 FROM tab2, tab0 AS cor0
----
-696

skipif mysql # not compatible
query I rowsort label-906
SELECT - MIN ( + - 51 ) + - + ( COUNT ( * ) ) * - - 83 FROM tab2, tab0 AS cor0
----
-696

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-908
SELECT ALL + 1, - 59 * - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-908
SELECT ALL + 1, - 59 * - CAST ( NULL AS REAL ) col2 FROM tab2
----
1
NULL
1
NULL
1
NULL

query I rowsort
SELECT DISTINCT + col0 * + - col2 + 61 FROM tab1 WHERE + 90 IS NULL
----

query I rowsort
SELECT DISTINCT - - 57 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-911
SELECT - + SUM( ALL - 36 ) DIV + 76 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-911
SELECT - + SUM ( ALL - 36 ) / + 76 AS col2 FROM tab2 AS cor0
----
1

query II rowsort
SELECT ALL - 79 * 14 * + - col0 * - - col1 AS col2, - col1 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
470050
25075
4730362
290836
789684
68544

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

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT DISTINCT 90 * COUNT( ALL ( col1 ) ) FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT 90 * COUNT ( ALL ( col1 ) ) FROM tab2 AS cor0
----
270

query I rowsort
SELECT ALL + - col0 * + 97 + + - col0 AS col2 FROM tab1 AS cor0
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query II rowsort label-916
SELECT DISTINCT - + MAX( - 56 ) col0, 23 FROM tab0 AS cor0
----
56
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-916
SELECT DISTINCT - + MAX ( - 56 ) col0, 23 FROM tab0 AS cor0
----
56
23

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT - 70 * - MIN( ALL + 47 ) AS col0 FROM tab2 AS cor0
----
3290

skipif mysql # not compatible
query I rowsort label-917
SELECT - 70 * - MIN ( ALL + 47 ) AS col0 FROM tab2 AS cor0
----
3290

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL MAX( 10 ) * - 76 FROM tab2
----
-760

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL MAX ( 10 ) * - 76 FROM tab2
----
-760

query I rowsort
SELECT - ( - ( - - 6 ) ) FROM tab1 AS cor0
----
6
6
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 >= + col2
----
15
81
47
97
1
99

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

query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NOT ( - 60 ) IS NOT NULL )
----

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

query I rowsort
SELECT DISTINCT ( 49 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT + col0 * + - col0 * + col0 * - - col2 FROM tab1
----
-12734496
-36233375
-51242828

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

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

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

query I rowsort
SELECT + col0 * + - 94 AS col1 FROM tab1
----
-4794
-7990
-8554

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT DISTINCT - CAST( + - 11 AS SIGNED ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT - CAST ( + - 11 AS INTEGER ) FROM tab0
----
11

query II rowsort
SELECT ALL col0 + + + 87 * + - col1 + - + col0 * + col2 * - col1 AS col1, col1 + - + col0 AS col0 FROM tab0
----
16530
-66
50073
66
9613
-96

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

query I rowsort
SELECT ALL 76 * + - col2 + - - 64 FROM tab2
----
-1684
-2976
-4344

onlyif mysql # aggregate syntax: 
query II rowsort label-935
SELECT + - ( 98 ) + 79 col0, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-19
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-935
SELECT + - ( 98 ) + 79 col0, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-19
-3

query I rowsort
SELECT ALL - col2 + - col2 * + + 85 * + col0 + ( - 67 ) + - 91 + - col1 * + col2 FROM tab2 AS cor0
----
-220878
-373852
-91284

query I rowsort
SELECT + ( + - col1 ) * col2 + + 48 AS col1 FROM tab2 AS cor0
----
-1125
-3032
-3838

query II rowsort
SELECT ALL + 5 * - 24 * - col1, - 1 AS col1 FROM tab2 AS cor0
----
6120
-1
8040
-1
9240
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT COUNT( ALL - 56 ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT COUNT ( ALL - 56 ) + - COUNT ( * ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + col2 + - + 42 FROM tab1
----
17
26
54

query II rowsort
SELECT ALL + 52 - + 94 AS col1, - col2 AS col0 FROM tab1
----
-42
-59
-42
-68
-42
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT + 51 * + ( - COUNT( - + 23 ) ) * + CAST( + - SUM( - + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-15759

skipif mysql # not compatible
query I rowsort label-942
SELECT + 51 * + ( - COUNT ( - + 23 ) ) * + CAST ( + - SUM ( - + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-15759

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

skipif mysql # not compatible
query I rowsort label-943
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - 58 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 29 AS col0 FROM tab0 cor0
----
-29
-29
-29

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

query II rowsort
SELECT 23, - col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 72 + + 75 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT + col0 >= col1 + - + col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-950
SELECT SUM( + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

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

query II rowsort
SELECT ALL 76 AS col0, col2 + + 19 * col1 FROM tab1
----
76
154
76
362
76
961

query I rowsort
SELECT ALL - 92 AS col0 FROM tab0 WHERE + + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * - 45 * + - col0 AS col2 FROM tab0
----
-31725
-39150
-432135

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

query I rowsort
SELECT ALL - 71 * - + col2 FROM tab1 WHERE NOT NULL <= - 17
----

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

query I rowsort
SELECT 81 * + 72 FROM tab2 AS cor0
----
5832
5832
5832

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

query I rowsort
SELECT ALL - + ( ( - col2 ) ) * - col0 * col2 * + - col0 FROM tab0 cor0
----
497025
756900
92217609

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

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - + COUNT ( * ) / - + COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + - 83 * + col0 AS col0 FROM tab2 cor0
----
-3818
-5312
-6225

query I rowsort
SELECT ALL + - 9 AS col1 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT - 29 + + col0 + + ( + col2 ) + + col2 * + + col2 - + + col2 FROM tab0 AS cor0
----
158
2195
9869

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT 85 + + col1 DIV + col2 + - - col0 + - 42 FROM tab0 AS cor0
----
132
140
59

skipif mysql # not compatible
query I rowsort label-964
SELECT 85 + + col1 / + col2 + - - col0 + - 42 FROM tab0 AS cor0
----
132
140
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 59 + + col2 + col0 col0 FROM tab0 AS cor0
----
137
3
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - MAX( DISTINCT col2 ) + - 48 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-967
SELECT - MAX ( DISTINCT col2 ) + - 48 FROM tab0
----
-147

query I rowsort
SELECT DISTINCT ( - col0 ) + + 64 FROM tab2
----
-11
0
18

query II rowsort
SELECT ALL - 98 * + 53 AS col1, + 58 FROM tab0
----
-5194
58
-5194
58
-5194
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + col0 * - - col0 col0 FROM tab1
----
2669
7293
8349

query I rowsort
SELECT DISTINCT - 54 * - col2 FROM tab0
----
2538
5346
540

query I rowsort
SELECT + col1 * - + 18 AS col2 FROM tab0 WHERE col2 <= + + col1
----
-1458
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-973
SELECT + + 17 * - col1 FROM tab0 WHERE CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) IS NOT NULL
----
-1377
-17
-357

skipif mysql # not compatible
query I rowsort label-973
SELECT + + 17 * - col1 FROM tab0 WHERE CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) IS NOT NULL
----
-1377
-17
-357

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-974
SELECT ALL - + COUNT( * ), COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 WHERE NOT col2 <= - ( ( + col2 ) )
----
-3
1

skipif mysql # not compatible
query II rowsort label-974
SELECT ALL - + COUNT ( * ), COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col2 <= - ( ( + col2 ) )
----
-3
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-975
SELECT + - CAST( NULL AS DECIMAL ) 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-975
SELECT + - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT DISTINCT + col1 + - col1 - + 32 DIV + col1 + col1 FROM tab0 AS cor0
----
-31
20
81

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT + col1 + - col1 - + 32 / + col1 + col1 FROM tab0 AS cor0
----
-31
20
81

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT - COUNT( * ) + MAX( DISTINCT - 40 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-49

skipif mysql # not compatible
query I rowsort label-977
SELECT - COUNT ( * ) + MAX ( DISTINCT - 40 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT 84 - col2 + - ( col2 ) DIV + col2 AS col0 FROM tab2
----
25
43
60

skipif mysql # not compatible
query I rowsort label-978
SELECT 84 - col2 + - ( col2 ) / + col2 AS col0 FROM tab2
----
25
43
60

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE - col0 <= NULL
----

query II rowsort
SELECT - 27 AS col0, - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 4090797ef775527bd1c089a8c7ee4038

query I rowsort
SELECT 95 + - 71 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

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

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

query I rowsort
SELECT - + 48 AS col2 FROM tab1 AS cor0
----
-48
-48
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-986
SELECT - col1 DIV + + 15 AS col1 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-986
SELECT - col1 / + + 15 AS col1 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT - - 69 * col0 FROM tab1 AS cor0
----
3519
5865
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT + col2 DIV 53 - - + 93 + + + col2 - - 82 FROM tab1 AS cor0
----
235
244
272

skipif mysql # not compatible
query I rowsort label-988
SELECT + col2 / 53 - - + 93 + + + col2 - - 82 FROM tab1 AS cor0
----
235
244
272

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

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

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

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

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

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

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

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 78 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-995
SELECT CAST( - - MIN( - 52 ) AS SIGNED ) AS col2 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-995
SELECT CAST ( - - MIN ( - 52 ) AS INTEGER ) AS col2 FROM tab1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT ALL - CAST( ( + 21 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL - CAST ( ( + 21 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 / + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT + COUNT( * ) * - 15 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-998
SELECT + COUNT ( * ) * - 15 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + + ( 51 ) + - col2 AS col2 FROM tab1 AS cor0
----
-17
-45
-8

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 40 <> - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT + + COUNT( * ) - - 70 * + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
639

skipif mysql # not compatible
query I rowsort label-1001
SELECT + + COUNT ( * ) - - 70 * + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
639

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

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

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT 44 * - MIN( ( - col0 ) ) * ( + 29 ) - 67 col0 FROM tab0
----
123705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1005
SELECT 44 * - MIN ( ( - col0 ) ) * ( + 29 ) - 67 col0 FROM tab0
----
123705

onlyif mysql # DIV for integer division: 
query II rowsort label-1006
SELECT DISTINCT col2, + 88 DIV - ( + - col2 ) FROM tab2
----
23
3
40
2
58
1

skipif mysql # not compatible
query II rowsort label-1006
SELECT DISTINCT col2, + 88 / - ( + - col2 ) FROM tab2
----
23
3
40
2
58
1

query I rowsort
SELECT ALL - col0 + + 86 + + col1 * col0 FROM tab2
----
2386
4950
5036

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

query II rowsort
SELECT ALL col1 AS col1, - col0 * - + 62 FROM tab0
----
1
6014
21
5394
81
930

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT - COUNT( * ) * ( + 24 ) + + 41 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-1013
SELECT - COUNT ( * ) * ( + 24 ) + + 41 FROM tab0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1014
SELECT DISTINCT 47 + + COUNT( * ) - - + SUM( + - 64 ) DIV - - MAX( ALL - col1 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT 47 + + COUNT ( * ) - - + SUM ( + - 64 ) / - - MAX ( ALL - col1 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
91

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT + COUNT( ALL col0 ) + - + COUNT( * ) * + + 4 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT + COUNT ( ALL col0 ) + - + COUNT ( * ) * + + 4 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

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

query I rowsort
SELECT DISTINCT + 47 * - + ( col1 ) AS col2 FROM tab1 AS cor0
----
-2209
-235
-658

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1023
SELECT - CAST( NULL AS DECIMAL ) / - 96 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT - CAST ( NULL AS REAL ) / - 96 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL - COUNT( * ) * + ( COUNT( + col2 ) ) + - - 32 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - COUNT ( * ) * + ( COUNT ( + col2 ) ) + - - 32 FROM tab0 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT - + 96 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - + 66 AND col2 + CAST( + CAST( - - col0 AS SIGNED ) AS SIGNED )
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-1025
SELECT - + 96 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - + 66 AND col2 + CAST ( + CAST ( - - col0 AS INTEGER ) AS INTEGER )
----
-96
-96
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL >= - ( - 8 ) )
----

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT COUNT ( DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1
----
0

query II rowsort
SELECT ALL 88 AS col1, + col1 * + + 34 FROM tab2
----
88
1734
88
2278
88
2618

query I rowsort
SELECT - + col1 * + 96 AS col1 FROM tab2 cor0
----
-4896
-6432
-7392

query I rowsort
SELECT + - 79 * col2 FROM tab0 AS cor0
----
-3713
-7821
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT - MAX( 61 ) AS col1 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1031
SELECT - MAX ( 61 ) AS col1 FROM tab0
----
-61

query I rowsort
SELECT 67 * 42 + col2 FROM tab2
----
2837
2854
2872

query I rowsort
SELECT + 6 * col1 AS col1 FROM tab1
----
282
30
84

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

skipif mysql # not compatible
query III rowsort label-1034
SELECT DISTINCT * FROM tab1 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col1 * - 47 AS col2 FROM tab0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL + COUNT( * ) + + 58 AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + COUNT ( * ) + + 58 AS col1 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT - 7 * MIN( DISTINCT col0 ) AS col2 FROM tab1
----
-357

skipif mysql # not compatible
query I rowsort label-1037
SELECT - 7 * MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
-357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + ( ( - 35 ) ) col2 FROM tab2
----
110
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT + SUM( ALL 73 ) AS col1 FROM tab1 WHERE ( col0 ) BETWEEN - 13 * + col2 + col0 AND 93
----
219

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + SUM ( ALL 73 ) AS col1 FROM tab1 WHERE ( col0 ) BETWEEN - 13 * + col2 + col0 AND 93
----
219

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN col0 AND - col0
----

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

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) <> ( 98 - 96 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col0 > col1 / col2
----

query I rowsort
SELECT col1 * col0 - - 79 * + 30 AS col2 FROM tab0
----
2467
3585
4197

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NULL <= 79 + col1
----

query I rowsort
SELECT 12 * - 49 AS col2 FROM tab2
----
-588
-588
-588

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 11 >= ( col2 - - col2 )
----

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1051
SELECT ALL - col0 / + ( + col1 ) col0 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT DISTINCT SUM( ALL 21 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT SUM ( ALL 21 ) FROM tab1
----
63

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab2 WHERE NOT ( 28 ) IS NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( ( 37 ) ) * col1 <> ( NULL )
----

query I rowsort
SELECT - 77 AS col2 FROM tab1 WHERE NOT ( - 23 ) IS NULL
----
-77
-77
-77

query I rowsort
SELECT + 66 AS col2 FROM tab1 AS cor0 WHERE 52 NOT BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT ALL + 35 * - col1 + - col1 DIV - col1 FROM tab1 AS cor0
----
-1644
-174
-489

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL + 35 * - col1 + - col1 / - col1 FROM tab1 AS cor0
----
-1644
-174
-489

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

query I rowsort
SELECT col1 * col1 - col0 AS col0 FROM tab2 AS cor0
----
2555
4414
5865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT col2 / ( 41 * col1 ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND CAST( - ( - col2 ) AS SIGNED ) + 92
----

skipif mysql # not compatible
query I rowsort label-1060
SELECT col2 / ( 41 * col1 ) FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND CAST ( - ( - col2 ) AS INTEGER ) + 92
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL COUNT( * ) FROM tab0 WHERE ( col2 ) BETWEEN NULL AND 3
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( col2 ) BETWEEN NULL AND 3
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - ( - col1 ) ) <= col0
----
15
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 99 <> - col2
----

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

query I rowsort
SELECT + 65 * col2 FROM tab1 cor0
----
3835
4420
6240

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > ( + 98 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT DISTINCT ( col0 ) - - col0 DIV + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 < ( - col0 )
----
102
54
92

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT ( col0 ) - - col0 / + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 < ( - col0 )
----
102
54
92

query I rowsort
SELECT ALL + col1 - - 7 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT col1 DIV - col2 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1073
SELECT col1 / - col2 FROM tab0 cor0
----
-1
-2
0

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

query I rowsort
SELECT DISTINCT 52 * + col1 FROM tab1 AS cor0
----
2444
260
728

query I rowsort
SELECT ALL - - 72 * + col0 FROM tab1 AS cor0
----
3672
6120
6552

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

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

query I rowsort
SELECT + col2 * + + 77 FROM tab0
----
3619
7623
770

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT - MAX( - 55 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-1080
SELECT - MAX ( - 55 ) FROM tab1
----
55

query I rowsort
SELECT ALL ( + 84 ) FROM tab1
----
84
84
84

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

skipif mysql # not compatible
query III rowsort label-1082
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 81 FROM tab0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NULL OR NOT ( NULL ) BETWEEN ( col2 ) AND ( + 31 * + 73 )
----

query I rowsort
SELECT ALL 33 * + 69 AS col1 FROM tab2
----
2277
2277
2277

query I rowsort
SELECT DISTINCT col1 + + col2 * - ( - col1 ) FROM tab2
----
1224
3157
3953

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( 43 ) AND col2 / 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT 20 * + + 31 * COUNT( * ) FROM tab1 AS cor0
----
1860

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT 20 * + + 31 * COUNT ( * ) FROM tab1 AS cor0
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT - ( SUM( DISTINCT 20 ) ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT - ( SUM ( DISTINCT 20 ) ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 14 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT 57, - col0 - - - col2 AS col1 FROM tab1 cor0
----
57
-144
57
-147
57
-159

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT + col2 DIV + col0 FROM tab0 cor0 WHERE 82 + + 89 IS NOT NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1094
SELECT + col2 / + col0 FROM tab0 cor0 WHERE 82 + + 89 IS NOT NULL
----
0
1
3

query I rowsort
SELECT DISTINCT + col0 + + - 64 FROM tab0 cor0
----
-49
23
33

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

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

query I rowsort
SELECT - 85 + + - 41 * - + ( + + col1 ) + - 70 * + col0 FROM tab0
----
-5314
-6834
2186

query I rowsort
SELECT DISTINCT col1 - ( + - 23 ) + + col0 * 39 * ( + 38 ) AS col0 FROM tab0
----
128978
143778
22334

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 - - 58 ) = 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT + COUNT( * ) + + - MAX( ALL 70 ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-1100
SELECT + COUNT ( * ) + + - MAX ( ALL 70 ) FROM tab2
----
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 ) >= NULL
----

query I rowsort
SELECT 1 * col0 + + - col0 * - ( col1 ) * + ( 60 ) AS col2 FROM tab0 AS cor0
----
109707
5917
72915

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

query I rowsort
SELECT ALL + + col1 * + col1 - col2 - - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-8
2164
55

query I rowsort
SELECT ALL 27 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT ALL - 81 + + CAST( - 93 AS SIGNED ) + - col1 * col2 * - ( 45 + col0 ) FROM tab2 WHERE NOT - col0 IS NULL
----
106569
335546
466146

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL - 81 + + CAST ( - 93 AS INTEGER ) + - col1 * col2 * - ( 45 + col0 ) FROM tab2 WHERE NOT - col0 IS NULL
----
106569
335546
466146

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 49 ) NOT BETWEEN 63 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1110
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-1110
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 65 * + 0 ) NOT BETWEEN - ( + 95 ) + col2 * col2 AND NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT MIN( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-1117
SELECT MIN ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

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

query II rowsort
SELECT ALL col0 AS col0, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

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

query I rowsort
SELECT ALL col1 + - 48 FROM tab2 WHERE + col0 + - col1 NOT IN ( + 46 * col2 )
----
19
29
3

query I rowsort
SELECT - 58 + - col1 FROM tab2
----
-109
-125
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 * - 80 * col1 col2 FROM tab2
----
-334560
-439520
-505120

query I rowsort
SELECT col1 * + col0 + ( + col0 ) FROM tab0
----
1230
1914
194

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT + - SUM( ALL - + col0 ) * - COUNT( 61 ) + - 90 FROM tab1 AS cor0
----
-771

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT + - SUM ( ALL - + col0 ) * - COUNT ( 61 ) + - 90 FROM tab1 AS cor0
----
-771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 98 * + col1 + + col2 col1 FROM tab0 AS cor0
----
197
2068
7985

query I rowsort
SELECT + col0 * + - ( + 83 ) AS col2 FROM tab1 cor0
----
-4233
-7055
-7553

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT - 62 * + + COUNT( * ) AS col1 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-1132
SELECT - 62 * + + COUNT ( * ) AS col1 FROM tab2
----
-186

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 56 + - 37 - 90 + - col0 - + 14 * col1 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT DISTINCT + 24 * 80 DIV 98 * + col2 AS col1 FROM tab0 AS cor0
----
1881
190
893

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT + 24 * 80 / 98 * + col2 AS col1 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT ALL - 35 + + col1 * - col2 * - - 94 FROM tab2 AS cor0
----
-110297
-289555
-365319

query I rowsort
SELECT DISTINCT - + col1 - 84 FROM tab1 AS cor0
----
-131
-89
-98

query II rowsort
SELECT - 14 + - - ( + col1 ) - - col0 * + 82 AS col1, + col1 * - 37 FROM tab2 AS cor0
----
3809
-1887
5311
-2849
6203
-2479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1138
SELECT DISTINCT - 73 AS col0 FROM tab1 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) * - col1 + col2 ) >= col0
----

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - 73 AS col0 FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) * - col1 + col2 ) >= col0
----

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

query I rowsort
SELECT ALL col2 + + 13 FROM tab0
----
112
23
60

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

query I rowsort
SELECT ALL + 49 - 33 FROM tab1
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col0 col2 FROM tab1
----
-45
23
26

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT ALL 68 DIV - COUNT( * ) AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL 68 / - COUNT ( * ) AS col1 FROM tab0
----
-22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT - + 89 * + - ( + COUNT( * ) ) * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-801

skipif mysql # not compatible
query I rowsort label-1148
SELECT - + 89 * + - ( + COUNT ( * ) ) * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-801

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

skipif mysql # not compatible
query II rowsort label-1149
SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) * - COUNT ( - col1 ) FROM tab1 AS cor0
----
3
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1150
SELECT ALL * FROM tab1 WHERE ( NOT ( NULL ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-1150
SELECT ALL * FROM tab1 WHERE ( NOT ( NULL ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL )
----

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

query I rowsort
SELECT - + 82 AS col1 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL + col1 + + col0 - + col1 * + - col2 FROM tab1 AS cor0
----
1409
3334
385

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

query I rowsort
SELECT ALL - ( col0 ) + + col0 * + col1 FROM tab1 AS cor0
----
340
4186
663

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

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

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1158
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( 55 ) * - + col2 < - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col0 ) / - - col1 * + col0 + ( 16 ) AS col0 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT - 73 DIV 62 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1162
SELECT - 73 / 62 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col1 * - + col0 AS col2 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 + + - 36 col1 FROM tab1
----
62
62
62

query II rowsort
SELECT ALL - - col0, - 61 * 51 FROM tab1 WHERE - 20 - col0 IS NULL
----

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

query I rowsort
SELECT DISTINCT - + ( + - col2 ) * + + 80 + + 54 FROM tab2 AS cor0
----
1894
3254
4694

query I rowsort
SELECT ALL col2 + - col1 + col0 - - 77 + - 60 AS col1 FROM tab2 AS cor0
----
35
44
83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1169
SELECT - col2 * - CAST( + 40 AS DECIMAL ) * - col0, col0 + + col1 FROM tab1 AS cor0 WHERE NULL < ( col1 )
----

skipif mysql # not compatible
query II rowsort label-1169
SELECT - col2 * - CAST ( + 40 AS REAL ) * - col0, col0 + + col1 FROM tab1 AS cor0 WHERE NULL < ( col1 )
----

query I rowsort
SELECT ALL col1 - - - col2 AS col2 FROM tab2
----
28
37
9

query I rowsort
SELECT + col0 * + + 23 FROM tab1
----
1173
1955
2093

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

query II rowsort
SELECT ALL 40 + + 35 + - ( - - 68 ) AS col2, - col0 AS col1 FROM tab1 cor0 WHERE ( + col2 ) BETWEEN ( NULL ) AND + 14 / - + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1175
SELECT * FROM tab1 AS cor0 WHERE + col1 * - + col1 + - ( - col0 ) - - CAST( + col0 AS SIGNED ) / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1175
SELECT * FROM tab1 AS cor0 WHERE + col1 * - + col1 + - ( - col0 ) - - CAST ( + col0 AS INTEGER ) / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 + + - 78 AS col1 FROM tab0 AS cor0
----
-31
-68
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT + 88 - + 57 * SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT + 88 - + 57 * SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT ALL + CAST( + col2 AS SIGNED ) * + col0 + + + 98 FROM tab2 AS cor0
----
1156
2658
4448

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL + CAST ( + col2 AS INTEGER ) * + col0 + + + 98 FROM tab2 AS cor0
----
1156
2658
4448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1180
SELECT ALL - 47 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL - 47 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col1 * + - col0 AS col1, col2 AS col0 FROM tab0
----
1215
47
1827
10
97
99

query I rowsort
SELECT DISTINCT 44 * - 0 AS col2 FROM tab0
----
0

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

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

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

query I rowsort
SELECT + 48 * - + 5 FROM tab2 WHERE NOT NULL NOT IN ( col2, col0 + - col0 + + 16, + ( col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col0 col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT + ( + + col0 ) * - col1 * - col1 AS col0 FROM tab1 cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL + MAX( DISTINCT + - col0 ) * + 9 * + 44 + 90 FROM tab0 AS cor0
----
-5850

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL + MAX ( DISTINCT + - col0 ) * + 9 * + 44 + 90 FROM tab0 AS cor0
----
-5850

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - 42 AS col0 FROM tab1 AS cor0
----
-1974
-210
-588

query I rowsort
SELECT col0 + 60 - + col2 FROM tab1
----
15
83
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT 6 + + COUNT( * ) + - - 37 - 63 * + MIN( col1 ) AS col2 FROM tab2
----
-3167

skipif mysql # not compatible
query I rowsort label-1196
SELECT 6 + + COUNT ( * ) + - - 37 - 63 * + MIN ( col1 ) AS col2 FROM tab2
----
-3167

query II rowsort
SELECT ALL - col0, + col2 - col2 * col0 FROM tab0 WHERE NULL = 46
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT - SUM( col1 ) FROM tab2 WHERE ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT - SUM ( col1 ) FROM tab2 WHERE ( - col2 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 44 + - col2 AS col0 FROM tab1 AS cor0
----
-103
-112
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT ALL COUNT( * ) - COUNT( * ) AS col2, 68 FROM tab1 AS cor0
----
0
68

skipif mysql # not compatible
query II rowsort label-1201
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col2, 68 FROM tab1 AS cor0
----
0
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 - - - col0 col1 FROM tab0
----
-70
-80
2

query I rowsort
SELECT + col0 * + col1 * + col1 + + 24 AS col1 FROM tab1
----
10020
201043
2149

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1205
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + CAST( + ( col1 ) AS DECIMAL ) ) NOT BETWEEN - 81 AND - 51
----

skipif mysql # not compatible
query III rowsort label-1205
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + CAST ( + ( col1 ) AS REAL ) ) NOT BETWEEN - 81 AND - 51
----

query I rowsort
SELECT - col2 + - + col1 + - col0 FROM tab0 AS cor0
----
-118
-143
-197

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 3 ) <= ( NULL )
----

query I rowsort
SELECT - 50 * + col1 + 12 AS col1 FROM tab1 cor0
----
-2338
-238
-688

query I rowsort
SELECT + + 47 * + col0 + + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1213
SELECT ALL - ( 6 ) DIV + col1 + + - col0 AS col0, col0 * - - 45 - col2 * - CAST( NULL AS SIGNED ) DIV - - col2 FROM tab2 WHERE NULL IS NULL
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-1213
SELECT ALL - ( 6 ) / + col1 + + - col0 AS col0, col0 * - - 45 - col2 * - CAST ( NULL AS INTEGER ) / - - col2 FROM tab2 WHERE NULL IS NULL
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT 75 * COUNT( * ) * - 83 AS col2 FROM tab2
----
-18675

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT 75 * COUNT ( * ) * - 83 AS col2 FROM tab2
----
-18675

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL MAX( DISTINCT + + 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL MAX ( DISTINCT + + 84 ) FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 * + col0 col1 FROM tab1
----
-4437
-7395
-7917

query II rowsort
SELECT - 96, - 65 + - col2 AS col2 FROM tab1
----
-96
-124
-96
-133
-96
-161

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( - + col1 ) * 6 AS col0 FROM tab0
----
-126
-486
-6

query I rowsort
SELECT ALL + col0 + - + ( 86 ) FROM tab1 AS cor0
----
-1
-35
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT DISTINCT COUNT( * ) + - 93 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT COUNT ( * ) + - 93 FROM tab1 AS cor0
----
-90

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

query I rowsort
SELECT ALL - col2 + col2 * - + 79 * + col2 FROM tab0 AS cor0
----
-174558
-774378
-7910

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1230
SELECT DISTINCT col2 / - - CAST( NULL AS DECIMAL ) + - 53 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT col2 / - - CAST ( NULL AS REAL ) + - 53 AS col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 77 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1233
SELECT * FROM tab1 WHERE - CAST( - 20 AS SIGNED ) NOT IN ( col2, col0 + + + col0, + col1 * + col2 * - 40 * 81 * - col1 + - col2 + - 64, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1233
SELECT * FROM tab1 WHERE - CAST ( - 20 AS INTEGER ) NOT IN ( col2, col0 + + + col0, + col1 * + col2 * - 40 * 81 * - col1 + - col2 + - 64, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 99 + - 67 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT COUNT( * ) + - SUM( ALL col1 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-1235
SELECT COUNT ( * ) + - SUM ( ALL col1 ) FROM tab0
----
-100

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT + col0 DIV col2 - - col0 * - + col1 + - col1 * col1 FROM tab1 AS cor0
----
-449
-6485
-910

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT + col0 / col2 - - col0 * - + col1 + - col1 * col1 FROM tab1 AS cor0
----
-449
-6485
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + 87 + - + COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1238
SELECT + 87 + - + COUNT ( * ) FROM tab0 AS cor0
----
84

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col0 col0 FROM tab0 cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col2 * - col2 * - col2 AS col0 FROM tab0 AS cor0
----
1000
103823
970299

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT DISTINCT - + ( - COUNT( 79 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - + ( - COUNT ( 79 ) ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 23 AS col2, - col2 FROM tab0
----
-23
-10
-23
-47
-23
-99

query I rowsort
SELECT - ( - 84 ) AS col1 FROM tab2
----
84
84
84

query I rowsort
SELECT - col1 * + + col0 * - - col0 FROM tab1
----
-36125
-36414
-389207

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT ALL + CAST( 47 AS SIGNED ) * - + col2 FROM tab1
----
-2773
-3196
-4512

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + CAST ( 47 AS INTEGER ) * - + col2 FROM tab1
----
-2773
-3196
-4512

query II rowsort
SELECT + 26 AS col1, + ( 75 ) AS col0 FROM tab2
----
26
75
26
75
26
75

query I rowsort
SELECT ALL + col2 * + col1 + 12 FROM tab2 AS cor0
----
1185
3092
3898

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1260
SELECT + 98 * + - SUM( ALL + col1 ) - + MAX( - col2 ) AS col0, CAST( NULL AS SIGNED ) * + 15 AS col2 FROM tab1 AS cor0
----
-6409
NULL

skipif mysql # not compatible
query II rowsort label-1260
SELECT + 98 * + - SUM ( ALL + col1 ) - + MAX ( - col2 ) AS col0, CAST ( NULL AS INTEGER ) * + 15 AS col2 FROM tab1 AS cor0
----
-6409
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT 78 + MIN( - + 0 ) FROM tab2, tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1262
SELECT 78 + MIN ( - + 0 ) FROM tab2, tab0 AS cor0
----
78

query II rowsort
SELECT col2 AS col2, + 2 + - col0 AS col2 FROM tab0 AS cor0
----
10
-85
47
-13
99
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col0 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT - col1 + - + col0 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT - col2 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-196
-62
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + + col0 + + col0 col1 FROM tab2 AS cor0
----
187
223
245

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

query I rowsort
SELECT - col2 + 17 AS col2 FROM tab0 AS cor0
----
-30
-82
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT - + col2 + CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-1271
SELECT - + col2 + CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT - col2 * - + 52 * - 78 + + + col0 AS col2 FROM tab0 AS cor0
----
-190617
-401447
-40473

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

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

query II rowsort
SELECT ALL - col2 - + 55 AS col1, - col2 AS col2 FROM tab0
----
-102
-47
-154
-99
-65
-10

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

query II rowsort
SELECT 77, col0 FROM tab0 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 75 + + col1 FROM tab1 AS cor0
----
122
80
89

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1282
SELECT 23 DIV + 83 + + col0 + col2 * - col1 * ( + 30 ) FROM tab2 AS cor0
----
-116505
-35144
-92336

skipif mysql # not compatible
query I rowsort label-1282
SELECT 23 / + 83 + + col0 + col2 * - col1 * ( + 30 ) FROM tab2 AS cor0
----
-116505
-35144
-92336

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ( - - COUNT( col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1286
SELECT ( - - COUNT ( col1 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT - COUNT( * ) AS col1, SUM( - 52 ) FROM tab2 WHERE NOT + col2 <> NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1287
SELECT - COUNT ( * ) AS col1, SUM ( - 52 ) FROM tab2 WHERE NOT + col2 <> NULL
----
0
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( 75 * - col0 / - 32 ) NOT IN ( + col1, col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT MAX( col2 ) + + COUNT( * ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1291
SELECT MAX ( col2 ) + + COUNT ( * ) AS col1 FROM tab2
----
61

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1294
SELECT ALL + 67 + COUNT ( * ) col0 FROM tab0 AS cor0
----
70

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

query I rowsort
SELECT ALL + - col1 + + col2 - - + 80 + - + col2 + - col1 * + - col1 + - + 2 FROM tab0 AS cor0
----
498
6558
78

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 9 > + 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * - 57 + + 73 FROM tab1
----
-2834
-4772
-5114

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

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

query III rowsort
SELECT * FROM tab1 WHERE + 13 >= - 65 * + col0 * - + 94
----

query I rowsort
SELECT ALL col1 * - 45 FROM tab1
----
-2115
-225
-630

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * + 39 col0 FROM tab1
----
2964
2964
2964

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( + + 0 )
----

query I rowsort
SELECT + 19 + - col0 AS col2 FROM tab1
----
-32
-66
-72

query I rowsort
SELECT ALL + ( - - col2 ) - + - 62 + - col1 AS col1 FROM tab1
----
116
144
83

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 <= ( - col1 ) * + col0 * - CAST( NULL AS SIGNED ) / + + 53
----

skipif mysql # not compatible
query I rowsort label-1311
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 <= ( - col1 ) * + col0 * - CAST ( NULL AS INTEGER ) / + + 53
----

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

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

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

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

query I rowsort
SELECT ( + 88 ) * 34 + - - 25 FROM tab1
----
3017
3017
3017

query I rowsort
SELECT - 5 + col2 AS col1 FROM tab2
----
18
35
53

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL = ( NULL )
----

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

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

query II rowsort
SELECT - 26 AS col2, - 79 AS col2 FROM tab2 AS cor0
----
-26
-79
-26
-79
-26
-79

query I rowsort
SELECT DISTINCT 64 * col1 AS col2 FROM tab1
----
3008
320
896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1322
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 70, - col2 * col0 AS col0 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
query II rowsort label-1322
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 70, - col2 * col0 AS col0 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

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

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

query I rowsort
SELECT ALL col1 + + + col1 AS col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT + 72 - + + 17 AS col2 FROM tab2 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + + + col0 col2 FROM tab1 AS cor0
----
111
117
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT - ( - CAST( 8 AS SIGNED ) ) FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1327
SELECT - ( - CAST ( 8 AS INTEGER ) ) FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1328
SELECT - col1 FROM tab1 WHERE 10 * + - CAST( NULL AS SIGNED ) + - col2 IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1328
SELECT - col1 FROM tab1 WHERE 10 * + - CAST ( NULL AS INTEGER ) + - col2 IS NULL
----
-14
-47
-5

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

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

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

query I rowsort
SELECT + - col0 * + 32 + - col2 AS col0 FROM tab2 AS cor0
----
-1495
-2088
-2458

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT DISTINCT ( + + col1 ) DIV + 83 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT ( + + col1 ) / + 83 FROM tab2
----
0

query II rowsort
SELECT ALL - col0 AS col1, + 5 FROM tab0
----
-15
5
-87
5
-97
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1335
SELECT ALL + col2 AS col0, + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-1335
SELECT ALL + col2 AS col0, + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL COUNT( - + col0 ) * + MIN( + + 18 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL COUNT ( - + col0 ) * + MIN ( + + 18 ) FROM tab1 AS cor0
----
54

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

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

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

query II rowsort
SELECT + + 0 AS col0, 20 FROM tab0 AS cor0
----
0
20
0
20
0
20

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT - COUNT( * ) * 21 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-1343
SELECT - COUNT ( * ) * 21 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-189

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + + - ( - col2 ) AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE + col1 * col0 * 54 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + col2 + 41 * - 6 AS col2, ( - + 40 ) AS col2 FROM tab1 AS cor0
----
-150
-40
-178
-40
-187
-40

query I rowsort
SELECT DISTINCT - 3 + - + 47 FROM tab1 AS cor0
----
-50

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

skipif mysql # not compatible
query I rowsort label-1353
SELECT - - MIN ( col1 ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + COUNT( * ) * - 32 AS col2 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1354
SELECT + COUNT ( * ) * - 32 AS col2 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + 99 FROM tab0 AS cor0 WHERE NOT col0 <= ( + col2 )
----
99

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

query I rowsort
SELECT DISTINCT + - col0 + - + 7 * - 77 + + col1 FROM tab2 AS cor0
----
531
544
552

query I rowsort
SELECT DISTINCT + + 8 + + - col1 AS col1 FROM tab1 AS cor0
----
-39
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - COUNT( * ) * 27 FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 * 94 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1359
SELECT - COUNT ( * ) * 27 FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 * 94 AND NULL
----
0

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

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

query II rowsort
SELECT DISTINCT col0 - + 49, + col0 AS col1 FROM tab2
----
-3
46
15
64
26
75

query I rowsort
SELECT col0 + + 2 * + 36 FROM tab2
----
118
136
147

query I rowsort
SELECT - 47 + col2 FROM tab0
----
-37
0
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT + CAST( 43 AS SIGNED ) + - 17 FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-1364
SELECT + CAST ( 43 AS INTEGER ) + - 17 FROM tab1
----
26
26
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + MIN( - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1366
SELECT + MIN ( - col2 ) AS col0 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + 41 AS col0 FROM tab2 AS cor0
----
2091
2747
3157

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE 19 IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL ( - col2 ) / + 81 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - 49 * MAX( ALL col0 ) * - + 3 AS col2 FROM tab1 AS cor0
----
13377

skipif mysql # not compatible
query I rowsort label-1373
SELECT - 49 * MAX ( ALL col0 ) * - + 3 AS col2 FROM tab1 AS cor0
----
13377

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT ALL + 26 DIV col2 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL + 26 / col2 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT + 59 + + COUNT( * ) - - + COUNT( * ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1375
SELECT + 59 + + COUNT ( * ) - - + COUNT ( * ) FROM tab0 AS cor0
----
65

query I rowsort
SELECT col0 + - - col2 * - + 55 FROM tab0
----
-2570
-463
-5348

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT + col0 DIV + 18 + - + col1 FROM tab1
----
-1
-12
-42

skipif mysql # not compatible
query I rowsort label-1378
SELECT + col0 / + 18 + - + col1 FROM tab1
----
-1
-12
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT SUM( + - 68 ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-1381
SELECT SUM ( + - 68 ) FROM tab0
----
-204

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

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

query I rowsort
SELECT ALL + 55 + + + col1 + - - 68 AS col1 FROM tab0 cor0
----
124
144
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1384
SELECT + 10 DIV - 79 AS col2, COUNT( * ) AS col2 FROM tab1 cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-1384
SELECT + 10 / - 79 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0
----
0
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1386
SELECT * FROM tab2 cor0 WHERE NULL IN ( + col0 + - col1 - + ( - + 9 ) * - + col2 * + col1 * - ( - 43 ) + CAST( NULL AS SIGNED ) * + - ( - col0 ) * - - 3, 61 )
----

skipif mysql # not compatible
query III rowsort label-1386
SELECT * FROM tab2 cor0 WHERE NULL IN ( + col0 + - col1 - + ( - + 9 ) * - + col2 * + col1 * - ( - 43 ) + CAST ( NULL AS INTEGER ) * + - ( - col0 ) * - - 3, 61 )
----

query I rowsort
SELECT - - ( - 34 ) FROM tab2 cor0
----
-34
-34
-34

query I rowsort
SELECT col1 + - - col0 * + col1 + - 15 AS col2 FROM tab1 cor0
----
415
4309
713

query I rowsort
SELECT + col2 + col2 + + col1 * - + 98 + 37 - + 23 + + col1 AS col0 FROM tab2 AS cor0
----
-4887
-6369
-7375

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT - SUM( DISTINCT 95 ) AS col1 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-1392
SELECT - SUM ( DISTINCT 95 ) AS col1 FROM tab2 AS cor0
----
-95

query I rowsort
SELECT ALL + col0 * - 95 AS col0 FROM tab1
----
-4845
-8075
-8645

query II rowsort
SELECT ALL + col0 AS col2, col2 + - col1 * 52 - + + col2 FROM tab0
----
15
-4212
87
-1092
97
-52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 < 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ( + ( + SUM( DISTINCT col2 ) ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-1396
SELECT ( + ( + SUM ( DISTINCT col2 ) ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
223

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT SUM( DISTINCT + 2 ) col2 FROM tab2
----
2

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

query I rowsort
SELECT col1 * col2 * 98 * col1 AS col2 FROM tab1
----
144550
14720776
1843968

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

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

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

query I rowsort
SELECT ALL - + col2 * 3 AS col2 FROM tab2 AS cor0
----
-120
-174
-69

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT + - col2 * - CAST( + 87 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
5133
5916
8352

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT + - col2 * - CAST ( + 87 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
5133
5916
8352

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + 57 * col1 AS col1 FROM tab0 AS cor0
----
1218
4698
58

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

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

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab1 cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT ALL MAX( + + 22 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL MAX ( + + 22 ) FROM tab0
----
22

query I rowsort
SELECT DISTINCT 47 * 70 AS col0 FROM tab2
----
3290

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 32 <> - 41
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1416
SELECT 32, + SUM( - - col0 ) AS col1 FROM tab2
----
32
185

skipif mysql # not compatible
query II rowsort label-1416
SELECT 32, + SUM ( - - col0 ) AS col1 FROM tab2
----
32
185

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE col0 >= col0 * - - col2
----

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

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

skipif mysql # not compatible
query II rowsort label-1419
SELECT COUNT ( * ) AS col2, + 74 - - 85 FROM tab1
----
3
159

query I rowsort
SELECT + col1 * col2 + + 49 AS col1 FROM tab2
----
1222
3129
3935

query II rowsort
SELECT ALL col2 * - col1 * + - 25, 4 AS col0 FROM tab2
----
29325
4
77000
4
97150
4

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

query I rowsort
SELECT ALL + + col1 + - col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1424
SELECT ALL - ( 7 ) * + - ( COUNT( * ) ) + + + 33 FROM tab2 AS cor0 WHERE CAST( - col1 AS DECIMAL ) * - ( - 17 ) + col0 + - - 74 * 34 IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - ( 7 ) * + - ( COUNT ( * ) ) + + + 33 FROM tab2 AS cor0 WHERE CAST ( - col1 AS REAL ) * - ( - 17 ) + col0 + - - 74 * 34 IS NULL
----
33

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 77 >= + 87
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT - CAST( + col1 AS SIGNED ) * + col2 + + + 9 FROM tab0
----
-201
-3798
-90

skipif mysql # not compatible
query I rowsort label-1427
SELECT - CAST ( + col1 AS INTEGER ) * + col2 + + + 9 FROM tab0
----
-201
-3798
-90

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

query I rowsort
SELECT - col1 - - - col1 FROM tab0
----
-162
-2
-42

query II rowsort
SELECT ALL - - 89 * + ( - 29 ) + + col0, col2 AS col1 FROM tab2 cor0
----
-2506
58
-2517
40
-2535
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT 58 * - COUNT( * ) - + - 40 AS col2 FROM tab2 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-1431
SELECT 58 * - COUNT ( * ) - + - 40 AS col2 FROM tab2 AS cor0
----
-134

query I rowsort
SELECT - col1 - + 43 FROM tab0 AS cor0
----
-124
-44
-64

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

query II rowsort
SELECT ALL + 59 AS col0, 9 FROM tab0 AS cor0
----
59
9
59
9
59
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL - ( + - SUM( ALL + + 87 ) ) AS col1 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL - ( + - SUM ( ALL + + 87 ) ) AS col1 FROM tab0
----
261

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

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

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

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

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

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

query I rowsort
SELECT ALL 87 * - + 27 FROM tab1
----
-2349
-2349
-2349

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE + col0 + + 35 <> NULL
----

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

query I rowsort
SELECT ALL col1 + + + col0 FROM tab1 cor0
----
138
65
90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT - 77 * MIN( DISTINCT + col0 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3539

skipif mysql # not compatible
query I rowsort label-1448
SELECT - 77 * MIN ( DISTINCT + col0 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3539

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

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

query II rowsort
SELECT DISTINCT + - 83 * ( + - 40 ) AS col1, - 5 - - 73 AS col1 FROM tab1 AS cor0
----
3320
68

query III rowsort
SELECT * FROM tab2 WHERE + 1 * - + 26 + + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT ALL - 23 DIV - - 80 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL - 23 / - - 80 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1453
SELECT * FROM tab1 WHERE NULL = + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1453
SELECT * FROM tab1 WHERE NULL = + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT col2 DIV - 54 + + - col2 AS col1 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-1454
SELECT col2 / - 54 + + - col2 AS col1 FROM tab1
----
-60
-69
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1455
SELECT + col0 DIV + col2 + col1 + CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
100
128
39

skipif mysql # not compatible
query I rowsort label-1455
SELECT + col0 / + col2 + col1 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
100
128
39

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + - col1 * col0 * - + col0 AS col2, 77 col1 FROM tab0
----
-1589490
77
-856575
77
-931491
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1458
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) + ( - 37 ) col0 FROM tab0
----
NULL

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

query II rowsort
SELECT ALL col2 * + col1, - 6 AS col1 FROM tab2
----
1173
-6
3080
-6
3886
-6

query II rowsort
SELECT + 41, col1 FROM tab0 WHERE ( + - col0 ) IS NOT NULL
----
41
1
41
21
41
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1462
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 58 AS col1, col1 + + col0 col0 FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1462
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 58 AS col1, col1 + + col0 col0 FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT - 37 + + + COUNT( * ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - 37 + + + COUNT ( * ) FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL - col1 - + 79 AS col2 FROM tab0 AS cor0
----
-100
-160
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT CAST( ( - 15 ) AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif mysql # not compatible
query I rowsort label-1465
SELECT CAST ( ( - 15 ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

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

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

query I rowsort
SELECT - 97 * + 51 FROM tab2 AS cor0
----
-4947
-4947
-4947

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 91 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT + MAX( ALL col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT + MAX ( ALL col2 ) FROM tab1 cor0
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL 64 * + COUNT( * ) AS col1 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL 64 * + COUNT ( * ) AS col1 FROM tab0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT + 43 DIV col0 * - + col0 * col0 FROM tab0
----
-450
0
0

skipif mysql # not compatible
query I rowsort label-1473
SELECT + 43 / col0 * - + col0 * col0 FROM tab0
----
-450
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT DISTINCT 9 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT 9 / + col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT MIN( DISTINCT - 94 ) AS col1 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-1475
SELECT MIN ( DISTINCT - 94 ) AS col1 FROM tab2
----
-94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT + - COUNT( * ) AS col2 FROM tab1 WHERE NOT + 81 / col2 NOT BETWEEN + - col1 * + 48 / + 50 AND + 77 + - 49
----
-3

skipif mysql # not compatible
query I rowsort label-1477
SELECT + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 81 / col2 NOT BETWEEN + - col1 * + 48 / + 50 AND + 77 + - 49
----
-3

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

query I rowsort
SELECT 66 * 84 AS col1 FROM tab0 cor0
----
5544
5544
5544

query I rowsort
SELECT - 53 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT + 87 DIV col0 DIV - + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1483
SELECT + 87 / col0 / - + col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 53 col0 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT 88 * + 29 + col0 * col0 FROM tab2 AS cor0
----
4668
6648
8177

query I rowsort
SELECT DISTINCT + - ( col0 ) + + col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT MIN( - + col1 ) * + COUNT( * ) + + + 47 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT MIN ( - + col1 ) * + COUNT ( * ) + + + 47 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - - col1 * - 84 + + col0 FROM tab0 AS cor0
----
-1677
-6789
13

query I rowsort
SELECT ALL + 23 * + + col2 * 75 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
100050
39675
69000

onlyif mysql # DIV for integer division: 
query II rowsort label-1490
SELECT DISTINCT - col2 + + - col2 * 24 + col0 - + col0 DIV + + col1 AS col0, + 32 + - col1 AS col1 FROM tab0
----
-1160
-49
-167
11
-2475
31

skipif mysql # not compatible
query II rowsort label-1490
SELECT DISTINCT - col2 + + - col2 * 24 + col0 - + col0 / + + col1 AS col0, + 32 + - col1 AS col1 FROM tab0
----
-1160
-49
-167
11
-2475
31

query I rowsort
SELECT ALL col0 * 64 + ( + - col2 ) * col1 * - col1 FROM tab2
----
241256
265162
62767

query I rowsort
SELECT ( col0 ) + + 86 AS col0 FROM tab0
----
101
173
183

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT ALL - 67 DIV + col2 col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1493
SELECT ALL - 67 / + col2 col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NOT ( - col2 ) * + - 22 * - 75 IS NOT NULL )
----

query II rowsort
SELECT + ( 13 ) + 56, ( - col1 ) AS col0 FROM tab1
----
69
-14
69
-47
69
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 > ( 38 / + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 / - col1 col0 FROM tab1 WHERE + 78 >= NULL
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - ( 87 ) FROM tab2
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - 94 + SUM( col1 + + 98 ) AS col0 FROM tab2
----
395

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 94 + SUM ( col1 + + 98 ) AS col0 FROM tab2
----
395

query I rowsort
SELECT ALL - col0 * col0 + - 36 FROM tab0
----
-261
-7605
-9445

query I rowsort
SELECT + 83 - - ( 78 ) AS col0 FROM tab1
----
161
161
161

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + 80 * - col0 + - col0 <> NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 13 col2 FROM tab1
----
-104
-64
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT + MIN( ALL col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1515
SELECT + MIN ( ALL col2 ) AS col0 FROM tab1
----
59

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col0 / col0 + + col1 AND - col2 / - 50 + - 41
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( + 58 ) AND NULL
----

query I rowsort
SELECT ALL - col1 + + col1 * col2 AS col0 FROM tab0
----
189
3726
98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT DISTINCT + COUNT( ALL 43 ) * 58 FROM tab1 AS cor0 WHERE NULL BETWEEN CAST( col2 AS SIGNED ) * + col1 + col1 / + 9 AND col1 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + COUNT ( ALL 43 ) * 58 FROM tab1 AS cor0 WHERE NULL BETWEEN CAST ( col2 AS INTEGER ) * + col1 + col1 / + 9 AND col1 * - col1
----
0

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query I rowsort label-1524
SELECT - 59 DIV ( col0 * col1 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1524
SELECT - 59 / ( col0 * col1 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE ( + col2 - - ( - 94 ) ) NOT BETWEEN 95 + - 89 AND NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT + COUNT( * ) + + ( 47 ) AS col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT + COUNT ( * ) + + ( 47 ) AS col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + col0 + 40 FROM tab1 AS cor0
----
125
131
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 70 - 21 NOT BETWEEN + col2 AND ( col2 / - 12 + + 74 )
----
97
1
99

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

query I rowsort
SELECT DISTINCT col0 + + 97 AS col2 FROM tab0 AS cor0
----
112
184
194

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT DISTINCT + COUNT( * ) + - 76 * + 92 AS col2 FROM tab0 AS cor0
----
-6989

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT + COUNT ( * ) + - 76 * + 92 AS col2 FROM tab0 AS cor0
----
-6989

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE - col2 * 67 NOT BETWEEN - col1 AND ( col1 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL COUNT( * ) + + 61 * 61 col0 FROM tab1 AS cor0
----
3724

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

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

query I rowsort
SELECT + ( + 18 ) + + 96 AS col1 FROM tab0 AS cor0
----
114
114
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT DISTINCT 51 + col2 DIV 60 AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT 51 + col2 / 60 AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL 54 + - col1 * + col2 FROM tab1 AS cor0
----
-1290
-241
-3142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1538
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND + col1 * col1 - CAST( NULL AS SIGNED ) / 82
----

skipif mysql # not compatible
query III rowsort label-1538
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND + col1 * col1 - CAST ( NULL AS INTEGER ) / 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1539
SELECT - + col2 + col0 DIV - ( 40 * 83 ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1539
SELECT - + col2 + col0 / - ( 40 * 83 ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT - ( - col0 ) * col1 FROM tab1 AS cor0 WHERE 82 IS NOT NULL
----
425
4277
714

query I rowsort
SELECT ALL - col2 * + + 50 - col1 AS col2 FROM tab0
----
-2431
-4951
-521

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

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

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

query I rowsort
SELECT ALL col2 - + ( col0 ) AS col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT 99 FROM tab1 WHERE NOT ( col2 * - col0 - - col0 ) NOT IN ( - 14 * - col2 ) OR col1 / - col0 IS NOT NULL
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 * - col2 - 12 col1 FROM tab1
----
-2254
-2596
-3660

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 26 col2 FROM tab0 AS cor0
----
-16
21
73

query I rowsort
SELECT - - col1 - + col1 * col1 FROM tab2 cor0
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT ALL SUM( ALL - col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL SUM ( ALL - col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-224

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 > ( - ( + col1 ) ) AND NOT ( - col1 ) <= 95
----

query I rowsort
SELECT DISTINCT + 83 * + col0 AS col1 FROM tab0 AS cor0
----
1245
7221
8051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT + + col0 * + CAST( 75 AS SIGNED ) FROM tab0 AS cor0
----
1125
6525
7275

skipif mysql # not compatible
query I rowsort label-1554
SELECT + + col0 * + CAST ( 75 AS INTEGER ) FROM tab0 AS cor0
----
1125
6525
7275

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

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * - 68 FROM tab2 AS cor0
----
204

query II rowsort
SELECT 35, col0 AS col2 FROM tab1
----
35
51
35
85
35
91

query II rowsort
SELECT ALL + 39, col0 FROM tab0
----
39
15
39
87
39
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT ALL + 22 * - 67 * + + SUM( - col1 ) FROM tab1
----
97284

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL + 22 * - 67 * + + SUM ( - col1 ) FROM tab1
----
97284

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1561
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( + 93 AS DECIMAL ) + col2 * + col2 AND CAST( - 85 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1561
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( + 93 AS REAL ) + col2 * + col2 AND CAST ( - 85 AS INTEGER )
----

query I rowsort
SELECT col2 * col1 * - + col1 + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-237237
-260429
-59874

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL COUNT( * ) * - 19 * - COUNT( * ) * + 7 col0 FROM tab0 AS cor0
----
1197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1564
SELECT ALL COUNT ( * ) * - 19 * - COUNT ( * ) * + 7 col0 FROM tab0 AS cor0
----
1197

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT DISTINCT - 6 DIV - 40 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT - 6 / - 40 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT DISTINCT SUM( DISTINCT 6 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT SUM ( DISTINCT 6 ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - ( + - MIN( ALL 40 ) ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-1569
SELECT - ( + - MIN ( ALL 40 ) ) AS col2 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT MAX( + col1 ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1570
SELECT MAX ( + col1 ) col2 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT ALL - CAST( - 30 AS SIGNED ) FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - CAST ( - 30 AS INTEGER ) FROM tab2
----
30
30
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1572
SELECT - MAX( ALL col0 ) DIV + COUNT( * ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-1572
SELECT - MAX ( ALL col0 ) / + COUNT ( * ) FROM tab2
----
-25

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT - + 14 + 8 DIV - col0 AS col0 FROM tab0 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-1575
SELECT - + 14 + 8 / - col0 AS col0 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1576
SELECT - col0 + - col1 DIV 60 FROM tab0 AS cor0
----
-16
-87
-97

skipif mysql # not compatible
query I rowsort label-1576
SELECT - col0 + - col1 / 60 FROM tab0 AS cor0
----
-16
-87
-97

query I rowsort
SELECT DISTINCT - col2 + + 57 FROM tab0 AS cor0
----
-42
10
47

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

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL + + 45 + - col0 + - CAST ( NULL AS INTEGER ) / - ( 81 ) FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 1 * 43 + - col0 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
17
20
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT DISTINCT MAX( ALL - 94 ) AS col2 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT MAX ( ALL - 94 ) AS col2 FROM tab2
----
-94

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

query I rowsort
SELECT + 37 * - col1 * - + 42 * - 94 - + ( col2 ) + col1 FROM tab2 AS cor0
----
-11247815
-7449848
-9787083

query I rowsort
SELECT ALL - 45 + + 92 FROM tab0 AS cor0
----
47
47
47

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

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

query I rowsort
SELECT + col2 * + + 66 - - ( - col2 ) AS col1 FROM tab1
----
3835
4420
6240

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1588
SELECT 91 + + CAST( ( + col0 ) AS SIGNED ) FROM tab2
----
137
155
166

skipif mysql # not compatible
query I rowsort label-1588
SELECT 91 + + CAST ( ( + col0 ) AS INTEGER ) FROM tab2
----
137
155
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT 79 * - + COUNT( * ) + - 91 AS col0 FROM tab1
----
-328

skipif mysql # not compatible
query I rowsort label-1589
SELECT 79 * - + COUNT ( * ) + - 91 AS col0 FROM tab1
----
-328

query I rowsort
SELECT DISTINCT - 73 - + + 59 FROM tab1
----
-132

query I rowsort
SELECT 99 + + 63 * + ( ( + col1 ) ) + + 16 AS col1 FROM tab1
----
3076
430
997

query I rowsort
SELECT - 90 + - + col2 AS col1 FROM tab2
----
-113
-130
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT ALL SUM( + - 96 ) - COUNT( * ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL SUM ( + - 96 ) - COUNT ( * ) FROM tab2
----
-291

query I rowsort
SELECT + 29 + col2 FROM tab2
----
52
69
87

query I rowsort
SELECT + col0 + + + ( - - col0 ) FROM tab2
----
128
150
92

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1597
SELECT DISTINCT + 2, col2 DIV - + 83 AS col1 FROM tab0 cor0
----
2
-1
2
0

skipif mysql # not compatible
query II rowsort label-1597
SELECT DISTINCT + 2, col2 / - + 83 AS col1 FROM tab0 cor0
----
2
-1
2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76 AS col1, 26 col1 FROM tab1 AS cor0
----
76
26
76
26
76
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 * + + 59 <> NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 - - - col2 + + 26 + col2 * + 38 NOT IN ( - - col0 + col1 * 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL - COUNT( * ) * + + MIN( DISTINCT col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL - COUNT ( * ) * + + MIN ( DISTINCT col1 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT - col2 / - + col0 IS NULL
----
51
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 74, 84 col2 FROM tab2 cor0 WHERE NOT ( col2 IS NOT NULL )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT ALL CAST( - + 74 AS SIGNED ) AS col2 FROM tab0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL CAST ( - + 74 AS INTEGER ) AS col2 FROM tab0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 91 col2 FROM tab0
----
1911
7371
91

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

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

query I rowsort
SELECT DISTINCT col1 + + col1 AS col2 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1613
SELECT + CAST( + col1 AS SIGNED ) * - col1 - - col1 + - - 21 FROM tab2 AS cor0
----
-2529
-4401
-5831

skipif mysql # not compatible
query I rowsort label-1613
SELECT + CAST ( + col1 AS INTEGER ) * - col1 - - col1 + - - 21 FROM tab2 AS cor0
----
-2529
-4401
-5831

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

query II rowsort
SELECT col2 * col0 AS col0, col1 FROM tab1
----
4896
14
5015
5
6188
47

query I rowsort
SELECT ALL - col1 * - - col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL - 36 * + COUNT( * ) + - + 67 FROM tab1 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL - 36 * + COUNT ( * ) + - + 67 FROM tab1 AS cor0
----
-175

onlyif mysql # DIV for integer division: 
query II rowsort label-1618
SELECT ALL + - col0 DIV - col1 AS col2, col2 AS col0 FROM tab0 AS cor0
----
0
47
4
10
97
99

skipif mysql # not compatible
query II rowsort label-1618
SELECT ALL + - col0 / - col1 AS col2, col2 AS col0 FROM tab0 AS cor0
----
0
47
4
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT col1 DIV - + 40 + - 37 + - 67 DIV + 63 AS col0 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT col1 / - + 40 + - 37 + - 67 / + 63 AS col0 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT + + col0 + + 68 AS col2 FROM tab1 AS cor0
----
119
153
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT ALL + AVG ( 78 ) + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + AVG ( 78 ) + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT ALL + + 24 + - CAST( - col1 AS SIGNED ) + - - col0 FROM tab0 AS cor0
----
120
122
132

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + + 24 + - CAST ( - col1 AS INTEGER ) + - - col0 FROM tab0 AS cor0
----
120
122
132

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT ALL col1 DIV + + 19 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL col1 / + + 19 AS col2 FROM tab0
----
0
1
4

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * + 93 - - + col1 + - col1 col0 FROM tab1 cor0
----
-4371
-4371
-4371

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + + col1 * 50 IS NOT NULL
----

query I rowsort
SELECT + col2 * + col0 * - col2 * - col0 FROM tab2 AS cor0
----
1119364
18922500
6553600

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - COUNT( * ) * COUNT( * ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1631
SELECT - COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT ALL - 72, col2 * col2 AS col1 FROM tab1
----
-72
3481
-72
4624
-72
9216

query III rowsort
SELECT ALL * FROM tab0 WHERE - 49 / + + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col1 + + col2 AS col2 FROM tab1
----
14
110
47
115
5
64

query I rowsort
SELECT DISTINCT - - 88 AS col0 FROM tab0 AS cor0
----
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 19 IN ( + col1 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1637
SELECT + col1 AS col2, 60 DIV - 20 FROM tab0 AS cor0
----
1
-3
21
-3
81
-3

skipif mysql # not compatible
query II rowsort label-1637
SELECT + col1 AS col2, 60 / - 20 FROM tab0 AS cor0
----
1
-3
21
-3
81
-3

query I rowsort
SELECT - - 95 AS col1 FROM tab0 cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL - MIN( - col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - MIN ( - col0 ) FROM tab2 cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( - + col2 * + 98 / + 8 )
----

query I rowsort
SELECT DISTINCT + 38 + - 58 * + col0 FROM tab2
----
-2630
-3674
-4312

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1642
SELECT DISTINCT AVG ( ALL CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT AVG ( ALL CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT - - col1 + col1 AS col0 FROM tab0 WHERE NULL <= - 48
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT ALL - COUNT( * ) + - - 2, 32 AS col2 FROM tab1
----
-1
32

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL - COUNT ( * ) + - - 2, 32 AS col2 FROM tab1
----
-1
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1645
SELECT 84 * + 52 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT 84 * + 52 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1058
-2560
-4350

query II rowsort
SELECT + col1 + + 13 + + 41, + col0 FROM tab2 AS cor0
----
105
46
121
75
131
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT ALL + 95 DIV + + col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + 95 / + + col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT + + ( - 49 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT DISTINCT + ( 76 ) AS col0 FROM tab1 AS cor0
----
76

query I rowsort
SELECT - col0 - ( col1 ) FROM tab0 AS cor0
----
-108
-96
-98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( + - 91 + 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT ALL + ( + - CAST( + col0 AS SIGNED ) ) + col1 * - col1 col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1654
SELECT ALL + ( + - CAST ( + col0 AS INTEGER ) ) + col1 * - col1 col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 66 - col2 AS col2 FROM tab1 AS cor0
----
-2
-30
7

query I rowsort
SELECT DISTINCT 36 * + 62 * - 42 AS col2 FROM tab1
----
-93744

query I rowsort
SELECT ALL - 78 * + col1 FROM tab0
----
-1638
-6318
-78

query III rowsort
SELECT ALL * FROM tab0 WHERE 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT + MIN( + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT + MIN ( + col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT NULL NOT IN ( - col2, col2, - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 34 >= - 69 * + col0 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col2 FROM tab1
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT - - col2 DIV + col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1663
SELECT - - col2 / + col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1664
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - 4 NOT IN ( 66, CAST( - ( col2 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1664
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - 4 NOT IN ( 66, CAST ( - ( col2 ) AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> col1
----

query I rowsort
SELECT DISTINCT - + 0 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT - col2 * + + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1668
SELECT - col2 * + + col0 / col0 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 42 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT + 22 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT + 22 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 1, col0 + - ( col0 ) AS col1 FROM tab2
----
1
0

query I rowsort
SELECT ALL + col1 + - 93 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) > - col2 - + 27
----
-12
-72
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT - + 62 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT - + 62 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + + 43 + - 99 - - - col2 AS col1 FROM tab2 AS cor0
----
-114
-79
-96

query I rowsort
SELECT ALL + col2 + col2 * - + col1 AS col1 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1676
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * col2 * + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * col2 * + col2 < NULL
----

query I rowsort
SELECT - ( 3 ) + col1 AS col1 FROM tab0 AS cor0
----
-2
18
78

query I rowsort
SELECT - + ( col1 ) * - - 70 FROM tab2 WHERE NULL BETWEEN + - col0 / + 63 * + - col1 * - - 84 * col2 AND col0 / + 28 * col1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1679
SELECT ALL CAST( - 28 AS SIGNED ) + + + ( + - col1 ) + + - 35 FROM tab2 WHERE - 79 * 88 <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL CAST ( - 28 AS INTEGER ) + + + ( + - col1 ) + + - 35 FROM tab2 WHERE - 79 * 88 <> CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 > NULL
----

query I rowsort
SELECT DISTINCT - 52 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
-31
-51
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1682
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + - CAST( + col2 AS SIGNED ) * - + col1 * + - 99 + + 26 + col2 + - col1 + + col0 IN ( - col0, CAST( NULL AS SIGNED ), + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-1682
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + - CAST ( + col2 AS INTEGER ) * - + col1 * + - 99 + + 26 + col2 + - col1 + + col0 IN ( - col0, CAST ( NULL AS INTEGER ), + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= - 92
----

query I rowsort
SELECT DISTINCT - 0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + COUNT( - 57 ) + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-1685
SELECT + COUNT ( - 57 ) + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 5 IS NULL
----

query I rowsort
SELECT - + col2 * + col1 - - col0 AS col0 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT col0 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT col0 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 85 + 64 AS col1 FROM tab1 AS cor0
----
1254
4059
489

query I rowsort
SELECT DISTINCT + col0 * + - col2 * col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1691
SELECT + ( SUM( ALL col1 ) ) DIV + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1691
SELECT + ( SUM ( ALL col1 ) ) / + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT - - MAX( - col0 ) * - MAX( DISTINCT - col2 ) + - + COUNT( * ) * - 8 * - MAX( ALL - + col0 ) + + 76 FROM tab0 AS cor0
----
286

skipif mysql # not compatible
query I rowsort label-1692
SELECT - - MAX ( - col0 ) * - MAX ( DISTINCT - col2 ) + - + COUNT ( * ) * - 8 * - MAX ( ALL - + col0 ) + + 76 FROM tab0 AS cor0
----
286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1693
SELECT DISTINCT CAST( - ( + col2 ) AS SIGNED ) * + - col0 AS col1 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT CAST ( - ( + col2 ) AS INTEGER ) * + - col0 AS col1 FROM tab2
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col2, col2 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col2, col2 + + 69 AS col0 FROM tab2
----
23
92
40
109
58
127

query I rowsort
SELECT DISTINCT - + ( - 40 ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT - 99 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT - COUNT( 21 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1698
SELECT - COUNT ( 21 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 20 + - - col2 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 84 * + 19 * + 91 BETWEEN - 5 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT DISTINCT - col2 DIV - 7 FROM tab2
----
3
5
8

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT - col2 / - 7 FROM tab2
----
3
5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT DISTINCT col2 DIV - 76 * 75 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT col2 / - 76 * 75 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT - COUNT( * ) + + 59 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - COUNT ( * ) + + 59 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * + + 73 FROM tab0 cor0 WHERE col2 * - col0 + col0 = NULL
----

query I rowsort
SELECT DISTINCT + - 24 + - col0 * 87 AS col1 FROM tab1 AS cor0
----
-4461
-7419
-7941

query I rowsort
SELECT DISTINCT + 15 + + - 56 AS col0 FROM tab0 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * + - col0 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-115
-520
464

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * + - col0 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-115
-520
464

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 55 * + col1 BETWEEN NULL AND - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 93 / - ( ( + col1 ) ) BETWEEN - col0 * col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1710
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1710
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + + 66 FROM tab1 cor0
----
-19
-25
15

query I rowsort
SELECT - + ( 33 ) * + - col0 * col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
135168
185625
69828

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - 38 * COUNT( * ) FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 38 * COUNT ( * ) FROM tab1
----
-114

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT - col1 + + - col2 AS col1 FROM tab0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab0 WHERE + + col2 + - - 18 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 35 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + - col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT ( - + 11 ) + - MAX( - CAST( - 40 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1719
SELECT ( - + 11 ) + - MAX ( - CAST ( - 40 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + 88 + - col1 AS col2 FROM tab1 AS cor0
----
41
74
83

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE 98 = + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - - MIN( ALL + 7 ) AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1722
SELECT - - MIN ( ALL + 7 ) AS col1 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 * - + col1 * - col2 * - col2 AND 87 - + + col1 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1723
SELECT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 * - + col1 * - col2 * - col2 AND 87 - + + col1 + - col1
----
0

query I rowsort
SELECT ALL + 1 * + 36 AS col0 FROM tab2 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 74 <> + 96
----
0

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 74 <> + 96
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 20 * + col2 + + + 94 AS col2 FROM tab1 AS cor0
----
1274
1454
2014

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1728
SELECT ALL - + col1 col2, ( - 3 ) DIV - CAST( - 55 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1728
SELECT ALL - + col1 col2, ( - 3 ) / - CAST ( - 55 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

query II rowsort
SELECT + + col2 * + 99 AS col1, col0 * 80 * ( - col0 ) - - ( - ( + - col0 ) ) AS col1 FROM tab0 AS cor0
----
4653
-17985
9801
-752623
990
-605433

query II rowsort
SELECT - col1 * - - col2 AS col1, + col0 * - 13 AS col0 FROM tab0
----
-210
-1131
-3807
-195
-99
-1261

query I rowsort
SELECT ALL ( + - 35 ) FROM tab2
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT SUM( ALL - + col2 ) col0 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1732
SELECT SUM ( ALL - + col2 ) col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1733
SELECT 22 DIV + 53 AS col2, + MAX( DISTINCT - col0 ) col2 FROM tab1
----
0
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1733
SELECT 22 / + 53 AS col2, + MAX ( DISTINCT - col0 ) col2 FROM tab1
----
0
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 12 col2 FROM tab1
----
1020
1092
612

query I rowsort
SELECT ALL 81 * - - 46 FROM tab1 AS cor0
----
3726
3726
3726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL + - CAST( NULL AS SIGNED ) + - 77 + col1 + - 71 * - - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 77 + col1 + - 71 * - - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + 81 ) BETWEEN - col0 AND + 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
6

query I rowsort
SELECT DISTINCT - - 81 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 85
----

query I rowsort
SELECT DISTINCT 6 + - 0 FROM tab1 cor0
----
6

query I rowsort
SELECT - col2 + 38 AS col0 FROM tab1 AS cor0
----
-21
-30
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 + + + col0 AS col2 FROM tab0
----
110
182
192

onlyif mysql # aggregate syntax: 
query II rowsort label-1745
SELECT - MIN( DISTINCT col2 ) AS col1, - MIN( ALL col2 ) + + 10 FROM tab2
----
-23
-13

skipif mysql # not compatible
query II rowsort label-1745
SELECT - MIN ( DISTINCT col2 ) AS col1, - MIN ( ALL col2 ) + + 10 FROM tab2
----
-23
-13

query I rowsort
SELECT ALL ( + 9 ) * + col2 FROM tab0
----
423
891
90

query I rowsort
SELECT DISTINCT - 0 - - + 50 FROM tab0
----
50

query I rowsort
SELECT ALL - ( - 28 ) FROM tab2, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query II rowsort
SELECT + + 98 - - - col1 AS col0, - col1 + - + col2 AS col0 FROM tab0 cor0
----
17
-128
77
-31
97
-100

query I rowsort
SELECT + col0 - - + 44 FROM tab1 AS cor0
----
129
135
95

query I rowsort
SELECT ALL col2 * + 54 FROM tab0
----
2538
5346
540

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT - col2 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 86 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 39 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + - 26, + 5 AS col1 FROM tab1 AS cor0
----
-26
5
-26
5
-26
5

query I rowsort
SELECT - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT col2 * 26 * + - 0 * col2 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ( + + 43 ) FROM tab0 AS cor0
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT DISTINCT - col1 * - col1 * + 12 + - - col1 + + col1 DIV 48 AS col2 FROM tab0 AS cor0
----
13
5313
78814

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - col1 * - col1 * + 12 + - - col1 + + col1 / 48 AS col2 FROM tab0 AS cor0
----
13
5313
78814

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT - 91 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1760
SELECT - 91 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-273

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 < col1 / + col0
----

query I rowsort
SELECT DISTINCT 59 * col2 * + + 55 AS col2 FROM tab1
----
191455
220660
311520

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT COUNT( ALL + - col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1763
SELECT COUNT ( ALL + - col2 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1764
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 82 * + + CAST( + 10 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1764
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 82 * + + CAST ( + 10 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col1 * - col1 * - 20 FROM tab0
----
131220
20
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT ALL - - COUNT( * ) * + + 58 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - - COUNT ( * ) * + + 58 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT DISTINCT - ( - 20 ) + ( - + 84 ) * col1 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - ( - 20 ) + ( - + 84 ) * col1 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col1 * - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL + + COUNT( * ) * + + 2 AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL + + COUNT ( * ) * + + 2 AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - 70 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT col2 DIV 61 * + col0 * - - 1 FROM tab0 AS cor0
----
0
0
97

skipif mysql # not compatible
query I rowsort label-1771
SELECT col2 / 61 * + col0 * - - 1 FROM tab0 AS cor0
----
0
0
97

query I rowsort
SELECT DISTINCT + - ( col0 ) + - 92 AS col1 FROM tab1 AS cor0
----
-143
-177
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT DISTINCT + 40 + col1 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT + 40 + col1 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - 67 >= + 62 * + ( col0 ) AND NOT ( + col0 + - + col2 ) IS NULL
----

query I rowsort
SELECT - col0 * + col0 / - - col0 / col0 / + col0 AS col1 FROM tab2 WHERE col2 >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + col2 col2 FROM tab1
----
131
140
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT - CAST( - col2 AS SIGNED ) + + col2 AS col1 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1777
SELECT - CAST ( - col2 AS INTEGER ) + + col2 AS col1 FROM tab2
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT DISTINCT - col2 DIV 57 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - col2 / 57 AS col1 FROM tab0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1779
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) - 7 AS col0, COUNT( * ) FROM tab1
----
-4
3

skipif mysql # not compatible
query II rowsort label-1779
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) - 7 AS col0, COUNT ( * ) FROM tab1
----
-4
3

query I rowsort
SELECT - col1 FROM tab0 WHERE 12 = 6
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1781
SELECT ALL + 48, + COUNT( * ) AS col0 FROM tab0
----
48
3

skipif mysql # not compatible
query II rowsort label-1781
SELECT ALL + 48, + COUNT ( * ) AS col0 FROM tab0
----
48
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT COUNT( DISTINCT - col2 ) + 75 + - COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1782
SELECT COUNT ( DISTINCT - col2 ) + 75 + - COUNT ( * ) FROM tab2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT - COUNT( * ) DIV - ( + 89 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT - COUNT ( * ) / - ( + 89 ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 / + col1 + col2 - col2 <= col1 + - ( + col0 ) )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL + MIN( + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + MIN ( + col0 ) FROM tab1 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT + + 53, MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
53
91

skipif mysql # not compatible
query II rowsort label-1787
SELECT + + 53, MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
53
91

query I rowsort
SELECT ALL 8 FROM tab2 cor0
----
8
8
8

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 31 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ( - + 75 ) FROM tab2
----
-75
-75
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1791
SELECT * FROM tab1 WHERE NOT col2 - - - col2 + + col2 * + CAST( + - col0 AS DECIMAL ) NOT BETWEEN + + 17 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1791
SELECT * FROM tab1 WHERE NOT col2 - - - col2 + + col2 * + CAST ( + - col0 AS REAL ) NOT BETWEEN + + 17 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT - MAX( DISTINCT ( - 32 ) ) AS col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - MAX ( DISTINCT ( - 32 ) ) AS col0 FROM tab2 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + - col1 - + 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + col0 ) * - 32 AS col2 FROM tab2 AS cor0
----
1472
2048
2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * + ( - - 92 ) col0 FROM tab0 AS cor0
----
-64860
-80040
-883476

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT 46 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-1796
SELECT 46 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1797
SELECT COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + ( - + 94 ) AS col1 FROM tab1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT + 63 DIV 5 FROM tab0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-1799
SELECT + 63 / 5 FROM tab0
----
12
12
12

query II rowsort
SELECT col0, 58 FROM tab0
----
15
58
87
58
97
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT MAX( - - col1 ) col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1801
SELECT MAX ( - - col1 ) col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT col2 * + - 53 * - col2 + col2 + + col0 * + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT + 44 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT + 44 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT + - 18 * + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + - 32 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT + - 18 * + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 32 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT - col1 + 27 * 25 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
594
654
674

query II rowsort
SELECT ALL - col0, ( col2 ) AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT - + col1 + + + 91 * + - col2 AS col0 FROM tab0 AS cor0
----
-4358
-9010
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT COUNT( * ) * - + 87 + - - COUNT( * ) FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-1809
SELECT COUNT ( * ) * - + 87 + - - COUNT ( * ) FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT + MAX( ALL - col0 ) * + 27 + COUNT( * ) FROM tab0 AS cor0
----
-402

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + MAX ( ALL - col0 ) * + 27 + COUNT ( * ) FROM tab0 AS cor0
----
-402

query I rowsort
SELECT ALL 57 * + col0 + - 81 + + col1 + - col2 FROM tab0 AS cor0
----
4889
5350
808

query I rowsort
SELECT ALL col0 - col0 + + + 94 + - 28 + - col1 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
-197054
-291384
-53892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT ALL + 61 col2 FROM tab1 AS cor0 WHERE ( NULL ) > - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT ALL + 61 col2 FROM tab1 AS cor0 WHERE ( NULL ) > - CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 69 - - col1 + 62 AS col1 FROM tab1
----
136
145
178

query I rowsort
SELECT - - 58 * + col1 * - + col2 FROM tab1 AS cor0
----
-17110
-185368
-77952

query I rowsort
SELECT - + 43 AS col2 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL - + 21 AS col0 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT ( + 40 ) AS col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT 78 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query II rowsort
SELECT ALL + 76 AS col0, 53 AS col0 FROM tab1 cor0
----
76
53
76
53
76
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1822
SELECT ALL + ( - ( - col0 ) ) AS col2, - col2 * 15 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-1822
SELECT ALL + ( - ( - col0 ) ) AS col2, - col2 * 15 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT ALL col1, col2 * + - col2 * 77 * - col2 FROM tab2 AS cor0
----
51
936859
67
15023624
77
4928000

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT COUNT( * ) * + SUM( DISTINCT + col2 ) + COUNT( * ) * + - 29 AS col0 FROM tab1 AS cor0
----
582

skipif mysql # not compatible
query I rowsort label-1824
SELECT COUNT ( * ) * + SUM ( DISTINCT + col2 ) + COUNT ( * ) * + - 29 AS col0 FROM tab1 AS cor0
----
582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT MIN( DISTINCT col0 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT MIN ( DISTINCT col0 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * + - col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - 90 * ( + col0 ) - - ( - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT - 46 DIV - col1 AS col2 FROM tab1
----
0
3
9

skipif mysql # not compatible
query I rowsort label-1828
SELECT - 46 / - col1 AS col2 FROM tab1
----
0
3
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1829
SELECT - COUNT( ALL + col1 ) AS col0, - COUNT( * ) DIV + 30 AS col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query II rowsort label-1829
SELECT - COUNT ( ALL + col1 ) AS col0, - COUNT ( * ) / + 30 AS col2 FROM tab0
----
-3
0

query I rowsort
SELECT ( - 6 ) + + - col2 FROM tab0
----
-105
-16
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT + + 65 + + + 83 + - COUNT( * ) FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-1831
SELECT + + 65 + + + 83 + - COUNT ( * ) FROM tab0 AS cor0
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT ALL + col0 * + - CAST( NULL AS SIGNED ) * col1 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + col0 * + - CAST ( NULL AS INTEGER ) * col1 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT ALL - col2 + + 34 DIV + - col2 AS col0 FROM tab2 cor0
----
-24
-40
-58

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - col2 + + 34 / + - col2 AS col0 FROM tab2 cor0
----
-24
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1834
SELECT AVG ( DISTINCT - 3 ) * MIN( + - ( + CAST( NULL AS DECIMAL ) ) ) col2, - 75 FROM tab2
----
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1834
SELECT AVG ( DISTINCT - 3 ) * MIN ( + - ( + CAST ( NULL AS REAL ) ) ) col2, - 75 FROM tab2
----
NULL
-75

query I rowsort
SELECT col1 * - + 97 AS col0 FROM tab2
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT DISTINCT COUNT( * ) AS col1, 95 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1836
SELECT DISTINCT COUNT ( * ) AS col1, 95 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
95

query I rowsort
SELECT DISTINCT - - 85 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - + COUNT( ALL 64 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1838
SELECT - + COUNT ( ALL 64 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT - col0 - + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1839
SELECT - col0 - + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - - 72 FROM tab1
----
25
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT 64 + + - MAX( col1 ) AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-1841
SELECT 64 + + - MAX ( col1 ) AS col1 FROM tab2
----
-13

query III rowsort
SELECT * FROM tab0 WHERE col1 * + - 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT + 50 * - - col2 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT ALL ( 99 ) FROM tab0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT - MIN( col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1846
SELECT - MIN ( col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL - MAX( DISTINCT - - 32 ) * 70 AS col2 FROM tab0 AS cor0
----
-2240

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL - MAX ( DISTINCT - - 32 ) * 70 AS col2 FROM tab0 AS cor0
----
-2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT ALL - CAST( + col0 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - CAST ( + col0 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 75 / + + col0 >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND + 11 * 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1852
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) - + col0 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1852
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + col0 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 * - + ( - col2 ) AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + ( 85 ) + 80 FROM tab2 AS cor0
----
165
165
165

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + - 43 > NULL
----

query I rowsort
SELECT 47 + 22 + col0 + - col0 FROM tab2
----
69
69
69

query II rowsort
SELECT DISTINCT 97 AS col2, col1 FROM tab1
----
97
14
97
47
97
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * + + 23 + - - 72 * ( - col0 ) < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1859
SELECT ALL - col1 * + col2 * - CAST( + - 75 AS SIGNED ), + col2 FROM tab2
----
-231000
40
-291450
58
-87975
23

skipif mysql # not compatible
query II rowsort label-1859
SELECT ALL - col1 * + col2 * - CAST ( + - 75 AS INTEGER ), + col2 FROM tab2
----
-231000
40
-291450
58
-87975
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1861
SELECT + CAST( - 63 AS SIGNED ) col1 FROM tab0
----
-63
-63
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1861
SELECT + CAST ( - 63 AS INTEGER ) col1 FROM tab0
----
-63
-63
-63

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * + - col0 + - col1 + + col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1863
SELECT DISTINCT + col0, + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1863
SELECT DISTINCT + col0, + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + - col1 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + ( col1 ) * col2 * - + 38 + - col2 + - + col2 FROM tab2 AS cor0
----
116960
147552
44528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT + 94 + + + 11 * COUNT( * ) DIV + - 18 - - + 59 col2 FROM tab2
----
152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1866
SELECT + 94 + + + 11 * COUNT ( * ) / + - 18 - - + 59 col2 FROM tab2
----
152

query I rowsort
SELECT ALL col1 - + col2 AS col1 FROM tab2
----
28
37
9

query I rowsort
SELECT ( - col2 ) + - col1 + 47 AS col0 FROM tab0 AS cor0
----
-53
-81
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + + COUNT( * ) + + 85 * - 7 FROM tab2 AS cor0
----
-592

skipif mysql # not compatible
query I rowsort label-1869
SELECT + + COUNT ( * ) + + 85 * - 7 FROM tab2 AS cor0
----
-592

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT + 17 DIV 29 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT + 17 / 29 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT MAX( ALL 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1871
SELECT MAX ( ALL 55 ) FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE - 83 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE - 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1873
SELECT DISTINCT - MIN( DISTINCT - col1 ) * - COUNT( * ) AS col2, COUNT( * ) * MAX( + col0 ) FROM tab1 cor0
----
-141
273

skipif mysql # not compatible
query II rowsort label-1873
SELECT DISTINCT - MIN ( DISTINCT - col1 ) * - COUNT ( * ) AS col2, COUNT ( * ) * MAX ( + col0 ) FROM tab1 cor0
----
-141
273

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * ( + - 85 ) < ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1874
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * ( + - 85 ) < ( col1 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT DISTINCT SUM( col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT SUM ( col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT ALL ( + 89 ) AS col2 FROM tab0
----
89
89
89

query II rowsort
SELECT col0 AS col2, - 90 AS col1 FROM tab0 AS cor0
----
15
-90
87
-90
97
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ALL 99 + + - COUNT( - 69 ) AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL 99 + + - COUNT ( - 69 ) AS col0 FROM tab2 AS cor0
----
96

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + - col0 + - 23 FROM tab2 AS cor0
----
-69
-87
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT DISTINCT + col0 + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + col0 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + MIN( - col1 ) * + COUNT( * ) FROM tab1 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-1883
SELECT + MIN ( - col1 ) * + COUNT ( * ) FROM tab1 cor0
----
-141

query I rowsort
SELECT ALL + 81 + + col0 - - col1 FROM tab1 AS cor0
----
146
171
219

query II rowsort
SELECT ALL col0, + col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1887
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 + + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 + + col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * + - 30 FROM tab1
----
1410
150
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL + CAST( NULL AS SIGNED ) * + 43 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + CAST ( NULL AS INTEGER ) * + 43 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( ( 8 ) ) * - 43 * - col2 + - col0 AS col1 FROM tab0
----
16153
3353
33959

query I rowsort
SELECT 46 * + + col1 + - - 26 AS col2 FROM tab2
----
2372
3108
3568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1892
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) DIV 28 AS col2, 69 DIV + - COUNT( * ) AS col1 FROM tab2
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-1892
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) / 28 AS col2, 69 / + - COUNT ( * ) AS col1 FROM tab2
----
NULL
-23

query I rowsort
SELECT - - col0 + - 57 + col1 AS col2 FROM tab1 AS cor0
----
33
8
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT DISTINCT - col1 + - 92 DIV + - col0 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT - col1 + - 92 / + - col0 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT DISTINCT + col0 * + + 25 AS col0 FROM tab0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL COUNT( DISTINCT - 88 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL COUNT ( DISTINCT - 88 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1897
SELECT ALL + - CAST( col0 AS SIGNED ) DIV - col2 + 27 FROM tab2 AS cor0 WHERE NOT + col0 < + - col1
----
28
28
29

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + - CAST ( col0 AS INTEGER ) / - col2 + 27 FROM tab2 AS cor0 WHERE NOT + col0 < + - col1
----
28
28
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 - - + col2 col1 FROM tab0 AS cor0
----
122
33
70

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( ( NOT col1 > 0 ) )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT ALL + CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL + CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT DISTINCT SUM( + + col2 ) * - 33 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5148

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT SUM ( + + col2 ) * - 33 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5148

query I rowsort
SELECT DISTINCT + + col2 * - col0 + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < 79 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 38 col1, + col2 * - - col1 AS col2 FROM tab0 AS cor0
----
-38
210
-38
3807
-38
99

query II rowsort
SELECT - col0 AS col2, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + SUM( + + 4 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1905
SELECT + SUM ( + + 4 ) FROM tab2
----
12

query I rowsort
SELECT col2 * - 57 AS col1 FROM tab0
----
-2679
-5643
-570

query II rowsort
SELECT ALL ( - col2 ), col2 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 39 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT 75 * + col0 * 45 FROM tab2 AS cor0
----
155250
216000
253125

query I rowsort
SELECT ( + 33 ) FROM tab0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT - 9 DIV + ( col1 ) AS col2 FROM tab0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-1912
SELECT - 9 / + ( col1 ) AS col2 FROM tab0
----
-9
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL - + COUNT( * ) + + + 25 AS col0 FROM tab1 cor0
----
22

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - + COUNT ( * ) + + + 25 AS col0 FROM tab1 cor0
----
22

query I rowsort
SELECT + - 83 + - ( - col1 ) FROM tab0 AS cor0
----
-2
-62
-82

query I rowsort
SELECT + - col2 + 79 * + ( + 26 ) FROM tab0 AS cor0
----
1955
2007
2044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT - col1 / col2 * - 85 / - - CAST( NULL AS SIGNED ) + col0 + + + col2 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT - col1 / col2 * - 85 / - - CAST ( NULL AS INTEGER ) + col0 + + + col2 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> col2 * + 5 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL + MAX( ALL + 17 ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + MAX ( ALL + 17 ) FROM tab1 AS cor0
----
17

query I rowsort
SELECT ALL - col0 * + + col0 * 59 + + + ( 56 ) FROM tab0
----
-13219
-446515
-555075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 * + + col0 col1 FROM tab2
----
598
832
975

query I rowsort
SELECT ALL - col2 * 71 AS col0 FROM tab1
----
-4189
-4828
-6816

query I rowsort
SELECT ALL - col2 * - col1 * - 66 FROM tab2
----
-203280
-256476
-77418

query I rowsort
SELECT ALL - col0 * col2 * - - 19 * + col1 FROM tab1
----
-1302336
-476425
-5525884

query III rowsort
SELECT * FROM tab0 WHERE 53 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT COUNT( * ), 81 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
81

skipif mysql # not compatible
query II rowsort label-1925
SELECT COUNT ( * ), 81 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT - - COUNT( DISTINCT + - 91 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1926
SELECT - - COUNT ( DISTINCT + - 91 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + + col0 + - col1 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * col0 - + 25 col1 FROM tab2 AS cor0
----
-100
-71
-89

query I rowsort
SELECT DISTINCT 12 - - 80 FROM tab1 AS cor0
----
92

query III rowsort
SELECT ALL * FROM tab2 WHERE - 49 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1 - - col1 AS col2, col0 AS col1 FROM tab1
----
10
85
28
51
94
91

query I rowsort
SELECT + - ( 51 ) * 9 + 34 AS col1 FROM tab1 AS cor0
----
-425
-425
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT col1 DIV 42 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1934
SELECT col1 / 42 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT - 57 DIV + + 3 FROM tab1 cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 57 / + + 3 FROM tab1 cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1936
SELECT ALL + COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT 33 * MAX( ALL - 11 ) FROM tab0
----
-363

skipif mysql # not compatible
query I rowsort label-1937
SELECT 33 * MAX ( ALL - 11 ) FROM tab0
----
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 10 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 10 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT - col0, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * 39 - 61 BETWEEN 44 AND - col1 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT MAX( ALL - col1 ) FROM tab1 WHERE - col2 IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT MAX ( ALL - col1 ) FROM tab1 WHERE - col2 IS NOT NULL
----
-5

query I rowsort
SELECT - col2 + - 82 AS col0 FROM tab2
----
-105
-122
-140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1943
SELECT ( col0 ) FROM tab1 WHERE NOT - CAST( - col0 AS DECIMAL ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1943
SELECT ( col0 ) FROM tab1 WHERE NOT - CAST ( - col0 AS REAL ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( * ) * - 45 AS col0 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-1944
SELECT COUNT ( * ) * - 45 AS col0 FROM tab0
----
-135

query I rowsort
SELECT 11 FROM tab1 WHERE - ( 32 ) IS NOT NULL
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * - col0 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * 9 AS col2 FROM tab1
----
126
423
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT - ( col2 ) DIV - col1 + col2 AS col2 FROM tab1
----
102
69
70

skipif mysql # not compatible
query I rowsort label-1948
SELECT - ( col2 ) / - col1 + col2 AS col2 FROM tab1
----
102
69
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col1 FROM tab1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1950
SELECT - ( MIN( 85 ) ) DIV - 92 + 31 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-1950
SELECT - ( MIN ( 85 ) ) / - 92 + 31 FROM tab1
----
31

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + col1 ) ) <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1952
SELECT DISTINCT col1 + - CAST( + col2 AS SIGNED ) DIV - col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT col1 + - CAST ( + col2 AS INTEGER ) / - col2 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + COUNT( * ) + + 23 * + MAX( DISTINCT + col1 ) AS col0 FROM tab1 WHERE NOT NULL < col0 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT + COUNT ( * ) + + 23 * + MAX ( DISTINCT + col1 ) AS col0 FROM tab1 WHERE NOT NULL < col0 * col0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 45 IS NOT NULL
----

query I rowsort
SELECT + col0 - - ( - col2 ) FROM tab0
----
-2
-32
77

query I rowsort
SELECT - 88 * col0 + - col2 FROM tab0 WHERE + 70 * col2 NOT IN ( 41 / col2 )
----
-1367
-7666
-8635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1957
SELECT 84 DIV - COUNT( - 82 * + col0 ) AS col1 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-1957
SELECT 84 / - COUNT ( - 82 * + col0 ) AS col1 FROM tab0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT - 94 DIV 76 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1958
SELECT - 94 / 76 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT 50 + - COUNT( * ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT 50 + - COUNT ( * ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab1 WHERE ( + col1 * 70 + + col0 ) <= NULL
----

query I rowsort
SELECT ( col2 ) - 88 FROM tab1
----
-20
-29
8

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT BETWEEN - 81 + + col2 * col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 13 FROM tab2
----
-1001
-663
-871

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 IN ( + 44 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 29 * + 15 FROM tab1
----
435
435
435

query I rowsort
SELECT ALL 25 * - col1 AS col1 FROM tab0
----
-2025
-25
-525

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - col2 * - 26
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 71 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 * 52 ) IS NOT NULL
----

query I rowsort
SELECT col1 + - col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 31 + + col0 AS col0 FROM tab1 AS cor0
----
116
122
82

query I rowsort
SELECT - col2 * - ( - 11 * - col1 ) FROM tab0 cor0
----
1089
2310
41877

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1973
SELECT * FROM tab1 WHERE NOT ( CAST( NULL AS DECIMAL ) * - col0 ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1973
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS REAL ) * - col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT MAX( ALL 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-1974
SELECT MAX ( ALL 35 ) FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + COUNT( ( + 52 ) ) - 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-90

skipif mysql # not compatible
query I rowsort label-1975
SELECT + COUNT ( ( + 52 ) ) - 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - col0 ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL + col0 DIV - ( col0 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL + col0 / - ( col0 ) FROM tab0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 56 ) col0 FROM tab1 AS cor0
----
56
56
56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 49 * - ( 46 * 51 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab2 AS cor0 WHERE 48 = NULL
----

query I rowsort
SELECT DISTINCT + - 83 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
4233
5561
6391

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1983
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-1983
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT DISTINCT + 99 DIV - 55 AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + 99 / - 55 AS col2 FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1985
SELECT COUNT( * ) DIV 72 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1985
SELECT COUNT ( * ) / 72 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 3 * 8 AS col0 FROM tab0 AS cor0 WHERE NOT - 55 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col2 NOT BETWEEN NULL AND - col2 - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col1 FROM tab1
----
85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - 30 <= NULL
----

query I rowsort
SELECT - col2 * - + 58 AS col2 FROM tab0
----
2726
5742
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT - col0 AS col2 FROM tab2 WHERE NOT + col2 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1991
SELECT - col0 AS col2 FROM tab2 WHERE NOT + col2 * + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL 80 AS col2 FROM tab0 WHERE - col1 + 30 NOT IN ( 21 )
----
80
80
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < 34 + + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL >= 89 - + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1994
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL >= 89 - + col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1995
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + - 90 < + col1
----

skipif mysql # not compatible
query III rowsort label-1995
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + - 90 < + col1
----

query I rowsort
SELECT ALL col2 * + col0 + - col1 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - ( + ( MAX( - 58 ) ) ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1997
SELECT - ( + ( MAX ( - 58 ) ) ) FROM tab0 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 33 + + 21 IS NOT NULL
----

query I rowsort
SELECT + ( + 58 ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2000
SELECT ALL - 65 DIV 42 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - 65 / 42 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 4 * + 99 FROM tab0
----
396
396
396

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT COUNT( + - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT COUNT ( + - col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2003
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL = ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-2003
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL = ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( - + 72 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT DISTINCT - + MIN( 42 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT - + MIN ( 42 ) FROM tab0 AS cor0
----
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + col0 col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT col0 + col2 - - col0 * - col2 FROM tab1 AS cor0
----
-4749
-4871
-6029

query I rowsort
SELECT DISTINCT + col1 + + 27 + 4 FROM tab2 AS cor0
----
108
82
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 + 64 * - 27 * col1 col0 FROM tab0 AS cor0
----
-139806
-1726
-36246

query I rowsort
SELECT DISTINCT 89 - + - col1 + + - col2 AS col0 FROM tab2
----
117
126
98

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( - col0 / + 76 )
----

query I rowsort
SELECT ALL - 65 FROM tab1 WHERE ( col2 ) NOT IN ( + ( ( 27 ) ) )
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2015
SELECT ALL * FROM tab0 WHERE NOT + col0 <> ( NULL ) AND - CAST( + 9 AS SIGNED ) BETWEEN + col1 * col1 AND - 71 * col1
----

skipif mysql # not compatible
query III rowsort label-2015
SELECT ALL * FROM tab0 WHERE NOT + col0 <> ( NULL ) AND - CAST ( + 9 AS INTEGER ) BETWEEN + col1 * col1 AND - 71 * col1
----

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE + 74 + - col0 * col0 IS NULL
----

query I rowsort
SELECT - col2 - - - col0 + + - col1 AS col0 FROM tab1
----
-149
-161
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT + - MAX( + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT + - MAX ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT - 68 DIV + + col0 AS col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT - 68 / + + col0 AS col0 FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT - col0 * 97 AS col1 FROM tab1 AS cor0 WHERE col1 + + col2 * + + 68 * - 77 IN ( - col2 * col2 + ( col1 ) )
----

query I rowsort
SELECT 2 * - col2 FROM tab2
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 85 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * + col2 * + - col2 col1 FROM tab2 AS cor0
----
-14283
-43200
-90828

query I rowsort
SELECT col2 * + 97 * - 16 - + - 29 FROM tab1 AS cor0
----
-105507
-148963
-91539

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 46 * - - col1 <= NULL
----

query I rowsort
SELECT DISTINCT col2 + - col2 AS col0 FROM tab1 cor0 WHERE NOT col1 > + 25 * + col0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 <= + col2
----

query I rowsort
SELECT ALL - 81 * + 78 FROM tab0 AS cor0
----
-6318
-6318
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL + COUNT( - + col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2029
SELECT ALL + COUNT ( - + col1 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2030
SELECT DISTINCT - - col0 DIV + - col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - - col0 / + - col0 FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2031
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT BETWEEN ( + col0 * + col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2031
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( + col0 * + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 60 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ( + COUNT( ALL + 90 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2034
SELECT ( + COUNT ( ALL + 90 ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT ALL - col1 * + col0 + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL BETWEEN ( + col1 ) AND - 99
----

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL - col1 * + col0 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL BETWEEN ( + col1 ) AND - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT COUNT( ALL + 87 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT COUNT ( ALL + 87 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * - - col2 col2 FROM tab2
----
1863
3240
4698

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT + col2 DIV ( - ( + 49 ) ) * - col0 * col1 + col1 col1 FROM tab1 cor0
----
430
4324
728

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2038
SELECT + col2 / ( - ( + 49 ) ) * - col0 * col1 + col1 col1 FROM tab1 cor0
----
430
4324
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + - col1 * col2 col2 FROM tab2 AS cor0
----
-1251
-3158
-3964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - 13 col1 FROM tab0 AS cor0
----
100
110
28

query II rowsort
SELECT DISTINCT - + 65 AS col0, + 74 AS col1 FROM tab1 cor0
----
-65
74

query I rowsort
SELECT DISTINCT - 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

query I rowsort
SELECT DISTINCT - col1 + col2 + - col0 * + col2 AS col1 FROM tab0
----
-739
-881
-9505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT - CAST( - ( col1 ) AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2044
SELECT - CAST ( - ( col1 ) AS INTEGER ) FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 WHERE col0 + 57 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 WHERE col0 + 57 < NULL
----
0

query I rowsort
SELECT ( + 54 ) * - - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-166320
-209844
-63342

query I rowsort
SELECT ALL - 25 AS col2 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + col1 * + + 10 FROM tab2 AS cor0 WHERE ( NOT 15 <> ( + 94 ) )
----

query II rowsort
SELECT col0 AS col0, col2 * - ( - 25 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
575
64
1000
75
1450

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + + 89 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2051
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 - - CAST( NULL AS SIGNED ) / + col1 / - CAST( + 13 AS DECIMAL ) * - col0 * col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 - - CAST ( NULL AS INTEGER ) / + col1 / - CAST ( + 13 AS REAL ) * - col0 * col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col2 * 43 + - 66 FROM tab1
----
2471
2858
4062

query I rowsort
SELECT DISTINCT ( - 31 ) AS col0 FROM tab0 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT ALL - 57 - col0 FROM tab1
----
-108
-142
-148

query I rowsort
SELECT col0 * col1 + 11 FROM tab0
----
108
1226
1838

query I rowsort
SELECT DISTINCT - 63 - + col2 FROM tab0
----
-110
-162
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT ALL COUNT( * ), - 60 AS col0 FROM tab2
----
3
-60

skipif mysql # not compatible
query II rowsort label-2058
SELECT ALL COUNT ( * ), - 60 AS col0 FROM tab2
----
3
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + MIN( ALL + + ( - col1 ) ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2059
SELECT + MIN ( ALL + + ( - col1 ) ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT - 73 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - + 61 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT COUNT( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT COUNT ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + 38 ) <= ( - col0 )
----

query I rowsort
SELECT ALL - 0 FROM tab1 WHERE NOT - + col1 IN ( ( + 17 ) )
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 AS col1 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2065
SELECT * FROM tab0 WHERE NOT ( - col1 + + CAST( NULL AS SIGNED ) * col0 - + col0 / - + col1 ) = ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2065
SELECT * FROM tab0 WHERE NOT ( - col1 + + CAST ( NULL AS INTEGER ) * col0 - + col0 / - + col1 ) = ( col0 )
----

query I rowsort
SELECT ALL ( + col0 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL - - 17 * + COUNT( * ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - - 17 * + COUNT ( * ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT col1, 41 FROM tab0 AS cor0 WHERE NOT + col2 IN ( 87 )
----
1
41
21
41
81
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT DISTINCT - col1 * - 0 DIV col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - col1 * - 0 / col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT + MIN( DISTINCT - 5 ) AS col1 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2070
SELECT + MIN ( DISTINCT - 5 ) AS col1 FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2071
SELECT ALL - ( + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL - ( + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 87 * - 93 + - 2 FROM tab2 cor0
----
-8093
-8093
-8093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2073
SELECT 20 + AVG ( + col1 ) + - MAX( CAST( NULL AS SIGNED ) ) col2, 27 col2 FROM tab0
----
NULL
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2073
SELECT 20 + AVG ( + col1 ) + - MAX ( CAST ( NULL AS INTEGER ) ) col2, 27 col2 FROM tab0
----
NULL
27

query II rowsort
SELECT ALL + col0, col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT + col0 + col2 + + col0 FROM tab1
----
198
229
250

query I rowsort
SELECT - 6 * + col0 AS col1 FROM tab0
----
-522
-582
-90

query III rowsort
SELECT * FROM tab2 WHERE ( - + col2 * col1 * col0 + + col1 + - ( + col0 ) * - col1 + - col1 - col2 ) BETWEEN 21 AND ( NULL )
----

query I rowsort
SELECT ALL 45 * + 44 FROM tab0
----
1980
1980
1980

query I rowsort
SELECT ALL col2 * + col2 + - col0 FROM tab2
----
1536
3289
483

query II rowsort
SELECT ALL col1 AS col2, col1 AS col0 FROM tab2 cor0
----
51
51
67
67
77
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT - col1 DIV + 61 - - col2 FROM tab0 AS cor0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-2082
SELECT - col1 / + 61 - - col2 FROM tab0 AS cor0
----
10
46
99

query II rowsort
SELECT 83 + - 49 AS col1, col0 AS col0 FROM tab0
----
34
15
34
87
34
97

query I rowsort
SELECT + 23 + - col0 FROM tab2
----
-23
-41
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT ALL + 9 DIV + - col0 * col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL + 9 / + - col0 * col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + col1 + + - col1 AS col1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( + 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( + col1 ) * col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT 23 + 6 FROM tab2 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
29

query I rowsort
SELECT ALL + col1 + + - col2 * ( - - col1 ) FROM tab1 AS cor0
----
-1330
-290
-3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 79 col0, - col2 AS col0 FROM tab2 cor0
----
-79
-23
-79
-40
-79
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT DISTINCT - col0 - + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT - col0 - + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + - col0 * 48 FROM tab0 AS cor0
----
-4176
-4656
-720

query II rowsort
SELECT - + 95, col0 * + + col2 - col2 AS col0 FROM tab1 cor0
----
-95
4800
-95
4956
-95
6120

query I rowsort
SELECT DISTINCT - col2 - + col0 AS col1 FROM tab2
----
-104
-133
-69

query II rowsort
SELECT 14 * - col1, col1 AS col2 FROM tab2 WHERE NOT - col0 <> + + ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 = - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + + 11 AS col1 FROM tab1 AS cor0
----
154
517
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2099
SELECT ALL * FROM tab2 WHERE + col0 >= - CAST( col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2099
SELECT ALL * FROM tab2 WHERE + col0 >= - CAST ( col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT + MAX( DISTINCT - 25 ) AS col0 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + MAX ( DISTINCT - 25 ) AS col0 FROM tab1
----
-25

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE 4 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT COUNT( + col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2103
SELECT COUNT ( + col2 ) col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 65 * col1 + - col1 FROM tab2 AS cor0
----
-3366
-4422
-5082

query I rowsort
SELECT ALL - col2 + - - ( + col2 ) - - 59 + + - 60 * 67 AS col2 FROM tab1 AS cor0
----
-3961
-3961
-3961

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 30 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2108
SELECT * FROM tab2 WHERE CAST( + col2 AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2108
SELECT * FROM tab2 WHERE CAST ( + col2 AS REAL ) > NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT col2 * - - col1 * 2 FROM tab1
----
2688
590
6392

query I rowsort
SELECT col0 * + 57 FROM tab0
----
4959
5529
855

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT ALL - col0 DIV + - 9 FROM tab1
----
10
5
9

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - col0 / + - 9 FROM tab1
----
10
5
9

query I rowsort
SELECT 99 + + - col1 FROM tab1
----
52
85
94

query I rowsort
SELECT DISTINCT col2 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL + + col2 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + - 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 15 + - 75 * + + col2 AS col0 FROM tab0 cor0
----
-3540
-7440
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL 73 * + COUNT( * ) FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL 73 * + COUNT ( * ) FROM tab0
----
219

query I rowsort
SELECT col0 * + + 30 FROM tab2
----
1380
1920
2250

query I rowsort
SELECT + col2 - + 77 * 73 * - - col2 AS col2 FROM tab1 AS cor0
----
-331580
-382160
-539520

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT ALL 56 DIV - 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL 56 / - 61 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2122
SELECT * FROM tab0 AS cor0 WHERE col2 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2122
SELECT * FROM tab0 AS cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 8 + col2 AS col1 FROM tab0 AS cor0
----
107
18
55

query III rowsort
SELECT * FROM tab1 cor0 WHERE 9 IS NULL
----

query I rowsort
SELECT col1 * - + col2 - 24 + col0 FROM tab0 AS cor0
----
-147
-26
-3816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT + CAST( + ( COUNT( * ) ) AS SIGNED ) + - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + CAST ( + ( COUNT ( * ) ) AS INTEGER ) + - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2127
SELECT DISTINCT - + COUNT( * ), + ( COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2127
SELECT DISTINCT - + COUNT ( * ), + ( COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = ( + 62 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2129
SELECT + col0 AS col2, CAST( - + 97 AS SIGNED ), 27 * + 52 AS col2 FROM tab0 AS cor0
----
9 values hashing to c91deaf1f91d0c1632ee9209e2448621

skipif mysql # not compatible
query III rowsort label-2129
SELECT + col0 AS col2, CAST ( - + 97 AS INTEGER ), 27 * + 52 AS col2 FROM tab0 AS cor0
----
9 values hashing to c91deaf1f91d0c1632ee9209e2448621

query I rowsort
SELECT DISTINCT + col2 * - - col1 * - + col1 AS col0 FROM tab0 AS cor0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT + 94 * + - COUNT( * ) FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 94 * + - COUNT ( * ) FROM tab0
----
-282

query II rowsort
SELECT col0, + col0 + + + col2 + col1 + 79 AS col2 FROM tab2
----
46
199
64
260
75
279

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT MAX( DISTINCT + + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2133
SELECT MAX ( DISTINCT + + col2 ) FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 + + + col2 + - col0 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + 70 FROM tab1
----
51
70
85
70
91
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT ALL + + CAST( - - ( + ( - col2 ) ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT - ( CAST( NULL AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL + + CAST ( - - ( + ( - col2 ) ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT DISTINCT - + MIN( ALL - 56 ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - + MIN ( ALL - 56 ) FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT - - MIN( ALL - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT - - MIN ( ALL - + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL SUM( - - col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL SUM ( - - col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - 34 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE + 4 IN ( + 99 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 73 >= + 58 - + 69 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 + - col1 + + col2 * 53 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
1214
40
2107
58
3082

query I rowsort
SELECT DISTINCT - col1 * 67 FROM tab1
----
-3149
-335
-938

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col2 + + - 43 + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 97 * - col0 * 83 * - col2 AS col1 FROM tab1
----
39417696
40375765
49819588

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT ALL 36, + COUNT( * ) AS col2 FROM tab0
----
36
3

skipif mysql # not compatible
query II rowsort label-2150
SELECT ALL 36, + COUNT ( * ) AS col2 FROM tab0
----
36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ( - + COUNT( * ) ) * 63 AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-2151
SELECT ( - + COUNT ( * ) ) * 63 AS col1 FROM tab0
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2152
SELECT ALL 9 AS col1, + CAST( + 59 AS SIGNED ) AS col1 FROM tab0
----
9
59
9
59
9
59

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL 9 AS col1, + CAST ( + 59 AS INTEGER ) AS col1 FROM tab0
----
9
59
9
59
9
59

query I rowsort
SELECT ALL col0 * + + col0 * 94 + col1 * 52 FROM tab0 AS cor0
----
25362
712578
884498

query I rowsort
SELECT + + 45 - col2 AS col2 FROM tab0 AS cor0
----
-2
-54
35

query I rowsort
SELECT - 0 - + 62 AS col1 FROM tab1 cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT - col2 + - CAST( NULL AS SIGNED ) + + - 76 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2156
SELECT - col2 + - CAST ( NULL AS INTEGER ) + + - 76 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - col2 + - col2 / 13 * + 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * - col0 * col0 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT ( + SUM( - + col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT ( + SUM ( - + col2 ) ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT - 66 * + + 31 FROM tab0 cor0
----
-2046
-2046
-2046

query I rowsort
SELECT ALL + - 34 AS col1 FROM tab1 AS cor0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 56 ) = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col2 * col0 * + 15 FROM tab2 AS cor0
----
15870
38400
65250

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT + 19 DIV + col0 - 20 * + 45 FROM tab0 AS cor0
----
-899
-900
-900

skipif mysql # not compatible
query I rowsort label-2165
SELECT + 19 / + col0 - 20 * + 45 FROM tab0 AS cor0
----
-899
-900
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT DISTINCT - 92 DIV + + SUM( ALL - col2 ) + 21 + COUNT( + 3 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - 92 / + + SUM ( ALL - col2 ) + 21 + COUNT ( + 3 ) FROM tab1 AS cor0
----
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 + - col1 + + - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / col1 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col2, + col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + MIN( ALL - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2172
SELECT + MIN ( ALL - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ( col0 ) * - + 10 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2174
SELECT ALL CAST( NULL AS SIGNED ), col0 DIV col1 + + - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
NULL
0
NULL
16
NULL
3

skipif mysql # not compatible
query II rowsort label-2174
SELECT ALL CAST ( NULL AS INTEGER ), col0 / col1 + + - col0 / col2 AS col1 FROM tab1 AS cor0
----
NULL
0
NULL
16
NULL
3

query I rowsort
SELECT ALL + 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL + COUNT( * ) * + 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
594

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + COUNT ( * ) * + 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT - - 9 - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT - - 9 - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT + col1 AS col0, 52 FROM tab0
----
1
52
21
52
81
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT + 57 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT + 57 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2180
SELECT COUNT( - col0 ) AS col0, + 37 FROM tab0 cor0
----
3
37

skipif mysql # not compatible
query II rowsort label-2180
SELECT COUNT ( - col0 ) AS col0, + 37 FROM tab0 cor0
----
3
37

query I rowsort
SELECT DISTINCT - 56 + 91 AS col1 FROM tab1 AS cor0
----
35

query I rowsort
SELECT - 30 * + col0 AS col1 FROM tab2 AS cor0
----
-1380
-1920
-2250

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 47 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE - col1 <= NULL
----

query I rowsort
SELECT DISTINCT ( 50 ) + - - 4 AS col2 FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 * - col2 col0 FROM tab0 AS cor0
----
3713
7821
790

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT + 27 + + COUNT( ALL + col1 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-2188
SELECT + 27 + + COUNT ( ALL + col1 ) FROM tab1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT AVG ( - + CAST( NULL AS SIGNED ) ) + - + 44 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT AVG ( - + CAST ( NULL AS INTEGER ) ) + - + 44 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + col0 + - col2 + - - 54 FROM tab2
----
71
77
78

query I rowsort
SELECT + ( - col0 ) + + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT + CAST( NULL AS SIGNED ) + + - 43 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT + CAST ( NULL AS INTEGER ) + + - 43 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT ALL - 18 DIV - col1 + + col2 AS col1 FROM tab1 AS cor0
----
62
68
97

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - 18 / - col1 + + col2 AS col1 FROM tab1 AS cor0
----
62
68
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT DISTINCT CAST( + ( - 18 ) AS SIGNED ) - + 1 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT CAST ( + ( - 18 ) AS INTEGER ) - + 1 FROM tab0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, 22 col1 FROM tab2
----
51
22
67
22
77
22

query I rowsort
SELECT - 24 * - 8 + - col1 FROM tab2 AS cor0
----
115
125
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2197
SELECT CAST( - - col1 AS SIGNED ) * + col0 AS col0, - 14 FROM tab1 AS cor0
----
425
-14
4277
-14
714
-14

skipif mysql # not compatible
query II rowsort label-2197
SELECT CAST ( - - col1 AS INTEGER ) * + col0 AS col0, - 14 FROM tab1 AS cor0
----
425
-14
4277
-14
714
-14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 >= ( - + 15 )
----

query I rowsort
SELECT + - 98 AS col1 FROM tab0 AS cor0 WHERE NOT col0 <= - col0
----
-98
-98
-98

query I rowsort
SELECT + col2 * 96 FROM tab1 AS cor0 WHERE NOT col2 * - col2 + - col1 IS NULL
----
5664
6528
9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2201
SELECT ALL * FROM tab2 WHERE NOT col0 / + col0 * + + CAST( - col1 AS SIGNED ) - 70 IN ( 22, 5, + col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2201
SELECT ALL * FROM tab2 WHERE NOT col0 / + col0 * + + CAST ( - col1 AS INTEGER ) - 70 IN ( 22, 5, + col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - 32 ) FROM tab1, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT DISTINCT - 79 + MIN( + ( - col0 ) ) AS col0 FROM tab2 WHERE + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT - 79 + MIN ( + ( - col0 ) ) AS col0 FROM tab2 WHERE + - col0 IS NULL
----
NULL

query I rowsort
SELECT + col0 * 3 - - - col0 FROM tab2 WHERE NOT - - ( + col1 ) * 94 IS NULL
----
128
150
92

query I rowsort
SELECT + ( 59 ) FROM tab0
----
59
59
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2206
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ), + COUNT( * ) col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2206
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ), + COUNT ( * ) col2 FROM tab2
----
NULL
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 99 + + col2 + col0 * + ( + col1 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * + + col0 AS col0, + 33 + col0 AS col2 FROM tab2 AS cor0
----
1058
79
2560
97
4350
108

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / - 84 BETWEEN NULL AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT ALL + 71 DIV + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL + 71 / + col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT SUM( - 75 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT SUM ( - 75 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2212
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 95 * CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2212
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 95 * CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ( - + COUNT( * ) ) + + SUM( + col2 ) col1 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2213
SELECT ( - + COUNT ( * ) ) + + SUM ( + col2 ) col1 FROM tab2 AS cor0
----
118

query I rowsort
SELECT ALL + 70 + col2 AS col1 FROM tab1 cor0
----
129
138
166

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col0 + + 97 FROM tab1 AS cor0
----
148
182
188

query I rowsort
SELECT ALL 79 + - 80 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + 83 * - + col0 + + + 36 FROM tab1 AS cor0
----
4269
7091
7589

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT SUM( 53 ) FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-2219
SELECT SUM ( 53 ) FROM tab2 AS cor0
----
159

query I rowsort
SELECT - - 97 * col2 FROM tab2 AS cor0
----
2231
3880
5626

query I rowsort
SELECT ALL - col1 - ( + 91 ) * 58 * 21 FROM tab1
----
-110843
-110852
-110885

query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab0 WHERE col0 = NULL OR NOT - - 4 + col1 <> NULL
----

query II rowsort
SELECT DISTINCT - col0, - 72 AS col0 FROM tab0 AS cor0
----
-15
-72
-87
-72
-97
-72

query I rowsort
SELECT DISTINCT + - ( - - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + ( + - col2 ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL + 4 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + col1 * - 36 FROM tab2 AS cor0
----
-1836
-2412
-2772

query I rowsort
SELECT DISTINCT + col1 * + 6 AS col2 FROM tab1 AS cor0
----
282
30
84

query I rowsort
SELECT col2 * + col2 - - col2 + - col1 * col0 * - ( col0 ) * + 67 FROM tab2 cor0
----
21132904
25254047
7230924

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL - ( MIN( ALL - - 71 ) ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - ( MIN ( ALL - - 71 ) ) AS col1 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT DISTINCT 74 * - + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-3463
-653
-7229

query I rowsort
SELECT + 87 FROM tab1 AS cor0 WHERE NOT 40 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, - col0 AS col1 FROM tab2
----
46
-46
64
-64
75
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - - ( col1 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col2 col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT CAST( + - COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2237
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2238
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - 62 * + + col0 FROM tab2 AS cor0
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + 32 + - + COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + 32 + - + COUNT ( * ) FROM tab1 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 9 BETWEEN NULL AND 84
----

query III rowsort
SELECT * FROM tab0 WHERE ( + + col2 ) + + 35 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) * col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) * col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE + 45 NOT BETWEEN - 69 AND - 40
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2245
SELECT DISTINCT - + 89 DIV + 11 AS col1, + ( - col0 ) + - + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
-8
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2245
SELECT DISTINCT - + 89 / + 11 AS col1, + ( - col0 ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-8
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2246
SELECT DISTINCT + col2 DIV - + col2 + + + CAST( + 30 AS SIGNED ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + col2 / - + col2 + + + CAST ( + 30 AS INTEGER ) FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2247
SELECT + - col2 - - CAST( NULL AS DECIMAL ) * - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT + - col2 - - CAST ( NULL AS REAL ) * - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL 89 + + COUNT( * ) AS col0 FROM tab1 cor0
----
92

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL 89 + + COUNT ( * ) AS col0 FROM tab1 cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2249
SELECT DISTINCT + CAST( + + 6 AS SIGNED ) + 66 + + + col1 AS col1, + col2 * + col1 * + ( col2 ) col2 FROM tab0 AS cor0
----
153
178929
73
9801
93
2100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2249
SELECT DISTINCT + CAST ( + + 6 AS INTEGER ) + 66 + + + col1 AS col1, + col2 * + col1 * + ( col2 ) col2 FROM tab0 AS cor0
----
153
178929
73
9801
93
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL - ( + - COUNT( * ) ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - ( + - COUNT ( * ) ) - - COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT * FROM tab1 WHERE ( 92 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT ALL SUM( DISTINCT - + 48 ) + - - 55 AS col0 FROM tab1 WHERE + ( - col1 ) IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL SUM ( DISTINCT - + 48 ) + - - 55 AS col0 FROM tab1 WHERE + ( - col1 ) IS NOT NULL
----
7

query I rowsort
SELECT 89 + + col1 FROM tab2
----
140
156
166

query I rowsort
SELECT + col0 + ( col1 ) + 41 FROM tab1
----
106
131
179

query I rowsort
SELECT DISTINCT - + col1 * - col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 * 39 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col1 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 col0, col1 FROM tab2
----
-24
51
-24
67
-24
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + + col2 - + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL NOT BETWEEN NULL AND 23 * - 77 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 <> col2 + + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - 79 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 16 ) FROM tab1 AS cor0
----
16

query I rowsort
SELECT ALL + - 52 AS col0 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - ( + CAST( col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2266
SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - ( + CAST ( col2 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + 68 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2268
SELECT 61 DIV + col1 + col2 AS col0 FROM tab1 AS cor0
----
100
69
71

skipif mysql # not compatible
query I rowsort label-2268
SELECT 61 / + col1 + col2 AS col0 FROM tab1 AS cor0
----
100
69
71

query II rowsort
SELECT col2 + - 31 AS col1, col0 FROM tab0
----
-21
87
16
15
68
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2270
SELECT - col2 + - col1 AS col2, + CAST( + 38 AS SIGNED ) FROM tab2
----
-117
38
-125
38
-74
38

skipif mysql # not compatible
query II rowsort label-2270
SELECT - col2 + - col1 AS col2, + CAST ( + 38 AS INTEGER ) FROM tab2
----
-117
38
-125
38
-74
38

query I rowsort
SELECT ALL - 62 AS col0 FROM tab0
----
-62
-62
-62

query I rowsort
SELECT + col1 * - col2 * + 34 FROM tab0
----
-129438
-3366
-7140

query I rowsort
SELECT DISTINCT - col2 * - col1 + - ( - col0 ) FROM tab1
----
1395
3287
380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col2 FROM tab1
----
-10
-10
-10

query II rowsort
SELECT DISTINCT - col0 + 90, col2 FROM tab2 cor0
----
15
58
26
40
44
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2276
SELECT ALL col1 + + CAST( NULL AS SIGNED ) AS col2, col0 + + - col0 - col1 + + + col0 col0 FROM tab1 AS cor0
----
NULL
37
NULL
44
NULL
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2276
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) AS col2, col0 + + - col0 - col1 + + + col0 col0 FROM tab1 AS cor0
----
NULL
37
NULL
44
NULL
80

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2278
SELECT ALL + ( 77 ) DIV ( + ( - - MAX( - - col1 ) ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + ( 77 ) / ( + ( - - MAX ( - - col1 ) ) ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - MIN( - 49 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2280
SELECT - MIN ( - 49 ) FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT COUNT( * ) + + - 74 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT COUNT ( * ) + + - 74 FROM tab2 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT DISTINCT - 92 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT - 92 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT - 15 + + - ( COUNT( * ) ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT - 15 + + - ( COUNT ( * ) ) FROM tab1
----
-18

query I rowsort
SELECT ALL + col2 - + + 91 FROM tab0
----
-44
-81
8

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - col1 - + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT DISTINCT COUNT( DISTINCT 60 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT COUNT ( DISTINCT 60 ) FROM tab1
----
1

query II rowsort
SELECT ALL + + col2 * - + ( - - ( + - col1 ) ) AS col2, 22 + - - ( - col1 ) FROM tab1 AS cor0
----
1344
8
295
17
3196
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2288
SELECT DISTINCT + ( - - col0 ) AS col2, - CAST( 1 AS SIGNED ) * - 86 AS col0 FROM tab0 AS cor0
----
15
86
87
86
97
86

skipif mysql # not compatible
query II rowsort label-2288
SELECT DISTINCT + ( - - col0 ) AS col2, - CAST ( 1 AS INTEGER ) * - 86 AS col0 FROM tab0 AS cor0
----
15
86
87
86
97
86

query I rowsort
SELECT - ( + 29 ) AS col0 FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT DISTINCT 70 DIV - - 11 col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2290
SELECT DISTINCT 70 / - - 11 col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 7 + + col2 col1 FROM tab0 WHERE NOT - 78 + - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 57 col1 FROM tab1 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + + COUNT( + 14 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2294
SELECT + + COUNT ( + 14 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT + MIN( + + ( - col2 ) ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2295
SELECT + MIN ( + + ( - col2 ) ) FROM tab0 cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT + 52 * + + 3 + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT + 52 * + + 3 + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2299
SELECT ALL MAX( + + col2 ), + MAX( + - ( - col2 ) ) AS col1 FROM tab2
----
58
58

skipif mysql # not compatible
query II rowsort label-2299
SELECT ALL MAX ( + + col2 ), + MAX ( + - ( - col2 ) ) AS col1 FROM tab2
----
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2300
SELECT DISTINCT + 55 * - - 95 * + + SUM( ALL - - CAST( + - 71 AS SIGNED ) ) AS col1 FROM tab1
----
-1112925

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT + 55 * - - 95 * + + SUM ( ALL - - CAST ( + - 71 AS INTEGER ) ) AS col1 FROM tab1
----
-1112925

query I rowsort
SELECT ( - col2 ) * + ( - - 29 ) AS col1 FROM tab1
----
-1711
-1972
-2784

query I rowsort
SELECT + - 37 FROM tab0 WHERE - + 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + ( - COUNT( * ) ) AS col2 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2303
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2304
SELECT 82 + + 85 + + + COUNT( * ) * 50 AS col1, 64 FROM tab1
----
317
64

skipif mysql # not compatible
query II rowsort label-2304
SELECT 82 + + 85 + + + COUNT ( * ) * 50 AS col1, 64 FROM tab1
----
317
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT + col1 * - col0 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT + col1 * - col0 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2306
SELECT + + col0 + + 83, ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
129
NULL
147
NULL
158
NULL

skipif mysql # not compatible
query II rowsort label-2306
SELECT + + col0 + + 83, ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
129
NULL
147
NULL
158
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT DISTINCT + CAST( + 20 AS SIGNED ) - + CAST( + + col2 AS SIGNED ) FROM tab0
----
-27
-79
10

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + CAST ( + 20 AS INTEGER ) - + CAST ( + + col2 AS INTEGER ) FROM tab0
----
-27
-79
10

query I rowsort
SELECT ALL 79 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query II rowsort
SELECT + col2 - - col2 AS col2, 86 + - col0 AS col0 FROM tab0 AS cor0
----
198
-11
20
-1
94
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT - 83 + - - COUNT( * ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT - 83 + - - COUNT ( * ) FROM tab2 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2311
SELECT DISTINCT + - col0 AS col1, - 7 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - ( 22 ) - 38 * - + ( - 9 ), - col0 + col1, + + 36, + 34 )
----

skipif mysql # not compatible
query II rowsort label-2311
SELECT DISTINCT + - col0 AS col1, - 7 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - ( 22 ) - 38 * - + ( - 9 ), - col0 + col1, + + 36, + 34 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT ALL 92 DIV - col2 + - col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL 92 / - col2 + - col2 FROM tab1 AS cor0
----
-60
-69
-96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( + 95, col1 )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE col0 < 43 / + 44 * ( - 47 )
----

query I rowsort
SELECT DISTINCT + - 12 - + col0 AS col2 FROM tab1 AS cor0
----
-103
-63
-97

query I rowsort
SELECT ALL col1 - + col2 * - + col0 AS col1 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2317
SELECT + 73 AS col0, - SUM( ALL - col1 ) + + + CAST( 98 AS SIGNED ) FROM tab0
----
73
201

skipif mysql # not compatible
query II rowsort label-2317
SELECT + 73 AS col0, - SUM ( ALL - col1 ) + + + CAST ( 98 AS INTEGER ) FROM tab0
----
73
201

query II rowsort
SELECT DISTINCT col2 AS col1, col2 - + col1 + - col0 FROM tab2
----
23
-74
40
-101
58
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT + 40 * + - COUNT( * ) AS col0 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-2319
SELECT + 40 * + - COUNT ( * ) AS col0 FROM tab1
----
-120

query I rowsort
SELECT col1 * + + 87 AS col2 FROM tab0
----
1827
7047
87

query I rowsort
SELECT DISTINCT - + ( col1 ) + 48 AS col2 FROM tab0 AS cor0
----
-33
27
47

query I rowsort
SELECT - 17 + col2 + + col1 + - col1 FROM tab0 AS cor0
----
-7
30
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT - - MIN( ALL - 45 ) AS col0 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT - - MIN ( ALL - 45 ) AS col0 FROM tab2 AS cor0
----
-45

query II rowsort
SELECT + col1 + - 29 * - + ( + - 88 ) AS col0, + col2 FROM tab0 AS cor0
----
-2471
47
-2531
10
-2551
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT + COUNT( * ) + - - ( 44 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2326
SELECT + COUNT ( * ) + - - ( 44 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT + col1 * - 66 * - + 30 * 52 + col2 AS col1 FROM tab2
----
5250983
6898378
7927960

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2328
SELECT DISTINCT - ( CAST( - - col1 AS SIGNED ) ) * - col1, col2 * + ( 86 ) + + 28 FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) / col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2328
SELECT DISTINCT - ( CAST ( - - col1 AS INTEGER ) ) * - col1, col2 * + ( 86 ) + + 28 FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) / col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + - 63 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col0 FROM tab1
----
48
48
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT ALL MIN( - - CAST( 10 AS SIGNED ) ) AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL MIN ( - - CAST ( 10 AS INTEGER ) ) AS col2 FROM tab1
----
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 22 * col1 FROM tab0 cor0 WHERE 19 NOT BETWEEN - 96 + - col2 * + col1 AND - col1 + + col0 + + col0
----
1782

query I rowsort
SELECT 15 - + col0 AS col1 FROM tab1 cor0
----
-36
-70
-76

query I rowsort
SELECT + 37 - - ( - 9 ) AS col1 FROM tab2 cor0
----
28
28
28

query I rowsort
SELECT - - col2 - + ( - 97 ) AS col0 FROM tab0 AS cor0
----
107
144
196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 60 >= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + 44 + + col1 * + col0 * + col1 col1 FROM tab1
----
10074
201097
2203

query III rowsort
SELECT * FROM tab2 WHERE col1 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 99, col1 FROM tab1
----
99
14
99
47
99
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 99 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT ( + ( + + col1 ) ) DIV 98 + + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2342
SELECT ( + ( + + col1 ) ) / 98 + + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - + 24 * + col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 * - 37 col0 FROM tab1 AS cor0
----
1406
1406
1406

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2345
SELECT - - col0 AS col1, + ( - CAST( - - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
query II rowsort label-2345
SELECT - - col0 AS col1, + ( - CAST ( - - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query II rowsort
SELECT ALL - ( - - 67 ) AS col1, + ( + 32 ) FROM tab2
----
-67
32
-67
32
-67
32

query I rowsort
SELECT DISTINCT - 74 FROM tab1, tab0 cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2348
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ), + 44 AS col2 FROM tab0
----
-3
44

skipif mysql # not compatible
query II rowsort label-2348
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ), + 44 AS col2 FROM tab0
----
-3
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT + CAST( NULL AS SIGNED ) * - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT + CAST ( NULL AS INTEGER ) * - + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2350
SELECT - 44 * CAST( NULL AS SIGNED ), - 97 AS col1 FROM tab2 AS cor0
----
NULL
-97
NULL
-97
NULL
-97

skipif mysql # not compatible
query II rowsort label-2350
SELECT - 44 * CAST ( NULL AS INTEGER ), - 97 AS col1 FROM tab2 AS cor0
----
NULL
-97
NULL
-97
NULL
-97

query I rowsort
SELECT ALL + col2 * - + col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL 66 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
66
66
66

query III rowsort
SELECT * FROM tab2 WHERE - 13 BETWEEN ( NULL ) AND ( NULL ) AND NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 1 col2, + 12 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT 36 * COUNT( * ) AS col0 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-2355
SELECT 36 * COUNT ( * ) AS col0 FROM tab1
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col2 FROM tab2
----
79
79
79

query I rowsort
SELECT DISTINCT - col1 * + + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + col2 + + ( + 63 ) * col1 AS col1 FROM tab1 AS cor0
----
3029
374
978

query I rowsort
SELECT 34 * + + col0 FROM tab1 AS cor0
----
1734
2890
3094

query I rowsort
SELECT ( - - 34 ) + + ( + + col2 ) * - col2 FROM tab0
----
-2175
-66
-9767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * - + ( col1 ) col1 FROM tab0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT - MAX( - 88 ) + + + 72 FROM tab2
----
160

skipif mysql # not compatible
query I rowsort label-2362
SELECT - MAX ( - 88 ) + + + 72 FROM tab2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - MAX( - col1 ) + + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2363
SELECT - MAX ( - col1 ) + + COUNT ( * ) FROM tab0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 29 + - + col2 col0 FROM tab0 AS cor0
----
-18
-70
19

query I rowsort
SELECT ALL col2 + + col0 * 78 FROM tab0 AS cor0
----
1217
6796
7665

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT ALL col0 + - col2 DIV col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL col0 + - col2 / col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + col0 + - 87 AS col2 FROM tab2 AS cor0
----
-12
-23
-41

query III rowsort
SELECT * FROM tab1 WHERE - - 3 IS NULL
----

query I rowsort
SELECT ALL - 49 - + - col0 AS col1 FROM tab2
----
-3
15
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 67 * - col0 AS col1 FROM tab1 AS cor0
----
-3417
-5695
-6097

query I rowsort
SELECT ( - - col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 54 + - + col0 - - - 0 AND + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL SUM( + + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL SUM ( + + col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * - - col2 + + + col1 < NULL
----

query II rowsort
SELECT + col1, - col0 FROM tab2
----
51
-46
67
-75
77
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, - 26 AS col2 FROM tab1
----
14
-26
47
-26
5
-26

query II rowsort
SELECT DISTINCT col2, + 39 FROM tab0
----
10
39
47
39
99
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 WHERE + col2 BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL COUNT( ALL + 51 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL COUNT ( ALL + 51 ) FROM tab2
----
3

query I rowsort
SELECT + 48 * - + 68 FROM tab0
----
-3264
-3264
-3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT ALL CAST( - ( + - col0 ) AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL CAST ( - ( + - col0 ) AS INTEGER ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL MIN( ALL - + ( - col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL MIN ( ALL - + ( - col2 ) ) AS col2 FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> + 66
----

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2387
SELECT * FROM tab1 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) * - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2387
SELECT * FROM tab1 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) * - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 88 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT + 45 + MIN( ALL + + col0 ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT + 45 + MIN ( ALL + + col0 ) AS col2 FROM tab1 cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + - + ( 51 ) AS col0 FROM tab0 AS cor0
----
-4
-41
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL - ( - - 16 ) + - + 53 * - COUNT( * ) col2 FROM tab2 AS cor0
----
143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2392
SELECT ALL - ( - - 16 ) + - + 53 * - COUNT ( * ) col2 FROM tab2 AS cor0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT - col2 / CAST( NULL AS SIGNED ) + + + col1 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT - col2 / CAST ( NULL AS INTEGER ) + + + col1 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - + col2 + - col2 FROM tab1 AS cor0
----
-141
-33
-45

query II rowsort
SELECT - col2 * - - 91 * + - col0 AS col1, 76 + + 52 FROM tab1
----
445536
128
456365
128
563108
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2396
SELECT CAST( + - 40 AS SIGNED ) * - ( + - COUNT( * ) ) AS col1 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-2396
SELECT CAST ( + - 40 AS INTEGER ) * - ( + - COUNT ( * ) ) AS col1 FROM tab1
----
-120

query I rowsort
SELECT ALL 86 * + col0 AS col2 FROM tab2
----
3956
5504
6450

onlyif mysql # aggregate syntax: 
query II rowsort label-2398
SELECT - COUNT( * ) AS col1, - 63 col1 FROM tab1
----
-3
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2398
SELECT - COUNT ( * ) AS col1, - 63 col1 FROM tab1
----
-3
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT DISTINCT + 44 DIV + col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + 44 / + col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab1
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2401
SELECT ALL - CAST( NULL AS DECIMAL ) * + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - CAST ( NULL AS REAL ) * + - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + - col2 IS NULL
----

query I rowsort
SELECT ALL + col0 + - 79 FROM tab1 AS cor0
----
-28
12
6

query I rowsort
SELECT 13 - + - 20 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT - - CAST( 48 AS SIGNED ) - + col2 AS col2 FROM tab0 AS cor0
----
-51
1
38

skipif mysql # not compatible
query I rowsort label-2405
SELECT - - CAST ( 48 AS INTEGER ) - + col2 AS col2 FROM tab0 AS cor0
----
-51
1
38

query I rowsort
SELECT + col0 * col1 * - + col1 - - ( 37 ) - + col0 AS col2 FROM tab0 AS cor0
----
-157
-38417
-98393

query I rowsort
SELECT DISTINCT 78 * col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT ALL - col0 + 16 DIV + col2 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - col0 + 16 / + col2 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 74 * + col1 FROM tab1
----
1036
3478
370

query I rowsort
SELECT - 8 + 80 AS col2 FROM tab1
----
72
72
72

query I rowsort
SELECT col1 + 41 * col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 + col0 col0 FROM tab0
----
-10
-82
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT ALL + 15 * CAST( - 55 / 48 AS SIGNED ) AS col1 FROM tab0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + 15 * CAST ( - 55 / 48 AS INTEGER ) AS col1 FROM tab0
----
-15
-15
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2415
SELECT ALL * FROM tab2 WHERE NOT + col1 + - 97 <= 86 + CAST( 68 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2415
SELECT ALL * FROM tab2 WHERE NOT + col1 + - 97 <= 86 + CAST ( 68 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT COUNT( * ) FROM tab1 WHERE 56 * - CAST( + ( - col1 ) AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2416
SELECT COUNT ( * ) FROM tab1 WHERE 56 * - CAST ( + ( - col1 ) AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - MIN( DISTINCT - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2418
SELECT - MIN ( DISTINCT - col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT - COUNT( * ) * - 35 FROM tab2 WHERE NOT NULL IN ( - col1 * - ( - col2 ) - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT - COUNT ( * ) * - 35 FROM tab2 WHERE NOT NULL IN ( - col1 * - ( - col2 ) - + col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 66 ) col2 FROM tab1
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT + col1 DIV col2 - + col1 * + col1 AS col1 FROM tab2
----
-2599
-4488
-5928

skipif mysql # not compatible
query I rowsort label-2421
SELECT + col1 / col2 - + col1 * + col1 AS col1 FROM tab2
----
-2599
-4488
-5928

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL + MIN( + col0 ) + COUNT( * ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + MIN ( + col0 ) + COUNT ( * ) AS col2 FROM tab1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2423
SELECT DISTINCT 18 + COUNT( * ) DIV + 53 AS col1 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT 18 + COUNT ( * ) / + 53 AS col1 FROM tab1
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT - MIN( + 23 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT - MIN ( + 23 ) FROM tab0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2426
SELECT DISTINCT * FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) + + col0 * - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2426
SELECT DISTINCT * FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) + + col0 * - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + MAX( DISTINCT + 40 ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-2427
SELECT + MAX ( DISTINCT + 40 ) FROM tab2
----
40

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN NULL AND - ( - col2 ) + - col0
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col2 * ( - col0 )
----

query I rowsort
SELECT DISTINCT ( 84 ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT MAX( - col0 ) AS col0 FROM tab1 WHERE 50 / col2 BETWEEN NULL AND ( - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT MAX ( - col0 ) AS col0 FROM tab1 WHERE 50 / col2 BETWEEN NULL AND ( - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT SUM( 8 ) AS col2 FROM tab2 WHERE NOT NULL > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT SUM ( 8 ) AS col2 FROM tab2 WHERE NOT NULL > col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT MIN( col2 ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2433
SELECT MIN ( col2 ) col1 FROM tab1
----
59

query I rowsort
SELECT ( - 41 ) + col2 * - 15 AS col1 FROM tab2
----
-386
-641
-911

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 35 + col1 AS col2 FROM tab1 WHERE NOT col2 BETWEEN ( col1 ) AND + col2 * col1 + - col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2437
SELECT - col0 * - CAST( NULL AS SIGNED ) + 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT - col0 * - CAST ( NULL AS INTEGER ) + 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 74 ) + col2 FROM tab0 AS cor0
----
-27
-64
25

query I rowsort
SELECT col1 + - 21 * 55 FROM tab0 AS cor0
----
-1074
-1134
-1154

query I rowsort
SELECT ALL + 85 AS col1 FROM tab0 WHERE NOT - col1 >= - 7
----
85
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT DISTINCT CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2443
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - col0 < col0
----

skipif mysql # not compatible
query III rowsort label-2443
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - col0 < col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col1 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 34 AS col2 FROM tab1 cor0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT DISTINCT col2 DIV col2 + + 48 * col0 AS col0 FROM tab1 AS cor0
----
2449
4081
4369

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT col2 / col2 + + 48 * col0 AS col0 FROM tab1 AS cor0
----
2449
4081
4369

query I rowsort
SELECT DISTINCT - + col2 + col0 * - col0 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT DISTINCT 41 + col0 AS col2 FROM tab1 AS cor0
----
126
132
92

query I rowsort
SELECT ALL - col0 + col1 * + 91 FROM tab0 AS cor0
----
-6
1824
7356

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND col2 * - col1
----

query I rowsort
SELECT + col0 + + col0 FROM tab2 cor0 WHERE ( 63 + col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT DISTINCT + 44 - SUM( ( CAST( col1 AS SIGNED ) ) ) / 57 FROM tab0 AS cor0 WHERE + col2 IN ( 63 - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + 44 - SUM ( ( CAST ( col1 AS INTEGER ) ) ) / 57 FROM tab0 AS cor0 WHERE + col2 IN ( 63 - - col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 / col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col2 < - 86 * col1 + ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 38 + - col2 FROM tab2
----
-61
-78
-96

query I rowsort
SELECT ALL + col0 - 14 FROM tab1
----
37
71
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT - MAX( DISTINCT - col0 ) + COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2459
SELECT - MAX ( DISTINCT - col0 ) + COUNT ( * ) AS col1 FROM tab1
----
54

query III rowsort
SELECT * FROM tab0 WHERE 62 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( col0 ) * col1 AS col2 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 IN ( col2 - col2 * - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( + 84 )
----

query I rowsort
SELECT ALL + 15 * - col2 AS col2 FROM tab2
----
-345
-600
-870

query I rowsort
SELECT DISTINCT + col2 * - - col1 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT 24 + COUNT( * ) FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT 24 + COUNT ( * ) FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----
24

query I rowsort
SELECT col2 * + - 15 + - col2 FROM tab1
----
-1088
-1536
-944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2468
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE + 50 * 77 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2468
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE + 50 * 77 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 54 / + col1 NOT BETWEEN + ( - 0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL - MIN( col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - MIN ( col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10

query I rowsort
SELECT - ( + 52 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 69 IS NULL )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - - 73 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 48 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT - 10 * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IN ( + ( + 43 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - 10 * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IN ( + ( + 43 ) )
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 47 col1, col1 AS col0 FROM tab2 AS cor0
----
47
51
47
67
47
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 48 + + + col2 < + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL - COUNT( * ) * 74 AS col1 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL - COUNT ( * ) * 74 AS col1 FROM tab0 AS cor0
----
-222

query I rowsort
SELECT ALL - + col1 * - - 4 AS col2 FROM tab2 AS cor0
----
-204
-268
-308

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 4 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2482
SELECT - 46 DIV - COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2482
SELECT - 46 / - COUNT ( * ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL MIN( + - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL MIN ( + - col0 ) FROM tab1 cor0
----
-91

query I rowsort
SELECT ( - + 43 ) AS col0 FROM tab2 AS cor0
----
-43
-43
-43

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - 36 + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2486
SELECT ALL - 21 AS col1, + 63 * - + CAST( + 23 AS SIGNED ) * 65 AS col0 FROM tab1 AS cor0
----
-21
-94185
-21
-94185
-21
-94185

skipif mysql # not compatible
query II rowsort label-2486
SELECT ALL - 21 AS col1, + 63 * - + CAST ( + 23 AS INTEGER ) * 65 AS col0 FROM tab1 AS cor0
----
-21
-94185
-21
-94185
-21
-94185

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 + col1 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2488
SELECT - MIN( ALL 31 ) / ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 WHERE NOT NULL < ( col2 * 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT - MIN ( ALL 31 ) / ( CAST ( NULL AS REAL ) ) AS col0 FROM tab1 WHERE NOT NULL < ( col2 * 72 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2489
SELECT DISTINCT CAST( + + 9 AS SIGNED ) AS col1, col1 AS col1 FROM tab0
----
9
1
9
21
9
81

skipif mysql # not compatible
query II rowsort label-2489
SELECT DISTINCT CAST ( + + 9 AS INTEGER ) AS col1, col1 AS col1 FROM tab0
----
9
1
9
21
9
81

query I rowsort
SELECT - 95 * col0 * col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-66975
-82650
-912285

query I rowsort
SELECT ALL - 64 * - + 85 FROM tab0
----
5440
5440
5440

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + 70 ) * - ( 5 / col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT ALL col0 DIV - 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL col0 / - 91 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab1 WHERE 4 + + col1 BETWEEN ( NULL ) AND ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN ( + + 24 + - 75 * - col1 ) AND + col0 * + 48
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col1 * 34 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT 87 + + SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT 87 + + SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
-136

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT NULL >= col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT DISTINCT - SUM( ALL + 5 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT - SUM ( ALL + 5 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - 82 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 BETWEEN - + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 82 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col2 BETWEEN - + col1 AND NULL
----
0

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-15

query I rowsort
SELECT - 7 + col0 FROM tab2
----
39
57
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 / + col0 * + col2 BETWEEN + col2 + col0 AND col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * - col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 + col2 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2506
SELECT CAST( NULL AS SIGNED ) col0, - 17 - + 49 AS col0 FROM tab0 AS cor0
----
NULL
-66
NULL
-66
NULL
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2506
SELECT CAST ( NULL AS INTEGER ) col0, - 17 - + 49 AS col0 FROM tab0 AS cor0
----
NULL
-66
NULL
-66
NULL
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - MIN( ALL + - col0 ) AS col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2507
SELECT - MIN ( ALL + - col0 ) AS col2 FROM tab1 cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 10 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 col0, col0 AS col2 FROM tab0 AS cor0
----
15
15
15
87
15
97

query I rowsort
SELECT col1 + col2 AS col2 FROM tab0 WHERE NULL IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * col2 + + col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT DISTINCT AVG ( + 82 ) - - - 18 * 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-2512
SELECT DISTINCT AVG ( + 82 ) - - - 18 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * - col0 + + col2 + + 16 * + col2 NOT BETWEEN - col0 AND + 68
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - col2 - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 - + col1, + col1 * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-138
-2209
-65
-196
-90
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-2518
SELECT col2 DIV col2 AS col1, - col1 AS col1 FROM tab2 cor0
----
1
-51
1
-67
1
-77

skipif mysql # not compatible
query II rowsort label-2518
SELECT col2 / col2 AS col1, - col1 AS col1 FROM tab2 cor0
----
1
-51
1
-67
1
-77

query I rowsort
SELECT - col2 * 58 + + ( + col1 ) FROM tab1 AS cor0
----
-3417
-3897
-5554

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL COUNT( * ) * + - 83 FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL COUNT ( * ) * + - 83 FROM tab2 AS cor0
----
-249

query II rowsort
SELECT + ( - col2 ), col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL AND NULL NOT IN ( + 25 )
----

query II rowsort
SELECT - ( + 64 ) * + 52 AS col2, 13 AS col1 FROM tab1 AS cor0
----
-3328
13
-3328
13
-3328
13

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT + - 60 NOT IN ( + col0, + col0 ) )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + col2 col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT + COUNT( * ) / - - CAST( NULL AS SIGNED ) + - COUNT( * ) + 79 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 79 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( - 20 ) * 50 * - - 45 FROM tab1 AS cor0
----
-45000

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT ALL - 23 DIV + - col2 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - 23 / + - col2 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT + 7 + + - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT + MAX( - col0 ) AS col1, 72 AS col1 FROM tab1 AS cor0
----
-51
72

skipif mysql # not compatible
query II rowsort label-2531
SELECT + MAX ( - col0 ) AS col1, 72 AS col1 FROM tab1 AS cor0
----
-51
72

query I rowsort
SELECT DISTINCT - 48 * 60 FROM tab2
----
-2880

query I rowsort
SELECT ALL - col0 / 43 * + - 57 AS col2 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + ( - 80 ) - - - 56
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT col2 DIV - 92 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT col2 / - 92 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + + 7 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT - + col2 IS NULL
----
15
87
97

query I rowsort
SELECT 73 * + col2 FROM tab0
----
3431
7227
730

query I rowsort
SELECT + + ( + col0 ) + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT + col2 + + - 58 AS col1 FROM tab2 AS cor0
----
-18
-35
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT ALL - + col2 DIV + col1 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - + col2 / + col1 + - + col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL col1 * col0 + col0 - + col1 AS col1 FROM tab1 AS cor0
----
4321
505
751

query I rowsort
SELECT - 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query II rowsort
SELECT + col1 + + col0, + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
108
10
96
47
98
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2546
SELECT - + CAST( 82 AS SIGNED ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

skipif mysql # not compatible
query I rowsort label-2546
SELECT - + CAST ( 82 AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 12 ) col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL + MAX( ALL - - 68 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + MAX ( ALL - - 68 ) FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL 96 + 20 + - + MAX( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL 96 + 20 + - + MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT + 34 * + col1 + + 83 AS col2 FROM tab1 AS cor0
----
1681
253
559

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ALL 81 + - - 34 AS col1 FROM tab0 cor0
----
115
115
115

query I rowsort
SELECT ALL col1 + col1 + + + col1 - + col0 FROM tab2 AS cor0
----
107
126
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT DISTINCT + + 70 * - CAST( - 16 AS SIGNED ) * - + col0 + + col2 FROM tab2 AS cor0
----
-51497
-71640
-83942

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + + 70 * - CAST ( - 16 AS INTEGER ) * - + col0 + + col2 FROM tab2 AS cor0
----
-51497
-71640
-83942

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2556
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE col0 * + col0 + col0 + + ( - col2 ) NOT BETWEEN ( col1 ) AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2556
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE col0 * + col0 + col0 + + ( - col2 ) NOT BETWEEN ( col1 ) AND - CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( 20 ) >= + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT COUNT( * ) AS col1 FROM tab0 WHERE + CAST( - ( 43 ) AS SIGNED ) NOT IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2558
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE + CAST ( - ( 43 ) AS INTEGER ) NOT IN ( - col1 )
----
3

query I rowsort
SELECT DISTINCT 43 - 52 AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - 12 * COUNT( * ) + + 87 FROM tab1 WHERE NOT col0 BETWEEN NULL AND - col1
----
51

skipif mysql # not compatible
query I rowsort label-2560
SELECT - 12 * COUNT ( * ) + + 87 FROM tab1 WHERE NOT col0 BETWEEN NULL AND - col1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 col2, col0 * + + col2 + col1 - col0 AS col1 FROM tab0
----
39
771
39
804
39
9507

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT - SUM( DISTINCT + 68 ) FROM tab1 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - SUM ( DISTINCT + 68 ) FROM tab1 cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT ALL col2 * CAST( NULL AS SIGNED ) * + 82 + + col0 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-2563
SELECT ALL col2 * CAST ( NULL AS INTEGER ) * + 82 + + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + 36 + - 22 * + + COUNT( * ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + 36 + - 22 * + + COUNT ( * ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL + 22 + col0 AS col1 FROM tab1 AS cor0
----
107
113
73

query I rowsort
SELECT ALL - + 58 AS col0 FROM tab0 AS cor0
----
-58
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 98 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2570
SELECT - 19 * + - COUNT( * ) + + - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT - 52 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT - 19 * + - COUNT ( * ) + + - CAST ( NULL AS REAL ) FROM tab1 WHERE NOT - 52 IS NOT NULL
----
NULL

query II rowsort
SELECT + col0 + + col0 AS col2, ( + col2 ) AS col0 FROM tab1
----
102
96
170
59
182
68

query I rowsort
SELECT 37 + + col0 + + ( - col0 ) AS col2 FROM tab2
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - col0 IN ( - 28, col0 * col1, + 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + + - 70 * col2 AS col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * + - 37 FROM tab2
----
1480
2146
851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2576
SELECT 45 DIV COUNT( * ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2576
SELECT 45 / COUNT ( * ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT COUNT( + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT COUNT ( + col1 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT col1 * - + col1, ( + + col2 ) AS col2 FROM tab1
----
-196
96
-2209
68
-25
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT ALL MAX( + + CAST( + col2 AS SIGNED ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL MAX ( + + CAST ( + col2 AS INTEGER ) ) FROM tab1
----
96

query I rowsort
SELECT ( 51 ) * col0 + - 10 + + col2 + 93 + + 91 * - 64 AS col0 FROM tab2
----
-1858
-2437
-3372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT + ( + COUNT( - - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT + ( + COUNT ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT + + ( - col1 ) - - 47 DIV + + ( - 47 ) + 30 AS col1 FROM tab1 cor0
----
-18
15
24

skipif mysql # not compatible
query I rowsort label-2582
SELECT + + ( - col1 ) - - 47 / + + ( - 47 ) + 30 AS col1 FROM tab1 cor0
----
-18
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT - ( - COUNT( * ) ) + 93 - + COUNT( * ) * ( 33 ) * + 60 AS col0 FROM tab2 AS cor0
----
-5844

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT - ( - COUNT ( * ) ) + 93 - + COUNT ( * ) * ( 33 ) * + 60 AS col0 FROM tab2 AS cor0
----
-5844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 + - 82 * col1 AS col2, col2 + col0 col0 FROM tab0 AS cor0
----
-1713
97
-6633
62
-73
196

query I rowsort
SELECT DISTINCT + ( + + 48 ) FROM tab2
----
48

query I rowsort
SELECT ALL 1 * - col0 AS col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE + col1 = - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 37 col2 FROM tab0
----
124
134
52

query II rowsort
SELECT ALL col0 AS col1, col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - + MIN( DISTINCT + 68 ) AS col0 FROM tab2 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2590
SELECT - + MIN ( DISTINCT + 68 ) AS col0 FROM tab2 cor0
----
-68

query I rowsort
SELECT DISTINCT + col2 + 36 FROM tab1 AS cor0
----
104
132
95

query I rowsort
SELECT - 45 AS col0 FROM tab1 cor0
----
-45
-45
-45

query I rowsort
SELECT 58 * + col0 AS col2 FROM tab0 AS cor0
----
5046
5626
870

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT DISTINCT col0 DIV col2 + + 27 - + col2 FROM tab2 AS cor0
----
-12
-30
6

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT col0 / col2 + + 27 - + col2 FROM tab2 AS cor0
----
-12
-30
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 + 90 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 94 AS col2 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2597
SELECT DISTINCT + + col1 * + - 7 - CAST( NULL AS DECIMAL ) + + col0 * 68 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT + + col1 * + - 7 - CAST ( NULL AS REAL ) + + col0 * 68 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2598
SELECT + 41 / COUNT( * ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - - col2 + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT + 41 / COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - - col2 + + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2599
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) / - 56 < NULL
----

skipif mysql # not compatible
query III rowsort label-2599
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) / - 56 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <= - + col1 * + col0 + col2 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - 39 = + col1 * - col2
----

query I rowsort
SELECT col2 * + 57 + + - col2 FROM tab1 WHERE NOT ( + col2 ) = col1 * - 94
----
3304
3808
5376

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT + 44 + - 74 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL + 16 * COUNT( * ) col1 FROM tab2
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2604
SELECT ALL + 16 * COUNT ( * ) col1 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + - COUNT( * ) * + + 74 AS col2 FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + - COUNT ( * ) * + + 74 AS col2 FROM tab1 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT MAX( col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2606
SELECT MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
91

query II rowsort
SELECT - ( ( + col2 ) ), - col1 AS col1 FROM tab2 cor0
----
-23
-51
-40
-77
-58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 * + ( + - col2 ) col0, + col0 + 37 * col1 AS col2 FROM tab1 cor0
----
-4896
569
-5015
270
-6188
1830

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + col2 + - 21 * + 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT + - MIN( + 88 ) AS col0 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2611
SELECT + - MIN ( + 88 ) AS col0 FROM tab0 AS cor0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 60
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = - - 48 + 48
----

query I rowsort
SELECT DISTINCT ( + - 95 ) * col0 FROM tab1
----
-4845
-8075
-8645

query II rowsort
SELECT DISTINCT 50, + col2 AS col0 FROM tab2
----
50
23
50
40
50
58

query II rowsort
SELECT ALL col0 AS col1, + 94 AS col0 FROM tab1
----
51
94
85
94
91
94

query I rowsort
SELECT + col0 + - col0 + + - col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + col2 + - + col0 FROM tab1 AS cor0
----
-21
24
59

query I rowsort
SELECT ALL 5 + - col1 + 55 AS col0 FROM tab0 AS cor0
----
-21
39
59

query I rowsort
SELECT ALL 83 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + MIN( 75 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2622
SELECT + MIN ( 75 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT + ( + col2 ) - + col2 + 9 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT col1 * - + col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT ALL + 80 + + COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
83
3

skipif mysql # not compatible
query II rowsort label-2625
SELECT ALL + 80 + + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
83
3

query I rowsort
SELECT ALL + + ( + 14 ) AS col0 FROM tab2 cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + COUNT( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 - + + col0 / + - ( + ( 16 ) ) < col2
----
2

skipif mysql # not compatible
query I rowsort label-2627
SELECT + COUNT ( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 - + + col0 / + - ( + ( 16 ) ) < col2
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - - 18 = + 93 + - 51 * - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col1, + ( - col1 ) AS col1 FROM tab1
----
51
-14
85
-5
91
-47

query II rowsort
SELECT col0, - 0 + + ( + - 15 ) FROM tab0
----
15
-15
87
-15
97
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT COUNT( * ) AS col2, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2631
SELECT COUNT ( * ) AS col2, COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE ( 45 IS NOT NULL )
----
46
64
75

query II rowsort
SELECT ALL + + col1 AS col0, 72 + + col0 AS col0 FROM tab1 AS cor0
----
14
123
47
163
5
157

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - 99 AS col0 FROM tab0 cor0
----
-99
-99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2636
SELECT * FROM tab2 cor0 WHERE NOT + col0 + + + CAST( NULL AS DECIMAL ) * - + ( - 7 ) <> + 30
----

skipif mysql # not compatible
query III rowsort label-2636
SELECT * FROM tab2 cor0 WHERE NOT + col0 + + + CAST ( NULL AS REAL ) * - + ( - 7 ) <> + 30
----

query II rowsort
SELECT ALL col0 * + col0, + col0 + + col2 AS col2 FROM tab1
----
2601
147
7225
144
8281
159

query I rowsort
SELECT DISTINCT - col2 + 86 AS col1 FROM tab2 AS cor0
----
28
46
63

query I rowsort
SELECT DISTINCT + + 29 FROM tab0 cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT DISTINCT - - 61 DIV + 14 + + col1 FROM tab2 AS cor0 WHERE col2 <= col2
----
55
71
81

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT - - 61 / + 14 + + col1 FROM tab2 AS cor0 WHERE col2 <= col2
----
55
71
81

query II rowsort
SELECT DISTINCT - 67 + + col1 + + + 78 + col2 AS col1, col0 AS col0 FROM tab0 cor0
----
111
97
139
15
42
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT + 18 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2642
SELECT + 18 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT - SUM( ALL + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2643
SELECT - SUM ( ALL + col1 ) FROM tab1
----
-66

query I rowsort
SELECT - col2 * - 4 AS col1 FROM tab1
----
236
272
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col0 FROM tab1 WHERE 5 <> - 47 + + col2
----
51
85
91

query I rowsort
SELECT DISTINCT - + col2 + - 41 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT 40 + + CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE - col0 NOT IN ( col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2648
SELECT 40 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE - col0 NOT IN ( col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + ( + 50 ) AS col2 FROM tab2
----
-2300
-3200
-3750

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 - + col1 NOT IN ( - 58, 17, - 49, - + col2 + 58 * - + col0, + - col1 / - - ( - - col1 ) + ( + + col2 ) )
----

query I rowsort
SELECT + 22 * - 17 FROM tab1
----
-374
-374
-374

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + 36
----

query II rowsort
SELECT ALL - + col0, 32 AS col2 FROM tab0 cor0
----
-15
32
-87
32
-97
32

query I rowsort
SELECT - + 37 * - + 41 + 14 + + - col1 AS col1 FROM tab1 AS cor0
----
1484
1517
1526

query I rowsort
SELECT + col1 - ( col2 ) * + + col1 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT ( + 47 ) - + col0 * - + col1 AS col1 FROM tab1 AS cor0
----
4324
472
761

query I rowsort
SELECT + ( - col0 ) + ( - 31 ) FROM tab1 AS cor0
----
-116
-122
-82

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab2 WHERE col0 + - 95 IS NULL
----

query I rowsort
SELECT - + 47 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL NOT BETWEEN + + 23 AND + 7 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT - + col1 * 78 + + col1 FROM tab1 AS cor0
----
-1078
-3619
-385

query II rowsort
SELECT ALL col1, - 61 FROM tab2 AS cor0
----
51
-61
67
-61
77
-61

query I rowsort
SELECT + 29 * - 91 FROM tab1 cor0
----
-2639
-2639
-2639

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT ALL + - col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL + - col1 / + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( - 60 )
----

query I rowsort
SELECT - col0 * - + 5 AS col1 FROM tab2 AS cor0
----
230
320
375

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT SUM( ALL + 95 ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-2668
SELECT SUM ( ALL + 95 ) FROM tab1
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT CAST( + MAX( DISTINCT - + 44 ) AS SIGNED ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-2669
SELECT CAST ( + MAX ( DISTINCT - + 44 ) AS INTEGER ) FROM tab2
----
-44

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NULL > + 20 + - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT DISTINCT CAST( - ( + 14 ) AS SIGNED ) AS col2 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT CAST ( - ( + 14 ) AS INTEGER ) AS col2 FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2672
SELECT - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT - + col2 * + 21 - + 12 + + col0 FROM tab0 AS cor0
----
-135
-1994
-984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8 col2, 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to c54ffa388138c10c6147c835afbd2b27

query I rowsort
SELECT ALL 80 * col0 FROM tab0
----
1200
6960
7760

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT + COUNT( * ) AS col2, MIN( DISTINCT + col1 ) FROM tab1
----
3
5

skipif mysql # not compatible
query II rowsort label-2676
SELECT + COUNT ( * ) AS col2, MIN ( DISTINCT + col1 ) FROM tab1
----
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 35 col2, col2 FROM tab1 WHERE - ( - + col0 ) + + col1 IS NOT NULL
----
35
59
35
68
35
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT - - COUNT( - - 1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT - - COUNT ( - - 1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2679
SELECT ALL col0 DIV + + col1 + + col2 AS col0, col0 * + + col0 * col1 FROM tab0 AS cor0
----
14
158949
196
9409
47
18225

skipif mysql # not compatible
query II rowsort label-2679
SELECT ALL col0 / + + col1 + + col2 AS col0, col0 * + + col0 * col1 FROM tab0 AS cor0
----
14
158949
196
9409
47
18225

query I rowsort
SELECT DISTINCT - + col0 + - + col2 * + - col0 AS col2 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT - - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT - - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT DISTINCT + col2 * + col1 DIV - col1 + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + col2 * + col1 / - col1 + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT COUNT( - + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2683
SELECT COUNT ( - + col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT - SUM( - + col0 ) + - ( 15 ) FROM tab2 AS cor0 WHERE NULL <> 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT - SUM ( - + col0 ) + - ( 15 ) FROM tab2 AS cor0 WHERE NULL <> 73
----
NULL

query I rowsort
SELECT ALL 29 * - ( + col0 ) + + col1 + + 58 AS col2 FROM tab1 AS cor0
----
-1407
-2402
-2534

query I rowsort
SELECT DISTINCT 75 FROM tab1 WHERE NOT + 47 * + col1 + + + col1 IS NULL
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT col1 DIV + - col0 + col2 FROM tab0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-2687
SELECT col1 / + - col0 + col2 FROM tab0
----
10
42
99

query I rowsort
SELECT DISTINCT ( 95 ) FROM tab0
----
95

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2690
SELECT + col1 DIV - + ( + 40 ) + - + ( + + col0 ) * + + col2 + - 63 * - + col1 AS col1 FROM tab2 AS cor0
----
-130
2154
2290

skipif mysql # not compatible
query I rowsort label-2690
SELECT + col1 / - + ( + 40 ) + - + ( + + col0 ) * + + col2 + - 63 * - + col1 AS col1 FROM tab2 AS cor0
----
-130
2154
2290

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 >= - 57
----
87
21
10
97
1
99

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT MIN( ALL - + col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT MIN ( ALL - + col1 ) AS col2 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 * + col0 * - col2 col1 FROM tab2 AS cor0
----
-113100
-27508
-66560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL + CAST( - 58 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-58
-58
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2696
SELECT ALL + CAST ( - 58 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT SUM( ALL + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT SUM ( ALL + + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT + SUM( ALL 25 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + SUM ( ALL 25 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT ALL CAST( NULL AS SIGNED ) * + - MAX( col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL CAST ( NULL AS INTEGER ) * + - MAX ( col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT ALL - col2 DIV - 1 + ( - + ( - ( + + col0 ) ) ) * - 4 - - - col0 AS col0 FROM tab0 AS cor0
----
-28
-386
-425

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - col2 / - 1 + ( - + ( - ( + + col0 ) ) ) * - 4 - - - col0 AS col0 FROM tab0 AS cor0
----
-28
-386
-425

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 7 * col0 + + col2 IS NOT NULL
----

query I rowsort
SELECT - + 41 AS col2 FROM tab1 AS cor0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + col0 + - - col1 * + col2 col0, + 53 * - col0 + + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col0 col2 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT - 45 * - 12 FROM tab0
----
540
540
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2706
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT - - MAX( DISTINCT col1 ) FROM tab0 WHERE NOT 99 + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT - - MAX ( DISTINCT col1 ) FROM tab0 WHERE NOT 99 + + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2708
SELECT ALL COUNT( * ) DIV + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL COUNT ( * ) / + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-1

query II rowsort
SELECT + col0 AS col0, + col2 * - col1 + - - 33 AS col0 FROM tab0
----
15
-3774
87
-177
97
-66

query II rowsort
SELECT ALL 8 AS col1, - 99 AS col2 FROM tab0
----
8
-99
8
-99
8
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 49 BETWEEN col0 + + 44 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - + COUNT( * ) * - 84 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2712
SELECT - + COUNT ( * ) * - 84 FROM tab0 AS cor0
----
252

query I rowsort
SELECT - - 97 FROM tab1 cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2714
SELECT COUNT( * ), - COUNT( ALL + col2 ) AS col0 FROM tab0 WHERE ( - - 67 ) NOT IN ( - 56 )
----
3
-3

skipif mysql # not compatible
query II rowsort label-2714
SELECT COUNT ( * ), - COUNT ( ALL + col2 ) AS col0 FROM tab0 WHERE ( - - 67 ) NOT IN ( - 56 )
----
3
-3

query III rowsort
SELECT * FROM tab2 WHERE ( + 3 < + - 75 + col0 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL ( + SUM( + ( + - 32 ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-288

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL ( + SUM ( + ( + - 32 ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-288

query I rowsort
SELECT ALL 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT COUNT( * ) * + - COUNT( * ) FROM tab0, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2718
SELECT COUNT ( * ) * + - COUNT ( * ) FROM tab0, tab2 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE ( + + col1 ) <> NULL
----

query I rowsort
SELECT ALL - + 32 + - - col0 * 92 + - col1 AS col0 FROM tab2 AS cor0
----
4149
5779
6801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT - + 94 AS col2 FROM tab0 AS cor0 WHERE col1 <= - - CAST( NULL AS SIGNED ) / + 77 * - - col0 + + - col0
----

skipif mysql # not compatible
query I rowsort label-2721
SELECT - + 94 AS col2 FROM tab0 AS cor0 WHERE col1 <= - - CAST ( NULL AS INTEGER ) / + 77 * - - col0 + + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ALL - 68 DIV + + col2 + + col0 + col2 FROM tab0 AS cor0
----
196
61
91

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - 68 / + + col2 + + col0 + col2 FROM tab0 AS cor0
----
196
61
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + 16 >= NULL
----

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE - 53 IS NOT NULL
----
59
68
96

query II rowsort
SELECT ALL col2 * ( + + col0 ) - + col0 * col2 + col0, col0 FROM tab1
----
51
51
85
85
91
91

query II rowsort
SELECT - 91 AS col0, - ( - col2 ) FROM tab0
----
-91
10
-91
47
-91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT COUNT( * ) * - + 70 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-2727
SELECT COUNT ( * ) * - + 70 FROM tab1
----
-210

query I rowsort
SELECT 75 - + + col2 FROM tab1
----
-21
16
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2729
SELECT ALL * FROM tab0 WHERE + CAST( - 18 AS SIGNED ) + - 13 / + 78 IS NOT NULL AND NULL <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2729
SELECT ALL * FROM tab0 WHERE + CAST ( - 18 AS INTEGER ) + - 13 / + 78 IS NOT NULL AND NULL <> ( NULL )
----

query I rowsort
SELECT ALL - 7 * col0 + col0 + - col1 * + + col1 * + ( + - 82 ) FROM tab1 AS cor0
----
1540
15766
180592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2731
SELECT + MIN( DISTINCT - col1 ) + - MAX( col0 ) + CAST( NULL AS SIGNED ) / + 40 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT + MIN ( DISTINCT - col1 ) + - MAX ( col0 ) + CAST ( NULL AS INTEGER ) / + 40 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT 51 + - COUNT( * ) col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2732
SELECT 51 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
48

query II rowsort
SELECT ALL + col0 AS col2, col1 + - col2 FROM tab1 AS cor0 WHERE NOT ( + + col1 - + + col0 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT ALL col2 * - col1 * + + col2 - col1 DIV - col2 + + - col0 FROM tab0 cor0
----
-178943
-2185
-9898

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL col2 * - col1 * + + col2 - col1 / - col2 + + - col0 FROM tab0 cor0
----
-178943
-2185
-9898

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + 65 * COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
585

skipif mysql # not compatible
query I rowsort label-2735
SELECT + 65 * COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
585

query I rowsort
SELECT ALL + 69 * + + 82 AS col2 FROM tab0 AS cor0
----
5658
5658
5658

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * - - col1 * - + 68 col0 FROM tab0 AS cor0
----
-2608956
-6596
-6692220

query I rowsort
SELECT - 76 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * col0 col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2741
SELECT CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col0 * - 98 FROM tab1 AS cor0
----
4998
8330
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT DISTINCT - COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL MIN( ( 26 ) ) AS col1 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL MIN ( ( 26 ) ) AS col1 FROM tab0
----
26

query III rowsort
SELECT * FROM tab0 WHERE NOT 80 * + col1 + - - 52 - 64 + 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT DISTINCT + COUNT( * ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + ( + 29 ) FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE + 94 / - col1 >= + col2
----

query II rowsort
SELECT col0, col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 45 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + 94 * + - 69
----

query I rowsort
SELECT ALL + + col2 * col2 / + - col1 FROM tab2 AS cor0 WHERE NOT - 34 - - 21 IS NOT NULL
----

query I rowsort
SELECT + - 51 + + col1 AS col2 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT ALL 63 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ( 7 ) AS col1 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT - ( MAX( ALL col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2758
SELECT - ( MAX ( ALL col0 ) ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - - 14 * - - 39 FROM tab0 AS cor0
----
546

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2760
SELECT DISTINCT - + col0 + - 94 col2, - col0 DIV + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-145
0
-179
-1
-185
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2760
SELECT DISTINCT - + col0 + - 94 col2, - col0 / + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-145
0
-179
-1
-185
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 71 + 81 FROM tab0 AS cor0
----
152
152
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL - MAX( - - col0 ) + MIN( ALL - + col1 ) FROM tab0 AS cor0
----
-178

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - MAX ( - - col0 ) + MIN ( ALL - + col1 ) FROM tab0 AS cor0
----
-178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 / + 59 col1 FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 32 + - col2 + + - 86 FROM tab0 AS cor0
----
-101
-153
-64

query I rowsort
SELECT ALL 45 + + + col0 AS col0 FROM tab0
----
132
142
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / 87 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT DISTINCT 73 - col0 / CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT 73 - col0 / CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2769
SELECT col0 + col2, col0 DIV - CAST( + 34 AS SIGNED ) AS col0 FROM tab0
----
196
-2
62
0
97
-2

skipif mysql # not compatible
query II rowsort label-2769
SELECT col0 + col2, col0 / - CAST ( + 34 AS INTEGER ) AS col0 FROM tab0
----
196
-2
62
0
97
-2

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NULL BETWEEN - - ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT - COUNT( * ) + - MIN( + col1 ) + - COUNT( * ) AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-2771
SELECT - COUNT ( * ) + - MIN ( + col1 ) + - COUNT ( * ) AS col2 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT - 92 + COUNT( ALL - col2 ) AS col0 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-2772
SELECT - 92 + COUNT ( ALL - col2 ) AS col0 FROM tab0
----
-89

query I rowsort
SELECT - col1 * + + ( + col0 ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
10

query I rowsort
SELECT 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT COUNT( * ) + ( - COUNT( * ) ) - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2777
SELECT COUNT ( * ) + ( - COUNT ( * ) ) - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2778
SELECT DISTINCT COUNT( * ), 73 AS col1 FROM tab0
----
3
73

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT COUNT ( * ), 73 AS col1 FROM tab0
----
3
73

query II rowsort
SELECT col0, col2 + + - 72 FROM tab1
----
51
24
85
-13
91
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT + - ( - SUM( ALL - + col2 ) ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
-121
3

skipif mysql # not compatible
query II rowsort label-2780
SELECT + - ( - SUM ( ALL - + col2 ) ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-121
3

query I rowsort
SELECT DISTINCT col2 * - - col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2783
SELECT DISTINCT + col2, + ( - + CAST( - 96 AS SIGNED ) ) DIV 70 + + col1 * - col2 * - col1 * + col2 FROM tab1 AS cor0
----
59
87026
68
10214417
96
1806337

skipif mysql # not compatible
query II rowsort label-2783
SELECT DISTINCT + col2, + ( - + CAST ( - 96 AS INTEGER ) ) / 70 + + col1 * - col2 * - col1 * + col2 FROM tab1 AS cor0
----
59
87026
68
10214417
96
1806337

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2784
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT + col1 * CAST( NULL AS DECIMAL ) * + col0 = - - col0 + - + col2 / + col2
----

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT + col1 * CAST ( NULL AS REAL ) * + col0 = - - col0 + - + col2 / + col2
----

query I rowsort
SELECT ALL + - col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col0 + + - col2 * - col0 col0 FROM tab2 AS cor0
----
51
1012
67
4275
77
2496

query I rowsort
SELECT - ( - col2 ) + - 15 AS col1 FROM tab2
----
25
43
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2788
SELECT CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT + SUM( + - 6 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-2789
SELECT + SUM ( + - 6 ) FROM tab0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL + MAX( ALL - + ( + 47 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL + MAX ( ALL - + ( + 47 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT MAX( + + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2792
SELECT MAX ( + + col1 ) AS col0 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT + 63 DIV - 43 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2793
SELECT + 63 / - 43 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + 45 + + + col2 AS col2 FROM tab0 AS cor0
----
144
55
92

query II rowsort
SELECT col1, + 24 * - 28 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
51
-672
67
-672
77
-672

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NULL >= col0
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT col2 DIV + col1 + + col2 + - col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2798
SELECT col2 / + col1 + + col2 + - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT 65 + + + col0 FROM tab1
----
116
150
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

query I rowsort
SELECT + ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col1 * 21 FROM tab1 AS cor0 WHERE + ( - ( col1 ) ) + + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( 90 ) IS NULL
----

query I rowsort
SELECT ALL 32 * + col0 - + col0 + - 30 AS col0 FROM tab2
----
1396
1954
2295

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + - col0 AND + 50 * col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2806
SELECT ALL - col1 DIV col1 AS col0, - col1 AS col1 FROM tab1
----
-1
-14
-1
-47
-1
-5

skipif mysql # not compatible
query II rowsort label-2806
SELECT ALL - col1 / col1 AS col0, - col1 AS col1 FROM tab1
----
-1
-14
-1
-47
-1
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col0 FROM tab2 WHERE NOT 81 > + col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + MIN( + ( - - 48 ) ) col2 FROM tab0 cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2809
SELECT + MIN ( + ( - - 48 ) ) col2 FROM tab0 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + COUNT( * ) * - 80 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-2810
SELECT + COUNT ( * ) * - 80 FROM tab0 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL MIN( ALL - 17 ) AS col2 FROM tab1 WHERE NOT - 49 IS NULL
----
-17

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL MIN ( ALL - 17 ) AS col2 FROM tab1 WHERE NOT - 49 IS NULL
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + MIN( DISTINCT - 34 ) AS col0 FROM tab2 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2812
SELECT + MIN ( DISTINCT - 34 ) AS col0 FROM tab2 cor0
----
-34

query I rowsort
SELECT DISTINCT 20 FROM tab2 cor0 WHERE NOT col2 IN ( col2 * + 43, - col2 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT SUM( DISTINCT 74 ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT SUM ( DISTINCT 74 ) FROM tab0 AS cor0
----
74

query I rowsort
SELECT ALL col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 / col2 IS NULL
----
144
147
159

query I rowsort
SELECT DISTINCT - + 31 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT ALL col2, 1 FROM tab2
----
23
1
40
1
58
1

query I rowsort
SELECT DISTINCT - + 33 AS col2 FROM tab1 WHERE NOT - - col0 * - - col1 / + col0 IS NULL
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT + COUNT( * ) * 13 + - 89 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-2820
SELECT + COUNT ( * ) * 13 + - 89 FROM tab1
----
-50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 = + col0
----

query I rowsort
SELECT - col1 + + 42 * + + col0 FROM tab1
----
2128
3565
3775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT - MAX( + col1 ) * - MAX( + + CAST( + 16 AS SIGNED ) ) + + ( - 58 ) FROM tab2
----
1174

skipif mysql # not compatible
query I rowsort label-2823
SELECT - MAX ( + col1 ) * - MAX ( + + CAST ( + 16 AS INTEGER ) ) + + ( - 58 ) FROM tab2
----
1174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 52 + col0 + col1 AS col1, col2 col1 FROM tab0 AS cor0
----
148
47
150
99
160
10

onlyif mysql # DIV for integer division: 
query II rowsort label-2825
SELECT col0 DIV + 97 + - col1 col2, 24 FROM tab1 AS cor0
----
-14
24
-47
24
-5
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2825
SELECT col0 / + 97 + - col1 col2, 24 FROM tab1 AS cor0
----
-14
24
-47
24
-5
24

query I rowsort
SELECT 36 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL <= - 22
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 = - 83 )
----

query I rowsort
SELECT col0 - - + col2 AS col2 FROM tab2
----
104
133
69

query I rowsort
SELECT + col1 - col2 + + col2 AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 28 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 + + - 88 FROM tab2 AS cor0
----
-13
-24
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT COUNT( DISTINCT - ( 77 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2833
SELECT COUNT ( DISTINCT - ( 77 ) ) FROM tab2
----
1

query I rowsort
SELECT ALL 65 * - 12 AS col0 FROM tab1
----
-780
-780
-780

query II rowsort
SELECT DISTINCT 17 AS col1, + col2 AS col1 FROM tab2
----
17
23
17
40
17
58

query II rowsort
SELECT col1 AS col1, col1 - col0 FROM tab2
----
51
5
67
-8
77
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2837
SELECT 3 AS col0, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-2837
SELECT 3 AS col0, - COUNT ( * ) FROM tab2
----
3
-3

query I rowsort
SELECT 11 * + + col0 * - col1 AS col0 FROM tab2
----
-25806
-54208
-55275

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1, col2, - col1, - col2 )
----

query I rowsort
SELECT - ( + col2 ) * - col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + col1 * - - 56 * + ( - - col2 ) AS col0 FROM tab2
----
172480
217616
65688

query I rowsort
SELECT ALL - col0 * + 88 FROM tab1 AS cor0
----
-4488
-7480
-8008

query I rowsort
SELECT - + col1 * + ( col2 ) + + col0 FROM tab0 cor0
----
-123
-2
-3792

query I rowsort
SELECT ALL + 93 + + + col0 FROM tab0 AS cor0
----
108
180
190

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - 35 * - 99 + ( + COUNT( ALL - col2 ) ) FROM tab1 AS cor0
----
3468

skipif mysql # not compatible
query I rowsort label-2845
SELECT - 35 * - 99 + ( + COUNT ( ALL - col2 ) ) FROM tab1 AS cor0
----
3468

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT + col2 + - col2 - + col1 DIV - 18 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2846
SELECT + col2 + - col2 - + col1 / - 18 FROM tab1 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT DISTINCT + COUNT( * ) DIV + - 58 - COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT + COUNT ( * ) / + - 58 - COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT ALL - + ( + - 34 ) + - col0 + + col1 + + + 78 DIV col1 AS col0 FROM tab1 AS cor0
----
-31
-9
2

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - + ( + - 34 ) + - col0 + + col1 + + + 78 / col1 AS col0 FROM tab1 AS cor0
----
-31
-9
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT CAST( 21 AS SIGNED ) + 15 AS col1 FROM tab2 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-2849
SELECT CAST ( 21 AS INTEGER ) + 15 AS col1 FROM tab2 AS cor0
----
36
36
36

query II rowsort
SELECT DISTINCT ( - - 23 ), col0 AS col2 FROM tab1
----
23
51
23
85
23
91

query I rowsort
SELECT + 91 * + - col1 * col2 FROM tab0
----
-19110
-346437
-9009

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 72 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col2 ) col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 > + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - - COUNT( ALL - col0 ) + + 8 col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2856
SELECT ALL - - COUNT ( ALL - col0 ) + + 8 col2 FROM tab2 AS cor0
----
11

query I rowsort
SELECT ALL + 78 + + col0 * col0 FROM tab2 AS cor0
----
2194
4174
5703

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL - 2 * - + COUNT( * ) - - + 23 * - SUM( + - col1 ) FROM tab0
----
2375

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - 2 * - + COUNT ( * ) - - + 23 * - SUM ( + - col1 ) FROM tab0
----
2375

query I rowsort
SELECT + col1 * - col1 * - + 95 AS col1 FROM tab2 WHERE NULL IS NULL
----
247095
426455
563255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, + col0 * - + 20 AS col1 FROM tab1 AS cor0
----
-59
-1700
-68
-1820
-96
-1020

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + - 56 + + + ( col1 ) + - - col0 * - col0 + + col0 * + ( - 18 ) <> - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * + - 44 + + col0 FROM tab2 AS cor0
----
-2198
-2873
-3324

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT + - ( 26 ) DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT + - ( 26 ) / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NOT 72 - - ( - + col0 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NOT 72 - - ( - + col0 ) IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL + MIN( + - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + MIN ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT + - col1, + col1 AS col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2868
SELECT - + 53 AS col2, MIN( - col1 ) FROM tab2 AS cor0
----
-53
-77

skipif mysql # not compatible
query II rowsort label-2868
SELECT - + 53 AS col2, MIN ( - col1 ) FROM tab2 AS cor0
----
-53
-77

query I rowsort
SELECT ALL + - col1 * col0 * + col2 * - + 58 FROM tab0 AS cor0
----
1059660
3312090
556974

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 16 IS NOT NULL
----

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT + - 61 / - 80 * 95 IS NULL
----
-23
-40
-58

query I rowsort
SELECT col2 * - ( - 6 ) AS col2 FROM tab0
----
282
594
60

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT DISTINCT - + CAST( + COUNT( * ) AS SIGNED ) * - + SUM( DISTINCT + - 35 ) + + - 18 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) * - + SUM ( DISTINCT + - 35 ) + + - 18 FROM tab2 AS cor0
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col2 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL - col0 * 70 AS col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL SUM( ALL - 28 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL SUM ( ALL - 28 ) FROM tab1
----
-84

query I rowsort
SELECT DISTINCT col1 * 98 AS col2 FROM tab0
----
2058
7938
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT + + 41 + + - SUM( - - col1 ) AS col0 FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + + 41 + + - SUM ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2880
SELECT + ( + CAST( 15 AS SIGNED ) ) AS col0, + COUNT( * ) * ( - 46 ) DIV + MIN( ALL 10 ) FROM tab2 AS cor0
----
15
-13

skipif mysql # not compatible
query II rowsort label-2880
SELECT + ( + CAST ( 15 AS INTEGER ) ) AS col0, + COUNT ( * ) * ( - 46 ) / + MIN ( ALL 10 ) FROM tab2 AS cor0
----
15
-13

query II rowsort
SELECT 30 AS col1, - 64 FROM tab2 AS cor0
----
30
-64
30
-64
30
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2882
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND + CAST( NULL AS SIGNED ) * col2 * - - col1 + + col0
----

skipif mysql # not compatible
query III rowsort label-2882
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND + CAST ( NULL AS INTEGER ) * col2 * - - col1 + + col0
----

query I rowsort
SELECT + 70 AS col1 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT + 56 * - + col0 - col2 AS col1 FROM tab1 AS cor0
----
-2952
-4819
-5164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL + 51 + - 30 * - - SUM( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + 51 + - 30 * - - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + 16 * + ( - col0 ) FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT 96 + - + MIN( DISTINCT - col0 ) col1 FROM tab2
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2887
SELECT 96 + - + MIN ( DISTINCT - col0 ) col1 FROM tab2
----
171

query I rowsort
SELECT - col1 + col2 + + + col2 - + + 64 * - col2 * - 94 + + 53 FROM tab2
----
-138320
-240584
-348826

query I rowsort
SELECT col1 + + col2 * col0 AS col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col0 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT + col2 DIV + col1 * + - 30 + - 9 AS col1 FROM tab2
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-2891
SELECT + col2 / + col1 * + - 30 + - 9 AS col1 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT 48 + col0 AS col1 FROM tab2 cor0
----
112
123
94

query II rowsort
SELECT DISTINCT col1 AS col1, col0 - col0 + - col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT ALL col2 + - + col0 AS col1, - col2 FROM tab2 AS cor0
----
-17
-58
-23
-23
-24
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2895
SELECT 86 DIV col2 DIV 24 - - - col1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2895
SELECT 86 / col2 / 24 - - - col1 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col0 * + col2 - col0 AS col1 FROM tab0
----
690
783
9506

query III rowsort
SELECT * FROM tab2 WHERE + col2 - + + col2 * - + ( 71 ) > col0 + - + col1 * + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 52 * + col2 AS col0 FROM tab0 AS cor0
----
2444
5148
520

query I rowsort
SELECT DISTINCT - - col0 * + col2 * 11 AS col1 FROM tab1 AS cor0
----
53856
55165
68068

query I rowsort
SELECT DISTINCT 3 + col2 * + + 98 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2257
3923
5687

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----

query II rowsort
SELECT col0 AS col0, - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2904
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2904
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT - col1 AS col1, - col2 - - + col0 AS col1 FROM tab2
----
-51
23
-67
17
-77
24

query I rowsort
SELECT DISTINCT - 2 * + col2 * + + col2 FROM tab1
----
-18432
-6962
-9248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2907
SELECT DISTINCT + CAST( - col2 AS SIGNED ) col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2907
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ( - 69 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT 18 * + col0 AS col1 FROM tab2
----
1152
1350
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT ALL + CAST( 81 AS SIGNED ) FROM tab0 cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + CAST ( 81 AS INTEGER ) FROM tab0 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT - ( + COUNT( col2 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2911
SELECT - ( + COUNT ( col2 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - 59 * + 87 + col2 * 81 FROM tab0
----
-1326
-4323
2886

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL + SUM( ALL + col0 ) FROM tab0 WHERE NOT ( + 95 ) < ( - col1 )
----
199

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + SUM ( ALL + col0 ) FROM tab0 WHERE NOT ( + 95 ) < ( - col1 )
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + ( COUNT( * ) ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2915
SELECT + ( COUNT ( * ) ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ( COUNT( * ) ) * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2916
SELECT ( COUNT ( * ) ) * + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT 5 * MIN( DISTINCT col2 ) + - COUNT( * ) AS col0 FROM tab2
----
112

skipif mysql # not compatible
query I rowsort label-2917
SELECT 5 * MIN ( DISTINCT col2 ) + - COUNT ( * ) AS col0 FROM tab2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL MAX( ALL col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL MAX ( ALL col0 ) FROM tab2
----
75

query III rowsort
SELECT * FROM tab2 WHERE + col1 * 36 + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT + COUNT( * ) * SUM( + 97 ) FROM tab2
----
873

skipif mysql # not compatible
query I rowsort label-2920
SELECT + COUNT ( * ) * SUM ( + 97 ) FROM tab2
----
873

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL - 64 * COUNT( * ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - 64 * COUNT ( * ) FROM tab2
----
-192

query I rowsort
SELECT 82 * + col0 FROM tab1
----
4182
6970
7462

query I rowsort
SELECT - 5 * 4 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT - col1 * 25 AS col1 FROM tab0
----
-2025
-25
-525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * - 67 col2 FROM tab2
----
-5963

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col0 + col2 AND + 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT DISTINCT - MIN( ALL ( - ( - col1 ) ) ) * CAST( + 94 * CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - MIN ( ALL ( - ( - col1 ) ) ) * CAST ( + 94 * CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 * + col0 AS col0 FROM tab1 WHERE NOT ( + col1 * col2 + col2 * + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT MIN( DISTINCT col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2930
SELECT MIN ( DISTINCT col2 ) AS col1 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT ALL - 68 * col2 FROM tab2
----
-1564
-2720
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT COUNT( col0 ) * 61 - COUNT( * ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-2933
SELECT COUNT ( col0 ) * 61 - COUNT ( * ) FROM tab2
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT ALL ( - col0 ) DIV - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL ( - col0 ) / - col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL + COUNT( DISTINCT ( + col1 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL + COUNT ( DISTINCT ( + col1 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL MAX( DISTINCT + ( + 85 ) ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL MAX ( DISTINCT + ( + 85 ) ) FROM tab0
----
85

query I rowsort
SELECT ALL - col1 + - 8 AS col0 FROM tab1
----
-13
-22
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT col0 DIV 3 AS col1 FROM tab0
----
29
32
5

skipif mysql # not compatible
query I rowsort label-2938
SELECT col0 / 3 AS col1 FROM tab0
----
29
32
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 + col0 col2 FROM tab1 cor0
----
-22
12
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT col0 - - CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-2940
SELECT col0 - - CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - 6 * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-2941
SELECT - 6 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT ALL + col1 + col1 FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
10
28
94

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL + col1 + col1 FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
18

skipif mysql # not compatible
query I rowsort label-2944
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT COUNT( 17 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT COUNT ( 17 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2946
SELECT DISTINCT - 29 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT - 29 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2947
SELECT - COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2947
SELECT - COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col2 * 3 AS col1 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL - MAX( col0 ) * ( 21 ) - + 86 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - MAX ( col0 ) * ( 21 ) - + 86 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT - + ( - CAST( + 59 AS SIGNED ) ) * 52 FROM tab0 AS cor0
----
3068
3068
3068

skipif mysql # not compatible
query I rowsort label-2950
SELECT - + ( - CAST ( + 59 AS INTEGER ) ) * 52 FROM tab0 AS cor0
----
3068
3068
3068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT DISTINCT COUNT( * ) + 39 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT COUNT ( * ) + 39 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2955
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) + + col2 * - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2955
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) + + col2 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab0
----
-90

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / - col1 + col0 NOT BETWEEN + col2 AND + 81
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col2 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2960
SELECT ALL - col0 FROM tab1 WHERE NULL BETWEEN ( 72 ) AND ( 43 + CAST( col0 + - col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - col0 FROM tab1 WHERE NULL BETWEEN ( 72 ) AND ( 43 + CAST ( col0 + - col1 AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT DISTINCT + SUM( - ( col0 ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + SUM ( - ( col0 ) ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 * col1 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 22 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + 80 + - col1 col1 FROM tab0 AS cor0
----
3679
779
7919

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + SUM( 36 ) FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-2966
SELECT + SUM ( 36 ) FROM tab2 cor0
----
108

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 97 > - col1
----

query I rowsort
SELECT - 1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 + + col0 <= NULL
----

query I rowsort
SELECT - col2 FROM tab2 WHERE ( NULL ) > - col2 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT CAST( + - col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2970
SELECT CAST ( + - col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT COUNT( * ) AS col2, MAX( + 79 ) FROM tab0
----
3
79

skipif mysql # not compatible
query II rowsort label-2971
SELECT COUNT ( * ) AS col2, MAX ( + 79 ) FROM tab0
----
3
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT - col1 DIV - + 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2972
SELECT - col1 / - + 93 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL MAX( - col2 ) * ( + 28 ) AS col0 FROM tab2 AS cor0
----
-644

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL MAX ( - col2 ) * ( + 28 ) AS col0 FROM tab2 AS cor0
----
-644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - ( - col1 ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1344
295
3196

query I rowsort
SELECT DISTINCT - col2 + 27 FROM tab0 AS cor0
----
-20
-72
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT COUNT( * ) * - - 38 AS col0 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2976
SELECT COUNT ( * ) * - - 38 AS col0 FROM tab0 AS cor0
----
114

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col2 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT CAST( NULL AS SIGNED ) - COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT CAST ( NULL AS INTEGER ) - COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT ( - 39 ) + SUM( DISTINCT col1 ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT ( - 39 ) + SUM ( DISTINCT col1 ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
153

query I rowsort
SELECT DISTINCT - 8 * - + 94 + + 57 AS col2 FROM tab1 cor0
----
809

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + col1 + col2 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-2094
-86
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - MAX( + col1 ) + + 68 AS col1 FROM tab1 WHERE - col2 BETWEEN ( NULL ) AND 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT - MAX ( + col1 ) + + 68 AS col1 FROM tab1 WHERE - col2 BETWEEN ( NULL ) AND 53
----
NULL

query I rowsort
SELECT + 28 + + + col0 AS col0 FROM tab2
----
103
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL + COUNT( DISTINCT 4 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + COUNT ( DISTINCT 4 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL + 73 - - 98, 62 + 22 AS col0 FROM tab2
----
171
84
171
84
171
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col1 FROM tab2 WHERE NOT col2 NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT 89 + col2, + 65 * 76 AS col0 FROM tab2
----
112
4940
129
4940
147
4940

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT + col0 DIV - 59 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2990
SELECT + col0 / - 59 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2991
SELECT ALL - 46 DIV - - ( - + SUM( ALL + - CAST( + col1 AS SIGNED ) ) ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2991
SELECT ALL - 46 / - - ( - + SUM ( ALL + - CAST ( + col1 AS INTEGER ) ) ) col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT - + col1 / + CAST( NULL AS SIGNED ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2992
SELECT - + col1 / + CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT + - COUNT( * ) + + 92 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + - COUNT ( * ) + + 92 FROM tab1 AS cor0
----
89

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + ( + 5 ) AND NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL NOT IN ( - 7 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * + col0 + col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE NULL < 66 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2998
SELECT + COUNT( CAST( - CAST( col2 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2998
SELECT + COUNT ( CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / col1 = + col1 * - col2 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + 46 FROM tab2 AS cor0 WHERE NOT col2 + + 39 IN ( + col2 )
----
110
121
92

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 >= ( NULL )
----

query I rowsort
SELECT - - ( + + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 >= col1 - - 60
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3004
SELECT - - COUNT( * ) AS col1, 81 AS col2 FROM tab0 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-3004
SELECT - - COUNT ( * ) AS col1, 81 AS col2 FROM tab0 AS cor0
----
3
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 - + col1 + - - 16 - + col1 + col0 * col2 / + 80 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT ( + col0 ) DIV - 53 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT ( + col0 ) / - 53 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL 80 * MAX( - + col2 ) FROM tab0
----
-800

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL 80 * MAX ( - + col2 ) FROM tab0
----
-800

query I rowsort
SELECT ALL + 83 AS col2 FROM tab2 WHERE NOT - 91 > NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, - 48 AS col2 FROM tab2
----
51
-48
67
-48
77
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT COUNT( * ), + COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3010
SELECT COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL COUNT( + - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL COUNT ( + - col0 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT col2 AS col1, - col0 AS col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT col2 FROM tab2 WHERE NOT 6 + + + col1 IS NOT NULL
----

query I rowsort
SELECT ( + - 25 ) FROM tab2
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col0 FROM tab1
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 21 col1, - col2 AS col2 FROM tab0
----
-21
-10
-21
-47
-21
-99

query I rowsort
SELECT - ( + 35 ) AS col0 FROM tab1
----
-35
-35
-35

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( + col0 ) / - 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3019
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= + col0
----

skipif mysql # not compatible
query III rowsort label-3019
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 6 ) NOT BETWEEN col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 48 + 85 * + - 92 * - - col0 + + col1 AS col1 FROM tab1
----
-398758
-664647
-711525

query I rowsort
SELECT ALL - ( + + col0 ) FROM tab1
----
-51
-85
-91

query II rowsort
SELECT - 0 + - + 15 AS col0, - col0 AS col1 FROM tab0 AS cor0
----
-15
-15
-15
-87
-15
-97

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab2 AS cor0
----
94

query I rowsort
SELECT 84 AS col1 FROM tab1 AS cor0 WHERE col2 <> ( + + 86 )
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT DISTINCT + COUNT( * ) + + MAX( - - col2 ) * + 38 AS col1 FROM tab1 AS cor0
----
3651

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + COUNT ( * ) + + MAX ( - - col2 ) * + 38 AS col1 FROM tab1 AS cor0
----
3651

query I rowsort
SELECT - ( - + 16 ) AS col0 FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT ALL + col1 * + col2 FROM tab0 AS cor0 WHERE 51 / - col2 IN ( col0 * - 80 * col0 )
----

query I rowsort
SELECT DISTINCT 71 - - col1 + - col1 * - col0 FROM tab2
----
2468
5076
5163

query II rowsort
SELECT col1 AS col2, 70 AS col0 FROM tab0
----
1
70
21
70
81
70

query I rowsort
SELECT 12 * - col2 - + - col1 * - + 31 FROM tab0
----
-1219
-3075
-771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT - CAST( + col2 AS SIGNED ) - col0 * - 8 FROM tab1
----
312
621
660

skipif mysql # not compatible
query I rowsort label-3032
SELECT - CAST ( + col2 AS INTEGER ) - col0 * - 8 FROM tab1
----
312
621
660

query I rowsort
SELECT DISTINCT ( + col1 ) - + + 78 + - + 1 * - - col1 AS col2 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT + + 19 * 49 + - COUNT( * ) + MAX( + ( - + 89 ) ) * - 38 * 64 FROM tab2 WHERE NOT NULL IS NOT NULL
----
217376

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + + 19 * 49 + - COUNT ( * ) + MAX ( + ( - + 89 ) ) * - 38 * 64 FROM tab2 WHERE NOT NULL IS NOT NULL
----
217376

query I rowsort
SELECT ALL - 63 + 69 * col0 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( - - col1 * col0 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT + col1 / - 37 FROM tab1 WHERE NULL IN ( - 15 * + col1 + + + CAST( + 95 AS SIGNED ) - + col1 * - + col1 )
----

skipif mysql # not compatible
query I rowsort label-3036
SELECT + col1 / - 37 FROM tab1 WHERE NULL IN ( - 15 * + col1 + + + CAST ( + 95 AS INTEGER ) - + col1 * - + col1 )
----

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) col0 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT - + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT + col0 * - - col2 < - - 5
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3039
SELECT DISTINCT - + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col0 * - - col2 < - - 5
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3040
SELECT col2 AS col2, CAST( col1 AS SIGNED ) col2 FROM tab0 cor0
----
10
21
47
81
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3040
SELECT col2 AS col2, CAST ( col1 AS INTEGER ) col2 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3041
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT + MAX( DISTINCT - 8 ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-3043
SELECT + MAX ( DISTINCT - 8 ) FROM tab0
----
-8

query I rowsort
SELECT DISTINCT + 75 * - 70 AS col2 FROM tab1 AS cor0
----
-5250

query I rowsort
SELECT ALL 96 * - + 46 AS col1 FROM tab1 AS cor0
----
-4416
-4416
-4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT ALL + 1 AS col2 FROM tab1 AS cor0 WHERE - 19 NOT BETWEEN NULL AND - 1 * - - col2
----
1
1
1

query I rowsort
SELECT + col0 * + + col0 + - 59 FROM tab1 cor0
----
2542
7166
8222

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - ( + + ( + ( + col2 ) ) ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL - + ( - + COUNT( * ) ) * + - 50 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - + ( - + COUNT ( * ) ) * + - 50 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3052
SELECT - col0 / CAST( NULL AS SIGNED ) AS col0, col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3052
SELECT - col0 / CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3053
SELECT DISTINCT - 79 DIV COUNT( * ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - 79 / COUNT ( * ) FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT - SUM( DISTINCT + 99 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3054
SELECT - SUM ( DISTINCT + 99 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 9 + - col1 + col0 - + 74 FROM tab1
----
-21
-28
15

query I rowsort
SELECT - 71 * - 87 + + col1 * + col1 FROM tab0
----
12738
6178
6618

query I rowsort
SELECT - col0 * - - col0 + ( + - col2 ) AS col1 FROM tab1
----
-2697
-7284
-8349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT DISTINCT + - COUNT( * ) * + + 57 + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT + - COUNT ( * ) * + + 57 + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT + 86 DIV 88 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3060
SELECT + 86 / 88 + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT + col1 DIV - 45 + + col0, - col0 AS col0 FROM tab2 AS cor0
----
45
-46
63
-64
74
-75

skipif mysql # not compatible
query II rowsort label-3061
SELECT + col1 / - 45 + + col0, - col0 AS col0 FROM tab2 AS cor0
----
45
-46
63
-64
74
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT + + CAST( + col1 AS SIGNED ) * + + 60 * - col2 + - ( - col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-17674
-191737
-80685

skipif mysql # not compatible
query I rowsort label-3062
SELECT + + CAST ( + col1 AS INTEGER ) * + + 60 * - col2 + - ( - col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-17674
-191737
-80685

query I rowsort
SELECT - - 21 + - col2 * - - ( ( - col2 ) ) * + col2 FROM tab2 AS cor0
----
12188
195133
64021

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL - + COUNT( * ) * - + 63 + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
576

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL - + COUNT ( * ) * - + 63 + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, - 45 * + col0 * - - col0 + - 98 col2 FROM tab1 AS cor0
----
-59
-325223
-68
-372743
-96
-117143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT + - col0 - + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT + - col0 - + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( - col0 ) + col2 + + col1 AS col0 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3068
SELECT DISTINCT - col1 + - + CAST( NULL AS SIGNED ) * + col2 + CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT - col1 + - + CAST ( NULL AS INTEGER ) * + col2 + CAST ( NULL AS REAL ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3069
SELECT + CAST( NULL AS SIGNED ) + - CAST( 13 AS SIGNED ), + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3069
SELECT + CAST ( NULL AS INTEGER ) + - CAST ( 13 AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT - col2 * + - col0 DIV - col0 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3070
SELECT - col2 * + - col0 / - col0 AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT SUM( ( + - 77 ) ) AS col2 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-3071
SELECT SUM ( ( + - 77 ) ) AS col2 FROM tab0
----
-231

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / - col2 NOT BETWEEN NULL AND + - col2
----

query I rowsort
SELECT ALL 3 AS col2 FROM tab1 cor0
----
3
3
3

query I rowsort
SELECT ALL 74 AS col0 FROM tab2 WHERE - 16 * ( 29 ) * + col0 + + 83 <> NULL
----

query I rowsort
SELECT ALL col1 * ( + 34 ) * + + col2 AS col2 FROM tab1
----
10030
108664
45696

onlyif mysql # DIV for integer division: 
query II rowsort label-3076
SELECT ALL col1, 34 DIV - col0 + + col0 + - + col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-3076
SELECT ALL col1, 34 / - col0 + + col0 + - + col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT col1 + - col1 BETWEEN NULL AND 32 DIV ( - col1 ) DIV + 82
----

skipif mysql # not compatible
query I rowsort label-3077
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT col1 + - col1 BETWEEN NULL AND 32 / ( - col1 ) / + 82
----

query I rowsort
SELECT ALL + + 18 * + + ( + 31 ) * 47 AS col0 FROM tab0 AS cor0
----
26226
26226
26226

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT COUNT( * ) + - 13 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
-13

skipif mysql # not compatible
query I rowsort label-3079
SELECT COUNT ( * ) + - 13 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
-13

query I rowsort
SELECT DISTINCT + 45 + col0 FROM tab1 cor0
----
130
136
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT ALL 58 DIV col1 AS col2 FROM tab0 AS cor0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL 58 / col1 AS col2 FROM tab0 AS cor0
----
0
2
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3082
SELECT - 59 DIV + COUNT( * ) AS col2 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-3082
SELECT - 59 / + COUNT ( * ) AS col2 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL COUNT( DISTINCT + 11 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL COUNT ( DISTINCT + 11 ) FROM tab2
----
1

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT - - 58 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 < ( - - col0 )
----
15
81
47
97
1
99

query I rowsort
SELECT col2 * - 31 AS col2 FROM tab1
----
-1829
-2108
-2976

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT NULL IN ( - 37, - col2 )
----

query I rowsort
SELECT + - 24 * + col2 * + - col0 * - ( 10 ) + col0 AS col2 FROM tab2 WHERE ( - col0 ) + - col0 + - - col1 * + - 85 + - - col1 <> col2
----
-1043925
-253874
-614336

query II rowsort
SELECT DISTINCT col1 * + col1 AS col2, col2 AS col0 FROM tab2
----
2601
23
4489
58
5929
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL - 62 * - + COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL - 62 * - + COUNT ( * ) FROM tab2
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT ALL + COUNT( * ) * - + 55 AS col1, - 26 FROM tab1 WHERE NULL IS NOT NULL
----
0
-26

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL + COUNT ( * ) * - + 55 AS col1, - 26 FROM tab1 WHERE NULL IS NOT NULL
----
0
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL - 93 + - + COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - 93 + - + COUNT ( * ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE ( - 16 * - col1 / - col0 ) IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 + - + col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT - + 62 * - col0 * col1 * - 98 + + col1 * - 1 + col2 FROM tab1 AS cor0
----
-2582246
-25987031
-4338182

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + MIN( ALL - - 51 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT + MIN ( ALL - - 51 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL COUNT( * ) * 69 AS col2 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL COUNT ( * ) * 69 AS col2 FROM tab2
----
207

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL <= + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL col2 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL col2 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE 67 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3101
SELECT DISTINCT + ( COUNT( * ) ) DIV - + 55 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3101
SELECT DISTINCT + ( COUNT ( * ) ) / - + 55 col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3102
SELECT + - 40 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT + - 40 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT SUM( - 30 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT SUM ( - 30 ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT - - 85 * + 49 * + + 64 AS col1 FROM tab0 AS cor0
----
266560
266560
266560

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3105
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + + MIN( DISTINCT - ( col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3106
SELECT + + MIN ( DISTINCT - ( col2 ) ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT col1 - + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 29 col1 FROM tab1 AS cor0
----
-29
-29
-29

query II rowsort
SELECT ALL col2, 2 - - col2 AS col2 FROM tab1
----
59
61
68
70
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT - CAST( ( - col1 ) AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3110
SELECT - CAST ( ( - col1 ) AS INTEGER ) AS col2 FROM tab2
----
51
67
77

query II rowsort
SELECT col0 AS col1, ( + col0 ) + col1 AS col0 FROM tab1
----
51
65
85
90
91
138

query I rowsort
SELECT + - col2 * - 54 FROM tab0 AS cor0
----
2538
5346
540

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 NOT IN ( col0 )
----

query I rowsort
SELECT ALL - - col2 * - 99 AS col0 FROM tab2 AS cor0
----
-2277
-3960
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3115
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + ( - col2 ) * + + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT - - col1 * - col1, + 52 AS col1 FROM tab1 AS cor0
----
-196
52
-2209
52
-25
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3118
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col1 * - col2 + - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3118
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col1 * - col2 + - CAST ( NULL AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - 10 * + col0 IS NOT NULL
----

query I rowsort
SELECT col0 * - - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT - + col0 * 34 + - 47 * + + 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-3121
SELECT - + col0 * 34 + - 47 * + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL + MIN( CAST( + 34 AS SIGNED ) ) + - ( - 86 ) AS col0 FROM tab2 cor0
----
120

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + MIN ( CAST ( + 34 AS INTEGER ) ) + - ( - 86 ) AS col0 FROM tab2 cor0
----
120

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 4 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - ( - ( col0 ) ) AS col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT + + COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3127
SELECT + + COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT MIN( + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3128
SELECT MIN ( + col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT DISTINCT 25 * col1 - - + 50 FROM tab1
----
1225
175
400

query I rowsort
SELECT ALL - + 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3131
SELECT + COUNT( * ) - + 15 DIV - 5 AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3131
SELECT + COUNT ( * ) - + 15 / - 5 AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT COUNT( * ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3132
SELECT COUNT ( * ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + + col0 + + ( col1 ) < col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT ALL + - 94 DIV + - 51 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + - 94 / + - 51 AS col2 FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT - + col2 * - col1 AS col0, + col1 AS col2 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

query II rowsort
SELECT DISTINCT + col1 + + + ( - ( + col1 ) ) * col0 + 80 AS col1, col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 * 79 <= - - col1
----
3

skipif mysql # not compatible
query I rowsort label-3137
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 * 79 <= - - col1
----
3

query I rowsort
SELECT DISTINCT + col1 * + 31 FROM tab2
----
1581
2077
2387

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT DISTINCT ( + 97 ) DIV + + ( + 31 ) + col1 + + + 7 AS col0 FROM tab1
----
15
24
57

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT ( + 97 ) / + + ( + 31 ) + col1 + + + 7 AS col0 FROM tab1
----
15
24
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + MAX( - 40 ) AS col1 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + MAX ( - 40 ) AS col1 FROM tab1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ( 18 ) * + ( - + 45 ) * - + 15 + - - COUNT( * ) + + 23 AS col1 FROM tab1
----
12176

skipif mysql # not compatible
query I rowsort label-3141
SELECT ( 18 ) * + ( - + 45 ) * - + 15 + - - COUNT ( * ) + + 23 AS col1 FROM tab1
----
12176

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - COUNT( - + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - COUNT ( - + col2 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT DISTINCT + MAX( - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT + MAX ( - col2 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab0 cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3145
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2, tab0 cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col2 / - 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 9 col2 FROM tab0 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT ALL col1 DIV - col0 + + col0 FROM tab0 cor0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL col1 / - col0 + + col0 FROM tab0 cor0
----
10
87
97

query I rowsort
SELECT col2 + + 22 AS col1 FROM tab0 AS cor0
----
121
32
69

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT - MIN( + col0 ) + MIN( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3152
SELECT - MIN ( + col0 ) + MIN ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col1 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + 36 FROM tab1 AS cor0
----
-1692
-180
-504

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 27 < - 0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 - - col1 * - col2 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + 60 * + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 60 * + COUNT ( * ) FROM tab1
----
180

query I rowsort
SELECT ALL col1 * 70 AS col0 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT DISTINCT 66 * col0 AS col2 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT DISTINCT + col1 * - ( - - ( + - col0 ) ) FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - COUNT( * ) * + MAX( ALL - + col2 ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-3161
SELECT - COUNT ( * ) * + MAX ( ALL - + col2 ) AS col0 FROM tab1
----
177

query I rowsort
SELECT + 69 + - col1 AS col2 FROM tab2 AS cor0
----
-8
18
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT DISTINCT + COUNT( * ) - MAX( ALL + + col0 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT + COUNT ( * ) - MAX ( ALL + + col0 ) FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3164
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3164
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT CAST( + 70 AS SIGNED ) * - + col2 + - + col0 FROM tab2
----
-1656
-2864
-4135

skipif mysql # not compatible
query I rowsort label-3165
SELECT CAST ( + 70 AS INTEGER ) * - + col2 + - + col0 FROM tab2
----
-1656
-2864
-4135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT + CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + 98 < - col0 * + col0 + - + col2 / + 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + ( + - 4 ) AS col1 FROM tab1 AS cor0
----
188
20
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT + ( + col2 ) * CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3169
SELECT + ( + col2 ) * CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT - col2 AS col0, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT - + ( 95 ) AS col2 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - col2 * - - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3174
SELECT * FROM tab2 WHERE NOT - - 24 IN ( - - 15, CAST( + col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3174
SELECT * FROM tab2 WHERE NOT - - 24 IN ( - - 15, CAST ( + col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( 25 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT - COUNT( * ) + COUNT( + col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT - COUNT ( * ) + COUNT ( + col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT 84 + + COUNT( * ) FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-3178
SELECT 84 + + COUNT ( * ) FROM tab1 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - 61 + + + COUNT( * ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3179
SELECT - 61 + + + COUNT ( * ) FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - - COUNT( - col1 ) + + MAX( ALL ( - + col0 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3180
SELECT - - COUNT ( - col1 ) + + MAX ( ALL ( - + col0 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
48

query II rowsort
SELECT - - 71 AS col2, col0 FROM tab2 AS cor0
----
71
46
71
64
71
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT + + MAX( col0 ) + - + 48 AS col1 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT + + MAX ( col0 ) + - + 48 AS col1 FROM tab0 AS cor0
----
49

query I rowsort
SELECT + col0 * + col1 * ( + ( - col0 ) ) + + - col1 FROM tab2 AS cor0
----
-107967
-315469
-376942

onlyif mysql # aggregate syntax: 
query II rowsort label-3184
SELECT - COUNT( * ) AS col0, + 38 * + 49 + + - 50 AS col1 FROM tab1 AS cor0
----
-3
1812

skipif mysql # not compatible
query II rowsort label-3184
SELECT - COUNT ( * ) AS col0, + 38 * + 49 + + - 50 AS col1 FROM tab1 AS cor0
----
-3
1812

query I rowsort
SELECT - 2 * + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query II rowsort
SELECT ALL - col2 + col1 * + 54 * + col1 * col0 AS col0, col2 FROM tab2 AS cor0
----
18180392
58
20490584
40
6460861
23

query III rowsort
SELECT * FROM tab2 cor0 WHERE 37 + + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + col2 * 0 col2, - col0 col2 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT ALL + col1 + 84 AS col1 FROM tab0
----
105
165
85

query I rowsort
SELECT DISTINCT - col1 * + 21 + 14 FROM tab2
----
-1057
-1393
-1603

query I rowsort
SELECT + - col2 FROM tab1 WHERE ( col2 * + col2 + + - 38 - col0 ) NOT BETWEEN + col0 + + col1 AND NULL
----

query I rowsort
SELECT col0 * - col0 + + 78 * + - col1 FROM tab1
----
-11947
-3693
-7615

query II rowsort
SELECT DISTINCT - 72 AS col0, - 64 * + - 53 AS col0 FROM tab0
----
-72
3392

query I rowsort
SELECT col0 + - col2 FROM tab0 WHERE 38 * - col1 + col0 + - 98 + - - 63 + + col1 IS NOT NULL
----
-2
-32
77

query I rowsort
SELECT - col2 + - col1 + col0 * - col2 * - 21 AS col0 FROM tab2
----
22144
53643
91225

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT 63 * COUNT( * ) AS col2 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 63 * COUNT ( * ) AS col2 FROM tab0
----
189

query II rowsort
SELECT ALL - col0 AS col1, col1 * - col0 FROM tab0
----
-15
-1215
-87
-1827
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT + + COUNT( * ) + + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT + + COUNT ( * ) + + + COUNT ( * ) FROM tab0 cor0
----
6

query II rowsort
SELECT col2, col1 + ( 27 ) * - - 65 AS col2 FROM tab0 AS cor0
----
10
1776
47
1836
99
1756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT + CAST( NULL AS SIGNED ) - + col2 + + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT + CAST ( NULL AS INTEGER ) - + col2 + + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 * ( 51 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6e7166ccfbaf47e2593704b20d46f82d

query I rowsort
SELECT - ( - - col1 ) AS col2 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT col1 * + col0, + col2 * - col0 + + + col1 AS col0 FROM tab2 AS cor0
----
2346
-1007
4928
-2483
5025
-4283

onlyif mysql # aggregate syntax: 
query II rowsort label-3204
SELECT ALL + SUM( 66 ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
198
3

skipif mysql # not compatible
query II rowsort label-3204
SELECT ALL + SUM ( 66 ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
198
3

query I rowsort
SELECT ALL - 78 * col0 FROM tab1 AS cor0
----
-3978
-6630
-7098

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----

query II rowsort
SELECT DISTINCT - - col0 * 14, + col1 FROM tab2 AS cor0
----
1050
67
644
51
896
77

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 33 * + ( 31 ) + - col1 * - 14 + + + col1 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT COUNT( * ) FROM tab0 WHERE NOT + 16 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT COUNT ( * ) FROM tab0 WHERE NOT + 16 IS NOT NULL
----
0

query II rowsort
SELECT + col2, + col0 AS col1 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT 53 * ( - - 40 ) FROM tab0
----
2120
2120
2120

query I rowsort
SELECT + col2 * + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT + 62 AS col0, 65 * + COUNT( DISTINCT - 54 ) FROM tab1
----
62
65

skipif mysql # not compatible
query II rowsort label-3213
SELECT + 62 AS col0, 65 * + COUNT ( DISTINCT - 54 ) FROM tab1
----
62
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3214
SELECT ALL - COUNT( * ), MAX( DISTINCT - col2 ) - MAX( DISTINCT col0 ) AS col1 FROM tab0
----
-3
-107

skipif mysql # not compatible
query II rowsort label-3214
SELECT ALL - COUNT ( * ), MAX ( DISTINCT - col2 ) - MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
-3
-107

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * 5 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT - MIN( - 39 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3216
SELECT - MIN ( - 39 ) FROM tab1
----
39

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + col0 * 47 * 54 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col2 FROM tab1 cor0
----
-118
-136
-192

query I rowsort
SELECT 82 * - - col0 + - col2 * + - col0 * - col0 + + + 2 FROM tab0
----
-68554
-923535
-9343

query I rowsort
SELECT ALL ( + + 29 ) AS col1 FROM tab2
----
29
29
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL - + COUNT( * ) + + + MIN( - 73 ) - + - MAX( - col1 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL - + COUNT ( * ) + + + MIN ( - 73 ) - + - MAX ( - col1 ) FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT + COUNT( col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3223
SELECT + COUNT ( col0 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3224
SELECT ALL + - 64 + 2 col1, - 65 + col1 DIV - 23 + + 10 * + 72 AS col0 FROM tab2 AS cor0
----
-62
652
-62
653
-62
653

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3224
SELECT ALL + - 64 + 2 col1, - 65 + col1 / - 23 + + 10 * + 72 AS col0 FROM tab2 AS cor0
----
-62
652
-62
653
-62
653

query I rowsort
SELECT DISTINCT + col2 * - - 52 + - ( + col0 ) - + + col2 * - 7 * + col1 FROM tab0 AS cor0
----
1903
29078
5744

query I rowsort
SELECT DISTINCT 51 - col1 FROM tab2 AS cor0
----
-16
-26
0

query I rowsort
SELECT 55 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3228
SELECT CAST( 49 AS SIGNED ), CAST( NULL AS SIGNED ) + + 45 col1 FROM tab0 AS cor0
----
49
NULL
49
NULL
49
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3228
SELECT CAST ( 49 AS INTEGER ), CAST ( NULL AS INTEGER ) + + 45 col1 FROM tab0 AS cor0
----
49
NULL
49
NULL
49
NULL

query I rowsort
SELECT - col2 * - col0 * - col1 AS col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT - col2 FROM tab2 WHERE col0 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + 53 * + col0 AS col2 FROM tab2
----
2438
3392
3975

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 NOT IN ( - col2 + col1 * + - 29, + col0 * - col2 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT - col2 * - 88 - - - ( + - 66 ) * CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3233
SELECT - col2 * - 88 - - - ( + - 66 ) * CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - 21 + col2 FROM tab2
----
-16
-7
12

query III rowsort
SELECT * FROM tab1 WHERE - col2 = col0
----

query II rowsort
SELECT ALL col2 AS col2, col1 * 30 * - col1 AS col2 FROM tab2 AS cor0
----
23
-78030
40
-177870
58
-134670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3237
SELECT COUNT( ALL + col1 ) / 35 + - + CAST( NULL AS SIGNED ) * + 28 AS col1, MAX( - col2 ) col1 FROM tab2 AS cor0
----
NULL
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3237
SELECT COUNT ( ALL + col1 ) / 35 + - + CAST ( NULL AS INTEGER ) * + 28 AS col1, MAX ( - col2 ) col1 FROM tab2 AS cor0
----
NULL
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT - + 82 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT - + 82 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3239
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + ( + + 79 ) AS SIGNED ) * + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3239
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + ( + + 79 ) AS INTEGER ) * + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= 33 * - col0 + + + 94
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3241
SELECT DISTINCT + CAST( + CAST( - 34 AS DECIMAL ) AS SIGNED ) * - - col0 FROM tab0 AS cor0
----
-2958
-3298
-510

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + CAST ( + CAST ( - 34 AS REAL ) AS INTEGER ) * - - col0 FROM tab0 AS cor0
----
-2958
-3298
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT DISTINCT - CAST( + - 54 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - CAST ( + - 54 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 36 AS col0 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL - 78 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 30 * - 57 FROM tab1 AS cor0
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT - - 58 * + 13 + - COUNT( * ) FROM tab1 AS cor0
----
751

skipif mysql # not compatible
query I rowsort label-3247
SELECT - - 58 * + 13 + - COUNT ( * ) FROM tab1 AS cor0
----
751

query II rowsort
SELECT ALL - col2 AS col2, col2 * - - 72 AS col0 FROM tab0 AS cor0
----
-10
720
-47
3384
-99
7128

query II rowsort
SELECT DISTINCT + + col1 AS col0, 67 AS col1 FROM tab2 AS cor0
----
51
67
67
67
77
67

query I rowsort
SELECT - 65 + 29 * - col1 + + col2 AS col0 FROM tab0
----
-2367
-664
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3251
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3251
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL 15 * - - col1 + + col0 AS col2 FROM tab2 AS cor0
----
1080
1219
811

query II rowsort
SELECT col0 + col0 AS col0, + 98 FROM tab0 AS cor0
----
174
98
194
98
30
98

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3254
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - col1 AS DECIMAL ) * 6 = + col0 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3254
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - col1 AS REAL ) * 6 = + col0 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( col1 ) <= 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3256
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT + col0 - + - 94 AS col0 FROM tab1 AS cor0
----
145
179
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT + - 53 - ( + COUNT( * ) ) + + + COUNT( * ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3258
SELECT + - 53 - ( + COUNT ( * ) ) + + + COUNT ( * ) FROM tab1 AS cor0
----
-53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + 60 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 93 + + 11 FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL COUNT( * ) * + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE ( - col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT ALL - col1 * - CAST( + 79 AS SIGNED ) AS col1 FROM tab0
----
1659
6399
79

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - col1 * - CAST ( + 79 AS INTEGER ) AS col1 FROM tab0
----
1659
6399
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT MAX( + col0 ) * - MIN( ALL 41 ) AS col2 FROM tab1
----
-3731

skipif mysql # not compatible
query I rowsort label-3263
SELECT MAX ( + col0 ) * - MIN ( ALL 41 ) AS col2 FROM tab1
----
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT COUNT( DISTINCT + - col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3264
SELECT COUNT ( DISTINCT + - col1 ) col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 17
----

query II rowsort
SELECT ALL + - col2 * col1 AS col2, - 55 FROM tab2 AS cor0
----
-1173
-55
-3080
-55
-3886
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT + SUM( ALL col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 / - col0 * - - 93 AND + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT + SUM ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 / - col0 * - - 93 AND + + 90
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + col0 * + col0 + + col0 = col1 / - col1 * - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 72 AS col1, col2 FROM tab0
----
72
10
72
47
72
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= 85 * - 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 71 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( + + col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3275
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + + col2 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3275
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + + col2 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 28 AS col1 FROM tab1 cor0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 95 AS col1, + col1 col2 FROM tab0
----
95
1
95
21
95
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 93 AS col1, col1 * col2 col2 FROM tab0
----
-93
210
-93
3807
-93
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - 23 + + 37 = 56 / - + col1 * + + 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT COUNT( * ) col0 FROM tab2 WHERE NOT - col0 + col0 + + col0 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3281
SELECT COUNT ( * ) col0 FROM tab2 WHERE NOT - col0 + col0 + + col0 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3282
SELECT ALL CAST( + 28 AS SIGNED ) * - + ( + 11 ) col0, + MAX( + col2 ) FROM tab1
----
-308
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3282
SELECT ALL CAST ( + 28 AS INTEGER ) * - + ( + 11 ) col0, + MAX ( + col2 ) FROM tab1
----
-308
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3283
SELECT ALL COUNT( * ) / - + AVG ( ALL + - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE ( col0 - - 91 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL COUNT ( * ) / - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE ( col0 - - 91 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3284
SELECT COUNT( * ), 13 DIV - - 89 + + 53 AS col0 FROM tab1, tab1 AS cor0 WHERE - ( ( 18 ) ) IS NOT NULL
----
9
53

skipif mysql # not compatible
query II rowsort label-3284
SELECT COUNT ( * ), 13 / - - 89 + + 53 AS col0 FROM tab1, tab1 AS cor0 WHERE - ( ( 18 ) ) IS NOT NULL
----
9
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 28 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL - COUNT( * ) * + 91 + + 67 AS col2 FROM tab2 cor0
----
-206

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - COUNT ( * ) * + 91 + + 67 AS col2 FROM tab2 cor0
----
-206

query II rowsort
SELECT DISTINCT 84 * col0, 94 AS col0 FROM tab0 cor0
----
1260
94
7308
94
8148
94

query I rowsort
SELECT ALL + 85 AS col1 FROM tab0 cor0
----
85
85
85

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - + 41 * + + col0 FROM tab1 AS cor0
----
-2091
-3485
-3731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT - + col2 / - CAST( NULL AS SIGNED ) + + - col1 + - + col1 * - 8 * - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT - + col2 / - CAST ( NULL AS INTEGER ) + + - col1 + - + col1 * - 8 * - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 75 + col0 + + 11 + + - 63 + + col2, ( - 8 ) col0 FROM tab0
----
-30
-8
-65
-8
69
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = col2 * - 37
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - 25 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col1 ) * - 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT DISTINCT - 27 + COUNT( DISTINCT + col1 ) + + - COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT - 27 + COUNT ( DISTINCT + col1 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT ALL - 77 + + col0 FROM tab1 AS cor0
----
-26
14
8

query I rowsort
SELECT + ( + col1 ) - 87 AS col1 FROM tab0
----
-6
-66
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL ( - SUM( ALL 48 ) ) * - + 20 col2 FROM tab1
----
2880

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3299
SELECT ALL ( - SUM ( ALL 48 ) ) * - + 20 col2 FROM tab1
----
2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 52 col1 FROM tab2
----
-2652
-3484
-4004

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT 81 DIV + 97 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT 81 / + 97 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN - col0 + + col1 * col2 * ( - col2 ) * col2 AND NULL
----

query I rowsort
SELECT ALL - 2 * - + 96 AS col0 FROM tab1
----
192
192
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3304
SELECT * FROM tab1 WHERE NOT col0 + CAST( NULL AS SIGNED ) * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3304
SELECT * FROM tab1 WHERE NOT col0 + CAST ( NULL AS INTEGER ) * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, 96 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + 13 * - 98 AS col1 FROM tab1
----
-108290
-115934
-64974

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT SUM( - col2 ) col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3307
SELECT DISTINCT SUM ( - col2 ) col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT col2 * + - col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-3309
SELECT - col0 DIV + ( col2 ), + 70 col0 FROM tab0 cor0
----
-8
70
0
70
0
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3309
SELECT - col0 / + ( col2 ), + 70 col0 FROM tab0 cor0
----
-8
70
0
70
0
70

query I rowsort
SELECT DISTINCT + 36 * + ( - + 97 ) + col0 FROM tab2 cor0 WHERE NOT - 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 38 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
38

query I rowsort
SELECT 1 - - 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT col1 * - 47 FROM tab0 AS cor0
----
-3807
-47
-987

query I rowsort
SELECT + - col2 * 52 AS col1 FROM tab2 cor0
----
-1196
-2080
-3016

query I rowsort
SELECT - 11 * col0 * + col2 AS col1 FROM tab0 AS cor0
----
-105633
-7755
-9570

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT DISTINCT - - SUM( DISTINCT + - 92 ) + - - 20 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - - SUM ( DISTINCT + - 92 ) + - - 20 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL + - 7 * + + col1 + - col1 AS col0 FROM tab0 AS cor0
----
-168
-648
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL + COUNT( ALL - col1 ) * - ( COUNT( * ) ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + COUNT ( ALL - col1 ) * - ( COUNT ( * ) ) FROM tab2 cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col1 * col0 * col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT - + SUM( - - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3321
SELECT - + SUM ( - - col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT 38 * + col2 AS col1 FROM tab2
----
1520
2204
874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3323
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL IN ( col1, 68 / - - 59 / + CAST( - - ( 38 ) AS SIGNED ) * col1, - - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( col1, 68 / - - 59 / + CAST ( - - ( 38 ) AS INTEGER ) * col1, - - 92 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL - SUM( + + col2 ) FROM tab0 WHERE NOT + + col2 IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - SUM ( + + col2 ) FROM tab0 WHERE NOT + + col2 IS NULL
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 * - col1 col0 FROM tab2
----
-2193
-2881
-3311

query I rowsort
SELECT - 77 + + + col0 FROM tab2 AS cor0
----
-13
-2
-31

query I rowsort
SELECT - + col1 * 57 + + ( - col2 ) FROM tab2 AS cor0
----
-2930
-3877
-4429

query I rowsort
SELECT col0 + + 31 FROM tab0 cor0
----
118
128
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT + 59 - COUNT( * ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT + 59 - COUNT ( * ) FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - 19 + - ( + col0 ) FROM tab2 AS cor0
----
-65
-83
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + 99 * col1 AS col1 FROM tab2
----
-232254
-487872
-497475

onlyif mysql # aggregate syntax: 
query II rowsort label-3333
SELECT + 92 * + - 70, + MAX( - col2 ) col0 FROM tab0
----
-6440
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3333
SELECT + 92 * + - 70, + MAX ( - col2 ) col0 FROM tab0
----
-6440
-10

query II rowsort
SELECT ALL - 0 AS col2, col0 AS col1 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT ( - + 63 ) - + 50 FROM tab0 AS cor0
----
-113
-113
-113

query I rowsort
SELECT 83 * + col2 - col1 FROM tab2 AS cor0
----
1858
3243
4747

query I rowsort
SELECT ALL + + col1 + + + col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT ALL - col1 - + col2 + CAST( col1 AS SIGNED ) + + col2 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL - col1 - + col2 + CAST ( col1 AS INTEGER ) + + col2 AS col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 >= + 98
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3341
SELECT ALL - 69 DIV + - COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - 69 / + - COUNT ( * ) FROM tab0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT - col1 DIV 87 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - col1 / 87 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3343
SELECT DISTINCT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1, MIN( ( col2 ) ) * - COUNT( + CAST( col1 AS SIGNED ) ) AS col0 FROM tab1
----
NULL
-177

skipif mysql # not compatible
query II rowsort label-3343
SELECT DISTINCT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1, MIN ( ( col2 ) ) * - COUNT ( + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1
----
NULL
-177

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 * - + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3345
SELECT MAX( DISTINCT col2 ) col1 FROM tab2 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3345
SELECT MAX ( DISTINCT col2 ) col1 FROM tab2 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT ALL col2 DIV ( + col1 ) AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL col2 / ( + col1 ) AS col1 FROM tab1
----
1
11
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT DISTINCT 48 DIV + + col1 FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT 48 / + + col1 FROM tab1
----
1
3
9

query I rowsort
SELECT + ( + - col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT 75 DIV 57 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT 75 / 57 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * col2 + + + 2 + + col2 + - + 75 * + 0 IS NULL
----

query II rowsort
SELECT ALL + + col2 + - col0 + 9, + col1 AS col2 FROM tab2 AS cor0
----
-14
51
-15
77
-8
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + + 22 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( + col1 ) >= col2
----
-2

skipif mysql # not compatible
query I rowsort label-3353
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( + col1 ) >= col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL - + MAX( - 97 ) * - + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - + MAX ( - 97 ) * - + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
-288

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + + col1 * + + col2 + col2 BETWEEN NULL AND - - 14 + - 93 * - + 64 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 * + + col2 <= col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT MAX( + 40 ) * + 10 AS col1 FROM tab2
----
400

skipif mysql # not compatible
query I rowsort label-3357
SELECT MAX ( + 40 ) * + 10 AS col1 FROM tab2
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT COUNT( * ) * 7 col1 FROM tab1
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3358
SELECT COUNT ( * ) * 7 col1 FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT + 60 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3359
SELECT + 60 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col0 * + + col2 * + + col0 * col2 AS col1 FROM tab1
----
23970816
25150225
38291344

query I rowsort
SELECT col0 * - + col2 AS col0 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col1 FROM tab0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT - - 1 + - 93 * COUNT( * ) * + + 42 * - + SUM( ALL 76 ) AS col0 FROM tab2 AS cor0
----
2671705

skipif mysql # not compatible
query I rowsort label-3363
SELECT - - 1 + - 93 * COUNT ( * ) * + + 42 * - + SUM ( ALL 76 ) AS col0 FROM tab2 AS cor0
----
2671705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + 37 * - 11 - - + col0 - - + col1 col2 FROM tab1 AS cor0
----
19267
2125
5763

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) * + 15 AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) * + 15 AS col2 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT 13 + + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-3366
SELECT 13 + + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT DISTINCT - + 54 * + col2 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-3588
-7088
-8157

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT SUM( 79 ) AS col0 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-3368
SELECT SUM ( 79 ) AS col0 FROM tab1 AS cor0
----
237

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 9 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT 81 DIV col0 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3370
SELECT 81 / col0 AS col1 FROM tab2 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 68 col0 FROM tab0 AS cor0
----
1428
5508
68

query I rowsort
SELECT - - ( col0 ) * + + col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - + SUM( ALL - + 8 ) AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3373
SELECT - + SUM ( ALL - + 8 ) AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT + ( 88 ) * - 61 + + MAX( DISTINCT + 88 ) AS col2 FROM tab0 AS cor0
----
-5280

skipif mysql # not compatible
query I rowsort label-3374
SELECT + ( 88 ) * - 61 + + MAX ( DISTINCT + 88 ) AS col2 FROM tab0 AS cor0
----
-5280

query I rowsort
SELECT DISTINCT - col0 * + + col1 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT ALL + 76 DIV 67 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + 76 / 67 AS col2 FROM tab2
----
1
1
1

query II rowsort
SELECT + 25 AS col1, + col0 + + + col1 AS col2 FROM tab1
----
25
138
25
65
25
90

query I rowsort
SELECT ALL - 84 + col1 AS col0 FROM tab1 WHERE + + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT + MIN( 69 ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT + MIN ( 69 ) AS col1 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + 6 * - COUNT( * ) * + + 0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3380
SELECT + 6 * - COUNT ( * ) * + + 0 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT + COUNT( ALL + 53 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3381
SELECT + COUNT ( ALL + 53 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT - - MAX( ALL + 34 ) AS col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3382
SELECT - - MAX ( ALL + 34 ) AS col2 FROM tab2 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT DISTINCT COUNT( * ) AS col0, 33 AS col1 FROM tab1 AS cor0
----
3
33

skipif mysql # not compatible
query II rowsort label-3383
SELECT DISTINCT COUNT ( * ) AS col0, 33 AS col1 FROM tab1 AS cor0
----
3
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3384
SELECT 43 DIV CAST( 6 AS SIGNED ) AS col0 FROM tab2
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3384
SELECT 43 / CAST ( 6 AS INTEGER ) AS col0 FROM tab2
----
7
7
7

query I rowsort
SELECT ALL + 98 + col0 FROM tab0
----
113
185
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT + COUNT( * ) + - 0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT + COUNT ( * ) + - 0 FROM tab2
----
3

query I rowsort
SELECT + + 90 AS col0 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT ALL + + 66 + MIN( - 51 ) AS col0, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-3388
SELECT ALL + + 66 + MIN ( - 51 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
15
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + col1 * + 67 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
23
3417
40
5159
58
4489

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3390
SELECT ( + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT ( + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - COUNT( * ) * + - 64 FROM tab0 cor0
----
192

skipif mysql # not compatible
query I rowsort label-3391
SELECT - COUNT ( * ) * + - 64 FROM tab0 cor0
----
192

query I rowsort
SELECT ALL 76 + - - col1 AS col1 FROM tab1 AS cor0
----
123
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE 73 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE 73 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + MIN( ALL col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3394
SELECT + MIN ( ALL col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + 24 + - + col2 AS col1 FROM tab0 AS cor0
----
-23
-75
14

query I rowsort
SELECT + + col1 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT MIN( col1 ) * + COUNT( * ) + + 40 AS col1 FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT MIN ( col1 ) * + COUNT ( * ) + + 40 AS col1 FROM tab1 cor0
----
55

query II rowsort
SELECT ALL + col1, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * + - ( + + 49 ) + + + 20 col2 FROM tab0
----
-1009
-1009
-1009

query I rowsort
SELECT - ( + col0 ) + col0 + - - 51 AS col0 FROM tab2
----
51
51
51

query I rowsort
SELECT - 79 + 40 FROM tab2
----
-39
-39
-39

query I rowsort
SELECT col2 + - 77 * + col0 FROM tab1
----
-3831
-6486
-6939

query I rowsort
SELECT DISTINCT col2 * col1 + - col1 + + col1 - + 31 + col1 AS col2 FROM tab2 AS cor0
----
1193
3126
3922

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT DISTINCT + col0 * + - 7 - - col2 DIV + col1 AS col0 FROM tab0 cor0
----
-105
-580
-609

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + col0 * + - 7 - - col2 / + col1 AS col0 FROM tab0 cor0
----
-105
-580
-609

query I rowsort
SELECT DISTINCT + 59 - col0 AS col1 FROM tab2
----
-16
-5
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 39 / - col2 NOT BETWEEN NULL AND 21 + 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT - col0 DIV + ( col1 ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3407
SELECT - col0 / + ( col1 ) FROM tab0
----
-4
-97
0

query I rowsort
SELECT + 82 + 51 AS col2 FROM tab2
----
133
133
133

query I rowsort
SELECT col2 + 96 FROM tab0 WHERE ( + 37 ) IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT - col2 DIV - col0 - + col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3410
SELECT - col2 / - col0 - + col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 + col1 ) > col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL 68 + - col0 FROM tab2
----
-7
22
4

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - ( col2 ) ) IS NULL
----

query I rowsort
SELECT ALL col1 + - 29 FROM tab1
----
-15
-24
18

query I rowsort
SELECT 13 + - col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-34
-86
3

query III rowsort
SELECT * FROM tab1 WHERE col2 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT + SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( 51 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 39 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT ( - 8 ) * col0 AS col1 FROM tab0 WHERE NOT CAST( 97 AS SIGNED ) * + ( 27 ) + col1 * - 54 <= NULL
----

skipif mysql # not compatible
query I rowsort label-3420
SELECT ( - 8 ) * col0 AS col1 FROM tab0 WHERE NOT CAST ( 97 AS INTEGER ) * + ( 27 ) + col1 * - 54 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 46 >= col1
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT ALL CAST( + AVG ( - col0 ) AS SIGNED ) col1 FROM tab0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3422
SELECT ALL CAST ( + AVG ( - col0 ) AS INTEGER ) col1 FROM tab0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL SUM( 82 ) * + COUNT( * ) FROM tab1 WHERE col0 / col0 BETWEEN ( - CAST( 50 AS SIGNED ) ) AND col2 + - col1 * CAST( - col2 / col1 AS SIGNED )
----
738

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL SUM ( 82 ) * + COUNT ( * ) FROM tab1 WHERE col0 / col0 BETWEEN ( - CAST ( 50 AS INTEGER ) ) AND col2 + - col1 * CAST ( - col2 / col1 AS INTEGER )
----
738

query I rowsort
SELECT DISTINCT 51 * 21 + - col1 FROM tab1
----
1024
1057
1066

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3425
SELECT DISTINCT + 85 AS col1 FROM tab2 WHERE - col1 + col0 IN ( CAST( + 40 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT + 85 AS col1 FROM tab2 WHERE - col1 + col0 IN ( CAST ( + 40 AS REAL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 95 ) + + 31 IN ( ( ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT - MIN( col2 ) FROM tab1 WHERE NOT + col2 * + 17 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-3427
SELECT - MIN ( col2 ) FROM tab1 WHERE NOT + col2 * + 17 IS NULL
----
-59

query I rowsort
SELECT DISTINCT + col1 - + col2 AS col2 FROM tab0 WHERE NULL <= col0 * 57
----

query I rowsort
SELECT DISTINCT col1 + col0 * col0 AS col0 FROM tab0
----
306
7590
9410

query I rowsort
SELECT DISTINCT + 65 * 13 AS col2 FROM tab2 AS cor0
----
845

query I rowsort
SELECT 49 * - 20 + - col0 * 41 AS col2 FROM tab0 AS cor0 WHERE NOT ( + ( 97 ) ) NOT BETWEEN ( 72 ) AND ( NULL )
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3433
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 89 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT 90 * - col0 + + ( + col0 + - col2 ) FROM tab0
----
-1382
-7753
-8732

query I rowsort
SELECT DISTINCT col1 - 19 * 62 FROM tab2 WHERE NOT 26 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT + COUNT( ALL + col1 ) * - 17 AS col0 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT + COUNT ( ALL + col1 ) * - 17 AS col0 FROM tab0 cor0
----
-51

query I rowsort
SELECT DISTINCT + 53 * col2 + col2 * col0 AS col1 FROM tab2 AS cor0
----
2277
4680
7424

query I rowsort
SELECT col0 * - 82 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 + col0 col1 FROM tab2 AS cor0
----
-10
19
8

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( col1 + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT - - 0 + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - - 0 + - COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ( - COUNT( * ) ) * + MAX( DISTINCT - col2 + col0 * col2 ) FROM tab0 AS cor0
----
-28512

skipif mysql # not compatible
query I rowsort label-3443
SELECT ( - COUNT ( * ) ) * + MAX ( DISTINCT - col2 + col0 * col2 ) FROM tab0 AS cor0
----
-28512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col0 FROM tab0 cor0 WHERE col0 * - col2 IS NOT NULL
----
25
25
25

query I rowsort
SELECT ALL ( + col0 ) + + 10 AS col1 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT DISTINCT + 85 * col0 * 41 AS col1 FROM tab1
----
177735
296225
317135

query I rowsort
SELECT - 89 * - - col1 AS col0 FROM tab2
----
-4539
-5963
-6853

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 37 ) NOT IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 24 ) = - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + + col0 AS col2 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT col1 - - - col1 * + col1 AS col0 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT ALL - 58 * - 83 AS col0 FROM tab0
----
4814
4814
4814

query III rowsort
SELECT * FROM tab1 WHERE + col1 + 42 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL + COUNT( * ) * + MIN( + 66 ) FROM tab0 WHERE NOT + 41 * col0 NOT IN ( col2 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL + COUNT ( * ) * + MIN ( + 66 ) FROM tab0 WHERE NOT + 41 * col0 NOT IN ( col2 * col2 )
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 * 92 FROM tab0
----
-203228
-901692
-9200

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 33 FROM tab0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT + COUNT( * ) - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3458
SELECT + COUNT ( * ) - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE - 45 * + 0 NOT BETWEEN ( col2 ) AND NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL CAST( + col2 AS SIGNED ) * col1 + + col2 AS col2 FROM tab0 AS cor0
----
198
220
3854

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL CAST ( + col2 AS INTEGER ) * col1 + + col2 AS col2 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT - 5 * + 81 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col0 + + 66 FROM tab0 AS cor0
----
153
163
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3463
SELECT * FROM tab1 AS cor0 WHERE col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3463
SELECT * FROM tab1 AS cor0 WHERE col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 67 + col2 + - 41 * - col0 FROM tab1 AS cor0
----
2120
3477
3732

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT COUNT( * ) FROM tab0 WHERE NOT + - col0 + + 32 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT COUNT ( * ) FROM tab0 WHERE NOT + - col0 + + 32 > NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT - + 5 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL + - SUM( col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL + - SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 59 AS col0, 53 - - col0 * - col0 col2 FROM tab1 cor0
----
-59
-2548
-59
-7172
-59
-8228

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT SUM( DISTINCT + ( - + 19 ) ) col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3470
SELECT SUM ( DISTINCT + ( - + 19 ) ) col1 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 + 5 + + ( col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( col2 ) / - col1 FROM tab1 AS cor0 WHERE NOT - col0 + + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 35 ) IS NULL
----
-51
-67
-77

query II rowsort
SELECT ALL + 20 AS col1, col2 * 62 FROM tab0 AS cor0
----
20
2914
20
6138
20
620

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT COUNT( * ) * 72 AS col2 FROM tab2 cor0 WHERE NOT ( col1 ) <> col2 OR + 38 / col0 - 78 NOT IN ( 64 * - col1 + - 34 )
----
216

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT COUNT ( * ) * 72 AS col2 FROM tab2 cor0 WHERE NOT ( col1 ) <> col2 OR + 38 / col0 - 78 NOT IN ( 64 * - col1 + - 34 )
----
216

query II rowsort
SELECT DISTINCT + + 26, col1 FROM tab1 AS cor0
----
26
14
26
47
26
5

query I rowsort
SELECT col0 * + + 35 * col2 * 2 FROM tab0 AS cor0
----
49350
60900
672210

query I rowsort
SELECT 77 + + col1 FROM tab1 AS cor0 WHERE NOT ( col2 * + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL - + SUM( 19 ) AS col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL - + SUM ( 19 ) AS col1 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT ALL col1 / + + col0 AS col0 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT col1 * - 46 * + CAST( + 10 AS SIGNED ) * 31 FROM tab1
----
-199640
-670220
-71300

skipif mysql # not compatible
query I rowsort label-3481
SELECT col1 * - 46 * + CAST ( + 10 AS INTEGER ) * 31 FROM tab1
----
-199640
-670220
-71300

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 BETWEEN ( - col0 ) AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3483
SELECT ALL * FROM tab2 WHERE NULL = ( - - CAST( + - 94 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3483
SELECT ALL * FROM tab2 WHERE NULL = ( - - CAST ( + - 94 AS REAL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * col0 > ( 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 79 * + col0 AS col1 FROM tab1
----
4029
6715
7189

query I rowsort
SELECT DISTINCT col0 + 0 AS col2 FROM tab1 WHERE + 71 * + + ( col2 ) <> col1
----
51
85
91

query I rowsort
SELECT - col2 + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-98
11
34

query I rowsort
SELECT ALL - ( 84 ) * + col1 + + col2 AS col0 FROM tab0
----
-1754
-6757
15

query III rowsort
SELECT ALL * FROM tab0 WHERE + 0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( col1 ) + - + ( - col1 ) * + col1 FROM tab0 AS cor0
----
2
462
6642

query I rowsort
SELECT ALL + col2 * 13 + - - col1 - + 56 * col0 * - 15 FROM tab2 AS cor0
----
38990
54357
63821

query I rowsort
SELECT - + 38 + 96 AS col2 FROM tab1 AS cor0
----
58
58
58

query II rowsort
SELECT ALL + col1 + - col1 AS col2, 39 + + col2 AS col2 FROM tab2 AS cor0
----
0
62
0
79
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT DISTINCT COUNT( * ) + MAX( - 9 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT COUNT ( * ) + MAX ( - 9 ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + col1 * col2
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 16 IN ( 42 + 38 )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT - COUNT( * ) * - 89 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - COUNT ( * ) * - 89 FROM tab2 AS cor0
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT + ( + - CAST( + col1 AS SIGNED ) ) - + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-3500
SELECT + ( + - CAST ( + col1 AS INTEGER ) ) - + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-162
-2
-42

query I rowsort
SELECT DISTINCT - col0 * - col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + ( - - 14 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL COUNT( - + 8 ) + 1 + - - 10 AS col0 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL COUNT ( - + 8 ) + 1 + - - 10 AS col0 FROM tab1 AS cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 50 col0 FROM tab1 AS cor0
----
-2550
-4250
-4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col0 FROM tab2 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 13 * - + 55 ) BETWEEN - col1 * + - 37 + 54 AND + col2 * col2
----

query I rowsort
SELECT DISTINCT + ( - ( - 69 ) ) + 61 FROM tab2 AS cor0
----
130

query I rowsort
SELECT ALL + col2 + - col1 + - 80 FROM tab2 AS cor0
----
-108
-117
-89

query I rowsort
SELECT DISTINCT 84 - + col0 + col1 FROM tab1 AS cor0
----
4
40
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT ALL ( COUNT( * ) ) DIV 1 AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL ( COUNT ( * ) ) / 1 AS col1 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT - 38 + col1 FROM tab0
----
-17
-37
43

query I rowsort
SELECT DISTINCT col0 + + + col1 / col0 AS col0 FROM tab2 WHERE NOT ( NOT NULL NOT IN ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT + 58 col0 FROM tab1 WHERE + 12 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3512
SELECT + 58 col0 FROM tab1 WHERE + 12 < + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 + + 44 FROM tab0
----
143
54
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > 44
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3515
SELECT DISTINCT 70 DIV - COUNT( * ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT 70 / - COUNT ( * ) FROM tab1
----
-23

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( col2 * + col2 * + 19 IS NULL )
----

query I rowsort
SELECT ALL + col0 - - 52 FROM tab1
----
103
137
143

query I rowsort
SELECT ALL ( + 22 ) FROM tab0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT + MIN( - 53 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT + MIN ( - 53 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3520
SELECT ALL - 18 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) <> ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - 18 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) <> ( - col0 )
----

query I rowsort
SELECT ALL + + col2 * col1 + - 51 AS col2 FROM tab2 AS cor0
----
1122
3029
3835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 AS col2, + 78 * - - col0 col0 FROM tab1 AS cor0
----
-14
3978
-47
7098
-5
6630

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT - - COUNT( * ) + + SUM( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < + col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT - - COUNT ( * ) + + SUM ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < + col0 * col2
----
NULL

query II rowsort
SELECT ALL - 41, col1 AS col0 FROM tab2 AS cor0
----
-41
51
-41
67
-41
77

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 8 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3527
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST( - + col2 AS SIGNED ) * col1 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3527
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST ( - + col2 AS INTEGER ) * col1 ) = NULL
----

query I rowsort
SELECT DISTINCT - + ( + - col0 ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT CAST( + 94 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-3529
SELECT CAST ( + 94 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT DISTINCT 24 / 57 FROM tab2 WHERE NOT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * col0 + + + col1 * + - col0 + col2 NOT BETWEEN ( ( - 17 ) * col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT 24 / 57 FROM tab2 WHERE NOT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 + + + col1 * + - col0 + col2 NOT BETWEEN ( ( - 17 ) * col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 / + col0 AS col0 FROM tab0 WHERE NULL < ( - 88 * + - 70 * 77 / + 24 * - - col1 * - + 83 )
----

query I rowsort
SELECT ALL ( + + col2 ) * - col2 - + 4 * + col1 + + col2 FROM tab2
----
-1868
-3574
-710

query I rowsort
SELECT col2 * - 19 AS col0 FROM tab0
----
-1881
-190
-893

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT + col0 + - col1 AS col0 FROM tab0 WHERE NOT - col1 DIV - + 47 NOT IN ( - ( - col1 ) DIV - col2 )
----
96

skipif mysql # not compatible
query I rowsort label-3534
SELECT + col0 + - col1 AS col0 FROM tab0 WHERE NOT - col1 / - + 47 NOT IN ( - ( - col1 ) / - col2 )
----
96

query I rowsort
SELECT - - col0 + - 8 / + + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 - - col2 FROM tab0 WHERE NOT - 46 IS NULL
----
-77
2
32

query I rowsort
SELECT 22 + - col1 AS col0 FROM tab2
----
-29
-45
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT ALL + col1 col0 FROM tab2 WHERE NOT - 24 <> CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3538
SELECT ALL + col1 col0 FROM tab2 WHERE NOT - 24 <> CAST ( + - col0 AS INTEGER )
----

query I rowsort
SELECT - col2 + + - col2 + col0 FROM tab2
----
-16
-41
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3540
SELECT * FROM tab1 AS cor0 WHERE ( CAST( - 85 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3540
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( - 85 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL col1 + + 67 + - col2 FROM tab1 AS cor0
----
-15
13
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT + COUNT( ALL - col0 ) + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + COUNT ( ALL - col0 ) + + COUNT ( * ) FROM tab0 cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT ALL CAST( - col1 AS SIGNED ) + - 74 * + col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL CAST ( - col1 AS INTEGER ) + - 74 * + col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

query I rowsort
SELECT ALL - 70 + - + col2 FROM tab2
----
-110
-128
-93

query I rowsort
SELECT ALL ( - 4 ) * + 43 - + - 33 FROM tab1
----
-139
-139
-139

query I rowsort
SELECT 8 - - col0 + - 5 * col1 * + ( col0 ) AS col1 FROM tab2
----
-11676
-24568
-25042

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT COUNT( - 85 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT COUNT ( - 85 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ( - - ( - - col0 ) ) - - col2 FROM tab0
----
196
62
97

query I rowsort
SELECT 49 - - 90 AS col1 FROM tab2
----
139
139
139

query I rowsort
SELECT DISTINCT col1 - + 1 + + col0 FROM tab2
----
140
141
96

query I rowsort
SELECT ALL + 89 AS col2 FROM tab1 WHERE NULL >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT - - col2 * + col2 AS col0 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT DISTINCT - MAX( - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT - MAX ( - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + 72 * + COUNT( * ) FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 72 * + COUNT ( * ) FROM tab2 AS cor0
----
216

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT + col1 = ( NULL )
----

query I rowsort
SELECT ALL + col1 * + - col2 * - col0 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT + + 64 * - - 60 FROM tab0 AS cor0
----
3840
3840
3840

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col1 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) FROM tab0, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) FROM tab0, tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT 31 - 54 * - + col2 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 96 / + + 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT col0 * + CAST( NULL AS SIGNED ) + ( - 6 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT col0 * + CAST ( NULL AS INTEGER ) + ( - 6 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT + 0 * + col2 * col2 DIV + 97 AS col2 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT + 0 * + col2 * col2 / + 97 AS col2 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + 39 ) AS col1 FROM tab0, tab1 cor0
----
39

query I rowsort
SELECT col1 + - col2 + + ( - col2 ) + + col1 + + 8 + - + 37 * - 83 * - col2 FROM tab1
----
-181289
-208862
-294972

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3571
SELECT - col2 DIV CAST( + - col1 AS SIGNED ) + - ( + - col1 ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3571
SELECT - col2 / CAST ( + - col1 AS INTEGER ) + - ( + - col1 ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - 73 + col0 FROM tab2 AS cor0
----
-27
-9
2

query II rowsort
SELECT 20 + + - ( - col1 ) * + 60 + - ( - col1 ) * + col1, col1 FROM tab1 AS cor0
----
1056
14
345
5
5049
47

query I rowsort
SELECT DISTINCT 26 + - - col1 * - col2 FROM tab1 AS cor0
----
-1318
-269
-3170

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT COUNT( DISTINCT 41 ) FROM tab0 AS cor0 WHERE col2 BETWEEN + 0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3575
SELECT COUNT ( DISTINCT 41 ) FROM tab0 AS cor0 WHERE col2 BETWEEN + 0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL - - col0 * - 2 * col0 * 38 FROM tab2 AS cor0 WHERE NOT col0 IN ( - - col1 + + CAST( NULL AS SIGNED ) + 55, - 39, - col0 / CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL - - col0 * - 2 * col0 * 38 FROM tab2 AS cor0 WHERE NOT col0 IN ( - - col1 + + CAST ( NULL AS INTEGER ) + 55, - 39, - col0 / CAST ( NULL AS INTEGER ) + col1 )
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE - 81 <= NULL
----

query I rowsort
SELECT ALL - + 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - col2 AND - - col2
----

query II rowsort
SELECT DISTINCT col2, - 15 AS col1 FROM tab2
----
23
-15
40
-15
58
-15

query I rowsort
SELECT 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT COUNT( * ) - - 53 col1 FROM tab1
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3582
SELECT COUNT ( * ) - - 53 col1 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL COUNT( + 32 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL COUNT ( + 32 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 57 + + col1 FROM tab1 AS cor0
----
104
62
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - ( 38 )
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - ( 38 )
----
0

query II rowsort
SELECT 93 + 86 * + + col2, col0 AS col0 FROM tab2 AS cor0
----
2071
46
3533
64
5081
75

query I rowsort
SELECT ALL - + col0 + + 4 FROM tab1 AS cor0
----
-47
-81
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL COUNT( * ) - - 39 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL COUNT ( * ) - - 39 FROM tab2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT - AVG ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - MIN( 76 ) AS col0 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-3593
SELECT - MIN ( 76 ) AS col0 FROM tab0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT - ( - COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3594
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT - CAST( NULL AS SIGNED ) / - ( - ( + - col0 ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT - CAST ( NULL AS INTEGER ) / - ( - ( + - col0 ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + col0 ) * col0 - + col2 AS col0 FROM tab0
----
178
7559
9310

query I rowsort
SELECT ALL - col1 * - + ( 47 ) FROM tab1
----
2209
235
658

query I rowsort
SELECT ( - + ( + col0 ) ) AS col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT DISTINCT - - 1 + + col0 DIV - + 19 FROM tab0 WHERE NULL IS NULL
----
-3
-4
1

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT - - 1 + + col0 / - + 19 FROM tab0 WHERE NULL IS NULL
----
-3
-4
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL ( - CAST( - 35 AS SIGNED ) ) * col1 AS col0 FROM tab0
----
2835
35
735

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL ( - CAST ( - 35 AS INTEGER ) ) * col1 AS col0 FROM tab0
----
2835
35
735

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * - 76 + + col2 + + col0 + 75 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 * 61 * + ( - 79 ) ) <= NULL
----

query I rowsort
SELECT + ( - ( - 52 ) ) + - + col1 AS col0 FROM tab1 AS cor0
----
38
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 79 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3604
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 79 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL - COUNT( * ) * + + COUNT( * ) + - + 95 AS col1 FROM tab1 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) + - + 95 AS col1 FROM tab1 AS cor0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL COUNT( * ) + SUM( col1 ) * + + ( - - SUM( col0 ) ) - SUM( + 90 ) col2 FROM tab1 AS cor0
----
14715

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3606
SELECT ALL COUNT ( * ) + SUM ( col1 ) * + + ( - - SUM ( col0 ) ) - SUM ( + 90 ) col2 FROM tab1 AS cor0
----
14715

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3607
SELECT + 85 * + col1 * + col2 AS col1, ( col0 ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
17850
87
323595
15
8415
97

skipif mysql # not compatible
query II rowsort label-3607
SELECT + 85 * + col1 * + col2 AS col1, ( col0 ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
17850
87
323595
15
8415
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT DISTINCT - + col2 DIV + col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT - + col2 / + col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 2 + + + 66 - - col0 + + 81 / + + 95 + col2 * + 3 * col1 NOT IN ( - ( + col2 ) - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( ( + col0 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL MIN( DISTINCT col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL MIN ( DISTINCT col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL COUNT( col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL COUNT ( col2 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 17 ) col0 FROM tab0
----
17
17
17

query I rowsort
SELECT + 30 * + col1 FROM tab1
----
1410
150
420

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3615
SELECT DISTINCT - 47 / 31 / - CAST( - col2 AS DECIMAL ) AS col0, col2 + col0 * + 81 / - 42 * - ( + col0 ) AS col2 FROM tab1 WHERE NOT NULL IN ( - + 17 + - col1 + - 14 )
----

skipif mysql # not compatible
query II rowsort label-3615
SELECT DISTINCT - 47 / 31 / - CAST ( - col2 AS REAL ) AS col0, col2 + col0 * + 81 / - 42 * - ( + col0 ) AS col2 FROM tab1 WHERE NOT NULL IN ( - + 17 + - col1 + - 14 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3616
SELECT COUNT( * ) DIV 71 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3616
SELECT COUNT ( * ) / 71 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - 97 * + COUNT( * ) AS col2 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-3617
SELECT - 97 * + COUNT ( * ) AS col2 FROM tab2
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT col0 DIV + 95 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT col0 / + 95 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - - col2 ) FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + col0 * + - col1 * + col0 AS col0 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT 99 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT 99 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
102

query I rowsort
SELECT - col2 + + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT ALL col2 + - CAST( - 85 AS SIGNED ) AS col0 FROM tab0
----
132
184
95

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL col2 + - CAST ( - 85 AS INTEGER ) AS col0 FROM tab0
----
132
184
95

query I rowsort
SELECT ALL AVG ( + - col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 2 + col2 FROM tab1 AS cor0
----
57
66
94

query II rowsort
SELECT ALL - + ( + 72 ) AS col2, ( col2 ) + 20 + + - 21 * + ( + 56 ) FROM tab1 AS cor0
----
-72
-1060
-72
-1088
-72
-1097

query II rowsort
SELECT + col1 - + + col1 AS col1, col0 + - - col0 + + ( - col2 ) * - 96 FROM tab0 AS cor0
----
0
1134
0
4542
0
9698

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT + - SUM( DISTINCT + col2 ) AS col1, - 9 FROM tab2 AS cor0
----
-121
-9

skipif mysql # not compatible
query II rowsort label-3628
SELECT + - SUM ( DISTINCT + col2 ) AS col1, - 9 FROM tab2 AS cor0
----
-121
-9

query II rowsort
SELECT ALL - col2 AS col2, + col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT + 18 FROM tab0 WHERE NOT NULL IS NOT NULL
----
18
18
18

query II rowsort
SELECT ALL 63 AS col0, col2 AS col2 FROM tab0
----
63
10
63
47
63
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3632
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) / - col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3632
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) / - col2 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col1 * - 9 - - col0 FROM tab2 AS cor0
----
-413
-528
-629

query II rowsort
SELECT DISTINCT col2, + 53 AS col0 FROM tab1 AS cor0
----
59
53
68
53
96
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + 0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3636
SELECT ALL - CAST( - MIN( DISTINCT - + col0 ) AS DECIMAL ) FROM tab0 cor0 WHERE NOT col0 BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - CAST ( - MIN ( DISTINCT - + col0 ) AS REAL ) FROM tab0 cor0 WHERE NOT col0 BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3637
SELECT - + col1 DIV - col0 - col2 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

skipif mysql # not compatible
query II rowsort label-3637
SELECT - + col1 / - col0 - col2 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT 77 * + - col2, 9 AS col2 FROM tab0
----
-3619
9
-7623
9
-770
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL SUM( DISTINCT col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3639
SELECT ALL SUM ( DISTINCT col0 ) col0 FROM tab1
----
227

query II rowsort
SELECT DISTINCT - col2 * 79, col0 FROM tab2
----
-1817
46
-3160
64
-4582
75

query I rowsort
SELECT col1 * - - col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col0
----

query I rowsort
SELECT DISTINCT - col2 + - - 31 FROM tab1 AS cor0
----
-28
-37
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3644
SELECT - 26 + CAST( - + ( + col1 ) AS SIGNED ) AS col0, - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3644
SELECT - 26 + CAST ( - + ( + col1 ) AS INTEGER ) AS col0, - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - col2 + - + 87 AS col2 FROM tab0
----
-121
-98
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL - MIN( ALL - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL - MIN ( ALL - col1 ) AS col0 FROM tab2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT + CAST( + + COUNT( * ) AS SIGNED ) + + - ( ( - - 50 ) ) AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-3647
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) + + - ( ( - - 50 ) ) AS col2 FROM tab2
----
-47

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE - col1 + - col2 / + col1 NOT BETWEEN + col1 AND 1
----
-15
-87
-97

query I rowsort
SELECT ALL + 25 + + - col0 AS col0 FROM tab0 AS cor0
----
-62
-72
10

query I rowsort
SELECT ALL ( + + 42 ) - + + 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 - 32 col1 FROM tab0
----
673
838
9571

query I rowsort
SELECT + 43 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT + - 20 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3653
SELECT + - 20 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT + + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3654
SELECT + + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT - col1 * - col0 * + + 52 AS col0 FROM tab2 AS cor0
----
121992
256256
261300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab0
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 6 NOT IN ( + + col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col1 FROM tab2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT COUNT( ALL col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3659
SELECT COUNT ( ALL col1 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( - col2 ) * - + col1 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-18270
-57105
-9603

query I rowsort
SELECT ALL 36 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + 34, col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
34
1
34
21
34
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL - col0 * + ( + CAST( - 29 AS SIGNED ) ) FROM tab1
----
1479
2465
2639

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL - col0 * + ( + CAST ( - 29 AS INTEGER ) ) FROM tab1
----
1479
2465
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT DISTINCT ( COUNT( 7 ) ) AS col0 FROM tab0 WHERE NULL >= + 67
----
0

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT ( COUNT ( 7 ) ) AS col0 FROM tab0 WHERE NULL >= + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT + 50 + - COUNT( * ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3665
SELECT + 50 + - COUNT ( * ) AS col0 FROM tab1
----
47

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT + - COUNT( * ) + - 92 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + - COUNT ( * ) + - 92 FROM tab2 AS cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) IN ( col0, col1 + - 21, 22 * - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT + - 85 * 39 - MIN( DISTINCT + - col2 ) FROM tab0 cor0 WHERE 64 * - - col2 IS NOT NULL
----
-3216

skipif mysql # not compatible
query I rowsort label-3669
SELECT + - 85 * 39 - MIN ( DISTINCT + - col2 ) FROM tab0 cor0 WHERE 64 * - - col2 IS NOT NULL
----
-3216

query I rowsort
SELECT ALL + col2 + - ( 84 ) AS col1 FROM tab0 AS cor0
----
-37
-74
15

query I rowsort
SELECT DISTINCT - + col2 + + col1 * + + ( col1 ) + - col2 AS col2 FROM tab2 cor0
----
2555
4373
5849

query II rowsort
SELECT DISTINCT col2 AS col2, col1 AS col0 FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT DISTINCT COUNT( * ) * + - 33 FROM tab2 cor0 WHERE ( NULL ) <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT COUNT ( * ) * + - 33 FROM tab2 cor0 WHERE ( NULL ) <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * - col2 * - 57 BETWEEN NULL AND 68
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + ( 80 ) + + col1 col1 FROM tab0 AS cor0
----
4881
4901
4961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT - CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3676
SELECT - CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT 43 * + col0 AS col0 FROM tab1
----
2193
3655
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT ( - + COUNT( * ) ) * + 25 AS col2 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT ( - + COUNT ( * ) ) * + 25 AS col2 FROM tab0
----
-75

query II rowsort
SELECT ALL col2 - + - col1, - 53 AS col2 FROM tab0
----
100
-53
128
-53
31
-53

query II rowsort
SELECT ALL 58 * - 27 AS col0, col1 FROM tab2
----
-1566
51
-1566
67
-1566
77

query I rowsort
SELECT ( - 41 ) * + col1 AS col1 FROM tab2
----
-2091
-2747
-3157

query II rowsort
SELECT DISTINCT + col0 * + col0, col1 + + col2 AS col1 FROM tab0
----
225
128
7569
31
9409
100

onlyif mysql # DIV for integer division: 
query II rowsort label-3683
SELECT DISTINCT - col0 DIV + - col0 AS col1, col1 * ( - + 28 ) + - col1 FROM tab1
----
1
-1363
1
-145
1
-406

skipif mysql # not compatible
query II rowsort label-3683
SELECT DISTINCT - col0 / + - col0 AS col1, col1 * ( - + 28 ) + - col1 FROM tab1
----
1
-1363
1
-145
1
-406

query I rowsort
SELECT ( - 58 ) - - col2 FROM tab0
----
-11
-48
41

query I rowsort
SELECT ALL + + 79 * + + col1 * - col1 FROM tab0 AS cor0
----
-34839
-518319
-79

query II rowsort
SELECT DISTINCT - 7 + ( col1 ) + + col0 AS col1, - col0 AS col2 FROM tab2 cor0
----
134
-64
135
-75
90
-46

query I rowsort
SELECT - 60 + 73 AS col1 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE - col2 * col2 IS NULL
----

query I rowsort
SELECT 17 + - 51 * + + 5 AS col1 FROM tab0 AS cor0
----
-238
-238
-238

query I rowsort
SELECT DISTINCT col1 + - + 63 AS col2 FROM tab0 AS cor0
----
-42
-62
18

query I rowsort
SELECT - - col0 * + col1 + - - 63 AS col1 FROM tab1 AS cor0
----
4340
488
777

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT ALL - col0 DIV - 14 FROM tab1
----
3
6
6

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL - col0 / - 14 FROM tab1
----
3
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL + + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT + SUM( - - col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-3696
SELECT + SUM ( - - col0 ) FROM tab0 cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT + + 54 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3697
SELECT + + 54 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT ALL col0 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL col0 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3699
SELECT - col2 * + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT - col2 * + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( + 97 AS SIGNED ) FROM tab2 WHERE + col0 - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( + 97 AS INTEGER ) FROM tab2 WHERE + col0 - + col1 IS NULL
----

query II rowsort
SELECT DISTINCT + 57 AS col1, 4 + - - col2 FROM tab0
----
57
103
57
14
57
51

query II rowsort
SELECT DISTINCT col1 AS col0, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab1 WHERE + 37 + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * col2 = ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT DISTINCT 95 DIV col1 FROM tab0
----
1
4
95

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT 95 / col1 FROM tab0
----
1
4
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3706
SELECT col2, col1 + - CAST( col2 AS SIGNED ) + 50 AS col0 FROM tab1
----
59
-4
68
29
96
-32

skipif mysql # not compatible
query II rowsort label-3706
SELECT col2, col1 + - CAST ( col2 AS INTEGER ) + 50 AS col0 FROM tab1
----
59
-4
68
29
96
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT - COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT - - 30 + COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3708
SELECT - - 30 + COUNT ( * ) FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT 97 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3709
SELECT 97 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT ALL + col2 DIV 95 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + col2 / 95 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 WHERE 34 BETWEEN col0 AND NULL
----

query I rowsort
SELECT + - 3 AS col0 FROM tab0 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT COUNT( * ) + + - SUM( - - 36 ) AS col0 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT COUNT ( * ) + + - SUM ( - - 36 ) AS col0 FROM tab2 AS cor0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( + - ( col0 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( + - ( col0 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT - - col0 + + col0 - - - 22, col1 FROM tab2 cor0
----
106
77
128
67
70
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + - COUNT( * ) * + - 32 + 88 AS col2 FROM tab0 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-3716
SELECT + - COUNT ( * ) * + - 32 + 88 AS col2 FROM tab0 AS cor0
----
184

query I rowsort
SELECT col0 + + col1 - - col1 AS col0 FROM tab1 AS cor0
----
185
79
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT ALL - col1 DIV + col2 + - + 42 FROM tab0 AS cor0
----
-42
-43
-44

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - col1 / + col2 + - + 42 FROM tab0 AS cor0
----
-42
-43
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT ALL - + CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL - + CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3720
SELECT ALL AVG ( 81 ) * - CAST( + - 55 AS SIGNED ) - + COUNT( * ) AS col1, COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3720
SELECT ALL AVG ( 81 ) * - CAST ( + - 55 AS INTEGER ) - + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL
0

query I rowsort
SELECT - 62 + col0 FROM tab1 AS cor0
----
-11
23
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + + col1 AS col1, + col1 col2 FROM tab0 cor0
----
162
81
2
1
42
21

query I rowsort
SELECT DISTINCT col2 * - 7 FROM tab1
----
-413
-476
-672

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
-59
-68
-96

query II rowsort
SELECT 22 + col2 + + 47, + col1 FROM tab1
----
128
5
137
47
165
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT 71 * - - COUNT( * ) AS col0 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-3727
SELECT 71 * - - COUNT ( * ) AS col0 FROM tab0
----
213

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 + - - col0 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT + - COUNT( * ) - COUNT( * ) AS col1 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT + - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 cor0
----
-6

query I rowsort
SELECT ALL + col0 * - + ( col1 ) AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT + col1 * col2 * col2 < + col2
----
10
47
99

query I rowsort
SELECT 44 * - col0 * + + col2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) > - col2 / - col0 * + 98
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT DISTINCT col2 * col0 DIV + + 81 + + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
10
118
13

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT col2 * col0 / + + 81 + + col1 / col0 AS col0 FROM tab0 AS cor0
----
10
118
13

query I rowsort
SELECT DISTINCT 50 * + + col2 FROM tab2 AS cor0
----
1150
2000
2900

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + - 98 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3738
SELECT ALL + CAST( col2 AS SIGNED ) DIV - - col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + CAST ( col2 AS INTEGER ) / - - col1 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT 5 * MIN( + 63 ) * - 49 + - 40 FROM tab1
----
-15475

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT 5 * MIN ( + 63 ) * - 49 + - 40 FROM tab1
----
-15475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT + col0 AS col2 FROM tab0 cor0 WHERE CAST( col0 AS SIGNED ) + - - col0 = + col2 * + 58 * + col1
----

skipif mysql # not compatible
query I rowsort label-3742
SELECT + col0 AS col2 FROM tab0 cor0 WHERE CAST ( col0 AS INTEGER ) + - - col0 = + col2 * + 58 * + col1
----

query I rowsort
SELECT - - 72 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT - col2 + col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT - col2 + col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, col2 + col1 AS col0 FROM tab0
----
10
31
47
128
99
100

query II rowsort
SELECT DISTINCT col1, 91 FROM tab2
----
51
91
67
91
77
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND 93
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + + 57 AS col1, - col1 FROM tab2 AS cor0
----
57
-51
57
-67
57
-77

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3751
SELECT - + ( - ( + + 88 ) ) * - - 89 + - - AVG ( DISTINCT - 46 ), 77 * + - MIN( + + col1 ) col2 FROM tab1 AS cor0 WHERE ( NULL ) < - 30
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3751
SELECT - + ( - ( + + 88 ) ) * - - 89 + - - AVG ( DISTINCT - 46 ), 77 * + - MIN ( + + col1 ) col2 FROM tab1 AS cor0 WHERE ( NULL ) < - 30
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT + 13 + COUNT( * ) FROM tab0 cor0
----
16

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT + 13 + COUNT ( * ) FROM tab0 cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3753
SELECT COUNT( * ) AS col0, + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3753
SELECT COUNT ( * ) AS col0, + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL + MIN( DISTINCT 55 ) + - - COUNT( * ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + MIN ( DISTINCT 55 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL - - 42 - - col1 + - col2 AS col2 FROM tab1 cor0
----
-12
-40
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3756
SELECT ALL CAST( NULL AS SIGNED ) * + SUM( ALL - - col1 ) + 2 + - + MIN( + - 42 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL CAST ( NULL AS INTEGER ) * + SUM ( ALL - - col1 ) + 2 + - + MIN ( + - 42 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( + + 32 ) - + - ( col1 ) + col0 * col0 AS col2 FROM tab1
----
2583
7198
8296

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT 43 - + + ( + MAX( DISTINCT ( + col1 ) ) ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-3758
SELECT 43 - + + ( + MAX ( DISTINCT ( + col1 ) ) ) FROM tab0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3759
SELECT ALL CAST( NULL AS DECIMAL ) - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL CAST ( NULL AS REAL ) - - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND ( 97 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3761
SELECT ALL + SUM( 43 ), - COUNT( * ) AS col1 FROM tab1
----
129
-3

skipif mysql # not compatible
query II rowsort label-3761
SELECT ALL + SUM ( 43 ), - COUNT ( * ) AS col1 FROM tab1
----
129
-3

query I rowsort
SELECT - col2 * - col0 - col0 FROM tab0
----
690
783
9506

query II rowsort
SELECT DISTINCT + col0 - col0, 6 AS col1 FROM tab1
----
0
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT 35 / COUNT( * ) / + + CAST( NULL AS SIGNED ) - - CAST( + + MIN( + col1 ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT 35 / COUNT ( * ) / + + CAST ( NULL AS INTEGER ) - - CAST ( + + MIN ( + col1 ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( - ( - - col2 ) ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 60 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT - 64 DIV + col0 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT - 64 / + col0 AS col2 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - SUM( col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3767
SELECT - SUM ( col2 ) AS col2 FROM tab0
----
-156

query II rowsort
SELECT ALL col2, col0 * col0 FROM tab0
----
10
7569
47
225
99
9409

query I rowsort
SELECT ALL - col1 * - 85 FROM tab2 AS cor0
----
4335
5695
6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT 94 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3770
SELECT 94 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT SUM( DISTINCT + - col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3771
SELECT SUM ( DISTINCT + - col2 ) col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT col0 * - 66 FROM tab1 AS cor0
----
-3366
-5610
-6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3773
SELECT ALL + + COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT 7 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT - COUNT( * ) AS col1, - 44 * 0 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-3775
SELECT - COUNT ( * ) AS col1, - 44 * 0 FROM tab1 AS cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT COUNT( DISTINCT - + 84 ) * - COUNT( 31 ) * - - 23 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3776
SELECT COUNT ( DISTINCT - + 84 ) * - COUNT ( 31 ) * - - 23 FROM tab0 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + - 62 + COUNT( * ) FROM tab0 WHERE NOT col2 + - + col2 - + col2 * + 78 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-3777
SELECT + - 62 + COUNT ( * ) FROM tab0 WHERE NOT col2 + - + col2 - + col2 * + 78 IS NULL
----
-59

query I rowsort
SELECT ALL - + 18 FROM tab2 WHERE 65 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED ) + + 76 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + 76 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3780
SELECT ALL col2 DIV - - col2 + - 8, col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-7
51
-7
67
-7
77

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL col2 / - - col2 + - 8, col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-7
51
-7
67
-7
77

query I rowsort
SELECT ALL + 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT 57 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3783
SELECT col0 * - + 19 * + CAST( NULL AS SIGNED ) AS col2, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-3783
SELECT col0 * - + 19 * + CAST ( NULL AS INTEGER ) AS col2, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT ALL - col2 * - - col1 AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL col1 + 91 AS col2 FROM tab0
----
112
172
92

query I rowsort
SELECT ALL - - 22 * + - col0 + + col0 * + ( 90 ) AS col0 FROM tab1 AS cor0
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT COUNT( * ) + + + 76 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3787
SELECT COUNT ( * ) + + + 76 FROM tab2 AS cor0
----
79

query I rowsort
SELECT col2 + 90 AS col0 FROM tab0 AS cor0
----
100
137
189

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT - COUNT( * ) * + - 82 + - COUNT( * ) FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3789
SELECT - COUNT ( * ) * + - 82 + - COUNT ( * ) FROM tab2 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL + 61 * col1 FROM tab1 WHERE col2 * + CAST( NULL AS SIGNED ) * + col1 IN ( + 55 )
----

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + 61 * col1 FROM tab1 WHERE col2 * + CAST ( NULL AS INTEGER ) * + col1 IN ( + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - ( - COUNT( * ) ) * - 53 col0 FROM tab0, tab0 AS cor0
----
-477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3791
SELECT ALL - ( - COUNT ( * ) ) * - 53 col0 FROM tab0, tab0 AS cor0
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT + MIN( col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3792
SELECT + MIN ( col1 ) col1 FROM tab1
----
5

query II rowsort
SELECT - 43 AS col1, + 18 FROM tab2
----
-43
18
-43
18
-43
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3794
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col0, - col2 * - col2 FROM tab2
----
46
529
64
1600
75
3364

skipif mysql # not compatible
query II rowsort label-3794
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col0, - col2 * - col2 FROM tab2
----
46
529
64
1600
75
3364

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT ALL + COUNT( * ), MIN( ALL - col0 ) AS col0 FROM tab1
----
3
-91

skipif mysql # not compatible
query II rowsort label-3795
SELECT ALL + COUNT ( * ), MIN ( ALL - col0 ) AS col0 FROM tab1
----
3
-91

query II rowsort
SELECT ALL + col1 AS col1, col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT ALL col2, + col0 AS col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT - + col2 * - - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-123
-2
-3792

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - + 26 IS NULL
----

query I rowsort
SELECT ALL - + 45 FROM tab1 cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3801
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) * + SUM( ALL + col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) * + SUM ( ALL + col2 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 1 AS col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - COUNT( ALL - - 47 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT - COUNT ( ALL - - 47 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col0 col1 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT - 28 * + 18 FROM tab1 cor0 WHERE NOT ( NULL > + - col1 )
----

query I rowsort
SELECT col2 * - - ( - col1 ) - - col1 FROM tab1 AS cor0
----
-1330
-290
-3149

query II rowsort
SELECT ALL col2, 25 * - - ( + col2 ) FROM tab0
----
10
250
47
1175
99
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT 3 * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3808
SELECT 3 * + COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT + 33 * + 52 FROM tab1
----
1716
1716
1716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col1, - 64 + + 91 col0 FROM tab2
----
51
27
67
27
77
27

query I rowsort
SELECT col2 * - + 62 FROM tab1
----
-3658
-4216
-5952

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT COUNT( * ) AS col1, MIN( ALL + col1 ) * - 53 FROM tab2
----
3
-2703

skipif mysql # not compatible
query II rowsort label-3812
SELECT COUNT ( * ) AS col1, MIN ( ALL + col1 ) * - 53 FROM tab2
----
3
-2703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT 75 * + ( + CAST( + 83 AS SIGNED ) ) FROM tab1
----
6225
6225
6225

skipif mysql # not compatible
query I rowsort label-3813
SELECT 75 * + ( + CAST ( + 83 AS INTEGER ) ) FROM tab1
----
6225
6225
6225

query II rowsort
SELECT ALL + 18, col1 + 48 AS col1 FROM tab2
----
18
115
18
125
18
99

query I rowsort
SELECT DISTINCT 66 * col2 AS col2 FROM tab1
----
3894
4488
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT + col1 DIV - col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3816
SELECT + col1 / - col1 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 + - - 91 FROM tab0
----
112
172
92

query I rowsort
SELECT col0 + - - 71 - 32 AS col2 FROM tab2 cor0
----
103
114
85

query I rowsort
SELECT DISTINCT + col2 * - - col2 + + 58 AS col1 FROM tab2 WHERE NOT + - col2 + + ( col1 ) + - - 99 = col2
----
1658
3422
587

query I rowsort
SELECT ( - - col1 ) + + 51 FROM tab2
----
102
118
128

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + ( col0 ) + - col2 AS col0 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT - ( + col2 ) FROM tab2 AS cor0 WHERE + col0 / + - col0 * - col1 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE - 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + + 5 FROM tab2
----
230
320
375

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT SUM( - 9 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT SUM ( - 9 ) FROM tab1
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + 67 = - - ( - col0 ) - - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * + 27 FROM tab2
----
1377
1809
2079

query I rowsort
SELECT ( + - 44 ) AS col1 FROM tab1
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3830
SELECT ALL + MIN( DISTINCT 0 ) AS col0, 56 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3830
SELECT ALL + MIN ( DISTINCT 0 ) AS col0, 56 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL
56

query II rowsort
SELECT + col0 + - col0 AS col1, col1 FROM tab0 AS cor0 WHERE NOT ( ( + + col1 ) * + col2 + - 79 * + + col0 IS NULL )
----
0
1
0
21
0
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3832
SELECT - - 9 * + CAST( + - COUNT( * ) AS SIGNED ) + - 98 FROM tab1 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-3832
SELECT - - 9 * + CAST ( + - COUNT ( * ) AS INTEGER ) + - 98 FROM tab1 AS cor0
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT ALL - 34, MIN( + col1 ) AS col1 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-3833
SELECT ALL - 34, MIN ( + col1 ) AS col1 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
-34
NULL

query II rowsort
SELECT - - 57 AS col1, 73 * - + 95 FROM tab2 AS cor0
----
57
-6935
57
-6935
57
-6935

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 45 >= 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 26 * - + col2 FROM tab2 AS cor0
----
1040
1508
598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT + CAST( NULL AS SIGNED ) + ( 2 ) * + + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT + CAST ( NULL AS INTEGER ) + ( 2 ) * + + COUNT ( * ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 12 + + 91 >= + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT 30 * + COUNT( * ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT 30 * + COUNT ( * ) FROM tab0
----
90

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col1 > + - col1 + - ( + - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - 87 + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
-87

skipif mysql # not compatible
query I rowsort label-3841
SELECT - 87 + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + 15 + - + COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-3842
SELECT + 15 + - + COUNT ( * ) AS col1 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3843
SELECT - MIN( DISTINCT + + col2 ), SUM( + - 66 ) AS col1 FROM tab0 AS cor0
----
-10
-198

skipif mysql # not compatible
query II rowsort label-3843
SELECT - MIN ( DISTINCT + + col2 ), SUM ( + - 66 ) AS col1 FROM tab0 AS cor0
----
-10
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT col1 - + CAST( CAST( + 25 AS SIGNED ) AS SIGNED ) * - col1 * - + col2 FROM tab0
----
-2474
-5229
-95094

skipif mysql # not compatible
query I rowsort label-3844
SELECT col1 - + CAST ( CAST ( + 25 AS INTEGER ) AS INTEGER ) * - col1 * - + col2 FROM tab0
----
-2474
-5229
-95094

query I rowsort
SELECT - col1 * - col0 + - + col1 + - 61 FROM tab0 AS cor0
----
1073
1745
35

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL - COUNT( - 63 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - COUNT ( - 63 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL - COUNT( + col0 ) + COUNT( * ) + + 78 * - - 59 AS col0 FROM tab0 AS cor0
----
4602

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - COUNT ( + col0 ) + COUNT ( * ) + + 78 * - - 59 AS col0 FROM tab0 AS cor0
----
4602

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT - COUNT( * ) + - 80 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3849
SELECT - COUNT ( * ) + - 80 FROM tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT 59 * + - COUNT( * ) col0 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3850
SELECT DISTINCT 59 * + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-177

onlyif mysql # DIV for integer division: 
query II rowsort label-3851
SELECT DISTINCT + + col1 * - col1 * col1 AS col0, 24 DIV - 1 + - col2 * col1 AS col1 FROM tab1 cor0
----
-103823
-3220
-125
-319
-2744
-1368

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT + + col1 * - col1 * col1 AS col0, 24 / - 1 + - col2 * col1 AS col1 FROM tab1 cor0
----
-103823
-3220
-125
-319
-2744
-1368

query I rowsort
SELECT ALL + col2 * + 96 AS col2 FROM tab1 AS cor0
----
5664
6528
9216

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN + col1 AND + + col2 )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ( - - COUNT( DISTINCT + + col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3855
SELECT ( - - COUNT ( DISTINCT + + col1 ) ) FROM tab0
----
3

query I rowsort
SELECT + - 29 / - + 41 + - + 75 * - + col1 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT COUNT( * ) * + 39, 59 AS col2 FROM tab2
----
117
59

skipif mysql # not compatible
query II rowsort label-3857
SELECT COUNT ( * ) * + 39, 59 AS col2 FROM tab2
----
117
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT DISTINCT 67 * - - ( + CAST( NULL AS SIGNED ) ) * - - 60 + 69 + + - 25 * + - col2 * - 8 + + 21 + - - col1 * - - CAST( NULL AS SIGNED ) * + + 66 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT 67 * - - ( + CAST ( NULL AS INTEGER ) ) * - - 60 + 69 + + - 25 * + - col2 * - 8 + + 21 + - - col1 * - - CAST ( NULL AS INTEGER ) * + + 66 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT CAST( col0 AS SIGNED ) * + col0 AS col2 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-3859
SELECT CAST ( col0 AS INTEGER ) * + col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT DISTINCT 1 AS col2, MIN( ALL col2 ) * COUNT( + 97 ) AS col2 FROM tab1
----
1
177

skipif mysql # not compatible
query II rowsort label-3860
SELECT DISTINCT 1 AS col2, MIN ( ALL col2 ) * COUNT ( + 97 ) AS col2 FROM tab1
----
1
177

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + col2 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 56 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3863
SELECT - - col0 DIV - 21 + - + col1 AS col2, 26 AS col0 FROM tab2 AS cor0
----
-53
26
-70
26
-80
26

skipif mysql # not compatible
query II rowsort label-3863
SELECT - - col0 / - 21 + - + col1 AS col2, 26 AS col0 FROM tab2 AS cor0
----
-53
26
-70
26
-80
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col2 FROM tab0 cor0
----
15
15
15

query I rowsort
SELECT + col1 * + + col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + 76 * - 75 + - 14 + - col0 AS col1 FROM tab1 AS cor0
----
-5765
-5799
-5805

onlyif mysql # DIV for integer division: 
query II rowsort label-3867
SELECT 33 DIV + 48 AS col0, - col1 * - 4 FROM tab0
----
0
324
0
4
0
84

skipif mysql # not compatible
query II rowsort label-3867
SELECT 33 / + 48 AS col0, - col1 * - 4 FROM tab0
----
0
324
0
4
0
84

query I rowsort
SELECT + 92 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - 88 FROM tab1
----
-5192
-5984
-8448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT CAST( - - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3870
SELECT CAST ( - - col0 AS INTEGER ) FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + 47 - 85 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 10 + col1 FROM tab2
----
61
77
87

query II rowsort
SELECT ALL 64, col2 FROM tab2
----
64
23
64
40
64
58

query II rowsort
SELECT DISTINCT + col2 + + col1, 25 AS col2 FROM tab2 AS cor0
----
117
25
125
25
74
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT ALL + col2 - - 54 DIV - col2 AS col1 FROM tab0 AS cor0
----
46
5
99

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL + col2 - - 54 / - col2 AS col1 FROM tab0 AS cor0
----
46
5
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + COUNT( * ) + - 45 AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-3876
SELECT + COUNT ( * ) + - 45 AS col2 FROM tab1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + + + 33 + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + 33 + + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 61 - + col0 AS col2 FROM tab2
----
-14
-3
15

query I rowsort
SELECT - 43 * + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
-18275
-183911
-30702

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT MIN( ALL - + 18 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3880
SELECT MIN ( ALL - + 18 ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT + + 82 * ( - + col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-4278
-7029
-7530

query I rowsort
SELECT ALL col2 * + col2 - col0 AS col2 FROM tab0 AS cor0
----
13
2194
9704

query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3884
SELECT ALL + 41 * + CAST( - 99 AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
-12177

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + 41 * + CAST ( - 99 AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
-12177

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab2 cor0 WHERE NOT 53 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - col1 / + - ( - - 16 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT ALL + col0 DIV - ( 21 ) AS col0 FROM tab2
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + col0 / - ( 21 ) AS col0 FROM tab2
----
-2
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT - 4 - - col0 AS col2 FROM tab2 WHERE NOT - 17 > 57
----
42
60
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3890
SELECT ALL * FROM tab1 WHERE - CAST( - - 54 AS SIGNED ) + - col1 + - 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3890
SELECT ALL * FROM tab1 WHERE - CAST ( - - 54 AS INTEGER ) + - col1 + - 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT ALL CAST( + 30 AS SIGNED ) FROM tab1 cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL CAST ( + 30 AS INTEGER ) FROM tab1 cor0
----
30
30
30

query II rowsort
SELECT + col1 AS col0, 99 + - 54 FROM tab2 AS cor0
----
51
45
67
45
77
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - MAX( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3893
SELECT - MAX ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT DISTINCT - MIN( DISTINCT + - 9 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT - MIN ( DISTINCT + - 9 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3895
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) > + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3895
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) > + CAST ( col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT DISTINCT + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT CAST( NULL AS SIGNED ) * col2 - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT CAST ( NULL AS INTEGER ) * col2 - + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT - MAX( ALL + 96 ) col2 FROM tab0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3898
SELECT - MAX ( ALL + 96 ) col2 FROM tab0
----
-96

query I rowsort
SELECT 82 AS col1 FROM tab2 WHERE ( - col0 ) > 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - COUNT( ALL 76 ) - + COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3900
SELECT - COUNT ( ALL 76 ) - + COUNT ( * ) AS col2 FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT CAST( + 56 AS SIGNED ) AS col0 FROM tab2
----
56
56
56

skipif mysql # not compatible
query I rowsort label-3901
SELECT CAST ( + 56 AS INTEGER ) AS col0 FROM tab2
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 * col2 col2 FROM tab1
----
-472
-544
-768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT CAST( - col2 AS SIGNED ) + - col2 * - col2 FROM tab2
----
1560
3306
506

skipif mysql # not compatible
query I rowsort label-3903
SELECT CAST ( - col2 AS INTEGER ) + - col2 * - col2 FROM tab2
----
1560
3306
506

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT + COUNT( ( col2 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3904
SELECT + COUNT ( ( col2 ) ) AS col1 FROM tab0
----
3

query I rowsort
SELECT - ( 55 ) * + 52 + 41 AS col2 FROM tab0 WHERE ( NULL ) < - ( - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 88 ) IN ( - col1 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 51 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 23 * - SUM( col1 ) FROM tab0
----
-2369

skipif mysql # not compatible
query I rowsort label-3909
SELECT 23 * - SUM ( col1 ) FROM tab0
----
-2369

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 61 - col0 FROM tab1
----
-24
-30
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT MIN( - col2 ) * + COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-3913
SELECT MIN ( - col2 ) * + COUNT ( * ) FROM tab1
----
-288

query I rowsort
SELECT 67 * + col1 AS col2 FROM tab0
----
1407
5427
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 7 ) * + 30 col2 FROM tab2
----
-210
-210
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT COUNT( * ) * - 98 FROM tab0 WHERE col2 IS NOT NULL
----
-294

skipif mysql # not compatible
query I rowsort label-3916
SELECT COUNT ( * ) * - 98 FROM tab0 WHERE col2 IS NOT NULL
----
-294

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( col2 + col1 ) NOT IN ( 57 * col1 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT DISTINCT + 39 DIV - col1 FROM tab0
----
-1
-39
0

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + 39 / - col1 FROM tab0
----
-1
-39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT + SUM( - col0 ) + - 49 * - 17 FROM tab2
----
648

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + SUM ( - col0 ) + - 49 * - 17 FROM tab2
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + 59 * COUNT( * ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-3920
SELECT + 59 * COUNT ( * ) FROM tab0
----
177

query I rowsort
SELECT + 43 * col0 FROM tab0
----
3741
4171
645

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + MIN( ALL - 0 ) * 24 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3922
SELECT + MIN ( ALL - 0 ) * 24 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL + CAST( - col2 AS SIGNED ) + 2 FROM tab1
----
-57
-66
-94

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + CAST ( - col2 AS INTEGER ) + 2 FROM tab1
----
-57
-66
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL MAX( col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL MAX ( col0 ) FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col1 AND ( 95 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + 79 AS col0 FROM tab0 AS cor0
----
1185
6873
7663

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) * col0 + col2 IN ( 65 )
----

query I rowsort
SELECT ALL - 27 + col0 AS col0 FROM tab0 cor0
----
-12
60
70

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IN ( - 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT col2 * - col1 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT col2 * - col1 IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + COUNT( * ) * 48 AS col1 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-3933
SELECT + COUNT ( * ) * 48 AS col1 FROM tab0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT DISTINCT 45 * - CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
2295
3015
3465

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT 45 * - CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT - 63 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - 63 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-189

query I rowsort
SELECT ALL 11 + 83 FROM tab2 WHERE + col0 IN ( + 3 * - 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT col1 DIV col2 * - col1 AS col1 FROM tab2
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-3937
SELECT col1 / col2 * - col1 AS col1 FROM tab2
----
-102
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT col0 DIV + - 95 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT col0 / + - 95 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE col0 / 26 = NULL
----

query I rowsort
SELECT + col1 - + col2 FROM tab0 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3941
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN col0 * + 0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3941
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN col0 * + 0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col1 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3943
SELECT * FROM tab1 WHERE NOT - ( CAST( NULL AS SIGNED ) ) < ( col2 ) / - col1
----

skipif mysql # not compatible
query III rowsort label-3943
SELECT * FROM tab1 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) < ( col2 ) / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT COUNT( * ) * + ( - MIN( - col1 ) ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-3944
SELECT COUNT ( * ) * + ( - MIN ( - col1 ) ) FROM tab2
----
231

query III rowsort
SELECT * FROM tab0 WHERE NOT 77 / ( - col1 ) NOT IN ( col0 )
----

query I rowsort
SELECT ALL + col2 + col1 * + 3 AS col0 FROM tab1 AS cor0
----
138
209
74

query I rowsort
SELECT DISTINCT col0 * + 99 + 36 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1521
8649
9639

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL - MIN( + + 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL - MIN ( + + 82 ) FROM tab1 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3950
SELECT DISTINCT COUNT( * ) AS col0, + 98 + - CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3950
SELECT DISTINCT COUNT ( * ) AS col0, + 98 + - CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3951
SELECT + CAST( NULL AS SIGNED ) + + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT + CAST ( NULL AS INTEGER ) + + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 11 col0 FROM tab1
----
102
62
96

query I rowsort
SELECT + col1 + + col0 + + 0 + - 41 * + col0 * 6 FROM tab0
----
-21294
-23764
-3594

query I rowsort
SELECT ALL - 11 FROM tab2 cor0 WHERE - 6 IS NOT NULL
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT 57 DIV + col2 * + col2 DIV - col2 + col1 FROM tab2 AS cor0
----
49
67
76

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT 57 / + col2 * + col2 / - col2 + col1 FROM tab2 AS cor0
----
49
67
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT CAST( NULL AS SIGNED ) * + 92 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3956
SELECT CAST ( NULL AS INTEGER ) * + 92 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + - - 83 FROM tab1 cor0
----
142
151
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 + - col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - MIN( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3959
SELECT - MIN ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( 83 ) AND ( 96 )
----
0

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN ( 83 ) AND ( 96 )
----
0

query II rowsort
SELECT - + col2 AS col1, - ( - col1 ) - + 20 FROM tab0 AS cor0
----
-10
1
-47
61
-99
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3962
SELECT ALL MIN( + 93 ) + + + ( COUNT( ALL 28 ) ) DIV COUNT( * ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL MIN ( + 93 ) + + + ( COUNT ( ALL 28 ) ) / COUNT ( * ) FROM tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT + - 43 * - + col0 - - 16 + + 98 FROM tab2 AS cor0
----
2092
2866
3339

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT ALL + col1 DIV + col1 - col0 + col2 FROM tab2 AS cor0
----
-16
-22
-23

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + col1 / + col1 - col0 + col2 FROM tab2 AS cor0
----
-16
-22
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3965
SELECT - col2 DIV 74 - col1 * + col2 AS col1 FROM tab2 WHERE CAST( - col0 AS SIGNED ) + col1 IS NOT NULL
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-3965
SELECT - col2 / 74 - col1 * + col2 AS col1 FROM tab2 WHERE CAST ( - col0 AS INTEGER ) + col1 IS NOT NULL
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col2 FROM tab1
----
44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col0 ) > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * - 33 AS col0, col0 FROM tab0
----
-1551
15
-3267
97
-330
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ( + ( - + COUNT( * ) ) ) - MAX( - col1 ) + + 12 * - 57 AS col0 FROM tab2
----
-636

skipif mysql # not compatible
query I rowsort label-3969
SELECT ( + ( - + COUNT ( * ) ) ) - MAX ( - col1 ) + + 12 * - 57 AS col0 FROM tab2
----
-636

query I rowsort
SELECT ALL - 25 AS col0 FROM tab2
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + - 43 FROM tab1 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ( - ( + + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3972
SELECT ( - ( + + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT - 63 NOT IN ( 5 + + 69 )
----

query I rowsort
SELECT ALL 6 * - col1 FROM tab1 AS cor0
----
-282
-30
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL - - COUNT( - 61 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL - - COUNT ( - 61 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * + col0 + + + col1 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL + SUM( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL + SUM ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL col1 * - ( - col2 ) * col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND - 37
----
178929
2100
9801

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + - 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 98 col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT - + 99 AS col2 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3983
SELECT + COUNT( * ) AS col2, + 88 FROM tab2 AS cor0
----
3
88

skipif mysql # not compatible
query II rowsort label-3983
SELECT + COUNT ( * ) AS col2, + 88 FROM tab2 AS cor0
----
3
88

query I rowsort
SELECT ALL ( - + AVG ( DISTINCT 78 ) ) FROM tab1 WHERE NOT NULL BETWEEN ( + - col1 ) AND col1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL >= + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN + col2 AND ( ( - col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 <= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3988
SELECT DISTINCT - COUNT( * ), + 50 AS col0 FROM tab2
----
-3
50

skipif mysql # not compatible
query II rowsort label-3988
SELECT DISTINCT - COUNT ( * ), + 50 AS col0 FROM tab2
----
-3
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 49 col2 FROM tab0
----
-32
28
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT - col1 DIV - ( - col0 ) + + + 72 + - - col2 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1529
-3292
-458

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT - col1 / - ( - col0 ) + + + 72 + - - col2 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1529
-3292
-458

query I rowsort
SELECT DISTINCT + - col0 * - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
2093
4056
5567

query I rowsort
SELECT - 38 * col0 + col0 FROM tab1 AS cor0
----
-1887
-3145
-3367

query I rowsort
SELECT ALL - - col2 + col2 + - col0 AS col0 FROM tab0 cor0
----
-67
101
79

query I rowsort
SELECT + + col1 FROM tab0 WHERE - col0 = - ( 98 )
----

query I rowsort
SELECT col2 * - 8 FROM tab1
----
-472
-544
-768

query I rowsort
SELECT DISTINCT + col2 * - col1 + + - col2 FROM tab1
----
-1440
-3264
-354

query II rowsort
SELECT col2 - + col2 AS col2, col0 * + col2 FROM tab1 AS cor0
----
0
4896
0
5015
0
6188

query I rowsort
SELECT DISTINCT - col2 + col0 / 95 AS col2 FROM tab0 AS cor0 WHERE ( ( + 63 ) ) > ( + + 64 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3999
SELECT ALL + 41 DIV - COUNT( * ), - 23 AS col0 FROM tab1 AS cor0
----
-13
-23

skipif mysql # not compatible
query II rowsort label-3999
SELECT ALL + 41 / - COUNT ( * ), - 23 AS col0 FROM tab1 AS cor0
----
-13
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 - - - 99 col1, - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-14
5
-48
14
-8
47

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 80 + - col1 * - col2 + - + 13 IS NULL
----

query I rowsort
SELECT DISTINCT + 51 + - col2 AS col2 FROM tab2 AS cor0
----
-7
11
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT - - col2 DIV - + col0 + + col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
12
87
96

skipif mysql # not compatible
query I rowsort label-4003
SELECT - - col2 / - + col0 + + col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
12
87
96

query I rowsort
SELECT + + 12 * + + 11 * - col1 * - 86 + 78 AS col2 FROM tab1 AS cor0 WHERE 71 * - - col2 IS NOT NULL
----
159006
533622
56838

query I rowsort
SELECT + col2 * - col0 + - - col1 + col0 AS col2 FROM tab0 cor0
----
-609
-762
-9505

query I rowsort
SELECT ALL - + 21 - - - col2 FROM tab2 AS cor0 WHERE + col2 - + col1 + - col2 IS NOT NULL
----
-44
-61
-79

query I rowsort
SELECT ALL 98 * - col0 * + 19 + col2 AS col2 FROM tab0 cor0
----
-161984
-180515
-27883

onlyif mysql # DIV for integer division: 
query II rowsort label-4008
SELECT ALL - col0 DIV col0 - + - col0, + col1 FROM tab2
----
45
51
63
77
74
67

skipif mysql # not compatible
query II rowsort label-4008
SELECT ALL - col0 / col0 - + - col0, + col1 FROM tab2
----
45
51
63
77
74
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT ALL col1 DIV - + 56 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL col1 / - + 56 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT SUM( ALL - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4010
SELECT SUM ( ALL - col1 ) FROM tab2
----
-195

query I rowsort
SELECT col1 * - - 44 FROM tab2
----
2244
2948
3388

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT 43 * col2 DIV - + col1 AS col2 FROM tab2
----
-19
-22
-37

skipif mysql # not compatible
query I rowsort label-4012
SELECT 43 * col2 / - + col1 AS col2 FROM tab2
----
-19
-22
-37

query I rowsort
SELECT - - 74 + - col1 AS col1 FROM tab0 WHERE - + col1 IS NOT NULL
----
-7
53
73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - + col0 * - + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <= + 6
----

query II rowsort
SELECT ALL - 33 * - 86, + col1 FROM tab0
----
2838
1
2838
21
2838
81

query I rowsort
SELECT 80 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4018
SELECT ALL * FROM tab2 WHERE NOT ( - + CAST( NULL AS SIGNED ) ) >= + col1
----

skipif mysql # not compatible
query III rowsort label-4018
SELECT ALL * FROM tab2 WHERE NOT ( - + CAST ( NULL AS INTEGER ) ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT - MAX( ALL 93 ) AS col1 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - MAX ( ALL 93 ) AS col1 FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT - MAX( DISTINCT + 63 ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT - MAX ( DISTINCT + 63 ) FROM tab2 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col0 FROM tab1 AS cor0
----
95
95
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - 29 IN ( 23 + - ( + 82 ) + + + col0 * 61 / - col1 ) OR ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT + - col2 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT + - col2 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT + 30 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + CAST( NULL AS SIGNED ) * + + 57 - + + 57
----

skipif mysql # not compatible
query I rowsort label-4025
SELECT + 30 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + CAST ( NULL AS INTEGER ) * + + 57 - + + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT + COUNT( col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + COUNT ( col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 82 * + - col2 AS col2 FROM tab2
----
1886
3280
4756

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / - 43 >= NULL
----

query II rowsort
SELECT DISTINCT + 89 + + col2 AS col2, + col0 - - 49 AS col2 FROM tab1 WHERE - 98 IS NULL
----

query I rowsort
SELECT + - 48 * - 93 AS col0 FROM tab2 WHERE NOT - col1 NOT IN ( - col0, - col2 )
----

query II rowsort
SELECT + 0 AS col1, + 16 FROM tab0
----
0
16
0
16
0
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 * col0 AND ( + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 * col0 AND ( + + col2 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4033
SELECT ALL col1 + + col1 - - col0 + - 46 DIV + col1, - col2 col1 FROM tab2
----
148
-23
209
-58
218
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4033
SELECT ALL col1 + + col1 - - col0 + - 46 / + col1, - col2 col1 FROM tab2
----
148
-23
209
-58
218
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT SUM( ALL + 91 ) AS col0 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-4034
SELECT SUM ( ALL + 91 ) AS col0 FROM tab2
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ALL MAX( 53 ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL MAX ( 53 ) AS col2 FROM tab2
----
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN - 75 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT 29 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4037
SELECT 29 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
32

query I rowsort
SELECT 10 + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
107
151
152

query II rowsort
SELECT col0 * + + col2 AS col1, col2 AS col0 FROM tab1 AS cor0
----
4896
96
5015
59
6188
68

query I rowsort
SELECT DISTINCT + + ( - + 94 ) * col2 - + + 90 FROM tab2 AS cor0
----
-2252
-3850
-5542

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT ALL + 41 + col2 DIV + 9 AS col2 FROM tab2 AS cor0
----
43
45
47

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + 41 + col2 / + 9 AS col2 FROM tab2 AS cor0
----
43
45
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT - - 91 - + - 97 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT - - 91 - + - 97 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 - + col0, + 4 + col0 AS col2 FROM tab0
----
-77
91
2
101
32
19

query III rowsort
SELECT ALL * FROM tab0 WHERE - 57 = + 80 * + 36
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT 55 * CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1265
-2200
-3190

skipif mysql # not compatible
query I rowsort label-4046
SELECT 55 * CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT + + MAX( + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + + MAX ( + + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT 94 DIV - col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT 94 / - col2 AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4049
SELECT + COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 68 * - + col0 FROM tab0 AS cor0
----
-1020
-5916
-6596

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4051
SELECT - + col1 DIV col1 + - - CAST( + - 58 AS SIGNED ) col1 FROM tab0 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4051
SELECT - + col1 / col1 + - - CAST ( + - 58 AS INTEGER ) col1 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT SUM( DISTINCT 95 ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4052
SELECT SUM ( DISTINCT 95 ) FROM tab2 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT - 92 DIV - - col1 AS col1 FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-4053
SELECT - 92 / - - col1 AS col1 FROM tab1
----
-1
-18
-6

query I rowsort
SELECT + ( - ( 35 ) ) * - col1 FROM tab2
----
1785
2345
2695

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT DISTINCT 46 DIV + 31 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT 46 / + 31 AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT DISTINCT CAST( - - col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT 67 * - 94 * col2 + - ( col0 ) AS col2 FROM tab2
----
-144900
-251984
-365359

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4058
SELECT - + col0 DIV CAST( - + CAST( col2 AS SIGNED ) AS SIGNED ) + col0 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-4058
SELECT - + col0 / CAST ( - + CAST ( col2 AS INTEGER ) AS INTEGER ) + col0 FROM tab0 AS cor0
----
15
95
97

query II rowsort
SELECT DISTINCT + 95, - 18 + 33 * + col0 AS col1 FROM tab1 cor0 WHERE + col2 <= ( + col1 )
----

query I rowsort
SELECT + + 99 AS col2 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT + CAST( NULL AS SIGNED ) * MIN( ALL - 8 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT + CAST ( NULL AS INTEGER ) * MIN ( ALL - 8 ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - 49 - - 7 FROM tab0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL + ( 4 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + ( 4 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-36

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + - col0 + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - - SUM( DISTINCT col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - - SUM ( DISTINCT col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
182

query I rowsort
SELECT ALL + 42 + - col0 FROM tab1 AS cor0
----
-43
-49
-9

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 44 * - col2 IS NOT NULL
----

query I rowsort
SELECT + ( + 2 ) FROM tab2 cor0 WHERE + 3 IN ( - col0, col1 )
----

query I rowsort
SELECT ALL - col0 * + col1 - - ( - col0 ) FROM tab0 AS cor0
----
-1230
-1914
-194

query I rowsort
SELECT DISTINCT + 60 * - 53 AS col1 FROM tab1
----
-3180

query I rowsort
SELECT ALL + col2 * + + 27 AS col2 FROM tab1
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT - 66 AS col1, - ( + + SUM( col2 ) ) FROM tab1
----
-66
-223

skipif mysql # not compatible
query II rowsort label-4074
SELECT - 66 AS col1, - ( + + SUM ( col2 ) ) FROM tab1
----
-66
-223

query I rowsort
SELECT - col2 * 65 * - col0 FROM tab2
----
166400
282750
68770

query II rowsort
SELECT + col1 AS col0, 15 FROM tab1
----
14
15
47
15
5
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND + + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + SUM( + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4078
SELECT + SUM ( + col1 ) AS col0 FROM tab2
----
195

query II rowsort
SELECT - + col2, ( col1 ) * + 17 AS col0 FROM tab1 AS cor0
----
-59
85
-68
799
-96
238

query I rowsort
SELECT DISTINCT + col2 * + + col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4081
SELECT col1 / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT col1 / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + col2 + - + 7 + + - 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4083
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN 21 * col2 AND CAST( - 21 AS DECIMAL ) * - + col0 / - + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-4083
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN 21 * col2 AND CAST ( - 21 AS REAL ) * - + col0 / - + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + - col2 ) AS col2 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT + col0 + - - 39 * col0 AS col1, col2 AS col1 FROM tab2
----
1840
23
2560
40
3000
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL COUNT( ALL + 71 ) + ( - 25 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL COUNT ( ALL + 71 ) + ( - 25 ) FROM tab2
----
-22

query I rowsort
SELECT DISTINCT - 97 * + col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-4947
-6499
-7469

query I rowsort
SELECT DISTINCT ( - + col1 ) + 61 AS col2 FROM tab1 AS cor0
----
14
47
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT - - COUNT( DISTINCT - 9 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT - - COUNT ( DISTINCT - 9 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + col1 * - 75 IS NULL
----

query I rowsort
SELECT DISTINCT 30 * + ( - 52 ) FROM tab2 AS cor0
----
-1560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT 60 DIV + 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT 60 / + 98 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4095
SELECT - col1 DIV col1 * + col1 AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4095
SELECT - col1 / col1 * + col1 AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 55 * col2 AS col0 FROM tab2
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ( + 93 ) * - COUNT( ALL col0 ) col2 FROM tab0
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4098
SELECT ( + 93 ) * - COUNT ( ALL col0 ) col2 FROM tab0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT 65 * - + CAST( + + ( - col1 ) AS SIGNED ) * + col2 AS col1 FROM tab1
----
19175
207740
87360

skipif mysql # not compatible
query I rowsort label-4099
SELECT 65 * - + CAST ( + + ( - col1 ) AS INTEGER ) * + col2 AS col1 FROM tab1
----
19175
207740
87360

query II rowsort
SELECT col1 AS col0, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT ( 19 ) * - MAX( col2 ) + COUNT( * ) AS col0 FROM tab0
----
-1878

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT ( 19 ) * - MAX ( col2 ) + COUNT ( * ) AS col0 FROM tab0
----
-1878

query I rowsort
SELECT DISTINCT - - 88 AS col0 FROM tab2 AS cor0 WHERE + 40 + col0 / ( 70 ) NOT BETWEEN - col2 * - - ( - 69 ) AND NULL
----
88

query I rowsort
SELECT ALL + col0 * - 81 + - col1 + - - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-3949
-5209
-6865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT + col1 + CAST( - col0 AS SIGNED ) * - + col2 FROM tab0 AS cor0
----
786
891
9604

skipif mysql # not compatible
query I rowsort label-4104
SELECT + col1 + CAST ( - col0 AS INTEGER ) * - + col2 FROM tab0 AS cor0
----
786
891
9604

query III rowsort
SELECT * FROM tab1 WHERE col1 / - + col2 * col2 * - col2 + - + col1 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 col2 FROM tab2 AS cor0 WHERE + 59 - - col2 + + 75 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + 27 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4109
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT - MIN( 34 ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT - MIN ( 34 ) FROM tab1 AS cor0
----
-34

query I rowsort
SELECT + col1 * 75 AS col2 FROM tab1 AS cor0
----
1050
3525
375

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - - SUM( DISTINCT - 77 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4112
SELECT - - SUM ( DISTINCT - 77 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL SUM( col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL SUM ( col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT COUNT( * ) - - COUNT( * ) - - 92 FROM tab2 WHERE - + col2 * 52 = NULL
----
92

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) - - 92 FROM tab2 WHERE - + col2 * 52 = NULL
----
92

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 * col0 FROM tab1
----
-59
-7225
-68
-8281
-96
-2601

query I rowsort
SELECT ALL - col0 * - + col0 FROM tab0
----
225
7569
9409

query II rowsort
SELECT - 30 AS col2, col2 FROM tab0
----
-30
10
-30
47
-30
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE NOT + ( + ( - 1 ) ) <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67 * + col1 * - col1 col1, col1 FROM tab2
----
-174267
51
-300763
67
-397243
77

query II rowsort
SELECT + col2 * - + 59 + - - col0, 69 AS col0 FROM tab0 AS cor0
----
-2758
69
-503
69
-5744
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT - SUM( DISTINCT + + 38 ) * 63 AS col1 FROM tab0 AS cor0
----
-2394

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - SUM ( DISTINCT + + 38 ) * 63 AS col1 FROM tab0 AS cor0
----
-2394

query I rowsort
SELECT ALL - + col2 * - 70 AS col0 FROM tab2 AS cor0
----
1610
2800
4060

query I rowsort
SELECT + 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4124
SELECT + ( - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT + ( - + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 33 * col2 * - 92 * + col1 * + col0 FROM tab0 AS cor0
----
-173370780
-29154708
-55467720

query II rowsort
SELECT col0 AS col0, 8 AS col0 FROM tab2 AS cor0 WHERE ( + col2 ) BETWEEN - + 41 AND ( + - col2 )
----

query I rowsort
SELECT ALL col1 * - 1 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - 2 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-1060
-2562
-4352

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4129
SELECT ALL - + 8, COUNT( * ) DIV 41 AS col1 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL - + 8, COUNT ( * ) / 41 AS col1 FROM tab1 AS cor0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT + + MIN( - 3 ) + 80 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + + MIN ( - 3 ) + 80 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4131
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 23 * - ( - 35 ) NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4133
SELECT COUNT( * ) + + MIN( DISTINCT col0 ) - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT COUNT ( * ) + + MIN ( DISTINCT col0 ) - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 18 + + 77 AS col0 FROM tab0
----
95
95
95

query I rowsort
SELECT 78 + 15 FROM tab0
----
93
93
93

query II rowsort
SELECT ALL + col1 + + - col0, + col2 AS col2 FROM tab2
----
-8
58
13
40
5
23

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + 93 IS NULL
----

query I rowsort
SELECT - 23 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1863
23
483

query I rowsort
SELECT ALL - col2 - - col1 AS col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT 64 + - COUNT( * ) * - 35 AS col1 FROM tab1
----
169

skipif mysql # not compatible
query I rowsort label-4140
SELECT 64 + - COUNT ( * ) * - 35 AS col1 FROM tab1
----
169

query II rowsort
SELECT ALL col2 AS col0, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT + ( 41 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + SUM( DISTINCT ( + col0 ) ) * - ( + COUNT( + col1 ) ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-4145
SELECT + SUM ( DISTINCT ( + col0 ) ) * - ( + COUNT ( + col1 ) ) FROM tab2 AS cor0
----
-555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4146
SELECT ALL - 98 col2, col1 * - col0 + - + CAST( - + col2 AS SIGNED ) FROM tab0 cor0
----
-98
-1168
-98
-1817
-98
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4146
SELECT ALL - 98 col2, col1 * - col0 + - + CAST ( - + col2 AS INTEGER ) FROM tab0 cor0
----
-98
-1168
-98
-1817
-98
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - MIN( ALL - 68 ) col2 FROM tab0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4147
SELECT ALL - MIN ( ALL - 68 ) col2 FROM tab0
----
68

query III rowsort
SELECT * FROM tab2 WHERE NOT - 78 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL SUM( ALL + + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL SUM ( ALL + + col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT + 16 * col1 AS col0 FROM tab0 cor0
----
1296
16
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4151
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + + col0 col0 FROM tab0
----
-47
25
35

query II rowsort
SELECT + 28 + + col2 + col2, col2 FROM tab0
----
122
47
226
99
48
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4154
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + ( col1 ) AND CAST( - col1 AS SIGNED ) * + col1 + - 52 + - - col1
----

skipif mysql # not compatible
query III rowsort label-4154
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + ( col1 ) AND CAST ( - col1 AS INTEGER ) * + col1 + - 52 + - - col1
----

query I rowsort
SELECT - 95 + 27 AS col1 FROM tab0 cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT 62 + + - 69 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + col1 * - - 59 + - 32 AS col1 FROM tab1 AS cor0
----
263
2741
794

query I rowsort
SELECT col1 * + ( col2 ) * + + col1 + + + col0 + + 65 AS col1 FROM tab0 AS cor0
----
261
308447
4562

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT + 10 + - COUNT( * ) FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + 10 + - COUNT ( * ) FROM tab2 cor0
----
7

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL MIN( + + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL MIN ( + + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT DISTINCT col1 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT col1 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT - SUM( ALL - col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - SUM ( ALL - col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-309

query I rowsort
SELECT ALL 61 * - - col0 * + col0 + + 37 FROM tab1
----
158698
440762
505178

query I rowsort
SELECT ALL col1 * 59 AS col1 FROM tab0
----
1239
4779
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 * - + 26 col2 FROM tab0
----
-728
-728
-728

query I rowsort
SELECT + col1 * + - col0 AS col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 72 AND NULL
----

query I rowsort
SELECT ALL col0 + + + 78 / + + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 95 * + col1 FROM tab0
----
-1995
-7695
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4171
SELECT 68 / - CAST( NULL AS SIGNED ) AS col2, + 79 FROM tab2
----
NULL
79
NULL
79
NULL
79

skipif mysql # not compatible
query II rowsort label-4171
SELECT 68 / - CAST ( NULL AS INTEGER ) AS col2, + 79 FROM tab2
----
NULL
79
NULL
79
NULL
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4172
SELECT + COUNT( * ) * COUNT( * ) * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT + COUNT ( * ) * COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - ( + col1 ) - col0 AS col1 FROM tab1
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT - CAST( NULL AS SIGNED ) + - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT - CAST ( NULL AS INTEGER ) + - + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 91 >= - 53 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4177
SELECT - 46 AS col2, - 58 * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
174

skipif mysql # not compatible
query II rowsort label-4177
SELECT - 46 AS col2, - 58 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4178
SELECT ALL + - 5 DIV - - col0 * + ( + + CAST( col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL + - 5 / - - col0 * + ( + + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT DISTINCT 67 DIV col1 AS col0 FROM tab0 AS cor0
----
0
3
67

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT 67 / col1 AS col0 FROM tab0 AS cor0
----
0
3
67

query I rowsort
SELECT DISTINCT + - 77 AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4181
SELECT ALL + CAST( - col1 AS DECIMAL ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + CAST ( - col1 AS REAL ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT 83 * + ( MIN( + - 74 ) ) FROM tab2 AS cor0
----
-6142

skipif mysql # not compatible
query I rowsort label-4182
SELECT 83 * + ( MIN ( + - 74 ) ) FROM tab2 AS cor0
----
-6142

query I rowsort
SELECT 84 * + - 73 * - col0 + + + col1 + col0 AS col0 FROM tab1 AS cor0
----
312797
521310
558150

query I rowsort
SELECT col0 * + 47 FROM tab1 cor0
----
2397
3995
4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT col2 * + col0 - ( - col2 ) - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT col2 * + col0 - ( - col2 ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, 37 FROM tab2
----
51
37
67
37
77
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4187
SELECT 18, + col1 / + - col0 * + + col1 + CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab1
----
18
NULL
18
NULL
18
NULL

skipif mysql # not compatible
query II rowsort label-4187
SELECT 18, + col1 / + - col0 * + + col1 + CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab1
----
18
NULL
18
NULL
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT COUNT( - + col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4188
SELECT COUNT ( - + col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT + MIN( ALL - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT + MIN ( ALL - col2 ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL CAST( + col2 AS SIGNED ) col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4190
SELECT ALL CAST ( + col2 AS INTEGER ) col0 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 19 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col0, + 20 AS col2 FROM tab0 AS cor0
----
-15
20
-87
20
-97
20

query I rowsort
SELECT ALL - col2 + + ( col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-195
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 5 + col2 BETWEEN NULL AND + - col0
----
3

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 5 + col2 BETWEEN NULL AND + - col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT 66 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT 66 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 53 > NULL
----

query I rowsort
SELECT ( + 2 ) AS col0 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT + 88 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
88
88
88

query I rowsort
SELECT - ( 72 ) + + col2 + + col1 FROM tab2 AS cor0
----
2
45
53

query I rowsort
SELECT - col2 + - 85 FROM tab2 AS cor0
----
-108
-125
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT COUNT( * ) + - MIN( ALL 27 ) AS col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL 27 ) AS col0 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT - 49 * 51 AS col0 FROM tab0 cor0 WHERE NULL <= - 57 * - col1
----

query I rowsort
SELECT 99 + - - 5 FROM tab2 AS cor0
----
104
104
104

query I rowsort
SELECT ALL col2 + + 89 AS col0 FROM tab0 AS cor0
----
136
188
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT - col1 * + - 20 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col1 * - CAST( NULL AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-4205
SELECT - col1 * + - 20 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col1 * - CAST ( NULL AS INTEGER ) AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4206
SELECT DISTINCT col0 + - 42 + - - col0 + + - col0 DIV - - col0 FROM tab2
----
107
49
85

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT col0 + - 42 + - - col0 + + - col0 / - - col0 FROM tab2
----
107
49
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( ( 4 + + col0 * + 10 IS NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT 13 DIV + col0 AS col0 FROM tab0 WHERE + + col1 DIV + col0 - col2 IN ( + - col1 + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-4208
SELECT 13 / + col0 AS col0 FROM tab0 WHERE + + col1 / + col0 - col2 IN ( + - col1 + 39 )
----
0

query I rowsort
SELECT col1 * - + col0 + + 65 FROM tab0
----
-1150
-1762
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL SUM( ALL + + 88 ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL SUM ( ALL + + 88 ) FROM tab2
----
264

query I rowsort
SELECT DISTINCT col1 - - col0 - + 84 + 80 + + col1 FROM tab0
----
125
173
95

query I rowsort
SELECT - col2 * + + 93 FROM tab2
----
-2139
-3720
-5394

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 NOT BETWEEN + col1 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 13 AS col1 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT DISTINCT - 24 / + 95 + - col0 + + col0 + + col2 + + - col1 + + ( - CAST( NULL AS SIGNED ) ) * + 15 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT - 24 / + 95 + - col0 + + col0 + + col2 + + - col1 + + ( - CAST ( NULL AS INTEGER ) ) * + 15 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 98 - + 96 FROM tab1 AS cor0
----
-194
-194
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT DISTINCT + 24 DIV + ( + + col0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + 24 / + ( + + col0 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT - 77 * - - col2 AS col0 FROM tab1
----
-4543
-5236
-7392

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab2 WHERE + - 43 NOT BETWEEN 20 * col0 + + ( - 18 ) * - 80 * + 68 AND NULL
----
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * col2 >= + col2 * col1 - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT + ( - ( + + COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + ( - ( + + COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT ALL 56 DIV - ( MIN( + 50 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL 56 / - ( MIN ( + 50 ) ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4225
SELECT + 27 * + MIN( ALL + + col1 ) - - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT + 27 * + MIN ( ALL + + col1 ) - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NOT NULL >= + 75
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4226
SELECT ALL + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT NULL >= + 75
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + - col0 * col1 BETWEEN + - 21 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4228
SELECT ALL + MAX( + ( col1 ) ) DIV COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4228
SELECT ALL + MAX ( + ( col1 ) ) / COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT ( + COUNT( * ) ), ( + + COUNT( * ) ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4230
SELECT ( + COUNT ( * ) ), ( + + COUNT ( * ) ) FROM tab1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 75 - col1 + - 60 col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 2 col1 FROM tab2 WHERE NOT NULL <> - col0 / + 94 / + + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4233
SELECT DISTINCT col1 DIV - + 81 * - 24 AS col2, 72 AS col0 FROM tab2
----
0
72

skipif mysql # not compatible
query II rowsort label-4233
SELECT DISTINCT col1 / - + 81 * - 24 AS col2, 72 AS col0 FROM tab2
----
0
72

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col1 * col2
----

query I rowsort
SELECT DISTINCT + col0 + - + col2 + - 38 FROM tab0 AS cor0
----
-40
-70
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT + AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 > NULL AND NOT NULL = + col2 * - ( col2 ) + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 > NULL AND NOT NULL = + col2 * - ( col2 ) + - col2
----
NULL

query II rowsort
SELECT ALL + - col2, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT + col2 * col1 AS col1, ( col1 ) * col1 AS col1 FROM tab1 AS cor0 WHERE - col0 * col2 > col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <= - ( col2 )
----

query II rowsort
SELECT - col0, + col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT - MIN( ALL 92 ) AS col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4242
SELECT - MIN ( ALL 92 ) AS col2 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT ALL + 55 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 31 BETWEEN NULL AND ( + + col1 + + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 * + 98 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - ( + 18 ) - - 10 * - col2 FROM tab2
----
-1058
-1552
-1930

query I rowsort
SELECT + 21 - - col0 AS col1 FROM tab1
----
106
112
72

query I rowsort
SELECT col2 * + col1 - - - 59 AS col2 FROM tab1
----
1285
236
3137

query II rowsort
SELECT DISTINCT ( - col1 ) AS col2, + col2 * + 96 AS col0 FROM tab0
----
-1
9504
-21
960
-81
4512

query I rowsort
SELECT DISTINCT - 13 + - col2 + - col1 * + ( + col1 ) FROM tab1
----
-2290
-305
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4251
SELECT ALL + ( - col0 ) AS col2, - col0 * - + CAST( NULL AS SIGNED ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4251
SELECT ALL + ( - col0 ) AS col2, - col0 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT + - 32 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT COUNT( * ) * + 98 col0 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4254
SELECT COUNT ( * ) * + 98 col0 FROM tab1 AS cor0
----
294

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 81 * + col0 FROM tab0 AS cor0
----
-1215
-7047
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + COUNT( * ) * MAX( + col1 ) + - - 24 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4257
SELECT + COUNT ( * ) * MAX ( + col1 ) + - - 24 FROM tab2 AS cor0
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4258
SELECT DISTINCT MAX( DISTINCT col0 ) DIV 61 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT MAX ( DISTINCT col0 ) / 61 AS col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * + 27 * - - 59 + - 49 col0 FROM tab2 AS cor0
----
15881
15881
15881

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT - COUNT( * ) * - 58 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT - COUNT ( * ) * - 58 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + ( - + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + ( - + col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 69 FROM tab2 cor0 WHERE NOT + ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT col1 * + 11 * col2 AS col2 FROM tab2
----
12903
33880
42746

query I rowsort
SELECT DISTINCT - + col0 - 65 * - - col1 FROM tab1 WHERE NOT - col2 < - + 61 * - col0
----

query I rowsort
SELECT DISTINCT + 52 + 52 AS col0 FROM tab1
----
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + + col0 col0 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT + 32 + + 98 FROM tab1, tab2 AS cor0
----
9 values hashing to ec85eb0bc5c919183cbcd7ee94cb222b

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 69 + - 18 + + col0 * + 16 + + 8 IS NULL
----

query I rowsort
SELECT DISTINCT 87 * - + col0 AS col0 FROM tab0 AS cor0
----
-1305
-7569
-8439

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT + CAST( - 25 AS SIGNED ) FROM tab1 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-4271
SELECT + CAST ( - 25 AS INTEGER ) FROM tab1 AS cor0
----
-25
-25
-25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - col2 - + - col1 * + + 77 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 16 ) * + - col1 col2 FROM tab0 cor0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT MIN( 58 ) AS col1 FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4274
SELECT MIN ( 58 ) AS col1 FROM tab0 cor0
----
58

query I rowsort
SELECT 94 FROM tab0 WHERE - - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT DISTINCT MIN( ALL + + 15 ), SUM( ALL + + col2 ) AS col0 FROM tab1
----
15
223

skipif mysql # not compatible
query II rowsort label-4277
SELECT DISTINCT MIN ( ALL + + 15 ), SUM ( ALL + + col2 ) AS col0 FROM tab1
----
15
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL - - ( + - COUNT( - 8 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - - ( + - COUNT ( - 8 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4279
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( - - 40 * ( + + ( + col2 ) ) * + + col2 * CAST( NULL AS SIGNED ) + + - col0 - CAST( NULL AS SIGNED ) * - col1, - 11, col1, - 27, col2, + col2 * 52, - CAST( + 66 AS DECIMAL ) * + 77 + + - 42 )
----

skipif mysql # not compatible
query III rowsort label-4279
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( - - 40 * ( + + ( + col2 ) ) * + + col2 * CAST ( NULL AS INTEGER ) + + - col0 - CAST ( NULL AS INTEGER ) * - col1, - 11, col1, - 27, col2, + col2 * 52, - CAST ( + 66 AS REAL ) * + 77 + + - 42 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT + - col1 + col0 + + col1 DIV col0 AS col1 FROM tab2 cor0
----
-12
-4
8

skipif mysql # not compatible
query I rowsort label-4280
SELECT + - col1 + col0 + + col1 / col0 AS col1 FROM tab2 cor0
----
-12
-4
8

query I rowsort
SELECT - col2 * + col0 + col2 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT DISTINCT + 45 + + 80 DIV + COUNT( * ) AS col1 FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT + 45 + + 80 / + COUNT ( * ) AS col1 FROM tab2 cor0
----
71

query I rowsort
SELECT ALL col0 + - + 37 AS col2 FROM tab2 AS cor0
----
27
38
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT ALL col1 * + + 98 * CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL col1 * + + 98 * CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col0 FROM tab0
----
-162
-2
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * - col1 * + 65 FROM tab1
----
-12740
-143585
-1625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT - 37 DIV MAX( DISTINCT - 76 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT - 37 / MAX ( DISTINCT - 76 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT MIN( ALL 89 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4289
SELECT MIN ( ALL 89 ) FROM tab0
----
89

query I rowsort
SELECT ALL + 12 * + - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT 1 + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-4292
SELECT 1 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT SUM( col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT SUM ( col0 ) FROM tab0 AS cor0
----
199

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 94 + + 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - 0 + COUNT( * ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4295
SELECT - 0 + COUNT ( * ) col0 FROM tab2 cor0
----
3

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + ( 32 ) IS NOT NULL
----

query I rowsort
SELECT ALL - + 90 + col0 FROM tab0 AS cor0 WHERE col2 >= NULL OR col2 IS NULL
----

query I rowsort
SELECT ALL - ( + 54 ) * - + col0 FROM tab0 AS cor0
----
4698
5238
810

query I rowsort
SELECT - col0 * + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT + + 41 + + - COUNT( * ) FROM tab2 cor0
----
38

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + + 41 + + - COUNT ( * ) FROM tab2 cor0
----
38

query I rowsort
SELECT + col0 * - col1 + + col1 + col0 AS col1 FROM tab2 AS cor0
----
-2249
-4787
-4883

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL - MAX( DISTINCT + col0 ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4303
SELECT ALL - MAX ( DISTINCT + col0 ) col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4304
SELECT 18 col2, - COUNT( * ) FROM tab2
----
18
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4304
SELECT 18 col2, - COUNT ( * ) FROM tab2
----
18
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4305
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) < col0 * 98 + + col2 + col2
----

skipif mysql # not compatible
query III rowsort label-4305
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) < col0 * 98 + + col2 + col2
----

query I rowsort
SELECT ALL - col0 + + 53 FROM tab2
----
-11
-22
7

query I rowsort
SELECT DISTINCT - 80 + - col0 FROM tab1 AS cor0
----
-131
-165
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT col0 DIV - col1 + + + 54 + + col0 AS col0 FROM tab1 AS cor0
----
102
122
144

skipif mysql # not compatible
query I rowsort label-4308
SELECT col0 / - col1 + + + 54 + + col0 AS col0 FROM tab1 AS cor0
----
102
122
144

query I rowsort
SELECT DISTINCT - - col1 + 77 FROM tab2 AS cor0
----
128
144
154

onlyif mysql # DIV for integer division: 
query III rowsort label-4310
SELECT + 43 + - col1 col1, - 41 DIV + 84 AS col1, - + col2 * - + 52 + col2 FROM tab2
----
9 values hashing to 24732b978728d96c2eca22629352f6e0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4310
SELECT + 43 + - col1 col1, - 41 / + 84 AS col1, - + col2 * - + 52 + col2 FROM tab2
----
9 values hashing to 24732b978728d96c2eca22629352f6e0

query I rowsort
SELECT DISTINCT col0 * - 70 FROM tab2
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4312
SELECT + 34 DIV + MIN( ALL + + col0 ), - 74 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4312
SELECT + 34 / + MIN ( ALL + + col0 ), - 74 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT ALL col1 DIV + - 54 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL col1 / + - 54 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + + col1 AS col0 FROM tab0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT ALL 80 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL 80 / + col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL SUM( ALL - 85 ) FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL SUM ( ALL - 85 ) FROM tab0 AS cor0
----
-255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + - col2, col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 71 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT MIN( - 16 ) * 98 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1559

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT MIN ( - 16 ) * 98 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1559

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( - 85 ) FROM tab1 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4325
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - CAST( NULL AS SIGNED ) + + col1 + + + 48 + col1 * - + ( ( - + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-4325
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - CAST ( NULL AS INTEGER ) + + col1 + + + 48 + col1 * - + ( ( - + col2 ) )
----

query II rowsort
SELECT ALL + + col1 + 72 + + - col2, col0 AS col1 FROM tab1 cor0
----
-10
51
18
85
51
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, + 67 FROM tab0 AS cor0
----
-1
67
-21
67
-81
67

query I rowsort
SELECT DISTINCT + col1 + + 42 * 26 AS col2 FROM tab1 AS cor0
----
1097
1106
1139

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4330
SELECT ALL - - MAX( + 38 ) + + + 89 AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
127
3

skipif mysql # not compatible
query II rowsort label-4330
SELECT ALL - - MAX ( + 38 ) + + + 89 AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
127
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 col1, - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT MIN( + 20 ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT MIN ( + 20 ) FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL - SUM( col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - SUM ( col2 ) FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-4334
SELECT DISTINCT + + 69 AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
69
3

skipif mysql # not compatible
query II rowsort label-4334
SELECT DISTINCT + + 69 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL - 52 * COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL - 52 * COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0
----
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + 92, - 61 col2 FROM tab1
----
1288
-61
4324
-61
460
-61

query I rowsort
SELECT ALL - col2 * + - col1 * + + 8 AS col2 FROM tab1
----
10752
2360
25568

query I rowsort
SELECT DISTINCT ( - 89 ) + - + col1 AS col1 FROM tab2
----
-140
-156
-166

query III rowsort
SELECT * FROM tab2 WHERE 77 * + - col2 - - - col2 BETWEEN NULL AND + + col2 * + - col1 + ( + col2 )
----

query I rowsort
SELECT - 79 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - COUNT( * ) + 16 AS col1 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-4341
SELECT - COUNT ( * ) + 16 AS col1 FROM tab0 cor0
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - 44
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4343
SELECT - 45 DIV - MIN( DISTINCT + 63 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT - 45 / - MIN ( DISTINCT + 63 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT + + MIN( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4344
SELECT + + MIN ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT + SUM( + 85 ) FROM tab0 cor0
----
255

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT + SUM ( + 85 ) FROM tab0 cor0
----
255

query II rowsort
SELECT ALL col1, + col2 * - 74 AS col0 FROM tab0
----
1
-7326
21
-740
81
-3478

query I rowsort
SELECT + 25 * + 75 FROM tab0
----
1875
1875
1875

query I rowsort
SELECT + - col0 * + - 66 AS col2 FROM tab2 AS cor0
----
3036
4224
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + COUNT( - ( + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4349
SELECT + COUNT ( - ( + col2 ) ) FROM tab0
----
3

query I rowsort
SELECT col2 + - - ( + col1 ) AS col1 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT ALL 31 + col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL 31 + col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 38 FROM tab1 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT - COUNT( col0 ) + + + COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - COUNT ( col0 ) + + + COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - ( - - col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + - 95 + - - col0 * - col0 AS col1 FROM tab1 AS cor0
----
-2696
-7320
-8376

query I rowsort
SELECT DISTINCT + col1 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL + - SUM( 14 ) FROM tab2 WHERE - col0 * col1 IN ( + col0, 53 + + 51, - - ( col2 ) + - col2, + ( col2 ), - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL + - SUM ( 14 ) FROM tab2 WHERE - col0 * col1 IN ( + col0, 53 + + 51, - - ( col2 ) + - col2, + ( col2 ), - 61 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 2 col2, - 63 * - + col1 FROM tab1
----
-2
2961
-2
315
-2
882

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * + col1 / - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - MAX( DISTINCT + 98 ) AS col2 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-4361
SELECT - MAX ( DISTINCT + 98 ) AS col2 FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT + SUM( - 48 ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT + SUM ( - 48 ) FROM tab0
----
-144

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN NULL AND + 45
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 30 - 76 FROM tab1
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 11 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 11 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT COUNT( * ) + MAX( ALL col1 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4366
SELECT COUNT ( * ) + MAX ( ALL col1 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT - 83 * col2 AS col2 FROM tab1
----
-4897
-5644
-7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4369
SELECT DISTINCT 28 DIV + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT 28 / + COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4370
SELECT + 97 * SUM( DISTINCT 99 ) FROM tab2 WHERE NOT CAST( + 19 AS SIGNED ) BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT + 97 * SUM ( DISTINCT 99 ) FROM tab2 WHERE NOT CAST ( + 19 AS INTEGER ) BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT MAX( 4 ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4371
SELECT MAX ( 4 ) AS col0 FROM tab1
----
4

query I rowsort
SELECT 75 + + col1 AS col2 FROM tab2
----
126
142
152

query I rowsort
SELECT ( - ( - col0 ) ) * - col0 + 18 AS col1 FROM tab1
----
-2583
-7207
-8263

onlyif mysql # DIV for integer division: 
query I rowsort label-4374
SELECT DISTINCT - col0 DIV 9 AS col0 FROM tab1
----
-10
-5
-9

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT - col0 / 9 AS col0 FROM tab1
----
-10
-5
-9

query I rowsort
SELECT ( + 40 ) + col0 FROM tab1
----
125
131
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT CAST( NULL AS SIGNED ) + 41 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT CAST ( NULL AS INTEGER ) + 41 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT 37 * 72 + MIN( col2 ) FROM tab1
----
2723

skipif mysql # not compatible
query I rowsort label-4377
SELECT 37 * 72 + MIN ( col2 ) FROM tab1
----
2723

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4378
SELECT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) + ( - col1 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4378
SELECT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) + ( - col1 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT + 78 + - COUNT( * ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4381
SELECT DISTINCT + 78 + - COUNT ( * ) col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + COUNT( * ) - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4382
SELECT + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT DISTINCT COUNT( ( CAST( col1 AS SIGNED ) ) ) FROM tab0 WHERE - col2 NOT BETWEEN ( + col0 / - 82 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT COUNT ( ( CAST ( col1 AS INTEGER ) ) ) FROM tab0 WHERE - col2 NOT BETWEEN ( + col0 / - 82 ) AND NULL
----
3

query I rowsort
SELECT ALL 14 * ( col1 ) + col1 * 14 AS col0 FROM tab1
----
1316
140
392

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * col2 + col2 AS col1 FROM tab0 WHERE NOT ( ( ( - col1 ) ) * + 68 ) NOT BETWEEN NULL AND col2 * - 22 + - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT MAX( ( - col0 ) ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4387
SELECT MAX ( ( - col0 ) ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - 95 * COUNT( * ) AS col1 FROM tab2 WHERE NULL = - 61 - 57
----
0

skipif mysql # not compatible
query I rowsort label-4388
SELECT - 95 * COUNT ( * ) AS col1 FROM tab2 WHERE NULL = - 61 - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ( - COUNT( * ) ) FROM tab1 WHERE NOT NULL < - 36
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT ( - COUNT ( * ) ) FROM tab1 WHERE NOT NULL < - 36
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col1 FROM tab2
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col1 FROM tab2
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ( + MAX( ALL + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4393
SELECT ( + MAX ( ALL + col0 ) ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ( + MAX( ALL - 56 ) ) AS col0 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-4394
SELECT ( + MAX ( ALL - 56 ) ) AS col0 FROM tab0
----
-56

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 65 * col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col2 > NULL
----

query I rowsort
SELECT DISTINCT + 7 * - col2 FROM tab1 AS cor0
----
-413
-476
-672

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + col0
----
15
81
47

query I rowsort
SELECT - ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col0 ) AND 31 + + 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT ALL + 13 DIV 78 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + 13 / 78 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT - 78 * COUNT( * ) col0 FROM tab1 WHERE NOT ( 5 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4401
SELECT DISTINCT - 78 * COUNT ( * ) col0 FROM tab1 WHERE NOT ( 5 ) IS NOT NULL
----
0

query I rowsort
SELECT - 71 AS col0 FROM tab0 WHERE NOT ( + ( col1 ) * col2 ) IN ( 15 + 88 * 91 )
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + 12 + - col0 FROM tab2
----
-34
-52
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT 59 + + SUM( ALL 72 ) AS col1 FROM tab1
----
275

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT 59 + + SUM ( ALL 72 ) AS col1 FROM tab1
----
275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4405
SELECT + + SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT + + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL + COUNT( * ) + - 31 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL + COUNT ( * ) + - 31 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT + SUM( col1 ) AS col1 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT + SUM ( col1 ) AS col1 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT col1 + 75 DIV col2 AS col1 FROM tab1 AS cor0
----
14
48
6

skipif mysql # not compatible
query I rowsort label-4409
SELECT col1 + 75 / col2 AS col1 FROM tab1 AS cor0
----
14
48
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT DISTINCT + col2 DIV col1 + + 49 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-4
99

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + col2 / col1 + + 49 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-4
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN col1 + col0 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT col1 DIV col0 + 45 FROM tab2 AS cor0
----
45
46
46

skipif mysql # not compatible
query I rowsort label-4412
SELECT col1 / col0 + 45 FROM tab2 AS cor0
----
45
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - SUM( col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT - SUM ( col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - 99 + - 85 AS col0 FROM tab2 AS cor0
----
-184

query I rowsort
SELECT + 19 + + 11 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT + col2 + 6 AS col2 FROM tab2 AS cor0
----
29
46
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4417
SELECT DISTINCT + + COUNT( ALL 48 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT + + COUNT ( ALL 48 ) / + COUNT ( * ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 93 AND col2 + - 68 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT - col0 + col2 DIV 90 FROM tab0 AS cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-4419
SELECT - col0 + col2 / 90 FROM tab0 AS cor0
----
-15
-87
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL MAX( DISTINCT col2 ) + COUNT( * ) AS col0 FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL MAX ( DISTINCT col2 ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
99

query III rowsort
SELECT * FROM tab2 WHERE 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 - 9 FROM tab0
----
1
38
90

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + 93 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + 64 ) AND 28 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT - ( - + CAST( NULL AS SIGNED ) ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT - ( - + CAST ( NULL AS INTEGER ) ) + + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL - 33 * MIN( ALL + 86 * - 11 ) AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - 33 * MIN ( ALL + 86 * - 11 ) AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT ALL + AVG ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE 15 * + CAST( NULL AS SIGNED ) + + col0 BETWEEN col0 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + AVG ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE 15 * + CAST ( NULL AS INTEGER ) + + col0 BETWEEN col0 AND col0
----
NULL

query I rowsort
SELECT + 50 * - col2 AS col1 FROM tab1 AS cor0
----
-2950
-3400
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4429
SELECT DISTINCT CAST( + 60 AS SIGNED ) * + COUNT( * ) + COUNT( col0 ) DIV - MAX( col1 + col1 * - 52 ) FROM tab2 cor0
----
180

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT CAST ( + 60 AS INTEGER ) * + COUNT ( * ) + COUNT ( col0 ) / - MAX ( col1 + col1 * - 52 ) FROM tab2 cor0
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT ALL + COUNT( * ) - + CAST( NULL AS SIGNED ) * - 84 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + COUNT ( * ) - + CAST ( NULL AS INTEGER ) * - 84 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT ( + 0 ) FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL MAX( ALL - + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL MAX ( ALL - + col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT + COUNT( 0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4434
SELECT + COUNT ( 0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col0 * + - col0 * + col0 + col0 FROM tab1 AS cor0
----
-132600
-614040
-753480

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT DISTINCT + - MAX( ALL - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT + - MAX ( ALL - col0 ) FROM tab0 cor0
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 67 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 52 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 20 * - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( + 39 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 81
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 86 * col0 IN ( 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT + CAST( 67 AS SIGNED ) AS col2 FROM tab1
----
67
67
67

skipif mysql # not compatible
query I rowsort label-4443
SELECT + CAST ( 67 AS INTEGER ) AS col2 FROM tab1
----
67
67
67

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + - - col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - COUNT( + + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - COUNT ( + + col1 ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE - 6 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT 34 * + + COUNT( * ) col2 FROM tab0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4447
SELECT 34 * + + COUNT ( * ) col2 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT COUNT( * ) * + 46 AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT COUNT ( * ) * + 46 AS col2 FROM tab2
----
138

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col2 * 74 < col2
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE ( - + col2 ) + + 74 BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT ( 98 ) * col0 + + - col0 FROM tab1
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - + MIN( 19 ) AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4452
SELECT - + MIN ( 19 ) AS col2 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4453
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * - col1 = col1 * + CAST( + 9 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4453
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * - col1 = col1 * + CAST ( + 9 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - - 7 + + col1 * - 40 )
----

query I rowsort
SELECT - col1 * 72 + col0 + col1 FROM tab2
----
-3575
-4682
-5403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT CAST( NULL AS SIGNED ) + + col0 - - - col2 - - + 80 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT CAST ( NULL AS INTEGER ) + + col0 - - - col2 - - + 80 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 61 AS col2 FROM tab0
----
-2867
-6039
-610

query I rowsort
SELECT DISTINCT 78 * col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3666
7722
780

query I rowsort
SELECT DISTINCT - - ( col0 ) + + col2 FROM tab1 AS cor0 WHERE NOT col2 = col2 / - + col2
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4460
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - ( - 7 ) AS col2 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT - MIN( DISTINCT + col2 ) + - ( + 27 ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT - MIN ( DISTINCT + col2 ) + - ( + 27 ) FROM tab1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT + SUM( DISTINCT + 72 ), - COUNT( ALL + col1 ) AS col1 FROM tab0
----
72
-3

skipif mysql # not compatible
query II rowsort label-4463
SELECT + SUM ( DISTINCT + 72 ), - COUNT ( ALL + col1 ) AS col1 FROM tab0
----
72
-3

query I rowsort
SELECT 94 * + col2 - 39 * + + 82 + - col0 + + col2 FROM tab2
----
-1059
2237
538

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 7 * - col2 - + col1 * + - col1 * + col2 FROM tab0
----
308696
4480
792

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4468
SELECT DISTINCT - col0, - col2 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4468
SELECT DISTINCT - col0, - col2 + - + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4470
SELECT col0 - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT col0 - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col0 + 19 AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) NOT IN ( col2 ) )
----

query I rowsort
SELECT ALL col2 * + 9 AS col1 FROM tab2
----
207
360
522

query I rowsort
SELECT ALL - 40 + - col2 FROM tab1
----
-108
-136
-99

query I rowsort
SELECT col0 + + 23 + - 25 * + 83 AS col0 FROM tab2
----
-1977
-1988
-2006

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT NULL IN ( + col2 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 86 <= - - col2
----
85
5
59
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col0 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT col2 + + 37 FROM tab2 AS cor0
----
60
77
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT + + 40, MIN( DISTINCT - 25 ) * + + 2 AS col1 FROM tab0 cor0
----
40
-50

skipif mysql # not compatible
query II rowsort label-4479
SELECT + + 40, MIN ( DISTINCT - 25 ) * + + 2 AS col1 FROM tab0 cor0
----
40
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4480
SELECT ALL SUM( 89 ), - 35 AS col1, + CAST( + 74 AS SIGNED ) AS col0 FROM tab1
----
267
-35
74

skipif mysql # not compatible
query III rowsort label-4480
SELECT ALL SUM ( 89 ), - 35 AS col1, + CAST ( + 74 AS INTEGER ) AS col0 FROM tab1
----
267
-35
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col2 FROM tab2 cor0
----
-12
-12
-12

query I rowsort
SELECT - 60 FROM tab1 AS cor0 WHERE NOT - 91 IN ( + 43 + - col1, ( 3 ) - - - col2 )
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL + SUM( ALL + 71 ) AS col2 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + SUM ( ALL + 71 ) AS col2 FROM tab1 AS cor0
----
213

query I rowsort
SELECT - col0 * + + 55 AS col0 FROM tab2 AS cor0
----
-2530
-3520
-4125

query I rowsort
SELECT ALL 79 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( ALL - col0 ) col1 FROM tab2 AS cor0 WHERE NOT ( ( NULL = ( + 34 + + col2 + + col1 ) ) )
----
NULL

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT - CAST( - - CAST( + col0 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4488
SELECT - CAST ( - - CAST ( + col0 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col1, 9 * + - col2 FROM tab2
----
51
-207
67
-522
77
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN + 13 + 30 * - 1 - - 43 + + - 4 * + - col0 * ( + col0 ) AND - 93 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN + 13 + 30 * - 1 - - 43 + + - 4 * + - col0 * ( + col0 ) AND - 93 * + 80
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, 50 AS col0 FROM tab0
----
10
50
47
50
99
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 + + 82 * + - 50 col0, + col2 AS col0 FROM tab0
----
-4087
10
-4087
47
-4087
99

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE - col1 / 13 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE - 17 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE - 17 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT 52 / - - col1 * - col1 + + col1 FROM tab1 WHERE NOT NULL <= + 36
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT DISTINCT + 14 DIV + - col2 + + 75 FROM tab0
----
74
75

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + 14 / + - col2 + + 75 FROM tab0
----
74
75

query I rowsort
SELECT ALL - 14 - - 28 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT col0 + 37 * - - col1 FROM tab2 AS cor0
----
1933
2554
2913

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / col2 NOT BETWEEN - 99 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 99 + + 24 FROM tab0 AS cor0
----
123

query II rowsort
SELECT - - col0 + + + 58, 95 AS col2 FROM tab1 cor0
----
109
95
143
95
149
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) - + col0 FROM tab2 AS cor0 WHERE col0 * 63 + 44 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) - + col0 FROM tab2 AS cor0 WHERE col0 * 63 + 44 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1, col0, col1 )
----

query I rowsort
SELECT col1 + - 8 FROM tab0 AS cor0
----
-7
13
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT DISTINCT + - 11 + + + CAST( - col2 AS SIGNED ) + - col0 * + col0 FROM tab1 AS cor0
----
-2708
-7295
-8360

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + - 11 + + + CAST ( - col2 AS INTEGER ) + - col0 * + col0 FROM tab1 AS cor0
----
-2708
-7295
-8360

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL MIN( ALL + 9 ) + - SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
130

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL MIN ( ALL + 9 ) + - SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
130

query I rowsort
SELECT ALL - 12 * + 9 AS col2 FROM tab1
----
-108
-108
-108

query I rowsort
SELECT - 19 / + 49 - - - 47 AS col2 FROM tab2 WHERE - - col1 < NULL
----

query I rowsort
SELECT DISTINCT 52 * - + col2 AS col0 FROM tab0
----
-2444
-5148
-520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4510
SELECT ALL COUNT( * ) DIV + 19 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL COUNT ( * ) / + 19 AS col0 FROM tab2
----
0

query I rowsort
SELECT + col0 - - + col1 * - col0 AS col1 FROM tab1
----
-340
-4186
-663

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT col2 DIV + - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT col2 / + - col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT DISTINCT 12 DIV - 47 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4513
SELECT DISTINCT 12 / - 47 col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - col0 AS col0, - col1 FROM tab2 cor0
----
-46
-51
-64
-77
-75
-67

query II rowsort
SELECT - + 66 AS col0, col2 * - col2 * col0 * + 71 AS col2 FROM tab2 AS cor0
----
-66
-1727714
-66
-17913300
-66
-7270400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT ALL - ( + CAST( col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL - ( + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4517
SELECT ALL CAST( NULL AS SIGNED ) col0, - COUNT( * ) FROM tab0 cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4517
SELECT ALL CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) FROM tab0 cor0
----
NULL
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4519
SELECT col0 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT col0 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab0
----
-93

query III rowsort
SELECT * FROM tab1 WHERE NOT - 74 NOT IN ( + + col0 * - col0, col1, - 94 * col1 * - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4522
SELECT col1 DIV - col0 col0, - 78 FROM tab2
----
-1
-78
-1
-78
0
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4522
SELECT col1 / - col0 col0, - 78 FROM tab2
----
-1
-78
-1
-78
0
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - SUM( + - 49 ) * - 46 * - + COUNT( * ) AS col1 FROM tab0
----
20286

skipif mysql # not compatible
query I rowsort label-4523
SELECT - SUM ( + - 49 ) * - 46 * - + COUNT ( * ) AS col1 FROM tab0
----
20286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL ( + col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL ( + col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 32 + - col1 AS col0, - 75 AS col1 FROM tab1 AS cor0
----
-15
-75
18
-75
27
-75

query I rowsort
SELECT - 40 AS col2 FROM tab2 AS cor0 WHERE ( - col0 * + - col2 * + col0 ) < col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + col2 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT - 92 + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 92 + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ALL - MIN( ALL 43 ) AS col2 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - MIN ( ALL 43 ) AS col2 FROM tab0 AS cor0
----
-43

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 * col0 ) BETWEEN ( 13 ) AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - - 30 col0 FROM tab2 AS cor0
----
-53
-70
-88

query I rowsort
SELECT DISTINCT - - 0 FROM tab2 cor0 WHERE 29 / 95 NOT IN ( + - col0, ( - - 59 ), + ( + + 83 ) )
----
0

query I rowsort
SELECT - col0 - 34 FROM tab1 AS cor0
----
-119
-125
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + col0 BETWEEN NULL AND 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + COUNT( * ) - - + 74 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-4537
SELECT + COUNT ( * ) - - + 74 FROM tab0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4538
SELECT MAX( ALL - 32 ) AS col2, COUNT( * ) - + CAST( + + 82 AS SIGNED ) AS col0 FROM tab0
----
-32
-79

skipif mysql # not compatible
query II rowsort label-4538
SELECT MAX ( ALL - 32 ) AS col2, COUNT ( * ) - + CAST ( + + 82 AS INTEGER ) AS col0 FROM tab0
----
-32
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + + MIN( DISTINCT 41 ) FROM tab2 WHERE NOT + + col0 IS NULL
----
41

skipif mysql # not compatible
query I rowsort label-4539
SELECT + + MIN ( DISTINCT 41 ) FROM tab2 WHERE NOT + + col0 IS NULL
----
41

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT 70 + + - 31 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4541
SELECT - - col0 DIV + 44 + - col2 + - + 49 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-146
97
-58
87
-96
15

skipif mysql # not compatible
query II rowsort label-4541
SELECT - - col0 / + 44 + - col2 + - + 49 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-146
97
-58
87
-96
15

query I rowsort
SELECT ALL - ( - - 78 ) * - + 42 AS col2 FROM tab0 AS cor0
----
3276
3276
3276

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4543
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + col0 + + + col2 + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT CAST ( NULL AS REAL ) * + + col0 + + + col2 + col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT - - ( - col2 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4544
SELECT - - ( - col2 ) / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 = col1
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + MAX( ALL - 52 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4546
SELECT + MAX ( ALL - 52 ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + ( - SUM( DISTINCT - + col1 ) ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4550
SELECT + ( - SUM ( DISTINCT - + col1 ) ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT ALL col0 DIV + + 82 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL col0 / + + 82 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <> col0
----

query I rowsort
SELECT + + col1 * + + 11 AS col1 FROM tab0 AS cor0
----
11
231
891

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + 99 * + - 44 FROM tab0 AS cor0
----
-4356
-4356
-4356

query I rowsort
SELECT DISTINCT + col0 * + col2 * - 26 FROM tab0 AS cor0
----
-18330
-22620
-249678

query I rowsort
SELECT 54 + + + col0 AS col0 FROM tab2
----
100
118
129

query I rowsort
SELECT ALL - 52 * + + 51 * - col1 FROM tab0
----
214812
2652
55692

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( 25 + - ( 65 ), col1 + - col2, - col1, - 61, - 80 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + - 83 BETWEEN - 65 * + col0 + + col0 + col2 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 / - col1 + - - 96 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - 6 ) + - 69 + + + 64 * - 14 + 42 FROM tab0
----
-929
-929
-929

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT - 55 + + COUNT( * ) AS col2 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-4564
SELECT - 55 + + COUNT ( * ) AS col2 FROM tab1
----
-52

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT - - 14 AS col1, + col2 * + 97 AS col2 FROM tab1 AS cor0
----
14
5723
14
6596
14
9312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4568
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) IN ( 0, 31 )
----

skipif mysql # not compatible
query III rowsort label-4568
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IN ( 0, 31 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT COUNT( * ) + + 25 - + - CAST( - - 86 AS SIGNED ) AS col2 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-4569
SELECT COUNT ( * ) + + 25 - + - CAST ( - - 86 AS INTEGER ) AS col2 FROM tab0
----
114

query I rowsort
SELECT 94 * - + col1 + + col0 AS col2 FROM tab2 AS cor0
----
-4748
-6223
-7174

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - 6 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4571
SELECT - 6 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 - - + col2 ) < + col1 * - col1 * - col0 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 81 + - col1 + + 69 FROM tab0 AS cor0
----
129
149
69

query I rowsort
SELECT DISTINCT + - 30 AS col2 FROM tab0 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL - - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + ( 17 ) AS col2 FROM tab2
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT + CAST( 85 AS SIGNED ) AS col2 FROM tab0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4578
SELECT + CAST ( 85 AS INTEGER ) AS col2 FROM tab0
----
85
85
85

query I rowsort
SELECT ALL col2 * - - 83 FROM tab1
----
4897
5644
7968

query I rowsort
SELECT DISTINCT + ( 63 ) AS col0 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4581
SELECT DISTINCT + CAST( + - ( col0 ) AS SIGNED ), col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

skipif mysql # not compatible
query II rowsort label-4581
SELECT DISTINCT + CAST ( + - ( col0 ) AS INTEGER ), col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT ALL col0 * - col0 * col2, + col1 AS col1 FROM tab2 AS cor0
----
-163840
77
-326250
67
-48668
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( 54 + 94 * + 57, - 4, + + col2 / + col1, 98 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 76 AS col2 FROM tab0 cor0
----
-76

query II rowsort
SELECT DISTINCT - 61 + - 30, + col2 AS col0 FROM tab1 cor0
----
-91
59
-91
68
-91
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - + col2 + - ( col2 )
----

query I rowsort
SELECT ALL - 31 + - ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-112
-32
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + - + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + - + col1 IS NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT ALL + - 82 DIV - - COUNT( * ) + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + - 82 / - - COUNT ( * ) + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-30

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - - col2 * - 77 FROM tab2
----
-197120
-334950
-81466

query I rowsort
SELECT - 78 * - + 46 AS col2 FROM tab0
----
3588
3588
3588

query I rowsort
SELECT 40 AS col2 FROM tab1 WHERE - 28 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL COUNT( * ) + - - CAST( - 0 AS SIGNED ) * + - MIN( DISTINCT - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL COUNT ( * ) + - - CAST ( - 0 AS INTEGER ) * + - MIN ( DISTINCT - col0 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT - 39, - 15 * - + 9 AS col1 FROM tab1
----
-39
135
-39
135
-39
135

query I rowsort
SELECT 87 * col0 FROM tab2
----
4002
5568
6525

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 76 < + - ( - col0 ) * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 18, + col1 * - col1 AS col2 FROM tab1 AS cor0
----
18
-196
18
-2209
18
-25

query II rowsort
SELECT + col2, 22 FROM tab2 AS cor0
----
23
22
40
22
58
22

query II rowsort
SELECT + col1, - col2 AS col0 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + + ( - 63 ) AS col1 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4604
SELECT + ( - COUNT( * ) ) DIV + 8 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT + ( - COUNT ( * ) ) / + 8 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4605
SELECT ALL * FROM tab2 WHERE CAST( + 5 AS SIGNED ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4605
SELECT ALL * FROM tab2 WHERE CAST ( + 5 AS INTEGER ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( col1 ) + - 1 + + 36 NOT IN ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT + MIN( ALL + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT + MIN ( ALL + + col2 ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / + col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN - 62 AND 26
----
51
14
96
85
5
59

query I rowsort
SELECT ( ( + col0 ) ) AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL - 73 * COUNT( * ) * - + 36 AS col0 FROM tab1 AS cor0
----
7884

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - 73 * COUNT ( * ) * - + 36 AS col0 FROM tab1 AS cor0
----
7884

query I rowsort
SELECT DISTINCT + col2 * - 31 * + col2 FROM tab0 AS cor0
----
-303831
-3100
-68479

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4613
SELECT ALL - + CAST( - 84 AS SIGNED ) DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL - + CAST ( - 84 AS INTEGER ) / - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4614
SELECT DISTINCT - col0 AS col0, + CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab2 AS cor0 WHERE + col1 * col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4614
SELECT DISTINCT - col0 AS col0, + CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab2 AS cor0 WHERE + col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4615
SELECT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + - 93 * - - 60 * + 2 FROM tab1 cor0 WHERE col2 * - 31 < NULL
----

query I rowsort
SELECT ( + col1 ) * + + 65 - + 37 AS col2 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE ( + + ( + col0 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( + + ( + col0 ) ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4619
SELECT DISTINCT + - col2 + + 2 DIV - col1 col0, CAST( + - 50 AS SIGNED ) * - col1 - - - ( 8 ) AS col0 FROM tab2 AS cor0
----
-23
2542
-40
3842
-58
3342

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4619
SELECT DISTINCT + - col2 + + 2 / - col1 col0, CAST ( + - 50 AS INTEGER ) * - col1 - - - ( 8 ) AS col0 FROM tab2 AS cor0
----
-23
2542
-40
3842
-58
3342

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4620
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + col0 + col1 AND NOT + 17 / + col2 * col2 NOT BETWEEN + CAST( + - 23 AS SIGNED ) + - 82 + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4620
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + col0 + col1 AND NOT + 17 / + col2 * col2 NOT BETWEEN + CAST ( + - 23 AS INTEGER ) + - 82 + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - COUNT( + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4621
SELECT - COUNT ( + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - - 55 * - 63
----

query I rowsort
SELECT ALL - col2 - 46 FROM tab1
----
-105
-114
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT + 81 DIV + - MIN( ALL - col1 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4624
SELECT + 81 / + - MIN ( ALL - col1 ) AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT + col2 + + + CAST( NULL AS SIGNED ) * - 13 * 67 + - - 28 IN ( + ( + 11 ) )
----

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT + col2 + + + CAST ( NULL AS INTEGER ) * - 13 * 67 + - - 28 IN ( + ( + 11 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE ( 15 - + col0 IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( 15 - + col0 IS NOT NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 91 * + 51 + - col2 FROM tab1
----
-4700
-4709
-4737

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT MIN( ALL - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4628
SELECT MIN ( ALL - col2 ) FROM tab0
----
-99

query I rowsort
SELECT ALL - + ( 40 ) + + 72 AS col1 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + 30 + - ( - ( col0 ) ) FROM tab2 AS cor0
----
105
76
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT DISTINCT + 41 + - CAST( + + col1 AS SIGNED ) + - - col1 col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4631
SELECT DISTINCT + 41 + - CAST ( + + col1 AS INTEGER ) + - - col1 col1 FROM tab1 AS cor0
----
41

query I rowsort
SELECT ALL + col0 - + col1 + - + 32 FROM tab0 cor0
----
-98
34
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - 14 AND - + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4634
SELECT + 18 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 2 + - CAST( NULL AS DECIMAL ) = + - col0 )
----

skipif mysql # not compatible
query I rowsort label-4634
SELECT + 18 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 2 + - CAST ( NULL AS REAL ) = + - col0 )
----

query I rowsort
SELECT - + 51 * 56 AS col0 FROM tab1 cor0
----
-2856
-2856
-2856

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT ALL - - col2 * col1 + + + 24 FROM tab2 AS cor0 WHERE NOT 15 IS NULL
----
1197
3104
3910

query II rowsort
SELECT ALL col0 AS col1, - col1 FROM tab2
----
46
-51
64
-77
75
-67

query II rowsort
SELECT ALL + col2 AS col2, 23 + + col2 * + col2 FROM tab1
----
59
3504
68
4647
96
9239

query III rowsort
SELECT * FROM tab2 WHERE col0 <= + 7 OR ( + col2 ) BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col2 FROM tab0 AS cor0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4643
SELECT ALL - CAST( + + ( + MIN( col2 ) ) AS SIGNED ) * 44 FROM tab2 AS cor0
----
-1012

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - CAST ( + + ( + MIN ( col2 ) ) AS INTEGER ) * 44 FROM tab2 AS cor0
----
-1012

query I rowsort
SELECT DISTINCT - col2 + - 97 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4646
SELECT MIN( + + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4646
SELECT MIN ( + + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT + col2 * + + col2 * - col1 AS col0, - 44 AS col2 FROM tab0
----
-178929
-44
-2100
-44
-9801
-44

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 29 / + + 69 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + 65 + + - col0 FROM tab1
----
-20
-26
14

query I rowsort
SELECT + 74 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL + - 89 + - ( + 88 ) AS col0 FROM tab1 cor0 WHERE NOT ( + col2 ) = + col0
----
-177
-177
-177

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 + - + col0 - col1 / - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 / + col1 IN ( 61, col1 * - 51 + - col0, + col0 * + ( + + 57 ) * + col0 + + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL + 33 + + - SUM( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + 33 + + - SUM ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT 29 + - SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT 29 + - SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL COUNT( * ) * + MAX( + col2 ) + - 53 col0 FROM tab0 AS cor0
----
244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4658
SELECT ALL COUNT ( * ) * + MAX ( + col2 ) + - 53 col0 FROM tab0 AS cor0
----
244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT COUNT( * ) * 1 DIV + + 42 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT COUNT ( * ) * 1 / + + 42 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT 74 * - COUNT( * ) * + - COUNT( * ) * COUNT( * ) FROM tab2
----
1998

skipif mysql # not compatible
query I rowsort label-4660
SELECT 74 * - COUNT ( * ) * + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
1998

query I rowsort
SELECT ALL col1 * col1 * + + col0 AS col0 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT 15 - - COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-4662
SELECT 15 - - COUNT ( * ) FROM tab2
----
18

query I rowsort
SELECT ALL - col1 * + + col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT MIN( col0 ) - + 68 * - 41 FROM tab1
----
2839

skipif mysql # not compatible
query I rowsort label-4664
SELECT MIN ( col0 ) - + 68 * - 41 FROM tab1
----
2839

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL COUNT( * ) * + 33 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL COUNT ( * ) * + 33 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT 60 + - COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT 60 + - COUNT ( * ) FROM tab2
----
57

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL AND NOT ( + col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col1 col0 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 87 * + - col2 - - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT + col0 + + col0 - - + CAST( + col0 AS SIGNED ) + + - ( + col1 ) + col2 * 12 * + 6 FROM tab0 AS cor0
----
3348
7418
960

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT + col0 + + col0 - - + CAST ( + col0 AS INTEGER ) + + - ( + col1 ) + col2 * 12 * + 6 FROM tab0 AS cor0
----
3348
7418
960

onlyif mysql # DIV for integer division: 
query I rowsort label-4671
SELECT DISTINCT 9 + - + col1 DIV 7 DIV + - 92 * + - col0 AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT 9 + - + col1 / 7 / + - 92 * + - col0 AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT DISTINCT - 84 AS col2 FROM tab2 cor0 WHERE NULL <= + 30 - - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - 84 AS col2 FROM tab2 cor0 WHERE NULL <= + 30 - - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - ( - col2 ) * - col2 - + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-3056
-347
-8502

query II rowsort
SELECT + + 41 AS col0, 5 AS col1 FROM tab2 AS cor0
----
41
5
41
5
41
5

query I rowsort
SELECT DISTINCT 72 * + 16 * - col0 FROM tab0
----
-100224
-111744
-17280

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 + 19 / - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 84 / 65 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col1 FROM tab2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT DISTINCT + 18 DIV - col2 + + + col0 FROM tab0 AS cor0
----
15
86
97

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT + 18 / - col2 + + + col0 FROM tab0 AS cor0
----
15
86
97

query I rowsort
SELECT - - col2 * + 9 AS col0 FROM tab2 AS cor0
----
207
360
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4681
SELECT + + MAX( DISTINCT + + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4681
SELECT + + MAX ( DISTINCT + + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + + ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - col0 + + col1 * + 62 AND + col0 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 98 col1 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT DISTINCT col0 DIV + - col2 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT col0 / + - col2 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - - MIN( col0 ) - + - COUNT( * ) * - COUNT( * ) * 33 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-282

skipif mysql # not compatible
query I rowsort label-4686
SELECT - - MIN ( col0 ) - + - COUNT ( * ) * - COUNT ( * ) * 33 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-282

query I rowsort
SELECT ALL - 14 AS col0 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT - ( + + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - - 67 col2 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT ALL - ( - 23 ) AS col2 FROM tab1 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 4 col0 FROM tab0 AS cor0
----
-324
-4
-84

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 70 >= NULL
----

query I rowsort
SELECT - col2 * - - col2 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab0 WHERE + 67 IS NULL
----

query II rowsort
SELECT ALL col0, + 62 AS col0 FROM tab1
----
51
62
85
62
91
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 * + col0 - - 85 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4697
SELECT - col1 * + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT - col1 * + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + ( - CAST( NULL AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4698
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT - - COUNT( * ) + - + COUNT( * ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4699
SELECT DISTINCT - - COUNT ( * ) + - + COUNT ( * ) col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL COUNT( * ) - + + COUNT( + - col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL COUNT ( * ) - + + COUNT ( + - col1 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 * - col0 + + - col0 FROM tab1 AS cor0
----
340
4186
663

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4702
SELECT * FROM tab2 AS cor0 WHERE CAST( + col0 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4702
SELECT * FROM tab2 AS cor0 WHERE CAST ( + col0 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL MAX( ( col0 ) ) / - - ( + + 59 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 74 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL MAX ( ( col0 ) ) / - - ( + + 59 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 74 AND - col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT + - 68 * - COUNT( * ) + + COUNT( * ) + - ( - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) ) col1 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4704
SELECT + - 68 * - COUNT ( * ) + + COUNT ( * ) + - ( - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) col1 FROM tab0 AS cor0
----
207

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * 92 + + col0 + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 + 1 AS col2 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL 46 - COUNT( * ) * 33 FROM tab2 WHERE NOT NULL = col1
----
46

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 46 - COUNT ( * ) * 33 FROM tab2 WHERE NOT NULL = col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT COUNT( * ) * 9 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4708
SELECT COUNT ( * ) * 9 FROM tab2
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-4709
SELECT col0 DIV col2 AS col2, - col1 FROM tab1
----
0
-14
1
-47
1
-5

skipif mysql # not compatible
query II rowsort label-4709
SELECT col0 / col2 AS col2, - col1 FROM tab1
----
0
-14
1
-47
1
-5

query I rowsort
SELECT 67 + col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 4 + + + col1 FROM tab0
----
25
5
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= - + ( - + col1 )
----

query I rowsort
SELECT ALL ( + + col2 ) AS col1 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col1 FROM tab1
----
-33
-33
-33

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( 39 = NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT + ( + + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT - col0 < - - ( + + col2 ) DIV - - col1 - col0
----
3

skipif mysql # not compatible
query I rowsort label-4716
SELECT + ( + + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT - col0 < - - ( + + col2 ) / - - col1 - col0
----
3

query II rowsort
SELECT ALL - + 16 AS col2, - 97 FROM tab2 AS cor0
----
-16
-97
-16
-97
-16
-97

query II rowsort
SELECT + col1, + 89 FROM tab2 AS cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT DISTINCT + 60 + + 15 FROM tab0 WHERE NOT - 11 + + + col1 + - col1 * - col2 + + + col2 <> + + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT 9 * - COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-4720
SELECT 9 * - COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT ALL + col2 + - - 26 FROM tab2
----
49
66
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 6 >= col1
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE col2 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 98 ) + + + 64 col0 FROM tab0 AS cor0
----
162
162
162

query I rowsort
SELECT DISTINCT + + col2 * col1 + - ( - 70 ) + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - + ( - col1 ) + col0 <> NULL )
----

query I rowsort
SELECT - col1 + - 0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4728
SELECT ALL ( + + col1 ) * + col2 DIV col2 * col1 * CAST( + + ( - + 14 ) AS SIGNED ) + + 1 AS col1 FROM tab1
----
-2743
-30925
-349

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL ( + + col1 ) * + col2 / col2 * col1 * CAST ( + + ( - + 14 ) AS INTEGER ) + + 1 AS col1 FROM tab1
----
-2743
-30925
-349

query I rowsort
SELECT ALL 9 + - 0 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT ALL - + 28 + - - col1 * + 80 AS col2 FROM tab0 AS cor0
----
1652
52
6452

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4731
SELECT DISTINCT 31 * + 79 - + ( col2 ) * CAST( NULL AS SIGNED ) AS col0, - 35 AS col1 FROM tab0 AS cor0
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-4731
SELECT DISTINCT 31 * + 79 - + ( col2 ) * CAST ( NULL AS INTEGER ) AS col0, - 35 AS col1 FROM tab0 AS cor0
----
NULL
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 13 col1 FROM tab0 cor0
----
-34
-86
3

query I rowsort
SELECT DISTINCT - col2 + + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 91 * - col0 - 66 FROM tab1
----
4575
7669
8215

query I rowsort
SELECT ALL - 70 - + col1 AS col1 FROM tab1
----
-117
-75
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4736
SELECT ALL col1 * - 84 * - + CAST( NULL AS DECIMAL ) - 87 col0, - col2 * col0 AS col2 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4736
SELECT ALL col1 * - 84 * - + CAST ( NULL AS REAL ) - 87 col0, - col2 * col0 AS col2 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

query II rowsort
SELECT DISTINCT col0, - 41 + + col0 AS col2 FROM tab2
----
46
5
64
23
75
34

query I rowsort
SELECT + col1 + - ( + col2 ) - + 22 FROM tab2
----
-13
15
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

query I rowsort
SELECT - col0 + - col2 + ( + - col2 ) - + + col2 / col2 * - col1 * + ( + col2 ) FROM tab0 AS cor0 WHERE NOT - col1 + - col2 = NULL
----

query I rowsort
SELECT ALL + - 25 * + - col0 FROM tab2 AS cor0
----
1150
1600
1875

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT COUNT( + col1 ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4742
SELECT COUNT ( + col1 ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT ( + COUNT( * ) ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4743
SELECT ( + COUNT ( * ) ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4744
SELECT COUNT( * ) DIV + 81 DIV COUNT( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4744
SELECT COUNT ( * ) / + 81 / COUNT ( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT ALL ( 19 ) FROM tab0 AS cor0
----
19
19
19

query II rowsort
SELECT + col0 * - + col1, col2 FROM tab1 AS cor0
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT + COUNT( * ) * - - 32 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - - 34 ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + COUNT ( * ) * - - 32 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - - 34 ) AND col2
----
0

query I rowsort
SELECT - 5 * - col0 + col2 FROM tab0 AS cor0
----
122
445
584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col0 * - 44 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 * + - col1 * - - col1 ) = ( - - col2 )
----
-2024
-2816
-3300

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 = - 1 / + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL ( - - CAST( + col0 AS SIGNED ) ) * - 64 FROM tab2 AS cor0
----
-2944
-4096
-4800

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL ( - - CAST ( + col0 AS INTEGER ) ) * - 64 FROM tab2 AS cor0
----
-2944
-4096
-4800

query I rowsort
SELECT DISTINCT - + 96 * - col1 AS col2 FROM tab2 AS cor0
----
4896
6432
7392

query I rowsort
SELECT - col2 + + col0 + + col0 FROM tab1
----
111
114
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4756
SELECT ALL * FROM tab2 WHERE + col0 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4756
SELECT ALL * FROM tab2 WHERE + col0 >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 4 + - 42 - col1 FROM tab2
----
-105
-115
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4758
SELECT + SUM( ALL + 32 ) AS col2, 86 + - 30 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL
56

skipif mysql # not compatible
query II rowsort label-4758
SELECT + SUM ( ALL + 32 ) AS col2, 86 + - 30 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 * + ( - - col2 ) col2 FROM tab0
----
2773
5841
590

query I rowsort
SELECT - - 30 + - col0 FROM tab0 AS cor0
----
-57
-67
15

query I rowsort
SELECT ALL - + 87 + + 24 FROM tab1 AS cor0
----
-63
-63
-63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= + + ( 7 ) * - - 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ( - - 57 ) + COUNT( * ) AS col0 FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-4763
SELECT ( - - 57 ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( ( col1 ) ) col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN + col2 AND - col1 + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4765
SELECT DISTINCT - + MIN( + col0 ) DIV COUNT( * ) DIV + + COUNT( * ) + + COUNT( * ) * + 11 AS col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - + MIN ( + col0 ) / COUNT ( * ) / + + COUNT ( * ) + + COUNT ( * ) * + 11 AS col1 FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 94 + + + 54 * - - ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4766
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 94 + + + 54 * - - ( + - col1 )
----
0

query I rowsort
SELECT + + 42 + - 58 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4768
SELECT DISTINCT - + 62 + + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT - + 62 + + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 10 + - 77 FROM tab0
----
-67

query II rowsort
SELECT ALL col1 - - col1 + - - col2, col1 AS col0 FROM tab0
----
101
1
209
81
52
21

query I rowsort
SELECT + - col1 / - col0 AS col2 FROM tab0 WHERE NOT NULL >= + col2 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col0 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT + col1 AS col1, col1 * - col0 AS col2 FROM tab2 AS cor0
----
51
-2346
67
-5025
77
-4928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 79 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT MIN( - 55 ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4776
SELECT MIN ( - 55 ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-55

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 96 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT - MAX( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - MAX ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + 28 ) FROM tab1 AS cor0
----
-28
-28
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - 5 + + col0 * 48
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IS NULL AND ( NOT col2 / - + 3 * 83 * + + 12 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= + + 3
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT + MAX( DISTINCT CAST( - - 76 AS SIGNED ) ) AS col0 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT + MAX ( DISTINCT CAST ( - - 76 AS INTEGER ) ) AS col0 FROM tab2
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 87 ) * + col1 + + + 2 col2 FROM tab0
----
-1825
-7045
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + MIN( ALL + - col2 ) AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-96

skipif mysql # not compatible
query I rowsort label-4786
SELECT + MIN ( ALL + - col2 ) AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT SUM( ALL - ( + ( - col1 ) ) ) * 88 AS col0 FROM tab2
----
17160

skipif mysql # not compatible
query I rowsort label-4787
SELECT SUM ( ALL - ( + ( - col1 ) ) ) * 88 AS col0 FROM tab2
----
17160

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT 52 * + COUNT( * ) AS col1 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-4788
SELECT 52 * + COUNT ( * ) AS col1 FROM tab2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT MAX( + 20 ) col0 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4789
SELECT MAX ( + 20 ) col0 FROM tab2
----
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 IN ( + col1, - col2, col2 / - col0 + - col0, - + 38 )
----

query II rowsort
SELECT col1 AS col0, 46 AS col0 FROM tab0 AS cor0 WHERE 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT + MIN( + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + MIN ( + col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - 67 * col2 - + col2 - + col2 AS col1 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - COUNT( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4794
SELECT - COUNT ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 AS col2, - col2 * 81 col2 FROM tab2 AS cor0
----
7
-1863
7
-3240
7
-4698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL CAST( - col0 AS SIGNED ) * - col0 AS col0 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL CAST ( - col0 AS INTEGER ) * - col0 AS col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 51 + - col1 * - col2 * 85 IS NOT NULL OR NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT ALL - CAST( + + ( + - SUM( ALL - + col0 ) ) AS SIGNED ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - CAST ( + + ( + - SUM ( ALL - + col0 ) ) AS INTEGER ) AS col0 FROM tab0
----
-199

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - 51 AND 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - MAX( DISTINCT 78 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4800
SELECT - MAX ( DISTINCT 78 ) FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4801
SELECT MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - + col0 * + - 59 * - 37 + - - col0 FROM tab1 AS cor0
----
-111282
-185470
-198562

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 94 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 col2, + col2 AS col2 FROM tab2 cor0
----
97
23
97
40
97
58

query I rowsort
SELECT + + col2 + + 27 FROM tab2 cor0
----
50
67
85

query I rowsort
SELECT ALL col1 + + 25 AS col1 FROM tab2 AS cor0
----
102
76
92

query II rowsort
SELECT DISTINCT + 55 AS col2, col0 + col2 AS col1 FROM tab1
----
55
144
55
147
55
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT - MIN( + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT - MIN ( + col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT + 23 + - - CAST( - col2 AS SIGNED ) col0 FROM tab0
----
-24
-76
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4809
SELECT + 23 + - - CAST ( - col2 AS INTEGER ) col0 FROM tab0
----
-24
-76
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT DISTINCT 13 AS col1, + COUNT( * ) AS col2 FROM tab2
----
13
3

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT 13 AS col1, + COUNT ( * ) AS col2 FROM tab2
----
13
3

query I rowsort
SELECT ALL + 59 + + col1 AS col1 FROM tab1
----
106
64
73

query I rowsort
SELECT ALL - 48 * 39 AS col2 FROM tab1
----
-1872
-1872
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT - COUNT( * ) FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT - COUNT ( * ) FROM tab1 WHERE - col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT 21 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT 21 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - + MAX( 95 ) FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4815
SELECT - + MAX ( 95 ) FROM tab0 cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 47 + - - 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + 73 AS col0, col0 FROM tab2 AS cor0
----
73
46
73
64
73
75

query I rowsort
SELECT ALL - - col1 * - col2 * + 62 + - ( + col1 ) FROM tab2 cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4819
SELECT DISTINCT + MIN( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 WHERE NOT - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT + MIN ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 WHERE NOT - - col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + 77 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 27 col1 FROM tab0 cor0
----
-20
-72
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT - col0 DIV + 27 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4822
SELECT - col0 / + 27 FROM tab2 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - 42 * - col1 AS col0 FROM tab2
----
2142
2814
3234

query I rowsort
SELECT DISTINCT + 14 * + col0 FROM tab2
----
1050
644
896

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT MAX( col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4827
SELECT MAX ( col0 ) AS col1 FROM tab2
----
75

query II rowsort
SELECT col0, - 74 + + - 85 + - col2 FROM tab2
----
46
-182
64
-199
75
-217

query I rowsort
SELECT 76 * - 72 FROM tab0
----
-5472
-5472
-5472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col2 FROM tab0 AS cor0 WHERE NOT + 36 > - + col2
----

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab1 cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + ( 79 ) FROM tab0 WHERE NOT NULL BETWEEN + col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT DISTINCT COUNT( DISTINCT 49 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT COUNT ( DISTINCT 49 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT 92 + - COUNT( * ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4835
SELECT 92 + - COUNT ( * ) FROM tab2
----
89

query I rowsort
SELECT col1 * 66 FROM tab0
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT 98 + COUNT( * ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-4837
SELECT 98 + COUNT ( * ) FROM tab1
----
101

query I rowsort
SELECT 4 * + 43 AS col1 FROM tab2
----
172
172
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT - 29 FROM tab2 WHERE + 79 * - CAST( + col0 AS SIGNED ) <= ( col0 )
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-4839
SELECT - 29 FROM tab2 WHERE + 79 * - CAST ( + col0 AS INTEGER ) <= ( col0 )
----
-29
-29
-29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * 76 FROM tab0
----
3572
7524
760

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 92 ) NOT BETWEEN col1 + col1 * + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * 55 col2 FROM tab0
----
3685
3685
3685

query I rowsort
SELECT + 84 * col2 FROM tab0
----
3948
8316
840

query III rowsort
SELECT * FROM tab0 WHERE - col1 < NULL
----

query I rowsort
SELECT ALL - col1 + 36 AS col0 FROM tab2
----
-15
-31
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT + ( COUNT( * ) ) FROM tab2 WHERE NOT + 17 * 4 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT + ( COUNT ( * ) ) FROM tab2 WHERE NOT + 17 * 4 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT ( + 5 ) * - col2 AS col2 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT DISTINCT - 83 * + ( col0 ) FROM tab1
----
-4233
-7055
-7553

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT + 5 AS col2 FROM tab0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 * col1 col1 FROM tab0
----
1596
6156
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT ( - col2 ) BETWEEN col0 / - col2 AND ( + col0 * + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4853
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( - col2 ) BETWEEN col0 / - col2 AND ( + col0 * + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT + MAX( - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4854
SELECT + MAX ( - col2 ) AS col2 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT DISTINCT CAST( 4 AS SIGNED ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT CAST ( 4 AS INTEGER ) FROM tab1
----
4

query I rowsort
SELECT ALL col2 * - 30 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 7 + ( - col1 + 30 * + col0 )
----

query I rowsort
SELECT + 26 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT + col0 DIV + 79 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4858
SELECT + col0 / + 79 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT + col2 - 83 * + 35 FROM tab1
----
-2809
-2837
-2846

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN 51 AND col1 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 / col2 + col2 / - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) = col2 * - 85
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 93 )
----

query I rowsort
SELECT ALL + 98 + - col0 AS col1 FROM tab2 AS cor0
----
23
34
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - MIN( - col1 ) + + ( ( - COUNT( * ) ) ) * 22 AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4866
SELECT - MIN ( - col1 ) + + ( ( - COUNT ( * ) ) ) * 22 AS col0 FROM tab2 AS cor0
----
11

query I rowsort
SELECT 95 + 45 AS col1 FROM tab1 cor0
----
140
140
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT DISTINCT + SUM( - col1 ) DIV - 44 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + SUM ( - col1 ) / - 44 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT - col2 * + CAST( + ( - 12 ) AS SIGNED ) FROM tab0
----
1188
120
564

skipif mysql # not compatible
query I rowsort label-4869
SELECT - col2 * + CAST ( + ( - 12 ) AS INTEGER ) FROM tab0
----
1188
120
564

query I rowsort
SELECT DISTINCT 89 + col2 FROM tab1 WHERE col2 > col2 + + col2
----

query I rowsort
SELECT DISTINCT + 13 FROM tab1 AS cor0 CROSS JOIN tab2
----
13

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + + SUM( DISTINCT 75 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4873
SELECT + + SUM ( DISTINCT 75 ) AS col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT - col2 DIV 86 col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4875
SELECT - col2 / 86 col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4876
SELECT + + COUNT( * ) DIV 85 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT + + COUNT ( * ) / 85 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - 95 * - CAST( NULL AS SIGNED ) + 33 / col0 AND col0 / - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - 95 * - CAST ( NULL AS INTEGER ) + 33 / col0 AND col0 / - col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT - COUNT( * ) + 62 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 90 * - col2 )
----
62

skipif mysql # not compatible
query I rowsort label-4878
SELECT - COUNT ( * ) + 62 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 90 * - col2 )
----
62

query I rowsort
SELECT col1 * 2 AS col0 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL - 2 - + COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL - 2 - + COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT - SUM( 61 ) FROM tab1 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-4881
SELECT - SUM ( 61 ) FROM tab1 cor0
----
-183

query I rowsort
SELECT - col2 * + 71 FROM tab2 AS cor0
----
-1633
-2840
-4118

query I rowsort
SELECT ALL + col1 * + + col0 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT 81 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4886
SELECT COUNT( * ) DIV 96 - COUNT( * ) AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT COUNT ( * ) / 96 - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT DISTINCT + CAST( 9 AS SIGNED ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT + CAST ( 9 AS INTEGER ) AS col2 FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT ( MAX( - CAST( NULL AS SIGNED ) ) ) + 80 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT ( MAX ( - CAST ( NULL AS INTEGER ) ) ) + 80 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4890
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - 56 * col2 AS col2 FROM tab0 AS cor0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT DISTINCT - - SUM( ALL col2 ) + COUNT( * ) FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - - SUM ( ALL col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL - COUNT( 29 ) + 53 AS col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL - COUNT ( 29 ) + 53 AS col0 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT DISTINCT + 69 DIV 54 DIV + + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + 69 / 54 / + + COUNT ( * ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4895
SELECT DISTINCT 97 DIV COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT 97 / COUNT ( * ) FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 - col1 NOT BETWEEN - col0 * + col1 AND ( + 53 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 31 ) <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + - - col2 ) >= 22 + col1
----
64
77
40
75
67
58

query I rowsort
SELECT col0 + + 57 * 8 - col1 FROM tab1 AS cor0
----
493
500
536

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT + col1 + - + 77 DIV col0 AS col2 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-4900
SELECT + col1 + - + 77 / col0 AS col2 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT + MIN( - col2 ) + - - 99 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4901
SELECT + MIN ( - col2 ) + - - 99 FROM tab2 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + - 72 col0 FROM tab2 AS cor0
----
-2188
-4168
-5697

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - MAX( + col0 ) + - 73 + + MAX( col0 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4903
SELECT - MAX ( + col0 ) + - 73 + + MAX ( col0 ) FROM tab2 AS cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT + 91 + + ( - CAST( NULL AS SIGNED ) ) * col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4904
SELECT + 91 + + ( - CAST ( NULL AS INTEGER ) ) * col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + + col1 * - 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + ( - MIN( ALL - ( col1 ) ) ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4906
SELECT + ( - MIN ( ALL - ( col1 ) ) ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( NULL ) AND + 86
----

query I rowsort
SELECT - col0 * + 24 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL + 71 + COUNT( * ) AS col0 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + 71 + COUNT ( * ) AS col0 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL + MAX( ALL col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + MAX ( ALL col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT MIN( ALL + - ( - col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT MIN ( ALL + - ( - col2 ) ) AS col1 FROM tab1
----
59

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 57 + col0 AND - 92
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( 72 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT MIN( col2 ) * 68 AS col0 FROM tab2 WHERE - col2 * - 80 * + 20 + col2 NOT IN ( - col1 + + col2 )
----
1564

skipif mysql # not compatible
query I rowsort label-4914
SELECT MIN ( col2 ) * 68 AS col0 FROM tab2 WHERE - col2 * - 80 * + 20 + col2 NOT IN ( - col1 + + col2 )
----
1564

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE 82 / - - 99 + col1 + 35 * 51 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + - + 83 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 85 + - 32 * - col1 AS col1 FROM tab1
----
1589
245
533

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * - 48 + col2 >= 93
----

query I rowsort
SELECT col1 - - + 83 FROM tab2 cor0
----
134
150
160

query I rowsort
SELECT ALL + 57 - - + col2 FROM tab2 AS cor0
----
115
80
97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col1 * - 80 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT - 25 + col1 * - 55 FROM tab0 AS cor0 WHERE col1 * - col2 * - col1 BETWEEN col2 AND - CAST( + col1 AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-4922
SELECT - 25 + col1 * - 55 FROM tab0 AS cor0 WHERE col1 * - col2 * - col1 BETWEEN col2 AND - CAST ( + col1 AS INTEGER ) + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, - col2 AS col0 FROM tab0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 41 col1 FROM tab0 cor0
----
-3567
-3977
-615

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * - - col2 * + - ( - col0 ) + 49 NOT BETWEEN + col2 AND col2
----

query I rowsort
SELECT DISTINCT col2 * + 16 FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT col2 DIV ( - col1 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT col2 / ( - col1 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 98 * - 10 FROM tab1 AS cor0
----
980

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4930
SELECT COUNT( * ), COUNT( - col0 ) - SUM( - + col1 ) AS col0 FROM tab0 AS cor0
----
3
106

skipif mysql # not compatible
query II rowsort label-4930
SELECT COUNT ( * ), COUNT ( - col0 ) - SUM ( - + col1 ) AS col0 FROM tab0 AS cor0
----
3
106

query I rowsort
SELECT + + col2 * + 51 * - col1 + + 71 FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
-157009
-198115
-59752

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT 59 * MIN( + col2 ) * + ( + - 28 ) FROM tab0
----
-16520

skipif mysql # not compatible
query I rowsort label-4934
SELECT 59 * MIN ( + col2 ) * + ( + - 28 ) FROM tab0
----
-16520

query I rowsort
SELECT 96 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + COUNT( - + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4936
SELECT + COUNT ( - + col2 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT ( + + 19 ) AS col0, col2 AS col0 FROM tab2
----
19
23
19
40
19
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4938
SELECT - col0 col1, + CAST( NULL AS SIGNED ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4938
SELECT - col0 col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query II rowsort
SELECT ALL 53 * + 76 AS col1, + col0 FROM tab0 AS cor0
----
4028
15
4028
87
4028
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT - CAST( + - col2 AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4940
SELECT - CAST ( + - col2 AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT + 80 + - COUNT( * ) + 79 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT + 80 + - COUNT ( * ) + 79 FROM tab1 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 41 + ( + + 27 ) AND - + CAST( - 86 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 41 + ( + + 27 ) AND - + CAST ( - 86 AS INTEGER )
----

query II rowsort
SELECT col1 + - col1, col2 AS col0 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT - AVG ( ALL - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < 70 + - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < 70 + - - 35
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - col1 + - - col2 AS col0 FROM tab2
----
-114
-76
-79

query I rowsort
SELECT ALL - 97 AS col1 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4948
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - col1 <= ( - col2 * 19 - + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-4948
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - col1 <= ( - col2 * 19 - + CAST ( NULL AS REAL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT DISTINCT - COUNT( 8 ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( + + CAST( - col1 AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT - COUNT ( 8 ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( + + CAST ( - col1 AS INTEGER ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4950
SELECT ALL - CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL - CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 NOT BETWEEN NULL AND + + 2 * 40 + col1 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 35 AS col1, - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4953
SELECT 66 * + + CAST( NULL AS SIGNED ) - col0 AS col2, col1 * + - col0 * - + col1 AS col0 FROM tab2
----
NULL
119646
NULL
336675
NULL
379456

skipif mysql # not compatible
query II rowsort label-4953
SELECT 66 * + + CAST ( NULL AS INTEGER ) - col0 AS col2, col1 * + - col0 * - + col1 AS col0 FROM tab2
----
NULL
119646
NULL
336675
NULL
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT + COUNT( * ) - COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4954
SELECT + COUNT ( * ) - COUNT ( * ) col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + - col1 + + - ( - 87 ) col1 FROM tab0
----
183
185
195

query III rowsort
SELECT * FROM tab1 WHERE col1 < + - col1 + - 25
----

query II rowsort
SELECT DISTINCT 6, 84 AS col1 FROM tab1
----
6
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 - + col1 col1 FROM tab1
----
-37
-4
5

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4960
SELECT DISTINCT + 15 DIV + ( - col0 ) + + col2 + + col0 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + 15 / + ( - col0 ) + + col2 + + col0 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 21 col0 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) IN ( + 44 + col1, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - 67 AND - + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4965
SELECT - 74 DIV + 95, - col1 AS col2 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

skipif mysql # not compatible
query II rowsort label-4965
SELECT - 74 / + 95, - col1 AS col2 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL - + 24 * + COUNT( * ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL - + 24 * + COUNT ( * ) FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + + MAX( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4968
SELECT + + MAX ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL SUM( DISTINCT 78 ) col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT ALL SUM ( DISTINCT 78 ) col0 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT - SUM( ALL + ( - col1 ) ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 56 - - + col2 NOT BETWEEN NULL AND NULL OR NOT ( + ( + + ( + col1 ) ) + + col2 + 3 * + col1 ) IS NULL
----
192

skipif mysql # not compatible
query I rowsort label-4970
SELECT - SUM ( ALL + ( - col1 ) ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 56 - - + col2 NOT BETWEEN NULL AND NULL OR NOT ( + ( + + ( + col1 ) ) + + col2 + 3 * + col1 ) IS NULL
----
192

query I rowsort
SELECT - ( + 7 ) FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT + col1 * col0 * + 99 AS col1 FROM tab2
----
232254
487872
497475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 40 AS col0, 3 + 54 col1 FROM tab1
----
-40
57
-40
57
-40
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT - MAX( ALL + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - MAX ( ALL + col1 ) FROM tab0
----
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND + + 18
----

query I rowsort
SELECT + col2 + - 74 FROM tab2
----
-16
-34
-51

query I rowsort
SELECT - 38 + + - col0 * + col2 FROM tab0
----
-743
-908
-9641

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4979
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) >= - 72 - + - col2 + col2 - - col1 * - 41 * - col1
----

skipif mysql # not compatible
query III rowsort label-4979
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) >= - 72 - + - col2 + col2 - - col1 * - 41 * - col1
----

query II rowsort
SELECT - 61 AS col1, ( - col0 ) AS col0 FROM tab1 AS cor0
----
-61
-51
-61
-85
-61
-91

query I rowsort
SELECT DISTINCT + - col2 + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-4992
-5074
-6256

query I rowsort
SELECT ALL col2 * - + ( - + 33 ) AS col1 FROM tab0
----
1551
3267
330

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT SUM( DISTINCT + col1 ) * - - COUNT( * ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT SUM ( DISTINCT + col1 ) * - - COUNT ( * ) FROM tab2
----
585

query I rowsort
SELECT col1 * - - col2 FROM tab2 WHERE col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 70 * - 84 + - - col2 * - col1 + col2 + col1 + + + col1 * + 47 col1 FROM tab0 AS cor0
----
-5072
-5752
-5832

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL - ( + MIN( col0 ) ) + + COUNT( * ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - ( + MIN ( col0 ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
-43

query I rowsort
SELECT 50 + - col1 FROM tab2 AS cor0
----
-1
-17
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT - - COUNT( * ) + 93 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4988
SELECT - - COUNT ( * ) + 93 FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT - CAST( 21 AS SIGNED ) + col0 FROM tab2 AS cor0
----
25
43
54

skipif mysql # not compatible
query I rowsort label-4989
SELECT - CAST ( 21 AS INTEGER ) + col0 FROM tab2 AS cor0
----
25
43
54

query I rowsort
SELECT DISTINCT 46 + col1 AS col2 FROM tab1 AS cor0
----
51
60
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL - - SUM( - ( + col1 ) ) + 21 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL - - SUM ( - ( + col1 ) ) + 21 FROM tab1 AS cor0
----
-45

query I rowsort
SELECT - - col0 * 88 + - col1 FROM tab2 AS cor0
----
3997
5555
6533

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT + 63 - + COUNT( * ) * + 48 AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + 63 - + COUNT ( * ) * + 48 AS col2 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 + + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4995
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST( - + col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4995
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( - + col0 AS INTEGER ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4996
SELECT DISTINCT col2 + 93 DIV + 51 + - col0, 25 AS col1 FROM tab0 AS cor0
----
-76
25
3
25
33
25

skipif mysql # not compatible
query II rowsort label-4996
SELECT DISTINCT col2 + 93 / + 51 + - col0, 25 AS col1 FROM tab0 AS cor0
----
-76
25
3
25
33
25

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE 7 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT DISTINCT + 70 - - COUNT( * ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + 70 - - COUNT ( * ) FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4999
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN + col1 AND - 55 * + CAST( NULL AS SIGNED ) - 65
----

skipif mysql # not compatible
query III rowsort label-4999
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN + col1 AND - 55 * + CAST ( NULL AS INTEGER ) - 65
----

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab0 WHERE NOT ( col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT COUNT( col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT COUNT ( col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - ( - SUM( 34 ) ) AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-5003
SELECT - ( - SUM ( 34 ) ) AS col2 FROM tab0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5004
SELECT DISTINCT * FROM tab1 WHERE NOT 74 / col1 - 10 + 9 BETWEEN - col0 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5004
SELECT DISTINCT * FROM tab1 WHERE NOT 74 / col1 - 10 + 9 BETWEEN - col0 AND - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - ( + ( - col2 ) ) * + + col0 * + + col0 AS col2, 63 AS col0 FROM tab0 cor0
----
10575
63
75690
63
931491
63

query I rowsort
SELECT 54 * - - 62 FROM tab0 AS cor0
----
3348
3348
3348

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5007
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5007
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 73
----

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab1 WHERE - ( + + col1 ) IS NOT NULL
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT DISTINCT + 31 AS col1, - COUNT( * ) * - - 41 AS col1 FROM tab2
----
31
-123

skipif mysql # not compatible
query II rowsort label-5010
SELECT DISTINCT + 31 AS col1, - COUNT ( * ) * - - 41 AS col1 FROM tab2
----
31
-123

query II rowsort
SELECT col2, col1 + - 6 FROM tab0
----
10
15
47
75
99
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5012
SELECT ALL + 62, + 68 + + COUNT( * ) AS col0 FROM tab0
----
62
71

skipif mysql # not compatible
query II rowsort label-5012
SELECT ALL + 62, + 68 + + COUNT ( * ) AS col0 FROM tab0
----
62
71

query II rowsort
SELECT - 63 AS col2, 37 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-63
37
-63
37
-63
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT + - MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5014
SELECT + - MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
59

query II rowsort
SELECT DISTINCT col2, ( - - ( ( col2 ) ) ) FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5016
SELECT ALL + - col1 col2, + col2 DIV 12 AS col2 FROM tab2 AS cor0
----
-51
1
-67
4
-77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5016
SELECT ALL + - col1 col2, + col2 / 12 AS col2 FROM tab2 AS cor0
----
-51
1
-67
4
-77
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + col1 ) IS NOT NULL )
----

query II rowsort
SELECT col1 AS col2, - col2 FROM tab2 cor0
----
51
-23
67
-58
77
-40

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 BETWEEN NULL AND + ( 36 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 50 BETWEEN NULL AND - + 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( + 88 * + col1 + + 88 ) <= ( + 71 + + col1 )
----

query I rowsort
SELECT ALL + col2 * ( 31 ) AS col0 FROM tab1
----
1829
2108
2976

query I rowsort
SELECT + ( - + col2 ) * - col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-5024
SELECT DISTINCT + SUM( + col1 ) + MIN( - col1 ) AS col2, COUNT( * ) AS col1 FROM tab1
----
19
3

skipif mysql # not compatible
query II rowsort label-5024
SELECT DISTINCT + SUM ( + col1 ) + MIN ( - col1 ) AS col2, COUNT ( * ) AS col1 FROM tab1
----
19
3

query I rowsort
SELECT DISTINCT + col0 * + 60 FROM tab0
----
5220
5820
900

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col2 + col2 * + 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-5028
SELECT + col0 DIV - + 95 + 26 AS col2, - col1 + + + col2 FROM tab0
----
25
98
26
-11
26
-34

skipif mysql # not compatible
query II rowsort label-5028
SELECT + col0 / - + 95 + 26 AS col2, - col1 + + + col2 FROM tab0
----
25
98
26
-11
26
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT 35 + + COUNT( * ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5029
SELECT 35 + + COUNT ( * ) FROM tab2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5030
SELECT 78 + - CAST( + MIN( ALL - col2 ) AS SIGNED ) col2 FROM tab0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5030
SELECT 78 + - CAST ( + MIN ( ALL - col2 ) AS INTEGER ) col2 FROM tab0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT col0 DIV col2 DIV - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT col0 / col2 / - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 84 FROM tab1 WHERE ( + 23 ) = NULL
----

query I rowsort
SELECT - - col2 * col2 + + ( + col0 ) AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
1664
3439
575

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + 81 * - 65 * - col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * - 79 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * - 79 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( * ) - + 44 FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) - + 44 FROM tab1 cor0
----
-41

query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - 86 + col2 FROM tab0
----
-39
-76
13

query II rowsort
SELECT col2 AS col1, col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5040
SELECT CAST( NULL AS SIGNED ) AS col2, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5040
SELECT CAST ( NULL AS INTEGER ) AS col2, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 41 * + - col0 AS col1 FROM tab2
----
-1886
-2624
-3075

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + + col2 - - col2 * + col1 - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col0, 7 * - col1 AS col0 FROM tab1 AS cor0
----
-51
-98
-85
-35
-91
-329

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND 47 * + - col1 * + 22 * - ( + + col1 ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT MIN( ALL ( + 95 ) ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-5047
SELECT MIN ( ALL ( + 95 ) ) FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT + MAX( - 98 ) + 99 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5048
SELECT + MAX ( - 98 ) + 99 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT + - col0 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + + 63 + + 54 + + col2 FROM tab2 AS cor0
----
140
157
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5051
SELECT DISTINCT - - COUNT( ALL - CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - - COUNT ( ALL - CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT ALL - 17 + SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - 17 + SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col1 + - col2 - - col1, col2 AS col1 FROM tab0 AS cor0
----
-97
99
115
47
32
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5055
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) = - CAST( - - 19 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5055
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = - CAST ( - - 19 AS REAL )
----

query I rowsort
SELECT + col0 + - - col2 * col0 AS col2 FROM tab1 AS cor0
----
4947
5100
6279

query III rowsort
SELECT * FROM tab2 WHERE - + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT 64 + - - COUNT( * ) AS col0 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-5058
SELECT 64 + - - COUNT ( * ) AS col0 FROM tab2
----
67

query I rowsort
SELECT DISTINCT - ( - 60 ) AS col0 FROM tab1 WHERE NOT - - col1 * + col0 * + col1 - + + 61 * + col0 + col1 - 96 NOT BETWEEN + col0 AND 5
----

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-53

query I rowsort
SELECT col2 + + 15 FROM tab2
----
38
55
73

query I rowsort
SELECT ALL + 39 * - col0 AS col2 FROM tab0
----
-3393
-3783
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT - MAX( ALL - ( - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - MAX ( ALL - ( - col2 ) ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT - - 44 AS col1 FROM tab1 WHERE - col0 IS NOT NULL
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT + MIN( - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + MIN ( - col2 ) AS col0 FROM tab2
----
-58

query II rowsort
SELECT - col1, + col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL - col1 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - col1 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 50 * + 59 * - - col1 * col0 + - col0 + + - 80 FROM tab2
----
14537456
14823595
6920574

query II rowsort
SELECT col0 + - - col0, ( col2 ) FROM tab1 AS cor0
----
102
96
170
59
182
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT + MAX( DISTINCT + 85 ) + + ( + - 71 ) col1 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5070
SELECT + MAX ( DISTINCT + 85 ) + + ( + - 71 ) col1 FROM tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT ( + MAX( ALL - 71 ) ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT ( + MAX ( ALL - 71 ) ) FROM tab1 AS cor0
----
-71

query I rowsort
SELECT 0 * col2 + - 29 + + 26 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 25 * col0 AND NULL
----

query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab2 AS cor0 WHERE - col0 < NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL IN ( - + col1 )
----

query I rowsort
SELECT - + col0 + + col0 AS col0 FROM tab1 WHERE NOT + col0 * + col0 IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col2 FROM tab1
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL SUM( + + 59 ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL SUM ( + + 59 ) AS col0 FROM tab1
----
177

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT + - col2 * + ( - 83 ) FROM tab2 AS cor0
----
1909
3320
4814

query I rowsort
SELECT + 37 * + - 73 FROM tab0 AS cor0
----
-2701
-2701
-2701

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT ALL + COUNT( * ) * + + SUM( DISTINCT - col0 ) AS col0, 52 AS col0 FROM tab1 AS cor0
----
-681
52

skipif mysql # not compatible
query II rowsort label-5081
SELECT ALL + COUNT ( * ) * + + SUM ( DISTINCT - col0 ) AS col0, 52 AS col0 FROM tab1 AS cor0
----
-681
52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 68 * col2
----

query II rowsort
SELECT - 87, col2 + - - col1 AS col2 FROM tab1
----
-87
110
-87
115
-87
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT + COUNT( * ) + SUM( - + col1 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5084
SELECT + COUNT ( * ) + SUM ( - + col1 ) FROM tab0
----
-100

query I rowsort
SELECT col2 * - 37 + col2 FROM tab2
----
-1440
-2088
-828

query I rowsort
SELECT DISTINCT 84 + - + col0 * - 65 - col0 AS col2 FROM tab2
----
3028
4180
4884

query I rowsort
SELECT 17 * - 85 + - col1 FROM tab1
----
-1450
-1459
-1492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL 98 + + + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL 98 + + + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + col0 AS col2, 98 + - ( col1 ) + + - col1 FROM tab0 cor0
----
15
-64
87
56
97
96

query I rowsort
SELECT DISTINCT - 69 + - col0 - - + col0 + - - col2 + col0 AS col2 FROM tab0 AS cor0
----
-7
127
28

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5091
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( col2 AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5091
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( col2 AS REAL ) < NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL < 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT col2 * - CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) * - 27 AS col1 FROM tab0
----
-19035
-23490
-259281

skipif mysql # not compatible
query I rowsort label-5094
SELECT col2 * - CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) * - 27 AS col1 FROM tab0
----
-19035
-23490
-259281

query I rowsort
SELECT - ( + - 43 ) AS col1 FROM tab1
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( - col2 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL - 48 * col2 + ( - + 59 ) AS col1 FROM tab1 cor0
----
-2891
-3323
-4667

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5098
SELECT + CAST( + col2 AS SIGNED ) + + col1 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT + CAST ( + col2 AS INTEGER ) + + col1 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - + 46 AS col1 FROM tab1 AS cor0
----
-32
-41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT COUNT( DISTINCT ( 79 ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5100
SELECT COUNT ( DISTINCT ( 79 ) ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + ( - - col0 ) - ( + 72 ) AS col0 FROM tab1
----
-21
13
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5102
SELECT CAST( col1 AS SIGNED ) * + col1, + col0 AS col1 FROM tab0
----
1
97
441
87
6561
15

skipif mysql # not compatible
query II rowsort label-5102
SELECT CAST ( col1 AS INTEGER ) * + col1, + col0 AS col1 FROM tab0
----
1
97
441
87
6561
15

query II rowsort
SELECT DISTINCT col0, - 68 AS col2 FROM tab2
----
46
-68
64
-68
75
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL + MIN( ALL - - CAST( - + 7 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + MIN ( ALL - - CAST ( - + 7 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + + COUNT( * ) * - ( - 15 ) + + 31 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5105
SELECT + + COUNT ( * ) * - ( - 15 ) + + 31 FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL 10 + - AVG ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - 19 * - ( + col2 ) + + col2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / + col1 NOT BETWEEN - + ( 90 ) AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-5108
SELECT ALL + 76 * col2 * col1, + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
102144
1
22420
1
242896
1

skipif mysql # not compatible
query II rowsort label-5108
SELECT ALL + 76 * col2 * col1, + col0 / + col0 AS col2 FROM tab1 AS cor0
----
102144
1
22420
1
242896
1

query I rowsort
SELECT col2 * - - col1 * - 2 AS col0 FROM tab1 AS cor0
----
-2688
-590
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT + - MAX( - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + - MAX ( - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * + - col2, 21, + col2 )
----

skipif mysql # not compatible
query I rowsort label-5111
SELECT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * + - col2, 21, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL + COUNT( * ) * 85 * + MIN( ALL - col1 ) FROM tab1 AS cor0
----
-11985

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + COUNT ( * ) * 85 * + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-11985

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + COUNT( * ) * 36 AS col1 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5113
SELECT + COUNT ( * ) * 36 AS col1 FROM tab2 AS cor0
----
108

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN + col0 AND - - col1 - col2
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT col1 * - - 1 * + + col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab1 WHERE - ( col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT DISTINCT MIN( - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT MIN ( - col2 ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL >= ( col0 ) )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( 3 + + + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT COUNT( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT COUNT ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
87
97

query I rowsort
SELECT - - 77 * 32 AS col1 FROM tab0 AS cor0
----
2464
2464
2464

query I rowsort
SELECT - + 6 AS col0 FROM tab1 AS cor0
----
-6
-6
-6

query II rowsort
SELECT DISTINCT - - col2 * + + col2 AS col2, - col0 FROM tab1 AS cor0
----
3481
-85
4624
-91
9216
-51

query II rowsort
SELECT DISTINCT - 10 AS col1, - 12 AS col0 FROM tab0
----
-10
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5128
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 AS col0, + col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT ALL - col2 * + col2 DIV - + col2 + + col2 * 8 AS col1 FROM tab2 cor0
----
207
360
522

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL - col2 * + col2 / - + col2 + + col2 * 8 AS col1 FROM tab2 cor0
----
207
360
522

query I rowsort
SELECT DISTINCT - col0 + - + 15 - + col2 FROM tab1 AS cor0
----
-159
-162
-174

query I rowsort
SELECT - + col0 + - 43 FROM tab0 cor0
----
-130
-140
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT COUNT( * ) * COUNT( * ) + + - ( - - MIN( + col2 ) ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-5133
SELECT COUNT ( * ) * COUNT ( * ) + + - ( - - MIN ( + col2 ) ) FROM tab2 AS cor0
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5134
SELECT + + 13 * + col2 + - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT + + 13 * + col2 + - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT CAST( NULL AS SIGNED ) + - col1 + + 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT CAST ( NULL AS INTEGER ) + - col1 + + 53 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ( - COUNT( ALL + - col2 ) ) FROM tab2 WHERE ( NULL ) < col1 + - + 13
----
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT ( - COUNT ( ALL + - col2 ) ) FROM tab2 WHERE ( NULL ) < col1 + - + 13
----
0

query I rowsort
SELECT DISTINCT 85 * - ( - col1 ) FROM tab2
----
4335
5695
6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 / col2 FROM tab1 WHERE NOT col0 NOT BETWEEN - 19 AND + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT CAST( + ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5141
SELECT CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT + CAST( + - 24 AS SIGNED ) col2 FROM tab0 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5144
SELECT + CAST ( + - 24 AS INTEGER ) col2 FROM tab0 AS cor0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 18 - + 26 - + 63 * 26, + col2 col0 FROM tab1 cor0
----
-1646
59
-1646
68
-1646
96

query I rowsort
SELECT ALL + col2 + - 15 AS col2 FROM tab1 AS cor0
----
44
53
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5147
SELECT DISTINCT 65 DIV + CAST( - col2 AS SIGNED ) - - + col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT 65 / + CAST ( - col2 AS INTEGER ) - - + col2 FROM tab2
----
21
39
57

query I rowsort
SELECT 96 * - col0 FROM tab2
----
-4416
-6144
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col2 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT DISTINCT - SUM( ALL + - 5 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - SUM ( ALL + - 5 ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT + 24 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT - + 92 + - 29 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-121
-121
-121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT + MIN( ALL - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT + MIN ( ALL - col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT SUM( + + col1 ) * 84 AS col1 FROM tab1
----
5544

skipif mysql # not compatible
query I rowsort label-5156
SELECT SUM ( + + col1 ) * 84 AS col1 FROM tab1
----
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-5157
SELECT COUNT( * ) AS col1, + MAX( ALL 90 ) AS col2 FROM tab2
----
3
90

skipif mysql # not compatible
query II rowsort label-5157
SELECT COUNT ( * ) AS col1, + MAX ( ALL 90 ) AS col2 FROM tab2
----
3
90

query I rowsort
SELECT col1 * 19 AS col0 FROM tab1
----
266
893
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col1 FROM tab1 AS cor0 WHERE NOT 77 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL - ( - COUNT( * ) ) + + + 70 * - - 50 FROM tab1 cor0
----
3503

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - ( - COUNT ( * ) ) + + + 70 * - - 50 FROM tab1 cor0
----
3503

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5161
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col0 + - col2 + + - col0 + CAST( NULL AS SIGNED ) + + 51 - - + col2
----

skipif mysql # not compatible
query III rowsort label-5161
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col0 + - col2 + + - col0 + CAST ( NULL AS INTEGER ) + + 51 - - + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5162
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col1, col1 * CAST( NULL AS DECIMAL ), ( + 16 ) + + col1, + - col0, col2 + - 13 + 25 + + + 35 * + + 12 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-5162
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col1, col1 * CAST ( NULL AS REAL ), ( + 16 ) + + col1, + - col0, col2 + - 13 + 25 + + + 35 * + + 12 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT - + ( - 64 ) + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
145

skipif mysql # not compatible
query I rowsort label-5163
SELECT - + ( - 64 ) + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT ALL col2 DIV 90 + + + 15 AS col2 FROM tab2 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL col2 / 90 + + + 15 AS col2 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5165
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - 28 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5165
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - 28 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + + col2 + + - col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT + 86 - + + 83 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 81 * - + col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - + ( - col1 ) * - + col1 * - col1 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 + - - col0 IS NULL
----
132674
300821
456573

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT 49 * COUNT( * ) col1 FROM tab1
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5170
SELECT DISTINCT 49 * COUNT ( * ) col1 FROM tab1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT ALL COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - col2 - - - col0 AS col1 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT 82 - + col0 - ( col2 ) FROM tab1
----
-62
-65
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT COUNT( * ) + - COUNT( * ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5174
SELECT COUNT ( * ) + - COUNT ( * ) col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT + CAST( NULL AS SIGNED ) + 5 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT + CAST ( NULL AS INTEGER ) + 5 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - + col0 * col0 + 94 FROM tab2 cor0
----
-1971
-3925
-5464

query I rowsort
SELECT ALL + - col0 * - 11 + + 90 AS col1 FROM tab0 AS cor0
----
1047
1157
255

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT + col1 DIV col1 * - 37 * - 15 AS col1 FROM tab0 AS cor0
----
555
555
555

skipif mysql # not compatible
query I rowsort label-5178
SELECT + col1 / col1 * - 37 * - 15 AS col1 FROM tab0 AS cor0
----
555
555
555

query II rowsort
SELECT ALL - + col2, ( col1 ) AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT + + MIN( DISTINCT 83 ) FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-5180
SELECT + + MIN ( DISTINCT 83 ) FROM tab2 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5181
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT + - COUNT( DISTINCT - - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5182
SELECT + - COUNT ( DISTINCT - - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + 31 ) AS col2 FROM tab0 AS cor0
----
31

query I rowsort
SELECT DISTINCT - 28 * - col2 FROM tab2 AS cor0
----
1120
1624
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT CAST( + MIN( DISTINCT + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5185
SELECT CAST ( + MIN ( DISTINCT + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 < - col2 / - 47
----

query II rowsort
SELECT ( + + col1 ) AS col2, 14 FROM tab1
----
14
14
47
14
5
14

query I rowsort
SELECT ALL col1 + ( + col0 ) * + col2 FROM tab1
----
4910
5020
6235

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + - 40 ) * col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5190
SELECT * FROM tab2 WHERE NOT - + CAST( - + 30 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5190
SELECT * FROM tab2 WHERE NOT - + CAST ( - + 30 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT - col2 * + 10 NOT IN ( + col2 )
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - 26 + - 79 * + col1 / + - 3, col2 FROM tab0 WHERE - col2 + col0 <> NULL
----

query I rowsort
SELECT - 49 AS col0 FROM tab2 WHERE NULL <= + - col1
----

query I rowsort
SELECT DISTINCT + col1 + col1 + + col2 AS col0 FROM tab2
----
125
192
194

query I rowsort
SELECT 28 * + col1 + - 37 - 36 * - col1 * + col2 AS col0 FROM tab1 cor0
----
10723
116335
48739

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT COUNT( * ) + - 44 AS col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT COUNT ( * ) + - 44 AS col2 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT + - col0 + - + col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

query II rowsort
SELECT - ( + col2 ) * - 22 + col0 AS col0, + col1 + - col0 AS col2 FROM tab2 AS cor0
----
1351
-8
552
5
944
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT + CAST( NULL AS SIGNED ) + - col0 + - - col0 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT + CAST ( NULL AS INTEGER ) + - col0 + - - col0 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 88 + - ( + - 35 ), - col2 AS col0 FROM tab0 AS cor0
----
123
-10
123
-47
123
-99

query I rowsort
SELECT ALL - + ( + col0 ) * + 71 * col0 + - - 23 + + - ( 86 ) FROM tab0 AS cor0
----
-16038
-537462
-668102

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL + + SUM( - col1 ) + MIN( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + + SUM ( - col1 ) + MIN ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
-144

query I rowsort
SELECT DISTINCT col1 - - col1 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5207
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + + col0 AS SIGNED ) * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5207
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + + col0 AS INTEGER ) * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT col1 FROM tab2 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col2 * + col2 - col2 * + col1 col1 FROM tab0
----
29328
8490
950598

query I rowsort
SELECT + + col1 / 77 FROM tab0 WHERE NULL BETWEEN 52 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + - 77 col2 FROM tab1
----
-1078
-3619
-385

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5213
SELECT * FROM tab0 WHERE + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 * - col0 * - 12 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5213
SELECT * FROM tab0 WHERE + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 * - col0 * - 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + COUNT( * ) - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5214
SELECT + COUNT ( * ) - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT SUM( + - col2 ) AS col2 FROM tab0 AS cor0 WHERE + col0 * - col1 * - 63 + 99 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT SUM ( + - col2 ) AS col2 FROM tab0 AS cor0 WHERE + col0 * - col1 * - 63 + 99 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT ALL + CAST( 62 AS SIGNED ) * col2 AS col1 FROM tab0
----
2914
6138
620

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + CAST ( 62 AS INTEGER ) * col2 AS col1 FROM tab0
----
2914
6138
620

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5217
SELECT col0 AS col1, + CAST( NULL AS DECIMAL ) / - col1 + - col0 - + + col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5217
SELECT col0 AS col1, + CAST ( NULL AS REAL ) / - col1 + - col0 - + + col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT DISTINCT col1, 49 AS col0 FROM tab2
----
51
49
67
49
77
49

query II rowsort
SELECT + - col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5220
SELECT - + MAX( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT - + MAX ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5221
SELECT ALL CAST( - col2 AS SIGNED ) + + CAST( - 95 AS DECIMAL ) AS col0, CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-5221
SELECT ALL CAST ( - col2 AS INTEGER ) + + CAST ( - 95 AS REAL ) AS col0, CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 35 NOT BETWEEN + col1 * - - col1 + ( + 36 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + 29 - + + 96 + + 41 / - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 29 - + + 96 + + 41 / - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 + - ( 98 ) FROM tab1 AS cor0 WHERE NULL <= - + col0 AND NOT col0 NOT IN ( col0 - + 18 + - - col2, - col1, - col2 )
----

query I rowsort
SELECT ALL - + 40 * - 66 AS col1 FROM tab1 AS cor0
----
2640
2640
2640

query II rowsort
SELECT DISTINCT col0 AS col1, 91 FROM tab0 AS cor0
----
15
91
87
91
97
91

query I rowsort
SELECT ( + - 80 ) AS col1 FROM tab0
----
-80
-80
-80

query II rowsort
SELECT + col1, 31 AS col0 FROM tab2
----
51
31
67
31
77
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5229
SELECT + col2, col0 * - - 97 + - CAST( NULL AS SIGNED ) + - col0 + + 30 AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5229
SELECT + col2, col0 * - - 97 + - CAST ( NULL AS INTEGER ) + - col0 + + 30 AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT DISTINCT col0 AS col2, + 71 FROM tab1
----
51
71
85
71
91
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5231
SELECT CAST( 13 AS SIGNED ) DIV + col2 + 41 FROM tab0
----
41
41
42

skipif mysql # not compatible
query I rowsort label-5231
SELECT CAST ( 13 AS INTEGER ) / + col2 + 41 FROM tab0
----
41
41
42

query II rowsort
SELECT + col0, 98 FROM tab1
----
51
98
85
98
91
98

query II rowsort
SELECT ALL 50 AS col1, ( 60 ) FROM tab2
----
50
60
50
60
50
60

query II rowsort
SELECT + 11 AS col1, 67 FROM tab1
----
11
67
11
67
11
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 20 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - 16 = col1
----

query I rowsort
SELECT - + 69 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + + col0 col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - ( + - 62 ) + + col1 + + col0 * - ( - 5 ) AS col1 FROM tab2 AS cor0
----
343
459
504

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2 * + - 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5241
SELECT * FROM tab1 AS cor0 WHERE + CAST( col0 AS SIGNED ) + col2 >= - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5241
SELECT * FROM tab1 AS cor0 WHERE + CAST ( col0 AS INTEGER ) + col2 >= - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 98 - - 9 AS col2 FROM tab1 AS cor0
----
107
107
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - 71 - - - COUNT( + 38 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5243
SELECT - 71 - - - COUNT ( + 38 ) FROM tab2 AS cor0
----
-74

query I rowsort
SELECT ( col0 ) FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 28 - col0 AS col2 FROM tab1
----
-23
-57
-63

query I rowsort
SELECT + 89 - - - col1 FROM tab0
----
68
8
88

query I rowsort
SELECT col1 + + + 14 FROM tab1
----
19
28
61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 64 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT - - COUNT( DISTINCT - col1 ) * + + 13 AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - - COUNT ( DISTINCT - col1 ) * + + 13 AS col0 FROM tab2 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5250
SELECT - + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5250
SELECT - + col1 / - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT 37 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 56 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-56

query I rowsort
SELECT ALL 9 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col1 - - 95 AND - + 90 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT SUM( ALL 67 ) AS col1 FROM tab1 cor0
----
201

skipif mysql # not compatible
query I rowsort label-5256
SELECT SUM ( ALL 67 ) AS col1 FROM tab1 cor0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT DISTINCT 82 + - col1 * + col0 * - - CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT 82 + - col1 * + col0 * - - CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) * + 60 FROM tab0 AS cor0
----
-5220
-5820
-900

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) * + 60 FROM tab0 AS cor0
----
-5220
-5820
-900

query I rowsort
SELECT col1 + - 82 AS col0 FROM tab0
----
-1
-61
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + + col0 + - + col1 < + col0 + 26
----

query II rowsort
SELECT DISTINCT col1 + + ( - 3 ) * - col1 + - + col0 + - + col1 AS col0, 43 FROM tab1
----
-70
43
-9
43
50
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5263
SELECT CAST( NULL AS DECIMAL ) / + - 95 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT CAST ( NULL AS REAL ) / + - 95 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 * col1 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT COUNT( * ), - 61 AS col1 FROM tab2 AS cor0
----
3
-61

skipif mysql # not compatible
query II rowsort label-5265
SELECT COUNT ( * ), - 61 AS col1 FROM tab2 AS cor0
----
3
-61

query I rowsort
SELECT 58 * ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-5046
-5626
-870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 + + col2 * - + col2 col2 FROM tab1
----
-3434
-4577
-9169

query I rowsort
SELECT + ( + 75 ) + 63 + + - col2 + + - col2 * - 47 + + 87 AS col2 FROM tab2
----
1283
2065
2893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + + col1 + - 41 col2 FROM tab0 AS cor0
----
107
27
47

query I rowsort
SELECT ALL col0 + + + 81 FROM tab2 AS cor0
----
127
145
156

query I rowsort
SELECT + + col1 + - col2 + - ( col1 ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - col2 + + 81 FROM tab1 AS cor0
----
-15
13
22

query I rowsort
SELECT - 77 + - col0 AS col0 FROM tab2 AS cor0
----
-123
-141
-152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT ( + - CAST( NULL AS SIGNED ) ) + - col2 + + col2 + 67 + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT ( + - CAST ( NULL AS INTEGER ) ) + - col2 + + col2 + 67 + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT - CAST( - + col0 AS SIGNED ) + + - col0 + - col1 AS col1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5276
SELECT - CAST ( - + col0 AS INTEGER ) + + - col0 + - col1 AS col1 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + 50 + + 63 AS col1 FROM tab1 AS cor0
----
113

query I rowsort
SELECT DISTINCT + col2 - + 91 FROM tab0 AS cor0
----
-44
-81
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5279
SELECT ALL - col0 * col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - col0 * col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 60 - 44 AS col0 FROM tab0 cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT MIN( ALL - col1 ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5282
SELECT MIN ( ALL - col1 ) col1 FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 35 * - 18 BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 >= - col0
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL - - CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * ( 10 ) FROM tab2 AS cor0
----
510
670
770

query I rowsort
SELECT ALL - - 18 AS col2 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - col1 * + 64 AS col2 FROM tab1 AS cor0
----
-3008
-320
-896

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT + 25 + - 93 + - col1 / + ( + - col0 ) + col0 * + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 47 col2 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT col2 + col1 FROM tab2 WHERE NOT - - 75 BETWEEN col2 AND col0
----
117
74

onlyif mysql # DIV for integer division: 
query II rowsort label-5292
SELECT DISTINCT - col1 DIV - col0 + + 11, col1 AS col0 FROM tab2 AS cor0
----
11
67
12
51
12
77

skipif mysql # not compatible
query II rowsort label-5292
SELECT DISTINCT - col1 / - col0 + + 11, col1 AS col0 FROM tab2 AS cor0
----
11
67
12
51
12
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT ALL - + col2 AS col1 FROM tab1 AS cor0 WHERE ( NOT - CAST( - col2 AS SIGNED ) - - + col2 / col2 IS NULL )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - + col2 AS col1 FROM tab1 AS cor0 WHERE ( NOT - CAST ( - col2 AS INTEGER ) - - + col2 / col2 IS NULL )
----
-59
-68
-96

query I rowsort
SELECT 5 * + + 17 FROM tab0 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5296
SELECT DISTINCT - - COUNT( * ) AS col2, 94 col2 FROM tab0 AS cor0
----
3
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5296
SELECT DISTINCT - - COUNT ( * ) AS col2, 94 col2 FROM tab0 AS cor0
----
3
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 70 >= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5298
SELECT DISTINCT SUM( + - col1 ) AS col0, - MIN( DISTINCT + 27 ) col1 FROM tab1
----
-66
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5298
SELECT DISTINCT SUM ( + - col1 ) AS col0, - MIN ( DISTINCT + 27 ) col1 FROM tab1
----
-66
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL - MAX( - - 85 ) col0 FROM tab0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5299
SELECT ALL - MAX ( - - 85 ) col0 FROM tab0
----
-85

query III rowsort
SELECT * FROM tab1 WHERE NULL > 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5301
SELECT DISTINCT + col2 + CAST( col2 AS SIGNED ) FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT + col2 + CAST ( col2 AS INTEGER ) FROM tab1
----
118
136
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 6 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - 95 + col0 FROM tab2 cor0
----
103
82
90

query I rowsort
SELECT ALL col1 * col0 * col1 + + col2 FROM tab1 AS cor0
----
10092
201087
2184

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
81

skipif mysql # not compatible
query I rowsort label-5306
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
81

query II rowsort
SELECT + 24 * + 8 * + col0 AS col2, col0 FROM tab0
----
16704
87
18624
97
2880
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5308
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-5308
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL - COUNT( * ) + + - 28 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - COUNT ( * ) + + - 28 FROM tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL - ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL - ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT - + MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - + MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT - MIN( - 57 ) col2 FROM tab2
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5312
SELECT - MIN ( - 57 ) col2 FROM tab2
----
57

query II rowsort
SELECT ALL 83 AS col0, + col2 * - 93 AS col2 FROM tab0
----
83
-4371
83
-9207
83
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL ( MIN( DISTINCT - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL ( MIN ( DISTINCT - col0 ) ) FROM tab2
----
-75

query II rowsort
SELECT DISTINCT + col1, - 40 FROM tab1
----
14
-40
47
-40
5
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL + MIN( ALL + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + MIN ( ALL + + col0 ) FROM tab1
----
51

query I rowsort
SELECT - - ( + + col1 ) FROM tab2 WHERE NOT NULL <> + - col2
----

query II rowsort
SELECT DISTINCT - 24 * + col2, + 66 + + col0 * - col2 AS col0 FROM tab0
----
-1128
-639
-2376
-9537
-240
-804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 91 col0 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT + MIN( - ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5320
SELECT + MIN ( - ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT DISTINCT - MIN( ALL + 7 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT - MIN ( ALL + 7 ) FROM tab1 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5322
SELECT + 81 * + 66 AS col0, ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
5346
-3

skipif mysql # not compatible
query II rowsort label-5322
SELECT + 81 * + 66 AS col0, ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
5346
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT DISTINCT - - MIN( + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT - - MIN ( + col2 ) AS col2 FROM tab0 AS cor0
----
10

query II rowsort
SELECT DISTINCT col2 + + 84 AS col0, - 95 FROM tab2 AS cor0
----
107
-95
124
-95
142
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT DISTINCT + CAST( + SUM( + 54 ) AS SIGNED ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT + CAST ( + SUM ( + 54 ) AS INTEGER ) FROM tab2 AS cor0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 + - ( - ( + 92 ) ) + + - ( - col0 ) col2 FROM tab1 AS cor0
----
174
208
214

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT DISTINCT + 45 * COUNT( + col1 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + - - col2 IS NULL
----
132

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT + 45 * COUNT ( + col1 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + - - col2 IS NULL
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - SUM( ALL col1 ) AS col2 FROM tab1 WHERE NULL > + 32 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT - SUM ( ALL col1 ) AS col2 FROM tab1 WHERE NULL > + 32 + col2
----
NULL

query I rowsort
SELECT ALL ( - 1 ) FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT col2 + - 61 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT col2 + - 61 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 50 * - 99 AS col2 FROM tab2
----
-4950
-4950
-4950

query I rowsort
SELECT DISTINCT col2 * - + 11 FROM tab0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5333
SELECT ALL SUM( ALL + col0 ) DIV + ( 59 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL SUM ( ALL + col0 ) / + ( 59 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT + - COUNT( 46 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5334
SELECT + - COUNT ( 46 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5335
SELECT ALL - 27 * + - col2 / + 51 * + CAST( NULL AS DECIMAL ) + 93 - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - 27 * + - col2 / + 51 * + CAST ( NULL AS REAL ) + 93 - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT COUNT( DISTINCT - col2 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( 71 + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-5336
SELECT COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( 71 + 53 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5337
SELECT - 94 + col2 DIV col0 FROM tab2 WHERE + CAST( 57 AS SIGNED ) DIV 9 NOT IN ( + col0 )
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-5337
SELECT - 94 + col2 / col0 FROM tab2 WHERE + CAST ( 57 AS INTEGER ) / 9 NOT IN ( + col0 )
----
-94
-94
-94

query III rowsort
SELECT ALL * FROM tab1 WHERE - 77 < ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + 35 FROM tab2
----
102
112
86

query I rowsort
SELECT 24 * - 78 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND 88
----

query I rowsort
SELECT 78 * - col2 AS col1 FROM tab2
----
-1794
-3120
-4524

query I rowsort
SELECT col2 * 33 FROM tab1
----
1947
2244
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT SUM( DISTINCT + 54 ) * + 55 FROM tab2
----
2970

skipif mysql # not compatible
query I rowsort label-5343
SELECT SUM ( DISTINCT + 54 ) * + 55 FROM tab2
----
2970

query I rowsort
SELECT 91 + col1 AS col2 FROM tab0
----
112
172
92

query I rowsort
SELECT col2 * 89 FROM tab1
----
5251
6052
8544

query I rowsort
SELECT col2 + col1 * + 19 AS col2 FROM tab2
----
1331
1503
992

query I rowsort
SELECT + 36 AS col0 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col1 * - col2 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * + ( 86 ) - 88 FROM tab2
----
1890
3352
4900

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT - col0 * - 7 - ( + col1 + 72 ) AS col0 FROM tab0
----
-48
516
606

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT + COUNT( * ) * - 9 - 2 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-5355
SELECT + COUNT ( * ) * - 9 - 2 FROM tab1
----
-29

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - col1 BETWEEN ( - col2 * + col0 ) AND NULL
----

query I rowsort
SELECT ALL + col1 + - 31 FROM tab0
----
-10
-30
50

query I rowsort
SELECT ALL - 86 - + 16 AS col2 FROM tab0
----
-102
-102
-102

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 < NULL
----

query I rowsort
SELECT - ( 92 ) FROM tab0
----
-92
-92
-92

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col0 * col2 AND - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL + 50 + ( - COUNT( * ) ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL + 50 + ( - COUNT ( * ) ) AS col2 FROM tab1
----
47

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT 14 + COUNT( * ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-5365
SELECT 14 + COUNT ( * ) AS col1 FROM tab1
----
17

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND - col1 + ( + 52 ) / - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5367
SELECT DISTINCT - col0 DIV - col1 + - col2 FROM tab0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT - col0 / - col1 + - col2 FROM tab0
----
-2
-47
-6

query I rowsort
SELECT + 31 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE NOT NULL IS NOT NULL
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 + col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 + col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 34 * 87 FROM tab2 AS cor0
----
2958

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 * - 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 + + col0 col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col1 FROM tab0 AS cor0 WHERE NULL IN ( + col1 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 + - 12 col1 FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * COUNT( col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * COUNT ( col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE ( ( ( + col1 ) ) ) <= - 96
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + 75 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT COUNT( * ) - 89 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT COUNT ( * ) - 89 FROM tab1
----
-86

query I rowsort
SELECT - col1 - - col1 + + 55 AS col0 FROM tab2
----
55
55
55

query I rowsort
SELECT col0 - + col1 * 53 FROM tab2
----
-2657
-3476
-4017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL - col0 + col0 * CAST( + col1 AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - col0 + col0 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT + col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) / col0 + - col2 * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5383
SELECT + col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / col0 + - col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT COUNT( * ) FROM tab1 WHERE ( - col0 ) NOT BETWEEN + col0 AND 31
----
3

skipif mysql # not compatible
query I rowsort label-5384
SELECT COUNT ( * ) FROM tab1 WHERE ( - col0 ) NOT BETWEEN + col0 AND 31
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT + 11 + + - COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5385
SELECT + 11 + + - COUNT ( * ) FROM tab2
----
8

query I rowsort
SELECT ALL 8 AS col0 FROM tab1 WHERE NOT col0 * col2 + - col1 IS NULL
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT SUM( ALL col2 ) + COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5387
SELECT SUM ( ALL col2 ) + COUNT ( * ) FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - 78 + 45 * COUNT( * ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-5388
SELECT - 78 + 45 * COUNT ( * ) AS col1 FROM tab2
----
57

query I rowsort
SELECT DISTINCT - - ( col2 ) * + ( - 92 ) + col2 FROM tab2 AS cor0
----
-2093
-3640
-5278

query I rowsort
SELECT col1 * + col2 AS col1 FROM tab2 AS cor0 WHERE col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + 70 ) <> ( + col0 * + col1 + 89 )
----
3

skipif mysql # not compatible
query I rowsort label-5391
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + 70 ) <> ( + col0 * + col1 + 89 )
----
3

query I rowsort
SELECT ALL 41 - - ( - col0 ) + col1 * + 47 AS col1 FROM tab0 AS cor0
----
-9
3833
941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT + CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5393
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT DISTINCT - COUNT( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT - COUNT ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5395
SELECT + SUM( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT + SUM ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL - + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN col2 + + col1 AND 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT SUM( ALL ( 99 ) ) * + MAX( col1 ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT SUM ( ALL ( 99 ) ) * + MAX ( col1 ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND col1
----
NULL

query I rowsort
SELECT - col2 * - col1 - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + 78
----

query I rowsort
SELECT + - col1 * 9 AS col2 FROM tab0 AS cor0
----
-189
-729
-9

query II rowsort
SELECT col2 AS col1, - col0 + + 56 AS col2 FROM tab1 AS cor0
----
59
-29
68
-35
96
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) * - ( col1 ) >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT + 91 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5403
SELECT + 91 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 53 * + 87 * + col1 AS col0 FROM tab2 AS cor0
----
235161
308937
355047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 74 * - col0 col1 FROM tab0 AS cor0
----
1110
6438
7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5406
SELECT COUNT( * ) AS col2, CAST( NULL AS SIGNED ) / + - CAST( 14 AS SIGNED ) col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5406
SELECT COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) / + - CAST ( 14 AS INTEGER ) col1 FROM tab1 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col2 ) col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 + 79 * - col2 ) AND NULL
----

query I rowsort
SELECT - 37 AS col0 FROM tab1 WHERE NOT ( + + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 14 ) * 3 FROM tab2 WHERE NULL IS NULL
----
42

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT - col1 + + col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5412
SELECT DISTINCT 16 DIV + COUNT( * ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5412
SELECT DISTINCT 16 / + COUNT ( * ) col2 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT - col2 * col2 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + - - col0 + - 14 IS NOT NULL
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-5413
SELECT - col2 * col2 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + - - col0 + - 14 IS NOT NULL
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL COUNT( - - 26 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL COUNT ( - - 26 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - 88 / - col1 AS col2 FROM tab2 cor0 WHERE NOT 45 > ( NULL )
----

query I rowsort
SELECT + ( - + col2 ) * - - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT DISTINCT - - COUNT( * ) / - + CAST( NULL AS SIGNED ) / + 88 * + - 15 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT - - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) / + 88 * + - 15 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 20 * col0 FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT SUM( - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT SUM ( - col2 ) AS col1 FROM tab0
----
-156

query I rowsort
SELECT ALL 70 + - col2 AS col1 FROM tab1
----
-26
11
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col0 + - + 33 FROM tab2 AS cor0
----
-125
-161
-183

query I rowsort
SELECT DISTINCT col0 + + col1 * 30 AS col2 FROM tab2 AS cor0
----
1576
2085
2374

query I rowsort
SELECT ALL + + 81 AS col1 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT + - col2 + - 83 FROM tab2 AS cor0
----
-106
-123
-141

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = - col2
----

query I rowsort
SELECT + 86 + - 63 FROM tab0 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5429
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + CAST( + col1 AS SIGNED ) IN ( 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5429
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + CAST ( + col1 AS INTEGER ) IN ( 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT COUNT( * ) FROM tab2 WHERE ( + 50 <= + col1 + col0 - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5430
SELECT COUNT ( * ) FROM tab2 WHERE ( + 50 <= + col1 + col0 - col0 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE 19 IS NULL
----

query I rowsort
SELECT + col2 * - + col1 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - col0 * 59 * + 64 FROM tab1
----
-192576
-320960
-343616

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 26 BETWEEN NULL AND ( - 18 )
----

query III rowsort
SELECT * FROM tab0 WHERE + - 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL ( MIN( 40 ) ) + + SUM( - col2 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL ( MIN ( 40 ) ) + + SUM ( - col2 ) AS col1 FROM tab2
----
-81

query II rowsort
SELECT ALL + 58 AS col1, - 32 AS col2 FROM tab2 WHERE NOT + 15 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab1 WHERE ( + col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5440
SELECT + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT - COUNT( + - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT - COUNT ( + - col0 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 - col1 * - col2 * + 28 col2 FROM tab0 AS cor0
----
106565
2741
5849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 79 col2, 96 AS col1 FROM tab1 AS cor0
----
79
96
79
96
79
96

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE NOT col2 + + + 58 BETWEEN col1 * col0 - - - col0 AND NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT DISTINCT - MIN( - - col2 ) AS col1, + 60 + + - COUNT( - 86 ) AS col0 FROM tab1
----
-59
57

skipif mysql # not compatible
query II rowsort label-5446
SELECT DISTINCT - MIN ( - - col2 ) AS col1, + 60 + + - COUNT ( - 86 ) AS col0 FROM tab1
----
-59
57

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL + 65 * + 60 AS col2 FROM tab1 AS cor0
----
3900
3900
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL MIN( ALL 80 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL MIN ( ALL 80 ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + + 74 >= NULL
----

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab1 AS cor0 WHERE NOT + 54 <> 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - MIN( - 6 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5452
SELECT - MIN ( - 6 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + + col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - col2 * - + col2 + col0 FROM tab2 AS cor0
----
1664
3439
575

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - 15 / + col1 + col0 + col0 * - ( + 96 + + col2 ) IN ( col2 * - col1 + col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - ( 36 ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col0 * - + col2 >= ( 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5458
SELECT - 71 col2, MIN( DISTINCT col0 ) FROM tab1
----
-71
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5458
SELECT - 71 col2, MIN ( DISTINCT col0 ) FROM tab1
----
-71
51

query II rowsort
SELECT + col1, ( + col2 ) * - col1 FROM tab0
----
1
-99
21
-210
81
-3807

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + MIN( + 14 ) AS col1 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-5460
SELECT + MIN ( + 14 ) AS col1 FROM tab2
----
14

query I rowsort
SELECT ALL 52 + - + col2 AS col0 FROM tab0
----
-47
42
5

query I rowsort
SELECT 6 * + 26 * - + col0 FROM tab1
----
-13260
-14196
-7956

query I rowsort
SELECT DISTINCT - col1 + - - 42 * col0 * col2 FROM tab2 AS cor0
----
107443
182633
44385

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL + COUNT( * ) * - 53 FROM tab1 cor0
----
-159

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + COUNT ( * ) * - 53 FROM tab1 cor0
----
-159

query I rowsort
SELECT ALL + col0 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + col2 BETWEEN - col2 AND + - ( + 52 )
----
4896
5015
6188

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col0
----

query I rowsort
SELECT ALL + 60 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT ( + - ( 41 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-41

query I rowsort
SELECT DISTINCT - 14 + - - 90 AS col1 FROM tab0 WHERE 41 IS NOT NULL
----
76

query I rowsort
SELECT ALL + + 81 - + 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL + 22 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
22
22
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - ( + 89 ) * + + col2 / - col1 * 86 + + + col1 * - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 - col0 + col1 col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT + 12 - col2 FROM tab2 cor0
----
-11
-28
-46

query I rowsort
SELECT DISTINCT - 43 + + + col0 FROM tab2 AS cor0
----
21
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT - COUNT( ALL 76 ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT - COUNT ( ALL 76 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 53 - col2 AS col1 FROM tab2
----
-5
13
30

query I rowsort
SELECT col1 + - + 3 * - 89 + + + 74 AS col0 FROM tab2
----
392
408
418

query III rowsort
SELECT * FROM tab0 WHERE NULL > - 5
----

query I rowsort
SELECT col2 + col2 * col2 + - col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----

query II rowsort
SELECT + - col2, col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-10
-66
-47
66
-99
-96

query II rowsort
SELECT - col2 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT 40 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT 35 DIV - 8 FROM tab0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-5486
SELECT 35 / - 8 FROM tab0
----
-4
-4
-4

query II rowsort
SELECT + 99 AS col0, 52 AS col2 FROM tab2
----
99
52
99
52
99
52

query I rowsort
SELECT - ( + - 72 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 17 AS col2, - col0 FROM tab1
----
17
-51
17
-85
17
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT DISTINCT 46 * + COUNT( * ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT 46 * + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 * + 24 AS col0 FROM tab1 AS cor0
----
1416
1632
2304

query I rowsort
SELECT col1 * + - col2 * - 31 + - 66 FROM tab2 AS cor0
----
120400
36297
95414

query II rowsort
SELECT DISTINCT col1, - col1 + - + col1 FROM tab1 AS cor0
----
14
-28
47
-94
5
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5494
SELECT 86 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1290
-7482
-8342

skipif mysql # not compatible
query I rowsort label-5494
SELECT 86 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1290
-7482
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL + ( - 3 ) * + - SUM( DISTINCT 78 ) AS col1 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + ( - 3 ) * + - SUM ( DISTINCT 78 ) AS col1 FROM tab1 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query II rowsort label-5496
SELECT ALL ( + COUNT( * ) ), MIN( - + col1 ) AS col0 FROM tab0 AS cor0
----
3
-81

skipif mysql # not compatible
query II rowsort label-5496
SELECT ALL ( + COUNT ( * ) ), MIN ( - + col1 ) AS col0 FROM tab0 AS cor0
----
3
-81

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col1, - ( - + 24 ) FROM tab0 AS cor0
----
-1
24
-21
24
-81
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5499
SELECT MAX( ALL + col2 ) DIV COUNT( * ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5499
SELECT MAX ( ALL + col2 ) / COUNT ( * ) FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT ALL - MAX( DISTINCT col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL - MAX ( DISTINCT col2 ) FROM tab2
----
-58

query I rowsort
SELECT DISTINCT - + ( - - 46 ) * - col2 + col1 AS col0 FROM tab1 cor0
----
2719
3175
4430

query I rowsort
SELECT 77 * + col1 + + col2 AS col1 FROM tab0 AS cor0
----
1627
176
6284

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col1 * - 81 + - 84
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5504
SELECT ALL - CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5504
SELECT ALL - CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL + 8, - col2 AS col0 FROM tab2
----
8
-23
8
-40
8
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT - 50 + SUM( ALL 4 ) col2, + COUNT( * ) AS col0 FROM tab0
----
-38
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5506
SELECT - 50 + SUM ( ALL 4 ) col2, + COUNT ( * ) AS col0 FROM tab0
----
-38
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5507
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( + - 35, + 60 + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5507
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( + - 35, + 60 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT DISTINCT col1 DIV + 30 + - 91 + + col0 * - col2 col2 FROM tab2 AS cor0
----
-1148
-2649
-4439

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5508
SELECT DISTINCT col1 / + 30 + - 91 + + col0 * - col2 col2 FROM tab2 AS cor0
----
-1148
-2649
-4439

query I rowsort
SELECT - - 44 + + col1 FROM tab0 AS cor0
----
125
45
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 2 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + COUNT( + - ( - 27 ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5511
SELECT + COUNT ( + - ( - 27 ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT 31 + - SUM( 7 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5512
SELECT 31 + - SUM ( 7 ) col2 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT ALL + - 64 DIV - + col1 + - ( - + 93 ) * 20 AS col2 FROM tab1 AS cor0
----
1861
1864
1872

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + - 64 / - + col1 + - ( - + 93 ) * 20 AS col2 FROM tab1 AS cor0
----
1861
1864
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL COUNT( * ) * + 27 * + COUNT( + 35 ) - + + COUNT( * ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL COUNT ( * ) * + 27 * + COUNT ( + 35 ) - + + COUNT ( * ) FROM tab2 AS cor0
----
240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - col0 + - 18 / - col1 - + + col1 * col0 + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT CAST( - col1 AS SIGNED ) - - ( - ( + col1 ) ) FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT CAST ( - col1 AS INTEGER ) - - ( - ( + col1 ) ) FROM tab1
----
-10
-28
-94

query I rowsort
SELECT DISTINCT 53 * + 9 AS col1 FROM tab0
----
477

query III rowsort
SELECT * FROM tab1 WHERE + 35 BETWEEN + ( - + col1 ) AND + col1 / - + col0 * - + 6
----

query I rowsort
SELECT col0 - + 70 * + + col0 AS col1 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL + SUM( 16 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + SUM ( 16 ) FROM tab1
----
48

query I rowsort
SELECT + 48 * ( + 93 ) FROM tab1
----
4464
4464
4464

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5522
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - col2 * + col0 + - - col0 + + CAST( + - ( - 27 ) AS SIGNED ) - + - 76 + - - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5522
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - - col2 * + col0 + - - col0 + + CAST ( + - ( - 27 ) AS INTEGER ) - + - 76 + - - CAST ( - col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IN ( + - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IN ( + - 96 )
----
0

query I rowsort
SELECT - col1 * + - 35 * + col1 FROM tab2
----
157115
207515
91035

query II rowsort
SELECT col1, col0 FROM tab1
----
14
51
47
91
5
85

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 10 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - ( - ( COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5527
SELECT - ( - ( COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > + 60 * - ( col1 )
----

query I rowsort
SELECT DISTINCT - - col0 * + + col2 + - + 37 * 45 FROM tab1 AS cor0
----
3231
3350
4523

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL - MAX( DISTINCT 92 ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-92

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - MAX ( DISTINCT 92 ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-92

query I rowsort
SELECT DISTINCT + col0 + 58 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-205
-2635
-761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, - col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT 30 FROM tab2 WHERE NOT NULL > + - col1
----

query II rowsort
SELECT DISTINCT col2 AS col0, col1 + + - col2 FROM tab0
----
10
11
47
34
99
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT MAX( - 46 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-5537
SELECT MAX ( - 46 ) FROM tab1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - + COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND - ( + ( - - 41 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5538
SELECT - + COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND - ( + ( - - 41 ) )
----
0

query II rowsort
SELECT col1 AS col2, 20 - + col0 FROM tab1
----
14
-31
47
-71
5
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT MIN( ALL + - 64 ) AS col0 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-5540
SELECT MIN ( ALL + - 64 ) AS col0 FROM tab0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT DISTINCT 27 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT 27 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 37 FROM tab0 AS cor0 WHERE - 24 * + col0 IS NOT NULL
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - col1 + + + col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT + col2 + - CAST( NULL AS SIGNED ) * - col1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT + col2 + - CAST ( NULL AS INTEGER ) * - col1 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL - CAST( NULL AS SIGNED ) * - 41 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL - CAST ( NULL AS INTEGER ) * - 41 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 + 2 FROM tab0 AS cor0
----
23
3
83

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT ALL + col1 + - + col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL - ( + col0 ) + - 43 * + + 53 + 56 FROM tab2 cor0
----
-2269
-2287
-2298

query I rowsort
SELECT DISTINCT + 91 * + col1 + + + col2 AS col0 FROM tab2 cor0
----
4664
6155
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL + 54 + + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL + 54 + + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ( + 34 ) + col2 AS col2 FROM tab1 cor0
----
102
130
93

query I rowsort
SELECT DISTINCT - col0 - - + col0 * - 91 AS col1 FROM tab0 AS cor0
----
-1380
-8004
-8924

query I rowsort
SELECT ALL col2 * + col2 * + + col0 FROM tab2
----
102400
24334
252300

query II rowsort
SELECT 50, 62 AS col0 FROM tab2
----
50
62
50
62
50
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT DISTINCT col2 DIV - col1 AS col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT col2 / - col1 AS col1 FROM tab1
----
-1
-11
-6

query II rowsort
SELECT 68 AS col0, - col0 AS col1 FROM tab1
----
68
-51
68
-85
68
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - COUNT( * ) col2 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5558
SELECT - COUNT ( * ) col2 FROM tab2, tab1 AS cor0
----
-9

query I rowsort
SELECT - col2 * col0 + 52 * col0 AS col0 FROM tab1 WHERE NOT 22 IS NULL
----
-1456
-2244
-595

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( - col1 * - 15 <> NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - MAX( - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5561
SELECT - MAX ( - col0 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + ( 24 ) * - 37 * - COUNT( * ) * + SUM( ALL - + col2 ) FROM tab1
----
-594072

skipif mysql # not compatible
query I rowsort label-5562
SELECT + ( 24 ) * - 37 * - COUNT ( * ) * + SUM ( ALL - + col2 ) FROM tab1
----
-594072

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - 51 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 8 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT - MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT - MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT ALL - - 88 + + col1 DIV col0 col2 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5566
SELECT ALL - - 88 + + col1 / col0 col2 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT col0 + - - 87 AS col2 FROM tab1 AS cor0
----
138
172
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT CAST( + 58 AS SIGNED ) + - + col1 col1 FROM tab0 AS cor0
----
-23
37
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5568
SELECT CAST ( + 58 AS INTEGER ) + - + col1 col1 FROM tab0 AS cor0
----
-23
37
57

query I rowsort
SELECT - col2 + 62 FROM tab1 AS cor0
----
-34
-6
3

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - - col0 * col2 < col2 + - 55
----
51
67
77

query I rowsort
SELECT - - 27 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL - COUNT( * ) + + + 23 + COUNT( * ) FROM tab1 WHERE + - col1 >= - - col1
----
23

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - COUNT ( * ) + + + 23 + COUNT ( * ) FROM tab1 WHERE + - col1 >= - - col1
----
23

query I rowsort
SELECT DISTINCT - col2 + + - col0 + + col1 AS col2 FROM tab1
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT + - ( - SUM( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5574
SELECT + - ( - SUM ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT + + MAX( col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5575
SELECT + + MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - MIN( - ( - + col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5576
SELECT - MIN ( - ( - + col2 ) ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - - 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col0 - + 87 * + 89 AND NULL
----

query I rowsort
SELECT ALL 3 * 46 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8efb07034dc56ab6b9bb87a8b955053a

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT - 69 + + CAST( NULL AS SIGNED ) * - ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT - 69 + + CAST ( NULL AS INTEGER ) * - ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * - + col2 + - - 56 FROM tab2 AS cor0
----
1656
3420
585

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5583
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IS NULL OR NOT ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 95 * + 44 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5586
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT DISTINCT 68 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
3
68

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT 68 / + col1 AS col1 FROM tab0 AS cor0
----
0
3
68

query II rowsort
SELECT 49 + col1, - col0 FROM tab0 AS cor0 WHERE NOT + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col1 * + col2 FROM tab0 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 WHERE NOT col0 * + 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col0 * + 18 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 * - - col2 AS col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT col2 * + - 40 AS col0 FROM tab1
----
-2360
-2720
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT + + CAST( - - 62 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-5594
SELECT + + CAST ( - - 62 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5596
SELECT DISTINCT - CAST( - - 21 AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ) * ( - SUM( ALL 16 ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT - CAST ( - - 21 AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ) * ( - SUM ( ALL 16 ) ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT ALL col2 * - CAST( - - col2 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
33135
8700
950697

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL col2 * - CAST ( - - col2 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
33135
8700
950697

query II rowsort
SELECT + 96 AS col2, 7 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
96
7
96
7
96
7

query I rowsort
SELECT DISTINCT 61 * - col2 AS col1 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT ALL - ( + ( - 46 ) ) AS col1 FROM tab1
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5601
SELECT MAX( DISTINCT - 77 ) AS col1, CAST( COUNT( * ) AS SIGNED ) + + + 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
68

skipif mysql # not compatible
query II rowsort label-5601
SELECT MAX ( DISTINCT - 77 ) AS col1, CAST ( COUNT ( * ) AS INTEGER ) + + + 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
68

query II rowsort
SELECT - col1 AS col0, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT ALL - col1 + 84 AS col1 FROM tab0 cor0
----
3
63
83

query I rowsort
SELECT ALL + col1 * - col0 * + 52 + - + 48 FROM tab0 AS cor0
----
-5092
-63228
-95052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT DISTINCT - 45 * CAST( SUM( + col0 ) AS SIGNED ) - + 95 col2 FROM tab1 AS cor0 WHERE NOT - col1 <= ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5605
SELECT DISTINCT - 45 * CAST ( SUM ( + col0 ) AS INTEGER ) - + 95 col2 FROM tab1 AS cor0 WHERE NOT - col1 <= ( NULL )
----
NULL

query I rowsort
SELECT + ( 42 ) * + - 32 FROM tab0 AS cor0
----
-1344
-1344
-1344

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + col2 * 66 + 26 * 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5608
SELECT - col0, CAST( + col1 AS DECIMAL ) FROM tab2 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query II rowsort label-5608
SELECT - col0, CAST ( + col1 AS REAL ) FROM tab2 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col1 ) * + - col0 col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL - 55 AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
-55
-55
-55

query I rowsort
SELECT + + col2 + - 72 FROM tab1 WHERE ( col2 + col1 IS NULL )
----

query I rowsort
SELECT ALL 67 + - ( - 44 ) FROM tab2
----
111
111
111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5613
SELECT col1 / col1 + + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT col1 / col1 + + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab2, tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT + 63 + - COUNT( DISTINCT 35 ) AS col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + 63 + - COUNT ( DISTINCT 35 ) AS col0 FROM tab1 AS cor0
----
62

query II rowsort
SELECT col1, 13 FROM tab2 AS cor0 WHERE 6 / + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT COUNT( * ) + + + 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT COUNT ( * ) + + + 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
63

query I rowsort
SELECT DISTINCT 43 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - - SUM( + col0 ) * - - ( + 89 ) + + COUNT( * ) FROM tab2 cor0
----
16468

skipif mysql # not compatible
query I rowsort label-5620
SELECT - - SUM ( + col0 ) * - - ( + 89 ) + + COUNT ( * ) FROM tab2 cor0
----
16468

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT + 99 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT + 99 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT + col0 BETWEEN + 31 * - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5622
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT + col0 BETWEEN + 31 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT DISTINCT - COUNT( * ) * - + COUNT( - ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( - ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT + ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5624
SELECT DISTINCT + ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL - SUM( ALL + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - SUM ( ALL + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - COUNT( * ) * + 51 * 76 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11628

skipif mysql # not compatible
query I rowsort label-5626
SELECT - COUNT ( * ) * + 51 * 76 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11628

query II rowsort
SELECT DISTINCT - col0 * + col2, col0 + + ( - 68 ) AS col0 FROM tab1
----
-4896
-17
-5015
17
-6188
23

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE - col1 + col2 <> 34 / - 1
----
14
47
5

query II rowsort
SELECT DISTINCT - col0 AS col1, + 72 + col1 AS col2 FROM tab1 AS cor0
----
-51
86
-85
77
-91
119

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 15 - + col0 + - 91 * + ( + - col0 ) NOT BETWEEN - 67 / - 32 AND NULL
----

query I rowsort
SELECT + col1 * - + 40 * col2 AS col0 FROM tab2 AS cor0
----
-123200
-155440
-46920

query I rowsort
SELECT col0 * + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + 96 * - col1 * - col0 + - col2 + + + col1 FROM tab1 AS cor0
----
40746
410571
68462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT CAST( - 49 AS SIGNED ) * + COUNT( + col0 ) FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-5634
SELECT CAST ( - 49 AS INTEGER ) * + COUNT ( + col0 ) FROM tab0 AS cor0
----
-147

query I rowsort
SELECT DISTINCT - 34 * - ( - 88 ) + col0 FROM tab2 AS cor0
----
-2917
-2928
-2946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 26 * + col1 + 57 AS col0, 47 + - col1 col1 FROM tab1 AS cor0
----
1279
0
187
42
421
33

query II rowsort
SELECT + - col2 + - col1, - 36 AS col2 FROM tab2 AS cor0
----
-117
-36
-125
-36
-74
-36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5638
SELECT 44 DIV CAST( col2 AS SIGNED ) + + - col1 + - 88 + + col1 FROM tab0 AS cor0
----
-84
-88
-88

skipif mysql # not compatible
query I rowsort label-5638
SELECT 44 / CAST ( col2 AS INTEGER ) + + - col1 + - 88 + + col1 FROM tab0 AS cor0
----
-84
-88
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT 55 + CAST( NULL AS SIGNED ) + - COUNT( ALL - + 10 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT 55 + CAST ( NULL AS INTEGER ) + - COUNT ( ALL - + 10 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= 3
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5641
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - ( COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - 48 + 37 AS col1, + 69 + col2 FROM tab2 cor0
----
-11
109
-11
127
-11
92

query I rowsort
SELECT ALL 23 + - col2 FROM tab0 AS cor0
----
-24
-76
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 + - 7 col2, col1, + col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to fe17bd074b8f4cdf56d18c49169143a9

query II rowsort
SELECT DISTINCT - 86 + 91 AS col2, + 95 AS col0 FROM tab2 AS cor0
----
5
95

query I rowsort
SELECT col1 + col1 - 85 FROM tab0 AS cor0 WHERE ( col2 + - 2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 68 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + - - 96 AS col1 FROM tab0 AS cor0
----
106
143
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * 0 + col0 col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col1 * + 86 - - 91 + + col0 FROM tab2 AS cor0
----
4523
5928
6777

query I rowsort
SELECT + 55 * col1 AS col2 FROM tab0
----
1155
4455
55

query II rowsort
SELECT ( 77 ) * 29, - 83 AS col2 FROM tab2
----
2233
-83
2233
-83
2233
-83

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL BETWEEN - + col2 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 + - 19 col1 FROM tab0
----
-33

query I rowsort
SELECT ALL - col1 + + + ( - - ( - + col2 ) ) - - col0 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5656
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + ( - CAST( col0 AS SIGNED ) ) * col1 <= + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5656
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + ( - CAST ( col0 AS INTEGER ) ) * col1 <= + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 - + - ( - 6 ) AS col0 FROM tab0 AS cor0
----
-5
15
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT DISTINCT 95 * + - 43 - - + MIN( - 80 ) + - MIN( col0 ) + + SUM( + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
-3871

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT 95 * + - 43 - - + MIN ( - 80 ) + - MIN ( col0 ) + + SUM ( + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-3871

query I rowsort
SELECT 94 - - + 22 AS col2 FROM tab2 AS cor0
----
116
116
116

query I rowsort
SELECT col0 * + col2 - - col0 * + col0 AS col2 FROM tab1 AS cor0
----
12240
14469
7497

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL + COUNT( * ) * - 5 AS col0 FROM tab0 AS cor0 WHERE col0 IN ( col0 )
----
-15

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + COUNT ( * ) * - 5 AS col0 FROM tab0 AS cor0 WHERE col0 IN ( col0 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT - MAX( ALL col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5662
SELECT DISTINCT - MAX ( ALL col1 ) col0 FROM tab1
----
-47

query I rowsort
SELECT - ( + col0 ) * + col0 AS col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT + - 36 DIV col0 * + + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT + - 36 / col0 * + + col1 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT + col2 * col0 AS col0, - col1 FROM tab1 AS cor0
----
4896
-14
5015
-5
6188
-47

query I rowsort
SELECT ALL + - 93 * - 94 + 25 FROM tab0 AS cor0
----
8767
8767
8767

query I rowsort
SELECT - ( col0 ) * + col1 + + - col1 + - col2 FROM tab1 AS cor0 WHERE NOT + 9 + - 68 BETWEEN NULL AND - + col2 + + + col1
----
-824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT IN ( - 76, + 60 )
----

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT IN ( - 76, + 60 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT ALL - CAST( + MAX( DISTINCT - + 29 ) AS SIGNED ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - CAST ( + MAX ( DISTINCT - + 29 ) AS INTEGER ) FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT + CAST( - col2 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5670
SELECT + CAST ( - col2 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE col0 IS NOT NULL AND NOT + col0 > ( col2 )
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NULL <> col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 8 * + col1 < + col2
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT ALL 70 col0, MIN( DISTINCT - + col2 ) FROM tab1
----
70
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5675
SELECT ALL 70 col0, MIN ( DISTINCT - + col2 ) FROM tab1
----
70
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT ALL + 86 * - col0 DIV + + col0 FROM tab0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + 86 * - col0 / + + col0 FROM tab0
----
-86
-86
-86

query I rowsort
SELECT + col2 * - - 73 FROM tab0
----
3431
7227
730

query II rowsort
SELECT DISTINCT + col0, + ( - col0 ) FROM tab0 AS cor0 WHERE NOT col2 + ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * - 65 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 56, + col2 FROM tab2 cor0
----
56
23
56
40
56
58

query I rowsort
SELECT - col2 + 83 + + 29 FROM tab0
----
102
13
65

query I rowsort
SELECT - 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT 68 + SUM( DISTINCT - col1 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT 68 + SUM ( DISTINCT - col1 ) FROM tab1
----
2

query II rowsort
SELECT - col1 AS col0, 48 + 16 FROM tab1
----
-14
64
-47
64
-5
64

query II rowsort
SELECT 20 AS col0, + 95 FROM tab2
----
20
95
20
95
20
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + - 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT - 18 + - col0 AS col2 FROM tab1 AS cor0
----
-103
-109
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT ALL + + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 1 + + col1 - + - col1 AS col2 FROM tab0 AS cor0
----
163
3
43

query III rowsort
SELECT * FROM tab2 WHERE NULL > - 92
----

query I rowsort
SELECT ALL - 80 * - ( + ( - 21 ) ) AS col0 FROM tab0
----
-1680
-1680
-1680

query I rowsort
SELECT ALL 74 - col1 AS col2 FROM tab1
----
27
60
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL < - + CAST( NULL AS SIGNED ) * + - col2
----

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL < - + CAST ( NULL AS INTEGER ) * + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT DISTINCT + col1 DIV 89 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT + col1 / 89 AS col2 FROM tab0
----
0

query I rowsort
SELECT col2 + + + col2 AS col1 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col1 col2 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT ALL + CAST( 48 AS SIGNED ) * col1 col1 FROM tab2
----
2448
3216
3696

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5700
SELECT ALL + CAST ( 48 AS INTEGER ) * col1 col1 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT DISTINCT col2 + - + col0 AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT DISTINCT - col1 DIV 71 * + col0 col0 FROM tab0 AS cor0
----
-15
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5702
SELECT DISTINCT - col1 / 71 * + col0 col0 FROM tab0 AS cor0
----
-15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT - ( 45 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT - 65 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + ( - 11 ) / + col2 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT DISTINCT + COUNT( 9 ) * + - 36 + 37 * - 51 FROM tab2 AS cor0 WHERE NOT col2 <= + 69 * + + col1 + - col0 * + 49 + - CAST( NULL AS SIGNED ) + col2
----
-1887

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + COUNT ( 9 ) * + - 36 + 37 * - 51 FROM tab2 AS cor0 WHERE NOT col2 <= + 69 * + + col1 + - col0 * + 49 + - CAST ( NULL AS INTEGER ) + col2
----
-1887

query I rowsort
SELECT ALL ( + - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5708
SELECT ALL - + 17 col0, COUNT( + col0 ) FROM tab0 AS cor0
----
-17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5708
SELECT ALL - + 17 col0, COUNT ( + col0 ) FROM tab0 AS cor0
----
-17
3

query I rowsort
SELECT + 93 * - - col1 AS col1 FROM tab2 AS cor0
----
4743
6231
7161

query I rowsort
SELECT - col1 - col1 AS col0 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT + + col2 AS col1, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT DISTINCT + - SUM( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + - SUM ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT - MAX( - 84 ) FROM tab0 cor0
----
84

skipif mysql # not compatible
query I rowsort label-5713
SELECT - MAX ( - 84 ) FROM tab0 cor0
----
84

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - + 11 NOT BETWEEN + col2 - + ( + col2 ) AND NULL
----
10
47
99

query I rowsort
SELECT 79 + col2 - + col2 AS col1 FROM tab0
----
79
79
79

query II rowsort
SELECT DISTINCT - ( - - 19 ), 41 AS col1 FROM tab1
----
-19
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT DISTINCT + - COUNT( * ) AS col2, COUNT( * ) * + ( + COUNT( * ) ) FROM tab0 WHERE NULL = - + col0
----
0
0

skipif mysql # not compatible
query II rowsort label-5718
SELECT DISTINCT + - COUNT ( * ) AS col2, COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab0 WHERE NULL = - + col0
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5719
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5719
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT - - SUM( DISTINCT ( + col0 ) ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5720
SELECT - - SUM ( DISTINCT ( + col0 ) ) FROM tab0 cor0
----
199

query I rowsort
SELECT ALL - - 48 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT 48 + + - COUNT( DISTINCT + - col1 ) + + + COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-5722
SELECT 48 + + - COUNT ( DISTINCT + - col1 ) + + + COUNT ( * ) FROM tab1
----
48

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * 12 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + + 99 NOT BETWEEN - col2 AND NULL AND NULL IS NULL
----

query I rowsort
SELECT DISTINCT 7 + + col2 + - - col1 + + + 20 FROM tab1 AS cor0
----
137
142
91

query I rowsort
SELECT - 33 * - 32 + + 93 + + ( - 76 ) FROM tab1 AS cor0
----
1073
1073
1073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + - col0 col2 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query II rowsort label-5728
SELECT DISTINCT col1 DIV + + col1 + - + 17 AS col0, - 32 FROM tab2 AS cor0
----
-16
-32

skipif mysql # not compatible
query II rowsort label-5728
SELECT DISTINCT col1 / + + col1 + - + 17 AS col0, - 32 FROM tab2 AS cor0
----
-16
-32

query I rowsort
SELECT ALL - 46 + col0 FROM tab2 AS cor0
----
0
18
29

query I rowsort
SELECT + ( - 23 ) * + col0 + + 86 AS col2 FROM tab1 AS cor0
----
-1087
-1869
-2007

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL - + COUNT( col1 ) * - - COUNT( * ) + - + 19 + - MIN( + 23 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - + COUNT ( col1 ) * - - COUNT ( * ) + - + 19 + - MIN ( + 23 ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT + col2 AS col0, + col0 * ( ( + - col1 ) ) FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

query II rowsort
SELECT - col0 AS col0, 39 * - col0 AS col1 FROM tab0
----
-15
-585
-87
-3393
-97
-3783

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL - 24 * - ( + MAX( + 50 ) ) AS col0 FROM tab0
----
1200

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - 24 * - ( + MAX ( + 50 ) ) AS col0 FROM tab0
----
1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + + col1 col0 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 > + 7
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + 13 AND + + col0
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE col0 + + col2 * - 21 IS NULL
----

query I rowsort
SELECT ALL - - 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col0 FROM tab0 AS cor0
----
-74

query II rowsort
SELECT col0 * 3 AS col1, - 39 * + col2 AS col2 FROM tab0 AS cor0
----
261
-390
291
-3861
45
-1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5742
SELECT + COUNT( * ) * + COUNT( * ) AS col1, - MIN( + ( col0 ) ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5742
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1, - MIN ( + ( col0 ) ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT - MIN( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( + col1 * + col2 * - 46 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT - MIN ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( + col1 * + col2 * - 46 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL - 24 FROM tab1 cor0
----
-24
-24
-24

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - - col0, col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5746
SELECT + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT COUNT( * ) * - 90 AS col2 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-5747
SELECT COUNT ( * ) * - 90 AS col2 FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + + COUNT( - col0 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5748
SELECT + + COUNT ( - col0 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 + 15 AS col0 FROM tab1
----
111
74
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col0 FROM tab0
----
-61
-61
-61

query I rowsort
SELECT - col0 * + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT DISTINCT + 32 + col1 + + col0 DIV 53 * ( - 79 ) * - + 98 FROM tab1 AS cor0
----
46
7779
7821

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT + 32 + col1 + + col0 / 53 * ( - 79 ) * - + 98 FROM tab1 AS cor0
----
46
7779
7821

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL - COUNT( * ) + - COUNT( * ) + - 67 FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + - 67 FROM tab0 cor0
----
-73

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT - + col2 * + col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT - + col2 * + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL ( + - MIN( + + 49 ) ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL ( + - MIN ( + + 49 ) ) FROM tab2
----
-49

query I rowsort
SELECT - col1 * 1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - + 81 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL + COUNT( * ) + - 47 * - 64 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9021

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + COUNT ( * ) + - 47 * - 64 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9021

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT + ( - + COUNT( DISTINCT - col1 ) ) col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - 46 * + 64 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5760
SELECT + ( - + COUNT ( DISTINCT - col1 ) ) col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - 46 * + 64 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col2 - + 24 > + col1 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT DISTINCT 49 * - SUM( DISTINCT - col1 ) * - + 15 - ( - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 + col2 * col2 * - - 35 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT 49 * - SUM ( DISTINCT - col1 ) * - + 15 - ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 + col2 * col2 * - - 35 * col1 )
----
NULL

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL CAST( NULL AS SIGNED ) - + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL CAST ( NULL AS INTEGER ) - + + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - + COUNT( * ) FROM tab1 WHERE col2 / - col2 + + + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5765
SELECT - + COUNT ( * ) FROM tab1 WHERE col2 / - col2 + + + col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT 32 * - COUNT( * ) + + COUNT( ALL - + col1 ) AS col0 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-5766
SELECT 32 * - COUNT ( * ) + + COUNT ( ALL - + col1 ) AS col0 FROM tab0
----
-93

query I rowsort
SELECT DISTINCT + col1 * - + col1 * + - col0 - - + col0 FROM tab2 WHERE NOT - 91 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT DISTINCT 93 * - ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT 93 * - ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT ALL - - CAST( 38 AS SIGNED ) FROM tab0 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - - CAST ( 38 AS INTEGER ) FROM tab0 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT SUM( ALL + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - + col0
----
87

skipif mysql # not compatible
query I rowsort label-5771
SELECT SUM ( ALL + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - + col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5772
SELECT 8 DIV - - COUNT( DISTINCT + col0 ) AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5772
SELECT 8 / - - COUNT ( DISTINCT + col0 ) AS col1 FROM tab2
----
2

query II rowsort
SELECT + col0 AS col2, col2 * - col0 * + col1 - + + 71 FROM tab0
----
15
-57176
87
-18341
97
-9674

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL MIN( + 6 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL MIN ( + 6 ) FROM tab2
----
6

query II rowsort
SELECT DISTINCT col0 * - + col0 AS col1, + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-2601
-51
-7225
-85
-8281
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT - - ( COUNT( * ) ) * COUNT( * ) AS col1 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5776
SELECT - - ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
9

query I rowsort
SELECT - 77 * - - col2 AS col2 FROM tab1 AS cor0
----
-4543
-5236
-7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 * - + col0 + - 2 / + col0 col1, - ( col1 ) FROM tab0 AS cor0 WHERE 19 < NULL
----

query I rowsort
SELECT + + col0 * - 53 AS col1 FROM tab2 AS cor0
----
-2438
-3392
-3975

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT DISTINCT + col1 DIV + col0 + - + 38 - col0 AS col2 FROM tab2 AS cor0
----
-101
-113
-83

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT + col1 / + col0 + - + 38 - col0 AS col2 FROM tab2 AS cor0
----
-101
-113
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5781
SELECT COUNT( - col2 ) AS col0, 42 * + MIN( DISTINCT + 57 ) FROM tab1 AS cor0
----
3
2394

skipif mysql # not compatible
query II rowsort label-5781
SELECT COUNT ( - col2 ) AS col0, 42 * + MIN ( DISTINCT + 57 ) FROM tab1 AS cor0
----
3
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT - COUNT( * ) + 17 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5782
SELECT - COUNT ( * ) + 17 FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5783
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 54 >= col1 + + ( + - 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT - 65 + 71 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT - 65 + 71 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 39 + ( - ( + col2 ) ) FROM tab0
----
-60
-8
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5788
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col2 + - col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col2 + - col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + + COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5789
SELECT + + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT 6 + 20 AS col0 FROM tab0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT + + 36 + + COUNT( * ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5791
SELECT + + 36 + + COUNT ( * ) FROM tab0 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT - + ( col0 ) DIV - col1 + - 3 FROM tab1 AS cor0
----
-2
0
14

skipif mysql # not compatible
query I rowsort label-5792
SELECT - + ( col0 ) / - col1 + - 3 FROM tab1 AS cor0
----
-2
0
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - col0 * - 91 * - col0 col2, - 16 AS col2 FROM tab1 AS cor0
----
-236742
-16
-657560
-16
-753662
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5794
SELECT ALL - - 91 + col2 + - col2 + + 43, ( - CAST( - ( + col1 ) AS SIGNED ) ) col1 FROM tab1 AS cor0
----
134
14
134
47
134
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5794
SELECT ALL - - 91 + col2 + - col2 + + 43, ( - CAST ( - ( + col1 ) AS INTEGER ) ) col1 FROM tab1 AS cor0
----
134
14
134
47
134
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5795
SELECT - CAST( - col1 AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE 92 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5795
SELECT - CAST ( - col1 AS REAL ) AS col2 FROM tab1 AS cor0 WHERE 92 >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( 25 / 60, col1 - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 59 col0 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5798
SELECT 83 AS col1, SUM( - 82 ) FROM tab1 cor0
----
83
-246

skipif mysql # not compatible
query II rowsort label-5798
SELECT 83 AS col1, SUM ( - 82 ) FROM tab1 cor0
----
83
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT - ( - COUNT( - 49 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT - ( - COUNT ( - 49 ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 10 * + 65 * 39 FROM tab1
----
25350
25350
25350

query I rowsort
SELECT + ( + col1 ) * + - 34 AS col1 FROM tab0
----
-2754
-34
-714

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5804
SELECT ALL 77 DIV CAST( + col2 AS SIGNED ) + - + 26 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-25
-25
-26

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL 77 / CAST ( + col2 AS INTEGER ) + - + 26 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-25
-25
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT - COUNT( * ) * + - ( - 60 ) AS col1 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT - COUNT ( * ) * + - ( - 60 ) AS col1 FROM tab1 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT + 31 * - - SUM( 50 ) FROM tab2, tab1 AS cor0
----
13950

skipif mysql # not compatible
query I rowsort label-5806
SELECT + 31 * - - SUM ( 50 ) FROM tab2, tab1 AS cor0
----
13950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5807
SELECT DISTINCT - - ( col1 ) / - - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT - - ( col1 ) / - - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 18 + - - 13 FROM tab1 cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT ALL - - 51 DIV col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - - 51 / col2 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT - COUNT( * ) - - AVG ( 10 ) FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT - COUNT ( * ) - - AVG ( 10 ) FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT - ( + + COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5811
SELECT - ( + + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col2, col0, - col2 )
----

query II rowsort
SELECT + col0, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT 74 DIV + 71 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5814
SELECT 74 / + 71 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - + 43 * + col0 + - col1 + - 84 AS col1 FROM tab0 WHERE NOT - col0 * + + 33 - - + ( + + col1 ) > + col0
----
-3846
-4256
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT ( col2 ) DIV 9 AS col2 FROM tab1
----
10
6
7

skipif mysql # not compatible
query I rowsort label-5816
SELECT ( col2 ) / 9 AS col2 FROM tab1
----
10
6
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT DISTINCT ( + - MAX( ALL col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT ( + - MAX ( ALL col1 ) ) FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 BETWEEN - - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT 15 DIV + col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5819
SELECT 15 / + col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL + MAX( ALL - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + MAX ( ALL - - col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT - 81 + + MAX( - - col1 ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-5821
SELECT - 81 + + MAX ( - - col1 ) AS col0 FROM tab2
----
-4

query I rowsort
SELECT DISTINCT col2 + 92 * - col1 AS col0 FROM tab1
----
-1192
-401
-4256

query II rowsort
SELECT col0 + - 77, - col0 - col2 + + col2 * - - 12 + - 29 AS col2 FROM tab2
----
-13
347
-2
534
-31
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT - CAST( NULL AS SIGNED ) + COUNT( DISTINCT - - col1 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - - col1 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL 86 * + col1 + 9 * - + col1 AS col2 FROM tab0 AS cor0
----
1617
6237
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL + COUNT( * ) col2 FROM tab2 AS cor0 WHERE ( + col0 IN ( - col2 * - col2 - - col0 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5826
SELECT ALL + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( + col0 IN ( - col2 * - col2 - - col0 ) )
----
0

query I rowsort
SELECT DISTINCT + 94 + - + col2 FROM tab2 AS cor0
----
36
54
71

query I rowsort
SELECT ALL col2 * col1 * - - 13 + + + col2 AS col2 FROM tab1
----
17568
3894
41616

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col2 * - 75 AS col0 FROM tab0 AS cor0
----
3525
7425
750

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT MIN( DISTINCT + + 83 ) AS col2 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT MIN ( DISTINCT + + 83 ) AS col2 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT ALL + + MIN( DISTINCT - + 76 ) AS col2 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + + MIN ( DISTINCT - + 76 ) AS col2 FROM tab2 AS cor0
----
-76

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + SUM( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5835
SELECT + SUM ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT + ( + col2 ) AS col1, col1 + - col2 AS col2 FROM tab0 AS cor0
----
10
11
47
34
99
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5837
SELECT DISTINCT + COUNT( * ) AS col1, + 34 col2 FROM tab0
----
3
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5837
SELECT DISTINCT + COUNT ( * ) AS col1, + 34 col2 FROM tab0
----
3
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT col2 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5838
SELECT col2 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * + 92 * - + col1 * ( + 78 ) - ( col0 ) - - + col0 col1 FROM tab2 WHERE NOT NULL = - col2 / - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col1, - 50 FROM tab0 WHERE NOT ( + col0 - col0 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - 78 FROM tab2
----
23
-78
40
-78
58
-78

query I rowsort
SELECT 18 * - col1 FROM tab1 AS cor0
----
-252
-846
-90

query I rowsort
SELECT ALL - ( - + 70 ) AS col1 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT + 94 * col1 + + 9 FROM tab1
----
1325
4427
479

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL + ( + COUNT( ALL + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL + ( + COUNT ( ALL + col1 ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 76 * col2 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT ( 80 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5849
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * - CAST( NULL AS DECIMAL ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5849
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * - CAST ( NULL AS REAL ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5851
SELECT DISTINCT + 32 DIV + SUM( col2 ) - - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT + 32 / + SUM ( col2 ) - - COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT + 31 * + col0 AS col0 FROM tab1
----
1581
2635
2821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * col1 col0 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT ( - 72 ) * - col1 FROM tab0
----
1512
5832
72

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + ( 17 ) = + col0
----

query I rowsort
SELECT DISTINCT + col2 + 31 * 4 AS col0 FROM tab0
----
134
171
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + ( - COUNT( * ) ) AS col2 FROM tab0 WHERE NOT + 26 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5857
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT + 26 * - col1 IS NOT NULL
----
0

query I rowsort
SELECT - 62 * col1 AS col1 FROM tab2
----
-3162
-4154
-4774

query I rowsort
SELECT + col2 * + 94 AS col2 FROM tab0
----
4418
9306
940

query I rowsort
SELECT DISTINCT ( 90 ) AS col1 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT MAX( - col1 ) * - COUNT( * ) col2 FROM tab2
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5861
SELECT DISTINCT MAX ( - col1 ) * - COUNT ( * ) col2 FROM tab2
----
153

query I rowsort
SELECT DISTINCT - 83 * col0 AS col1 FROM tab2 WHERE NOT col1 > NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE + col0 NOT BETWEEN - col2 * + ( - col2 * 16 ) + - col1 * col1 AND + 24
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT 34 DIV - col1 AS col0 FROM tab0 AS cor0 WHERE + col0 IN ( + col0 )
----
-1
-34
0

skipif mysql # not compatible
query I rowsort label-5864
SELECT 34 / - col1 AS col0 FROM tab0 AS cor0 WHERE + col0 IN ( + col0 )
----
-1
-34
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT DISTINCT + col1 + 80 DIV 96 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + col1 + 80 / 96 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL ( CAST( 10 AS SIGNED ) ) FROM tab1
----
10
10
10

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL ( CAST ( 10 AS INTEGER ) ) FROM tab1
----
10
10
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 41 + 2 * - col2 BETWEEN - 69 * 93 + col2 AND + col1 + 23
----

query I rowsort
SELECT - ( - col1 ) FROM tab2 AS cor0 WHERE NOT + 68 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 58 - col0 ) <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 cor0 WHERE + col2 + col2 > col0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT - 80 DIV + 70 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5872
SELECT - 80 / + 70 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5874
SELECT + col0 DIV CAST( + 33 * + col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5874
SELECT + col0 / CAST ( + 33 * + col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
0
0
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN 81 * 50 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 56 * col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IS NOT NULL OR + ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 IN ( col0 * + 3 + + 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 83 * - 61 FROM tab2
----
-5063
-5063
-5063

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT 90 * COUNT( * ) * 77 AS col2 FROM tab0
----
20790

skipif mysql # not compatible
query I rowsort label-5880
SELECT 90 * COUNT ( * ) * 77 AS col2 FROM tab0
----
20790

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5881
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) <> - col2 OR NOT CAST( NULL AS DECIMAL ) NOT BETWEEN + col2 AND 81
----

skipif mysql # not compatible
query III rowsort label-5881
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) <> - col2 OR NOT CAST ( NULL AS REAL ) NOT BETWEEN + col2 AND 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT - SUM( col2 ) col2 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5882
SELECT - SUM ( col2 ) col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 59 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5883
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 59 + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT DISTINCT + CAST( - 29 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + CAST ( - 29 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-29

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 * - + ( col2 ) FROM tab2
----
51
-1173
67
-3886
77
-3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT + 54 * + col1 FROM tab0 WHERE ( - ( col1 ) - CAST( NULL AS SIGNED ) ) IN ( 62 )
----

skipif mysql # not compatible
query I rowsort label-5886
SELECT + 54 * + col1 FROM tab0 WHERE ( - ( col1 ) - CAST ( NULL AS INTEGER ) ) IN ( 62 )
----

query I rowsort
SELECT ALL + col2 + 98 + - - col2 * ( col1 * + col2 ) FROM tab2
----
123338
225544
27100

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 31 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE col0 < 93
----
-14
-47
-5

query I rowsort
SELECT - 86 AS col1 FROM tab2 cor0
----
-86
-86
-86

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col1 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5892
SELECT ALL + + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT DISTINCT - col2 + - - CAST( + + col2 AS SIGNED ) * col0 col0 FROM tab2 AS cor0
----
1035
2520
4292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5893
SELECT DISTINCT - col2 + - - CAST ( + + col2 AS INTEGER ) * col0 col0 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5894
SELECT ALL + CAST( 50 AS DECIMAL ) / col1 FROM tab0 AS cor0 WHERE NOT ( + col2 + - 7 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + CAST ( 50 AS REAL ) / col1 FROM tab0 AS cor0 WHERE NOT ( + col2 + - 7 ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( + + col1 ) * 35 * ( col0 ) + + col1 + 85 AS col0 FROM tab1 AS cor0
----
-14785
-149563
-24891

query I rowsort
SELECT DISTINCT col0 * col0 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT ALL 88 * COUNT( * ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL 88 * COUNT ( * ) AS col1 FROM tab2
----
264

query I rowsort
SELECT ( + col2 ) + col2 + + col2 + - 55 * 94 FROM tab1
----
-4882
-4966
-4993

query II rowsort
SELECT ALL col2 * 61 AS col2, col0 * - col1 FROM tab2
----
1403
-2346
2440
-4928
3538
-5025

query I rowsort
SELECT col1 + + + 97 - col2 + + col1 + + col2 FROM tab2
----
199
231
251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * + 67 col1 FROM tab1 WHERE NOT NULL IS NULL AND NOT ( col2 + + 96 ) IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5902
SELECT col1 + + CAST( NULL AS SIGNED ), 57 AS col2 FROM tab0
----
NULL
57
NULL
57
NULL
57

skipif mysql # not compatible
query II rowsort label-5902
SELECT col1 + + CAST ( NULL AS INTEGER ), 57 AS col2 FROM tab0
----
NULL
57
NULL
57
NULL
57

query I rowsort
SELECT DISTINCT + 19 * 89 FROM tab1
----
1691

query I rowsort
SELECT DISTINCT - 14 + col2 FROM tab0
----
-4
33
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT DISTINCT col2 DIV - col1 FROM tab0 WHERE NOT ( - col2 DIV col1 ) IS NULL
----
-99
0

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT col2 / - col1 FROM tab0 WHERE NOT ( - col2 / col1 ) IS NULL
----
-99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col0 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT - col2 < 8 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5908
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT - col2 < 8 * col1 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5909
SELECT DISTINCT col0 / + 61 - col1 + CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT col0 / + 61 - col1 + CAST ( NULL AS REAL ) * col1 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( ( - - col0 ) ) BETWEEN + col2 AND - col2 OR NOT 61 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT DISTINCT + SUM( DISTINCT - 6 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT + SUM ( DISTINCT - 6 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL MIN( ALL - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL MIN ( ALL - - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - ( + 49 ) FROM tab2 AS cor0
----
-49
-49
-49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 IN ( - 35, + col2 )
----

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 III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 72 AND NULL
----

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab2 cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5920
SELECT ALL * FROM tab0 AS cor0 WHERE col0 - col2 * CAST( - - 32 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5920
SELECT ALL * FROM tab0 AS cor0 WHERE col0 - col2 * CAST ( - - 32 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL SUM( + 22 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL SUM ( + 22 ) FROM tab0 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN 50 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT COUNT( ALL col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5924
SELECT COUNT ( ALL col2 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col2 FROM tab0 WHERE - - col0 * + col1 + - 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL - COUNT( * ) FROM tab0 WHERE + + 45 NOT BETWEEN NULL AND col1
----
-2

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + + 45 NOT BETWEEN NULL AND col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT ALL - col0 DIV - ( 73 ) FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - col0 / - ( 73 ) FROM tab1
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT BETWEEN ( + col0 ) AND col1 + 30 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5929
SELECT * FROM tab0 cor0 WHERE ( NOT NULL BETWEEN NULL AND + CAST( NULL AS SIGNED ) ) OR NOT ( + - col1 + - col2 ) BETWEEN ( + col2 ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5929
SELECT * FROM tab0 cor0 WHERE ( NOT NULL BETWEEN NULL AND + CAST ( NULL AS INTEGER ) ) OR NOT ( + - col1 + - col2 ) BETWEEN ( + col2 ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 80 NOT BETWEEN + - col1 AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5932
SELECT DISTINCT 74 DIV - - COUNT( * ) + - 1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT 74 / - - COUNT ( * ) + - 1 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + - ( + COUNT( * ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5934
SELECT + - ( + COUNT ( * ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + + col2 IS NULL
----

query I rowsort
SELECT - col2 * - 19 + - + col2 AS col2 FROM tab2
----
1044
414
720

query II rowsort
SELECT ALL - ( + col2 ) AS col0, - 4 * col2 * - 4 AS col1 FROM tab1
----
-59
944
-68
1088
-96
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT 45 + - MAX( DISTINCT + 24 ) AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5938
SELECT 45 + - MAX ( DISTINCT + 24 ) AS col0 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT + 61 + col1 * - + col2 * - 59 FROM tab0 AS cor0
----
12451
224674
5902

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( + 38 ) IN ( - 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT - - COUNT( * ) * COUNT( * ) + - + 30 AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5941
SELECT - - COUNT ( * ) * COUNT ( * ) + - + 30 AS col2 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT + 54 AS col0 FROM tab0 AS cor0 WHERE NULL >= ( ( 63 ) )
----

query I rowsort
SELECT 81 + ( + ( 85 ) ) AS col0 FROM tab2 AS cor0
----
166
166
166

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE ( NULL ) <= + - col1
----

query II rowsort
SELECT DISTINCT col2 + + + ( + 63 ), col1 AS col0 FROM tab1 AS cor0
----
122
5
131
47
159
14

query I rowsort
SELECT col1 + - - col1 AS col2 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5947
SELECT ALL - - CAST( - + 23 AS SIGNED ) - COUNT( * ) + + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - - CAST ( - + 23 AS INTEGER ) - COUNT ( * ) + + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5948
SELECT ALL - 23 + 3 + - CAST( - + col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
-19
1
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5948
SELECT ALL - 23 + 3 + - CAST ( - + col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
-19
1
61

query I rowsort
SELECT 32 + + ( + col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
-673
-838
-9571

query I rowsort
SELECT + col2 * + 96 - + + 95 FROM tab2 AS cor0
----
2113
3745
5473

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT DISTINCT MAX( ALL + 69 ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT MAX ( ALL + 69 ) AS col2 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL SUM( col1 ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5952
SELECT ALL SUM ( col1 ) col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT MAX( + - 95 ) AS col0 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT MAX ( + - 95 ) AS col0 FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT ALL - MIN( + ( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - MIN ( + ( + col0 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT + col2 DIV + col0 - + + 97 * - col1 AS col0 FROM tab0 cor0
----
2037
7860
98

skipif mysql # not compatible
query I rowsort label-5955
SELECT + col2 / + col0 - + + 97 * - col1 AS col0 FROM tab0 cor0
----
2037
7860
98

query I rowsort
SELECT + ( - 29 ) AS col2 FROM tab1 cor0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 / + ( - 96 ) * 37 / col0 - - ( - col0 ) )
----

query I rowsort
SELECT ALL + 50 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT - MAX( col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5959
SELECT - MAX ( col2 ) FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + 88 * col0 AS col1 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL 45 * - SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
7020

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 45 * - SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
7020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5963
SELECT DISTINCT - - 34 DIV 6 + - COUNT( + 2 ) + + MIN( ALL + 7 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT - - 34 / 6 + - COUNT ( + 2 ) + + MIN ( ALL + 7 ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT + col1 DIV - 2 FROM tab0 AS cor0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT + col1 / - 2 FROM tab0 AS cor0
----
-10
-40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT + 93 + + + MAX( ALL + 91 ) col2 FROM tab2 cor0 WHERE NOT - 5 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5965
SELECT + 93 + + + MAX ( ALL + 91 ) col2 FROM tab2 cor0 WHERE NOT - 5 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 15 * + 96 AS col2 FROM tab2 AS cor0
----
1440
1440
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL - COUNT( * ) AS col1 FROM tab0 cor0 WHERE col0 * - 62 >= + - 96
----
0

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE col0 * - 62 >= + - 96
----
0

query I rowsort
SELECT ALL - 52 * + 93 AS col1 FROM tab1
----
-4836
-4836
-4836

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5969
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN - + CAST( col0 AS SIGNED ) AND + + 5 + + - col1
----
75
67
58

skipif mysql # not compatible
query III rowsort label-5969
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN - + CAST ( col0 AS INTEGER ) AND + + 5 + + - col1
----
75
67
58

query I rowsort
SELECT + ( + 42 ) FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL + COUNT( + + 67 ) AS col2 FROM tab2 WHERE - - col0 + col1 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + COUNT ( + + 67 ) AS col2 FROM tab2 WHERE - - col0 + col1 * + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL + 20 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + 20 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 98 + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 87 < NULL
----

query I rowsort
SELECT DISTINCT + - ( 72 ) AS col2 FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT 28 * - COUNT( - 69 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-5976
SELECT 28 * - COUNT ( - 69 ) FROM tab1
----
-84

query I rowsort
SELECT 77 * - col2 FROM tab2
----
-1771
-3080
-4466

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
69

query II rowsort
SELECT 58 AS col1, col2 FROM tab0 cor0
----
58
10
58
47
58
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT ALL + col2 + col1 DIV ( + + 62 ) col1 FROM tab0 AS cor0
----
10
48
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5980
SELECT ALL + col2 + col1 / ( + + 62 ) col1 FROM tab0 AS cor0
----
10
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL COUNT( * ) + + 75 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL COUNT ( * ) + + 75 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5982
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( 76 AS SIGNED ) NOT BETWEEN - col0 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5982
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( 76 AS INTEGER ) NOT BETWEEN - col0 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT col1 * - col1 + - col2 - + col0 * + - ( + col2 ) FROM tab0 AS cor0
----
-5903
419
9503

query I rowsort
SELECT + 32 - - + 85 + + col0 FROM tab2 AS cor0
----
163
181
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT + 36 * + - COUNT( ALL + - 49 ) FROM tab0 cor0 WHERE NOT col0 BETWEEN + + 31 AND + col2 AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5986
SELECT + 36 * + - COUNT ( ALL + - 49 ) FROM tab0 cor0 WHERE NOT col0 BETWEEN + + 31 AND + col2 AND NOT NULL IS NULL
----
0

query I rowsort
SELECT 61 * + - 96 * col1 + + - col2 FROM tab0 cor0
----
-122986
-474383
-5955

query I rowsort
SELECT DISTINCT 63 - - col0 FROM tab2
----
109
127
138

query I rowsort
SELECT 16 / + col1 FROM tab0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT ALL COUNT( * ) - - COUNT( - 60 ) / MIN( + CAST( NULL AS SIGNED ) ) * + MAX( ( - col1 ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL COUNT ( * ) - - COUNT ( - 60 ) / MIN ( + CAST ( NULL AS INTEGER ) ) * + MAX ( ( - col1 ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 94 * + + col1 + + col0 AS col0 FROM tab2
----
4840
6373
7302

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT - 56 DIV + 96 + + col1 DIV - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5992
SELECT - 56 / + 96 + + col1 / - col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * col1 + - - col2 * - col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT - 37 NOT BETWEEN - col0 * - ( + col0 ) + col0 + - col0 / - + col2 * + + 86 * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT DISTINCT - COUNT( * ), - 28 AS col0 FROM tab2 AS cor0 WHERE NOT 26 + + + col0 + + 90 NOT IN ( - 48 * + - 81, - 6 )
----
0
-28

skipif mysql # not compatible
query II rowsort label-5995
SELECT DISTINCT - COUNT ( * ), - 28 AS col0 FROM tab2 AS cor0 WHERE NOT 26 + + + col0 + + 90 NOT IN ( - 48 * + - 81, - 6 )
----
0
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5996
SELECT + + col1 / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT + + col1 / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= col1 + + col2 - - + col1
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT col0 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - - col0 * + + 76 AS col0 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col2 * - col2 * col0 FROM tab2 AS cor0
----
1241034
16904100
7884800

query I rowsort
SELECT ALL - + col1 * + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT ALL col1 * + + col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - 26 * + col2 FROM tab2 cor0
----
-1040
-1508
-598

query I rowsort
SELECT col1 + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + col0 + + 56 AS col0 FROM tab2
----
102
120
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT + COUNT( * ) * + 66 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT + COUNT ( * ) * + 66 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + col0 AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL - MAX( DISTINCT 36 ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - MAX ( DISTINCT 36 ) FROM tab2
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT 55 + - col0 + col0 AS col0 FROM tab1
----
55

query I rowsort
SELECT ALL + - col1 * + - ( + col0 ) + - ( - 30 ) + + - col2 FROM tab1 AS cor0
----
396
4239
648

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL + 98 + ( - - COUNT( * ) ) col0 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6012
SELECT ALL + 98 + ( - - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT MAX( - CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6013
SELECT MAX ( - CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT 27 * 69 - - + col2 + + + 66 AS col2 FROM tab1
----
1988
1997
2025

query I rowsort
SELECT + 79 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL 54 * - + COUNT( * ) AS col1 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL 54 * - + COUNT ( * ) AS col1 FROM tab1
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + 44 col0 FROM tab1 cor0
----
129
135
95

query I rowsort
SELECT DISTINCT + col1 + 27 AS col1 FROM tab1 AS cor0
----
32
41
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 + + 35 col2 FROM tab0 AS cor0
----
135
2244
9836

query II rowsort
SELECT + 54 AS col2, - 11 FROM tab1 AS cor0
----
54
-11
54
-11
54
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6021
SELECT - + COUNT( * ) AS col2, MIN( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
-3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6021
SELECT - + COUNT ( * ) AS col2, MIN ( DISTINCT col2 ) col1 FROM tab2 AS cor0
----
-3
23

query I rowsort
SELECT ALL - 33 + - col2 * + 38 AS col2 FROM tab0 AS cor0
----
-1819
-3795
-413

query I rowsort
SELECT ALL - - 79 - col0 AS col2 FROM tab2 AS cor0
----
15
33
4

query I rowsort
SELECT DISTINCT - 44 - col2 * col0 FROM tab1 cor0
----
-4940
-5059
-6232

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT ALL col2 DIV + ( - col1 ) - - col0 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL col2 / + ( - col1 ) - - col0 FROM tab1 AS cor0
----
45
74
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 17 * 15 = NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) - - + col0 FROM tab1
----
0

query II rowsort
SELECT col0, 59 AS col1 FROM tab0
----
15
59
87
59
97
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT COUNT( * ) * + 94 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-6029
SELECT COUNT ( * ) * + 94 FROM tab1
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT DISTINCT 46 DIV SUM( ALL col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT 46 / SUM ( ALL col0 ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6031
SELECT col2 * col2 FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) >= 36
----

skipif mysql # not compatible
query I rowsort label-6031
SELECT col2 * col2 FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) >= 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL SUM( ALL - - col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL SUM ( ALL - - col2 ) AS col0 FROM tab0
----
156

query II rowsort
SELECT DISTINCT - 32 AS col1, - col2 AS col1 FROM tab0
----
-32
-10
-32
-47
-32
-99

query II rowsort
SELECT DISTINCT - + col1, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT + MIN( DISTINCT + - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6035
SELECT + MIN ( DISTINCT + - col2 ) FROM tab1
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6036
SELECT DISTINCT + col0 * - 18 FROM tab1 WHERE + CAST( NULL AS DECIMAL ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + col0 * - 18 FROM tab1 WHERE + CAST ( NULL AS REAL ) * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT MAX( + 91 ) * - COUNT( * ) FROM tab0 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6037
SELECT MAX ( + 91 ) * - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + - + col0 >= NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) * ( col2 ) FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - 35 col0 FROM tab2 AS cor0
----
-23
-5
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 * + - col1 * - 23 ) IS NOT NULL
----

query I rowsort
SELECT + + 45 FROM tab0 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 88 * + col0 AS col1 FROM tab1
----
-430848
-441320
-544544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT + CAST( - col2 AS SIGNED ) * - col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6044
SELECT + CAST ( - col2 AS INTEGER ) * - col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col2 * + + col2 + + - 66 + + col0 + + col0 * - 67 * ( col1 ) IS NOT NULL )
----

query I rowsort
SELECT 98 * + col0 FROM tab1
----
4998
8330
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT MIN( 86 ) AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-6048
SELECT MIN ( 86 ) AS col2 FROM tab2
----
86

query II rowsort
SELECT 23 AS col1, 78 AS col1 FROM tab2
----
23
78
23
78
23
78

query I rowsort
SELECT ( + 5 ) FROM tab0
----
5
5
5

query I rowsort
SELECT DISTINCT col1 * - col1 + 41 AS col2 FROM tab0
----
-400
-6520
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT ALL + COUNT( - + ( - col1 ) ) + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + COUNT ( - + ( - col1 ) ) + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + ( - 56 ) * - col1 + - ( - 19 ) FROM tab0 AS cor0
----
1195
4555
75

query I rowsort
SELECT DISTINCT 32 * - 0 + + + 53 AS col0 FROM tab1
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 67 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE + 65 * + 50 IS NOT NULL
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - col2 / - 67 * col2 + - - ( + + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - col2 / - 67 * col2 + - - ( + + col1 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT ALL - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT - 5 - + 14 * - COUNT( * ) + + + COUNT( * ) + + - 10 AS col1, COUNT( * ) FROM tab2 AS cor0
----
30
3

skipif mysql # not compatible
query II rowsort label-6058
SELECT - 5 - + 14 * - COUNT ( * ) + + + COUNT ( * ) + + - 10 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
30
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT - COUNT( * ) + + SUM( DISTINCT - 56 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - COUNT ( * ) + + SUM ( DISTINCT - 56 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT - 1 * 17 * - CAST( - 80 AS SIGNED ) + + - col2 AS col2 FROM tab2 AS cor0
----
-1383
-1400
-1418

skipif mysql # not compatible
query I rowsort label-6061
SELECT - 1 * 17 * - CAST ( - 80 AS INTEGER ) + + - col2 AS col2 FROM tab2 AS cor0
----
-1383
-1400
-1418

query I rowsort
SELECT + - col2 + - + 11 + - col0 AS col0 FROM tab2 AS cor0
----
-115
-144
-80

query I rowsort
SELECT ( 27 ) AS col0 FROM tab2
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + - col2 * + 73 * + + col0 col0 FROM tab0
----
-205860
-254040
-2804076

query II rowsort
SELECT col1, ( + col1 ) * - + 11 + col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
-140
47
-470
5
-50

query I rowsort
SELECT ALL col1 / 37 + col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + + col1 AND + 73 * + col2 * + col0 + - + col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL SUM( - col2 ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL SUM ( - col2 ) AS col0 FROM tab1 cor0
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6068
SELECT - - COUNT( DISTINCT + + CAST( - 31 AS SIGNED ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6068
SELECT - - COUNT ( DISTINCT + + CAST ( - 31 AS INTEGER ) ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN + + col1 AND col2
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 28 col1 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL - + ( - COUNT( * ) ) * + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL - + ( - COUNT ( * ) ) * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 = NULL
----
0

query I rowsort
SELECT + + col0 * ( - - col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
262144
421875
97336

query II rowsort
SELECT ALL + + col0, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT ALL - CAST( - col1 AS SIGNED ) * - 85 FROM tab0 AS cor0
----
-1785
-6885
-85

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - CAST ( - col1 AS INTEGER ) * - 85 FROM tab0 AS cor0
----
-1785
-6885
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT - - MIN( - + 14 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

skipif mysql # not compatible
query I rowsort label-6075
SELECT - - MIN ( - + 14 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT - - col0 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT ALL + 72, COUNT( + col0 ) + - - 93 + + ( + 81 ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
72
174

skipif mysql # not compatible
query II rowsort label-6078
SELECT ALL + 72, COUNT ( + col0 ) + - - 93 + + ( + 81 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
72
174

query I rowsort
SELECT ALL + col1 * 47 + col2 FROM tab1 AS cor0
----
2277
294
754

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT - - CAST( - col2 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-6081
SELECT - - CAST ( - col2 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT ALL MIN( DISTINCT + + CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL MIN ( DISTINCT + + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col0 + - ( - col2 ) + - 15 - - 43 AS col2 FROM tab0 AS cor0
----
-49
30
60

query I rowsort
SELECT DISTINCT - col0 + - 88 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col0 + col1 AS col1, 9 - + - 96 FROM tab2 AS cor0
----
-8
105
13
105
5
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 69 * - 65 col0 FROM tab2 AS cor0
----
-4410
-4421
-4439

query I rowsort
SELECT col0 + - 9 AS col2 FROM tab1 AS cor0
----
42
76
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + - + col1 + - - col0 / + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + + 73 FROM tab0
----
-152
-7496
-9336

query I rowsort
SELECT ALL + col0 * - + col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + col0 + + 61 * + col2 FROM tab0
----
2882
6136
697

query I rowsort
SELECT DISTINCT 19 + + 37 AS col0 FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT - - ( CAST( - ( - + 6 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6093
SELECT - - ( CAST ( - ( - + 6 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL - COUNT( * ) + - 76 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - COUNT ( * ) + - 76 FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT + 13 - + COUNT( + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-6095
SELECT + 13 - + COUNT ( + col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT - col1 - - + 91 FROM tab0 AS cor0
----
10
70
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col1 * - - 32 * - col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col1 * - - 32 * - col2 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6098
SELECT ALL 56 * - + ( + col0 ) - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL 56 * - + ( + col0 ) - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab2 AS cor0 WHERE col1 * + 8 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 * - ( - col0 ) FROM tab0 cor0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 18 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 79 * 85 AS col2 FROM tab2 AS cor0
----
6715

query I rowsort
SELECT ( 84 ) * - 78 AS col0 FROM tab1 AS cor0
----
-6552
-6552
-6552

query I rowsort
SELECT - col0 - + - 80 FROM tab0 cor0 WHERE NOT + col0 BETWEEN + col0 / + + col1 AND + 30
----
-17
-7

query I rowsort
SELECT + 50 FROM tab2 cor0 WHERE NOT - col0 IN ( + col2 / + col0, - col2, col1 )
----
50
50
50

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 BETWEEN ( NULL ) AND 60
----

query I rowsort
SELECT ALL + ( + 12 ) FROM tab1
----
12
12
12

query I rowsort
SELECT + 82 AS col2 FROM tab2 WHERE NOT 68 IS NULL
----
82
82
82

onlyif mysql # DIV for integer division: 
query II rowsort label-6109
SELECT - - col1 * - col2, + col1 DIV ( col0 ) col0 FROM tab0 AS cor0
----
-210
0
-3807
5
-99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6109
SELECT - - col1 * - col2, + col1 / ( col0 ) col0 FROM tab0 AS cor0
----
-210
0
-3807
5
-99
0

query I rowsort
SELECT ALL - col1 * - - ( col0 ) AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - - col1 * - - 58 FROM tab2 AS cor0
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL + SUM( DISTINCT col1 ) * - 40 AS col0 FROM tab0 cor0
----
-4120

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + SUM ( DISTINCT col1 ) * - 40 AS col0 FROM tab0 cor0
----
-4120

query I rowsort
SELECT ALL - ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - - 11 * + 6 * + col0 * + 88 NOT IN ( 73, col2, + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT ALL + + col2 DIV 71 + - col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + + col2 / 71 + - col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6115
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT DISTINCT + - col1 + + ( + 9 ) * - - col2 + - 81 col0 FROM tab0 cor0 WHERE - ( + col0 ) * + 73 + + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6116
SELECT DISTINCT + - col1 + + ( + 9 ) * - - col2 + - 81 col0 FROM tab0 cor0 WHERE - ( + col0 ) * + 73 + + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN ( - + col0 + + - 88 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 35 BETWEEN col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL BETWEEN - col1 AND NULL ) )
----

query I rowsort
SELECT ALL col1 + + + col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL col1 + + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT + COUNT( * ) * - 81 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-6122
SELECT + COUNT ( * ) * - 81 FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT + MIN( DISTINCT + + 20 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + MIN ( DISTINCT + + 20 ) FROM tab2
----
20

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT - COUNT( * ) + 13 + + 7 + MAX( + + col1 ) + + COUNT( * ) * + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
71

skipif mysql # not compatible
query I rowsort label-6125
SELECT - COUNT ( * ) + 13 + + 7 + MAX ( + + col1 ) + + COUNT ( * ) * + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
71

query I rowsort
SELECT DISTINCT + 38 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 + + ( - col2 ) FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT - col2 + col2 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) * - col0 > + col0 / col1
----

skipif mysql # not compatible
query I rowsort label-6128
SELECT - col2 + col2 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - col0 > + col0 / col1
----

query I rowsort
SELECT DISTINCT col0 * + 29 + - col1 FROM tab1
----
1465
2460
2592

query I rowsort
SELECT DISTINCT 97 + 88 FROM tab0 AS cor0
----
185

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 42 + + 84 * - 72 FROM tab0 AS cor0
----
-6006

query I rowsort
SELECT ALL - + 46 + col1 FROM tab2 AS cor0
----
21
31
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6134
SELECT + 19 col0, + COUNT( * ) FROM tab2 AS cor0
----
19
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6134
SELECT + 19 col0, + COUNT ( * ) FROM tab2 AS cor0
----
19
3

query I rowsort
SELECT ALL - col2 - - 9 FROM tab2
----
-14
-31
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT DISTINCT + + ( + 78 ) * + 42, 8 + + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
3276
17

skipif mysql # not compatible
query II rowsort label-6136
SELECT DISTINCT + + ( + 78 ) * + 42, 8 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
3276
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <= + col2 - + - 17 - col0
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6138
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6138
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - 41 * - col2 FROM tab1 cor0
----
142721
189584
377856

query I rowsort
SELECT col0 * - 20 FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL + MIN( - 4 ) * - COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + MIN ( - 4 ) * - COUNT ( * ) FROM tab0 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT DISTINCT - col2 DIV - col0 * + - 82 - - col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - col2 / - col0 * + - 82 - - col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 71 * + 6 * - col0 FROM tab2 AS cor0
----
-19596
-27264
-31950

query II rowsort
SELECT ALL - ( + + col1 ), - col2 AS col0 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT DISTINCT ( + 60 ) * col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + + 21 FROM tab1
----
-1239
-1428
-2016

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT ALL + col1 * col0 DIV - - 29 FROM tab1
----
14
147
24

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL + col1 * col0 / - - 29 FROM tab1
----
14
147
24

query I rowsort
SELECT - - col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 56, 78 col2 FROM tab1
----
-56
78
-56
78
-56
78

query II rowsort
SELECT DISTINCT - 65, + col0 + col0 * - col0 * + col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-65
-249645
-65
-426190
-65
-563017

query I rowsort
SELECT ALL + 5 * + ( ( - col2 ) ) AS col2 FROM tab1
----
-295
-340
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 63 AS col1 FROM tab2
----
46
63
64
63
75
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6154
SELECT - COUNT( * ) * - - CAST( NULL AS SIGNED ) * - - MAX( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - - MAX ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT + 18 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 IN ( + CAST( NULL AS SIGNED ) * - 2, 49 ) )
----

skipif mysql # not compatible
query I rowsort label-6155
SELECT + 18 * - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 IN ( + CAST ( NULL AS INTEGER ) * - 2, 49 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT + 88 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6156
SELECT + 88 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT ALL 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT + col2 * col2 * + 85 + col1 + + - col2 DIV - col0 AS col1 FROM tab1
----
295890
393087
783375

skipif mysql # not compatible
query I rowsort label-6158
SELECT + col2 * col2 * + 85 + col1 + + - col2 / - col0 AS col1 FROM tab1
----
295890
393087
783375

query I rowsort
SELECT DISTINCT col2 + - 79 + + col0 AS col1 FROM tab1 AS cor0
----
65
68
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT 44 + COUNT( * ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT 44 + COUNT ( * ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT + - col2 + 83 AS col1 FROM tab0 AS cor0
----
-16
36
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT ALL + CAST( NULL AS SIGNED ) + col1 * 90 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 * 90 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 63 + + + col2 FROM tab0 AS cor0
----
110
162
73

query I rowsort
SELECT - ( col2 ) + - - col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT + 27 + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6165
SELECT + 27 + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
24

query I rowsort
SELECT ALL - 94 + + 69 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL MAX( + 9 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL MAX ( + 9 ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT SUM( + + 86 ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT SUM ( + + 86 ) AS col2 FROM tab2
----
258

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 64 IS NOT NULL
----

query I rowsort
SELECT - 85 - + 66 - col0 FROM tab2 AS cor0
----
-197
-215
-226

query I rowsort
SELECT 3 - - col0 FROM tab1 AS cor0
----
54
88
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6172
SELECT + CAST( + 41 AS SIGNED ) - - - col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT + CAST ( + 41 AS INTEGER ) - - - col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6173
SELECT * FROM tab2 AS cor0 WHERE CAST( ( - col2 ) AS SIGNED ) * - col0 / - col2 * - 75 * col0 / + 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6173
SELECT * FROM tab2 AS cor0 WHERE CAST ( ( - col2 ) AS INTEGER ) * - col0 / - col2 * - 75 * col0 / + 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 42 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + + col2
----

query I rowsort
SELECT ALL + 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT DISTINCT CAST( + - col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 * 19 col1 FROM tab0 AS cor0
----
1881
3990
72333

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * col2 BETWEEN + 94 * 42 + + + col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 * + ( col1 ) * + - col0 + - 40, - 15, - + col2 )
----

query I rowsort
SELECT ALL + col2 * - + 75 AS col2 FROM tab2 cor0
----
-1725
-3000
-4350

query I rowsort
SELECT + - col2 * + - col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT COUNT( - col2 ) * + + 79 col0 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6182
SELECT COUNT ( - col2 ) * + + 79 col0 FROM tab2 AS cor0
----
237

query I rowsort
SELECT + 27 * 35 - - - ( + col1 ) + - col1 AS col0 FROM tab1 cor0 WHERE NOT + 24 / + col2 / - 6 + + + 85 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - ( - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT - ( + MIN( DISTINCT 23 ) ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-6185
SELECT - ( + MIN ( DISTINCT 23 ) ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-23

query II rowsort
SELECT ALL + - 1 AS col1, col2 * - - 67 FROM tab0 AS cor0
----
-1
3149
-1
6633
-1
670

query I rowsort
SELECT - ( + ( 27 ) ) FROM tab0
----
-27
-27
-27

query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab2 WHERE NULL <= - 21 * + - col2 / + col2 * - - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6189
SELECT DISTINCT 87 * col0, col1 + col0 - - col0 DIV - col2 AS col2 FROM tab1
----
4437
65
7395
89
7917
137

skipif mysql # not compatible
query II rowsort label-6189
SELECT DISTINCT 87 * col0, col1 + col0 - - col0 / - col2 AS col2 FROM tab1
----
4437
65
7395
89
7917
137

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 36 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> + col0 - + - col0
----
0

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> + col0 - + - col0
----
0

query I rowsort
SELECT ALL + 13 AS col0 FROM tab1 cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT 67 DIV - - 7 + + col0 col0 FROM tab2 AS cor0
----
55
73
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6193
SELECT 67 / - - 7 + + col0 col0 FROM tab2 AS cor0
----
55
73
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT + ( + CAST( - + 65 AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

skipif mysql # not compatible
query I rowsort label-6194
SELECT + ( + CAST ( - + 65 AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * col2 AND - col0 * + - col1
----

query I rowsort
SELECT DISTINCT col2 * - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6197
SELECT * FROM tab0 AS cor0 WHERE CAST( + col2 AS DECIMAL ) - + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6197
SELECT * FROM tab0 AS cor0 WHERE CAST ( + col2 AS REAL ) - + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT DISTINCT 84 DIV + col2 + + col1 + - - 90 col1 FROM tab1 cor0
----
104
138
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6198
SELECT DISTINCT 84 / + col2 + + col1 + - - 90 col1 FROM tab1 cor0
----
104
138
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 26 + + ( - 79 ) FROM tab0 AS cor0
----
-105
-105
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 31 + + + col2 AS col2, + col1 + + col2 col1 FROM tab0
----
130
100
41
31
78
128

query I rowsort
SELECT 46 + + - col1 + 3 FROM tab1
----
2
35
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT 38 + COUNT( * ) AS col0 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-6203
SELECT 38 + COUNT ( * ) AS col0 FROM tab2
----
41

query I rowsort
SELECT ALL - col1 * + 99 FROM tab2
----
-5049
-6633
-7623

query I rowsort
SELECT ALL col2 * + 65 AS col1 FROM tab0
----
3055
6435
650

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT + 30 + - col2 * - 60 FROM tab0
----
2850
5970
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6208
SELECT DISTINCT + CAST( + + 97 AS SIGNED ) * - COUNT( * ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT + CAST ( + + 97 AS INTEGER ) * - COUNT ( * ) FROM tab2
----
-291

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + 74
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + col0 + - col2 + + - col0 * 48 IN ( ( + + ( - col0 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col0 * - col1 + + + 91 - col1 * 81 FROM tab2 AS cor0
----
-10361
-11074
-6386

query I rowsort
SELECT DISTINCT - col1 + - col1 + 43 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( + 93 ) * col1 + + 81 FROM tab1 cor0
----
-1221
-384
-4290

query I rowsort
SELECT ( 28 ) * col1 + 94 AS col2 FROM tab0 AS cor0
----
122
2362
682

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 12 - - - col1 IS NOT NULL
----

query I rowsort
SELECT - - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT + SUM( - 59 ) + - 48 + + COUNT( ALL 62 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-234

skipif mysql # not compatible
query I rowsort label-6218
SELECT + SUM ( - 59 ) + - 48 + + COUNT ( ALL 62 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-234

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE NOT + 67 * - col0 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT - 1 DIV - 98 - + + 29 * - 42 AS col0 FROM tab1 AS cor0
----
1218
1218
1218

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 1 / - 98 - + + 29 * - 42 AS col0 FROM tab1 AS cor0
----
1218
1218
1218

query II rowsort
SELECT ALL col2, - 58 FROM tab1 AS cor0
----
59
-58
68
-58
96
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT + col0 + CAST( NULL AS SIGNED ) * - col0 + - col0 * + col2 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT + col0 + CAST ( NULL AS INTEGER ) * - col0 + - col0 * + col2 * col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col2 FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col0 FROM tab1
----
-60

query II rowsort
SELECT col1, - col0 FROM tab2
----
51
-46
67
-75
77
-64

query II rowsort
SELECT + col0 + + - 59, 19 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-44
19
28
19
38
19

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6227
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6227
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 5 * 93 FROM tab0 AS cor0
----
-40455
-45105
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT - MAX( 69 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT - MAX ( 69 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL col0 + - CAST( NULL AS SIGNED ) - - 99 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) - - 99 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( + col1 ) + - 78 AS col0 FROM tab0 AS cor0
----
-57
-77
3

query I rowsort
SELECT - col0 * - - col0 + + col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

query I rowsort
SELECT - - col2 * col0 + 27 + + col0 * + - 97 * + - col0 AS col0 FROM tab2 AS cor0
----
206337
399899
550002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 * - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 * - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT DISTINCT 9 * - 66 * - 81 - - CAST( NULL AS SIGNED ) + - - COUNT( * ) * + 38 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT 9 * - 66 * - 81 - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + 38 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 0 AS col1 FROM tab0 AS cor0 WHERE + col1 <> + - ( - col2 )
----
0
0
0

query I rowsort
SELECT ALL - col2 * - + col0 + + col1 - + + col0 * + 41 + - - col1 FROM tab2 AS cor0
----
-726
1409
90

query I rowsort
SELECT ALL - col1 + + 38 + + 42 AS col0 FROM tab0
----
-1
59
79

query I rowsort
SELECT ALL 88 * + col0 AS col1 FROM tab1
----
4488
7480
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL - MAX( DISTINCT + col1 ) + 6 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - MAX ( DISTINCT + col1 ) + 6 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col1 - + + 39 NOT BETWEEN + + ( + + col0 ) AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col2 AS col0, - 93 FROM tab0 WHERE NULL IS NULL
----
-10
-93
-47
-93
-99
-93

query I rowsort
SELECT DISTINCT + 82 - - 8 AS col2 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT + SUM( DISTINCT + 27 ) - + - 58 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-6246
SELECT + SUM ( DISTINCT + 27 ) - + - 58 FROM tab1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT DISTINCT - MAX( - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT - MAX ( - col0 ) AS col0 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, 18 col0 FROM tab0 AS cor0
----
1
18
21
18
81
18

query II rowsort
SELECT DISTINCT - 96 AS col2, + ( + col1 ) * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-96
420
-96
4230
-96
700

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6252
SELECT DISTINCT - + 10, CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-10
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6252
SELECT DISTINCT - + 10, CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-10
NULL

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col2 FROM tab1
----
196
2209
25

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( + - 71 ) < NULL
----

query II rowsort
SELECT - col2 * + 70 AS col0, - col1 FROM tab2
----
-1610
-51
-2800
-77
-4060
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT ALL 46 DIV + 88 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL 46 / + 88 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
10

query I rowsort
SELECT - - 54 FROM tab1 WHERE NOT + ( col0 ) + + 63 / + + col1 IS NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT + COUNT( * ) * + - 42 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-6259
SELECT + COUNT ( * ) * + - 42 FROM tab1
----
-126

query I rowsort
SELECT + - ( + 44 ) * 39 FROM tab0 AS cor0
----
-1716
-1716
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL + MIN( - col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + MIN ( - col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - + 76 AS col0 FROM tab2 cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT + COUNT( + 47 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT + COUNT ( + 47 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT - 60 * - col2 * col1 + + 6 DIV 86 AS col1 FROM tab0 cor0
----
12600
228420
5940

skipif mysql # not compatible
query I rowsort label-6264
SELECT - 60 * - col2 * col1 + + 6 / 86 AS col1 FROM tab0 cor0
----
12600
228420
5940

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + 13 - - 46 + + - col2 FROM tab2
----
23
36
40
19
58
1

query II rowsort
SELECT DISTINCT - col0 + - col1 AS col1, + 69 FROM tab0 WHERE ( + 31 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT BETWEEN NULL AND + 93
----

query I rowsort
SELECT DISTINCT col2 + - - col0 * + col1 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT - + col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6271
SELECT 58 DIV + col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6271
SELECT 58 / + col2 FROM tab0
----
0
1
5

query II rowsort
SELECT - col1, col1 AS col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT col1 + - 80 DIV + 66 AS col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-6273
SELECT col1 + - 80 / + 66 AS col1 FROM tab0
----
0
20
80

query I rowsort
SELECT - col2 * col0 * + - 53 + - + col1 FROM tab0
----
37284
46089
508958

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 94 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6276
SELECT ALL 84 DIV - 71 + + + COUNT( * ) - + 77 * + MIN( DISTINCT - col1 ) * - 7 + - - COUNT( * ) * - + ( + COUNT( * ) ) col1 FROM tab2
----
-41510

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6276
SELECT ALL 84 / - 71 + + + COUNT ( * ) - + 77 * + MIN ( DISTINCT - col1 ) * - 7 + - - COUNT ( * ) * - + ( + COUNT ( * ) ) col1 FROM tab2
----
-41510

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6277
SELECT ALL - col0 * - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL - col0 * - + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6278
SELECT + ( - 53 ) DIV - MAX( DISTINCT - col1 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-6278
SELECT + ( - 53 ) / - MAX ( DISTINCT - col1 ) FROM tab0
----
-53

query I rowsort
SELECT - 71 - + col0 AS col1 FROM tab2 AS cor0
----
-117
-135
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col0 - - 71 AS col1 FROM tab2 AS cor0
----
-4
25
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6282
SELECT DISTINCT + + 37 + + - CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + + 37 + + - CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 63 + - + col1 AS col1 FROM tab1 AS cor0
----
16
49
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT + col2 * + + col2 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - + ( + + ( + + 74 ) ) FROM tab1 AS cor0
----
-15
-6
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6286
SELECT + col2 + ( 59 ) DIV col1 + CAST( - + 21 AS SIGNED ) FROM tab1 AS cor0
----
48
49
79

skipif mysql # not compatible
query I rowsort label-6286
SELECT + col2 + ( 59 ) / col1 + CAST ( - + 21 AS INTEGER ) FROM tab1 AS cor0
----
48
49
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6287
SELECT ALL - 43 - - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL - 43 - - + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( + + col0 ) AS col2 FROM tab0 WHERE 64 * - - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) - + - col0 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL 85 * - + col0 * col1 FROM tab0
----
-103275
-155295
-8245

query I rowsort
SELECT ( + 1 ) * + + col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + + ( - + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT CAST( NULL AS SIGNED ) * col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6294
SELECT CAST ( NULL AS INTEGER ) * col0 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 57 ) AS col1 FROM tab1
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6296
SELECT DISTINCT + - ( - 54 ) * - + ( + CAST( NULL AS SIGNED ) ) - COUNT( * ), ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6296
SELECT DISTINCT + - ( - 54 ) * - + ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ), ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT - COUNT( col2 ) DIV COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6297
SELECT - COUNT ( col2 ) / COUNT ( * ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT 95, 56 AS col0 FROM tab2
----
95
56
95
56
95
56

query I rowsort
SELECT DISTINCT + ( - 7 ) FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT MAX( col0 ) FROM tab1 AS cor0 WHERE - col2 * - 13 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT MAX ( col0 ) FROM tab1 AS cor0 WHERE - col2 * - 13 IS NULL
----
NULL

query II rowsort
SELECT ALL - col0, ( - col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

query I rowsort
SELECT DISTINCT + ( 90 ) FROM tab1 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL <= + col2 * - + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL COUNT( DISTINCT - - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT + 25 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-6305
SELECT + 25 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6306
SELECT + + CAST( NULL AS DECIMAL ) + - + MIN( + - col0 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT + + CAST ( NULL AS REAL ) + - + MIN ( + - col0 ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 34 + - + ( - col0 ) * 41 + - 78 FROM tab1 AS cor0
----
1979
3373
3619

query I rowsort
SELECT + col2 * + col2 + 17 FROM tab2 AS cor0 WHERE NOT ( - 66 + + 80 IS NULL )
----
1617
3381
546

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - col0 + + + 53 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT 68 + - + 19 DIV + col0 * + col0 * - 66 * + 29 AS col1 FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-6311
SELECT 68 + - + 19 / + col0 * + col0 * - 66 * + 29 AS col1 FROM tab1
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT ALL col1 DIV + + ( - - col0 ) FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL col1 / + + ( - - col0 ) FROM tab0
----
0
0
5

query I rowsort
SELECT col0 + + 5 - - col1 FROM tab0
----
101
103
113

query I rowsort
SELECT + + col0 AS col1 FROM tab1 WHERE - 40 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - - col0 ) + - 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 47 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL MAX( DISTINCT - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL MAX ( DISTINCT - col0 ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT col0 DIV - 9 FROM tab0
----
-1
-10
-9

skipif mysql # not compatible
query I rowsort label-6318
SELECT col0 / - 9 FROM tab0
----
-1
-10
-9

query II rowsort
SELECT DISTINCT 95 + - col0 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-2
99
8
10
80
47

query I rowsort
SELECT DISTINCT + + 55 * + + ( - - 55 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - col0 * 67
----

query I rowsort
SELECT DISTINCT + 64 + - col1 FROM tab0 AS cor0
----
-17
43
63

query I rowsort
SELECT - ( - col2 ) - + 33 FROM tab2 AS cor0
----
-10
25
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 13 ) + col2 * - col1 col0 FROM tab2 AS cor0
----
-1160
-3067
-3873

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE ( NOT 42 / + col0 - col0 IS NULL )
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6326
SELECT + 40 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
2
8

skipif mysql # not compatible
query I rowsort label-6326
SELECT + 40 / + col1 AS col2 FROM tab1 AS cor0
----
0
2
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + + 46 + 43 col0 FROM tab1 AS cor0
----
-2303
-3867
-4143

query II rowsort
SELECT - - col0 AS col2, + 37 FROM tab1 AS cor0
----
51
37
85
37
91
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT MAX( + 4 ) FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-6329
SELECT MAX ( + 4 ) FROM tab2 cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL - SUM( ALL + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT + SUM( DISTINCT 92 ) - SUM( - col0 ) FROM tab2 WHERE NOT - col2 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6331
SELECT + SUM ( DISTINCT 92 ) - SUM ( - col0 ) FROM tab2 WHERE NOT - col2 + - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL 49 * - COUNT( * ) * + + COUNT( * ) FROM tab2
----
-441

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL 49 * - COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
-441

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 44 / - + col2 + + + 9 + - col1 + col0 * col1 * col0 * + 6 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * 17 FROM tab2 WHERE NOT + - 61 IS NOT NULL
----

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE NOT - - col0 IS NULL
----
46
64
75

query I rowsort
SELECT 7 * - 48 FROM tab1
----
-336
-336
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT - 67 * - COUNT( * ) AS col0 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-6338
SELECT - 67 * - COUNT ( * ) AS col0 FROM tab2
----
201

query II rowsort
SELECT - + 55 AS col1, - col0 FROM tab0 AS cor0
----
-55
-15
-55
-87
-55
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT DISTINCT - + col0 DIV + - 1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT - + col0 / + - 1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT DISTINCT - + col0 DIV - + col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT - + col0 / - + col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - ( - 55 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6343
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6344
SELECT + COUNT( * ) * + COUNT( * ), COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9
1

skipif mysql # not compatible
query II rowsort label-6344
SELECT + COUNT ( * ) * + COUNT ( * ), COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6345
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) + + CAST( NULL AS SIGNED ) < - + 27
----

skipif mysql # not compatible
query III rowsort label-6345
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) + + CAST ( NULL AS INTEGER ) < - + 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6346
SELECT ALL - CAST( + col1 AS SIGNED ) * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - CAST ( + col1 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT + 76 * - COUNT( * ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + 76 * - COUNT ( * ) FROM tab2 AS cor0
----
-228

query I rowsort
SELECT DISTINCT col0 + - 18 FROM tab0 AS cor0
----
-3
69
79

query I rowsort
SELECT ALL - 62 AS col0 FROM tab2 cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT - + SUM( ALL + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6350
SELECT - + SUM ( ALL + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-185

query II rowsort
SELECT col1, + ( ( - col1 ) ) AS col1 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6352
SELECT ALL col0, + 5 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6352
SELECT ALL col0, + 5 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT * FROM tab2 WHERE 61 + + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 73 col2, ( col2 ) FROM tab2
----
73
23
73
40
73
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT DISTINCT - MAX( ALL + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT - MAX ( ALL + col1 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 41 * + col0 FROM tab1
----
2091
3485
3731

query I rowsort
SELECT ALL ( + - col2 ) + - - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 - - col0 * + - col0 FROM tab0 AS cor0
----
-272
-7579
-9508

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + ( - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6362
SELECT * FROM tab1 AS cor0 WHERE - 63 - + col2 + - - col1 + + col1 * - CAST( + + col0 AS DECIMAL ) * col1 - - 80 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6362
SELECT * FROM tab1 AS cor0 WHERE - 63 - + col2 + - - col1 + + col1 * - CAST ( + + col0 AS REAL ) * col1 - - 80 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT + COUNT( * ) + + MIN( ALL - 47 ) AS col1 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-6364
SELECT + COUNT ( * ) + + MIN ( ALL - 47 ) AS col1 FROM tab1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT DISTINCT - col2 DIV + col2 col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6365
SELECT DISTINCT - col2 / + col2 col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL + MAX( ALL 90 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + MAX ( ALL 90 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
90

query I rowsort
SELECT ALL ( 45 ) - - col0 AS col0 FROM tab2
----
109
120
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT + 83 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6368
SELECT + 83 / col2 FROM tab1
----
0
1
1

query I rowsort
SELECT + 26 * 91 + - col1 * col2 FROM tab0
----
-1441
2156
2267

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT col2 + - col0 DIV - col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-6370
SELECT col2 + - col0 / - col2 FROM tab2
----
25
41
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6371
SELECT ALL - CAST( col2 AS SIGNED ) DIV - col1 + - col1 FROM tab0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL - CAST ( col2 AS INTEGER ) / - col1 + - col1 FROM tab0
----
-21
-81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col0 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - MAX( ALL + 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-6374
SELECT - MAX ( ALL + 20 ) FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT ( - col1 - + ( + 84 ) ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6375
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( - col1 - + ( + 84 ) ) <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 3 > 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT DISTINCT 50 * - MIN( 32 ) FROM tab1 WHERE NOT - col1 IS NULL
----
-1600

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT 50 * - MIN ( 32 ) FROM tab1 WHERE NOT - col1 IS NULL
----
-1600

query I rowsort
SELECT - col0 - - ( - col2 ) AS col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT - 37 AS col1 FROM tab0 WHERE col0 IN ( 0 )
----

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab0 WHERE NOT ( + col1 - ( + 13 + ( col2 ) * - col1 ) ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT + col0 / 57 BETWEEN col0 AND ( - 53 )
----
3

skipif mysql # not compatible
query I rowsort label-6381
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col0 / 57 BETWEEN col0 AND ( - 53 )
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - SUM( ALL - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6383
SELECT - SUM ( ALL - col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT - COUNT( * ) * - MAX( 16 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT - COUNT ( * ) * - MAX ( 16 ) AS col1 FROM tab1 AS cor0
----
48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * col0 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 WHERE + 11 + - 41 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 BETWEEN ( + ( 22 ) ) AND NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= 65 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT ALL - col2 + col1 DIV 72 AS col1 FROM tab2 AS cor0
----
-23
-39
-58

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - col2 + col1 / 72 AS col1 FROM tab2 AS cor0
----
-23
-39
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) BETWEEN ( col0 ) AND + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT 41 FROM tab0 cor0 WHERE - 38 IS NOT NULL
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT ALL - CAST( - 63 AS SIGNED ) + + 25 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - CAST ( - 63 AS INTEGER ) + + 25 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT DISTINCT + - COUNT( 14 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT + - COUNT ( 14 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT col0 DIV 48 + + col2 AS col2 FROM tab0 AS cor0
----
101
11
47

skipif mysql # not compatible
query I rowsort label-6395
SELECT col0 / 48 + + col2 AS col2 FROM tab0 AS cor0
----
101
11
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 >= ( + col0 )
----
75
67
58

query I rowsort
SELECT ( + col0 ) + 68 FROM tab0 AS cor0
----
155
165
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + 58 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * 51 AS col1 FROM tab1
----
2397
255
714

query I rowsort
SELECT DISTINCT - 65 * + 50 * col2 AS col0 FROM tab0
----
-152750
-321750
-32500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT COUNT( * ) - 63 FROM tab2 WHERE ( - 79 * - col2 ) >= ( - CAST( + col0 AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-6401
SELECT COUNT ( * ) - 63 FROM tab2 WHERE ( - 79 * - col2 ) >= ( - CAST ( + col0 AS INTEGER ) )
----
-60

query I rowsort
SELECT ALL + 32 + - col2 AS col2 FROM tab0
----
-15
-67
22

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT + ( 2 ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT DISTINCT + COUNT( * ) + COUNT( * ) + 27 AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) + 27 AS col2 FROM tab2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6405
SELECT + COUNT( * ) DIV + 83 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6405
SELECT + COUNT ( * ) / + 83 FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( - 15 ) * 45 AS col0 FROM tab2
----
-675

query I rowsort
SELECT ALL col2 + - col2 + 47 * + 92 AS col1 FROM tab0
----
4324
4324
4324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT + + CAST( col0 AS SIGNED ) - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
240
7656
9506

skipif mysql # not compatible
query I rowsort label-6408
SELECT + + CAST ( col0 AS INTEGER ) - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
240
7656
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT - ( + col2 ) DIV + col0 - + ( - col2 ) col0 FROM tab0 AS cor0
----
10
44
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6409
SELECT - ( + col2 ) / + col0 - + ( - col2 ) col0 FROM tab0 AS cor0
----
10
44
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * col0 - - col0 col1 FROM tab0 AS cor0
----
159036
18240
9506

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( 15 ) IS NOT NULL AND NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6412
SELECT - CAST( NULL AS SIGNED ) + - 51 * - COUNT( * ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6412
SELECT - CAST ( NULL AS INTEGER ) + - 51 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - col2 * + ( + col2 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL + COUNT( * ) * 0 FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + COUNT ( * ) * 0 FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT MIN( ALL - + col1 ) * - 41 FROM tab0
----
3321

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT MIN ( ALL - + col1 ) * - 41 FROM tab0
----
3321

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6416
SELECT - + 4 DIV CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT - + 4 / CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 NOT IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 28 col1 FROM tab1 AS cor0
----
1652
1904
2688

onlyif mysql # DIV for integer division: 
query II rowsort label-6419
SELECT DISTINCT - col0, - col2 DIV - 65 + col0 * col2 col1 FROM tab1 AS cor0
----
-51
4897
-85
5015
-91
6189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6419
SELECT DISTINCT - col0, - col2 / - 65 + col0 * col2 col1 FROM tab1 AS cor0
----
-51
4897
-85
5015
-91
6189

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6420
SELECT - + CAST( NULL AS DECIMAL ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6420
SELECT - + CAST ( NULL AS REAL ), + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT 36 AS col1 FROM tab1 AS cor0 WHERE NOT - 72 * - 86 + 98 <= ( - 32 * + 0 )
----
36
36
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6422
SELECT + COUNT( * ) DIV 61 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6422
SELECT + COUNT ( * ) / 61 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL MIN( col2 ) / + SUM( - col1 * col2 + col1 / - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col0 * + - 11 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL MIN ( col2 ) / + SUM ( - col1 * col2 + col1 / - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col0 * + - 11 ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT COUNT( * ) * AVG ( - col1 ) AS col2 FROM tab0 WHERE NOT + - 9 BETWEEN - - col0 * - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT COUNT ( * ) * AVG ( - col1 ) AS col2 FROM tab0 WHERE NOT + - 9 BETWEEN - - col0 * - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL MAX( col1 ) * - + COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL MAX ( col1 ) * - + COUNT ( * ) FROM tab0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT - + CAST( - 54 AS SIGNED ) FROM tab0 WHERE NOT - 44 < NULL
----

skipif mysql # not compatible
query I rowsort label-6426
SELECT - + CAST ( - 54 AS INTEGER ) FROM tab0 WHERE NOT - 44 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + COUNT( * ) * - - SUM( col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-6427
SELECT + COUNT ( * ) * - - SUM ( col2 ) FROM tab1
----
669

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col0 ) <> ( 97 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * col0 + col1 FROM tab1 WHERE NOT - col1 BETWEEN col0 AND NULL
----
430
4324
728

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / + col0 * + col0 + - col1 * 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT - 10 DIV col0 DIV 32 + - col2 * 57 FROM tab1
----
-3363
-3876
-5472

skipif mysql # not compatible
query I rowsort label-6431
SELECT - 10 / col0 / 32 + - col2 * 57 FROM tab1
----
-3363
-3876
-5472

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN ( - 39 + 54 ) AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6434
SELECT + 40 * 0 * col1 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT + 40 * 0 * col1 / - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT - COUNT( * ) col2 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-6435
SELECT DISTINCT - COUNT ( * ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query I rowsort
SELECT ALL - - ( + col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL col0 + + 67 AS col0 FROM tab1 AS cor0
----
118
152
158

query I rowsort
SELECT ALL 28 FROM tab0 cor0 WHERE NULL IS NULL
----
28
28
28

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE + col2 / + 73 + - col2 IN ( 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT - 58 * CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
3422
3944
5568

skipif mysql # not compatible
query I rowsort label-6440
SELECT - 58 * CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
3422
3944
5568

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL - COUNT( * ) + + 89 AS col2 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - COUNT ( * ) + + 89 AS col2 FROM tab2 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 * + 17 + 98 col2 FROM tab0 AS cor0
----
659
659
659

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6444
SELECT DISTINCT + + ( - - col0 ) + - CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-6444
SELECT DISTINCT + + ( - - col0 ) + - CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT DISTINCT COUNT( * ) * + 16 AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT COUNT ( * ) * + 16 AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - COUNT( * ) + + 83 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6446
SELECT - COUNT ( * ) + + 83 FROM tab0 AS cor0
----
80

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 60 * - + col2 AS col2 FROM tab2
----
-1380
-2400
-3480

onlyif mysql # aggregate syntax: 
query II rowsort label-6449
SELECT DISTINCT + 60 - + 41, + ( + COUNT( col2 ) ) AS col0 FROM tab0
----
19
3

skipif mysql # not compatible
query II rowsort label-6449
SELECT DISTINCT + 60 - + 41, + ( + COUNT ( col2 ) ) AS col0 FROM tab0
----
19
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col0 AND ( NULL )
----

query I rowsort
SELECT - 48 + + col2 FROM tab0
----
-1
-38
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col2 / + col0 * + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - - 16 * - 4 BETWEEN + col1 AND + 59 / - 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT + col2 + + col1 DIV - col1 + 24 + - ( - + 25 ) * + col0 AS col1 FROM tab0
----
2208
2547
445

skipif mysql # not compatible
query I rowsort label-6454
SELECT + col2 + + col1 / - col1 + 24 + - ( - + 25 ) * + col0 AS col1 FROM tab0
----
2208
2547
445

query I rowsort
SELECT + col2 * + col1 + - 48 AS col1 FROM tab2
----
1125
3032
3838

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT + COUNT( - ( + - col2 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + COUNT ( - ( + - col2 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6457
SELECT DISTINCT CAST( NULL AS SIGNED ), - 40 FROM tab0 AS cor0 WHERE - col2 - 40 < NULL
----

skipif mysql # not compatible
query II rowsort label-6457
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 40 FROM tab0 AS cor0 WHERE - col2 - 40 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT - col2 * + + col2 DIV col2 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6458
SELECT - col2 * + + col2 / col2 FROM tab0 cor0
----
-10
-47
-99

query II rowsort
SELECT + - col1, + col2 * - + col2 AS col1 FROM tab0 AS cor0
----
-1
-9801
-21
-100
-81
-2209

query II rowsort
SELECT DISTINCT - col1 * - col0 AS col1, 8 FROM tab1
----
425
8
4277
8
714
8

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT - - col1 * + ( + col2 ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6464
SELECT - COUNT( * ) DIV - COUNT( col2 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6464
SELECT - COUNT ( * ) / - COUNT ( col2 ) FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6465
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( ( 39 ) / - + CAST( - - 43 AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-6465
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( ( 39 ) / - + CAST ( - - 43 AS INTEGER ) + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, - col2 * - ( - + col0 ) + + 19 )
----

query I rowsort
SELECT DISTINCT + - col1 * - col0 * - 2 AS col0 FROM tab2 AS cor0
----
-10050
-4692
-9856

onlyif mysql # DIV for integer division: 
query I rowsort label-6468
SELECT DISTINCT col2 * col0 DIV - + 14 AS col0 FROM tab2
----
-182
-310
-75

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT col2 * col0 / - + 14 AS col0 FROM tab2
----
-182
-310
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT CAST( 59 AS SIGNED ) col2 FROM tab1
----
59
59
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6469
SELECT CAST ( 59 AS INTEGER ) col2 FROM tab1
----
59
59
59

query I rowsort
SELECT 54 * - - col0 FROM tab2
----
2484
3456
4050

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + col1, + 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6472
SELECT * FROM tab1 WHERE NOT + - CAST( - col0 AS SIGNED ) + + + 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6472
SELECT * FROM tab1 WHERE NOT + - CAST ( - col0 AS INTEGER ) + + + 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6473
SELECT - col1, col2 * 68 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-6473
SELECT - col1, col2 * 68 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL - col1 * col1 * - 25 * + + col2 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
110250
2475
7709175

query I rowsort
SELECT DISTINCT - 43 FROM tab1 WHERE + - col1 IS NOT NULL
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6476
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT - 96 AS col2 FROM tab2 WHERE - + col2 IS NOT NULL
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + 72 * + 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6479
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

query I rowsort
SELECT ALL + col1 + 42 + + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT + col0 + + - col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL - + ( + 70 ) + - + col0 AS col1 FROM tab2 cor0
----
-116
-134
-145

query I rowsort
SELECT ALL 45 + 88 FROM tab1 AS cor0
----
133
133
133

query I rowsort
SELECT + col1 + + col2 * + 3 FROM tab1 cor0
----
182
251
302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 30 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 30 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6486
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + - col1 + - 42 / col1 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT + CAST ( NULL AS REAL ) - + - col1 + - 42 / col1 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ( SUM( + - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6487
SELECT ( SUM ( + - col0 ) ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + + 42 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6489
SELECT ALL col1 DIV - col0 - col0 + + - col0 + - - col1, - 37 AS col1 FROM tab1
----
-135
-37
-165
-37
-88
-37

skipif mysql # not compatible
query II rowsort label-6489
SELECT ALL col1 / - col0 - col0 + + - col0 + - - col1, - 37 AS col1 FROM tab1
----
-135
-37
-165
-37
-88
-37

query I rowsort
SELECT ALL + col1 * + 18 FROM tab0
----
1458
18
378

query III rowsort
SELECT * FROM tab0 WHERE + 73 NOT IN ( ( + + 47 ), + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col1 > col1 * + col2 AND NULL NOT BETWEEN - 12 AND NULL
----

query I rowsort
SELECT DISTINCT 43 + + 75 FROM tab0
----
118

query I rowsort
SELECT + 91 - + + col2 AS col0 FROM tab0 AS cor0
----
-8
44
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT - - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6496
SELECT - - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL - + 93 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - + 93 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL 79 * - - col0 - - col0 AS col1 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT - + 99 * COUNT( * ) - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col0 + - 28 * col1 + + col1 NOT BETWEEN - + col0 AND + 24
----
-100

skipif mysql # not compatible
query I rowsort label-6499
SELECT - + 99 * COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col0 + - 28 * col1 + + col1 NOT BETWEEN - + col0 AND + 24
----
-100

query I rowsort
SELECT ALL - col0 * + 44 AS col0 FROM tab1 cor0
----
-2244
-3740
-4004

query I rowsort
SELECT + ( - 6 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 21 - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + ( - - 16 ) FROM tab0 AS cor0
----
1584
160
752

onlyif mysql # aggregate syntax: 
query II rowsort label-6504
SELECT ALL 4 AS col2, MIN( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
4
59

skipif mysql # not compatible
query II rowsort label-6504
SELECT ALL 4 AS col2, MIN ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
4
59

query I rowsort
SELECT ALL - col1 * - 90 + - - 51 AS col1 FROM tab0 AS cor0
----
141
1941
7341

onlyif mysql # DIV for integer division: 
query I rowsort label-6506
SELECT 40 DIV + col0 * - - col2 - - col0 + - col0 + 43 AS col1 FROM tab1 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-6506
SELECT 40 / + col0 * - - col2 - - col0 + - col0 + 43 AS col1 FROM tab1 AS cor0
----
43
43
43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - + col0 + - + col2 / - 89 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 37 * - - 41 AS col0 FROM tab1 cor0
----
-1517
-1517
-1517

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 33 IN ( + ( 98 ), col0 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT 40 DIV - - 54 * col0 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6510
SELECT 40 / - - 54 * col0 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - 91 ) AS col1 FROM tab2
----
91

query II rowsort
SELECT + ( 52 ), + col0 AS col2 FROM tab1
----
52
51
52
85
52
91

query II rowsort
SELECT 23 * 19 AS col1, col2 FROM tab2
----
437
23
437
40
437
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT COUNT( * ) + + 46 AS col0 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT COUNT ( * ) + + 46 AS col0 FROM tab0
----
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + col2 - + 40 * col2 NOT IN ( + - ( - - col2 ) + + col2 + - col0 + + - col0, + 16 / - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT DISTINCT col1 DIV - col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT col1 / - col2 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6517
SELECT + MAX( ALL + col1 ) DIV + SUM( + col0 ) + - 72 AS col2 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6517
SELECT + MAX ( ALL + col1 ) / + SUM ( + col0 ) + - 72 AS col2 FROM tab1
----
-72

query II rowsort
SELECT ALL col2, + 98 FROM tab2
----
23
98
40
98
58
98

query I rowsort
SELECT col2 * + 63 FROM tab0
----
2961
6237
630

query I rowsort
SELECT ALL - ( 33 ) FROM tab2
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT - ( + - col1 ) * - col2 + - col1 DIV - - col1 col0 FROM tab1 AS cor0
----
-1345
-296
-3197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6521
SELECT - ( + - col1 ) * - col2 + - col1 / - - col1 col0 FROM tab1 AS cor0
----
-1345
-296
-3197

query I rowsort
SELECT 8 * + col0 AS col0 FROM tab1 AS cor0 WHERE ( 97 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 + - - col0 * - 28 IS NULL
----

query I rowsort
SELECT DISTINCT - 24 - - col1 AS col2 FROM tab0 AS cor0
----
-23
-3
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6525
SELECT + ( - col1 ) + 33 DIV - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6525
SELECT + ( - col1 ) + 33 / - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col2 * + col0 - - - col0 AS col2 FROM tab1
----
4845
4930
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT + - ( + col0 ) - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - ( + col0 ) - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6528
SELECT ALL + COUNT( ALL ( + ( + - col0 ) ) ) AS col1, 45 AS col2 FROM tab1
----
3
45

skipif mysql # not compatible
query II rowsort label-6528
SELECT ALL + COUNT ( ALL ( + ( + - col0 ) ) ) AS col1, 45 AS col2 FROM tab1
----
3
45

query I rowsort
SELECT DISTINCT + - 86 AS col0 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT col0 * - ( col1 ) AS col2 FROM tab1 cor0 WHERE NOT - 19 * + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT - - 82 * 44 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE + 67 >= 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6533
SELECT ALL - + col2 * - col2 / ( CAST( NULL AS SIGNED ) ) + col0 AS col1, CAST( NULL AS SIGNED ) * - 34 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6533
SELECT ALL - + col2 * - col2 / ( CAST ( NULL AS INTEGER ) ) + col0 AS col1, CAST ( NULL AS INTEGER ) * - 34 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 81 FROM tab2 AS cor0 WHERE NOT + ( + col0 ) <= ( + + ( - + col1 ) )
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT ALL 18 * + col2 + - - CAST( + + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1121
1292
1824

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL 18 * + col2 + - - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1121
1292
1824

query I rowsort
SELECT DISTINCT + 19 * - - col1 + + col1 AS col1 FROM tab0 AS cor0
----
1620
20
420

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - + col2 * + + col2 AS col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT DISTINCT + COUNT( ALL + + col0 ) * - 16 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT + COUNT ( ALL + + col0 ) * - 16 FROM tab0 AS cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * - col2 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT DISTINCT MAX( ALL - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT MAX ( ALL - - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6543
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), col2 / + - col0 )
----

skipif mysql # not compatible
query III rowsort label-6543
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), col2 / + - col0 )
----

query I rowsort
SELECT ALL - 75 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 51 * + - 35 * - - 46 + 74 AS col2 FROM tab1
----
82184
82184
82184

query I rowsort
SELECT DISTINCT 77 FROM tab1 WHERE NOT 89 IS NOT NULL
----

query II rowsort
SELECT - 83 AS col1, col1 + 68 FROM tab1
----
-83
115
-83
73
-83
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL CAST( + col0 AS SIGNED ) col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6548
SELECT ALL CAST ( + col0 AS INTEGER ) col2 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - col0 / + col2 / + 12 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL 31 * + col0 AS col2 FROM tab1
----
1581
2635
2821

query I rowsort
SELECT ALL + + ( + 43 ) + - 33 FROM tab1 AS cor0
----
10
10
10

query II rowsort
SELECT - 39 AS col2, col2 AS col2 FROM tab0 AS cor0
----
-39
10
-39
47
-39
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( + - col0 ) IS NULL
----

query I rowsort
SELECT ALL + ( - - col0 ) + col0 FROM tab1 cor0 WHERE NULL > - col0 * - + 27
----

query II rowsort
SELECT - col1, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT - col2 * - col0 + - - col2 - + col0 AS col2 FROM tab0 AS cor0
----
737
793
9605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + col0 col1, - 5 AS col0 FROM tab2
----
-1058
-5
-2560
-5
-4350
-5

query I rowsort
SELECT + 5 + col1 FROM tab1 cor0
----
10
19
52

query I rowsort
SELECT + 13 * 46 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
598
598
598

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT COUNT( * ) * + 82 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6561
SELECT COUNT ( * ) * + 82 FROM tab2 AS cor0
----
246

query I rowsort
SELECT ALL + + col1 + col0 * + col1 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT SUM( + - 50 ) AS col1 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-6563
SELECT SUM ( + - 50 ) AS col1 FROM tab0 AS cor0
----
-150

query I rowsort
SELECT DISTINCT + col2 - 3 AS col0 FROM tab1 AS cor0
----
56
65
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT DISTINCT COUNT( * ) - 65 * - 58 FROM tab1 AS cor0
----
3773

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT COUNT ( * ) - 65 * - 58 FROM tab1 AS cor0
----
3773

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN col0 - col1 + + - col1 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT col2 - + 86 AS col0 FROM tab1
----
-18
-27
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + ( - ( - SUM( + 16 ) ) ) AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6568
SELECT + ( - ( - SUM ( + 16 ) ) ) AS col0 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT DISTINCT + 49 + - COUNT( * ) FROM tab1 WHERE NOT - col0 < ( + col2 )
----
49

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + 49 + - COUNT ( * ) FROM tab1 WHERE NOT - col0 < ( + col2 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL COUNT( DISTINCT col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL COUNT ( DISTINCT col2 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT col2 AS col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT - 31, col2 FROM tab2 AS cor0
----
-31
23
-31
40
-31
58

query I rowsort
SELECT - + col2 * + + 9 FROM tab2 cor0
----
-207
-360
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT - ( - + SUM( - 59 ) ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6574
SELECT - ( - + SUM ( - 59 ) ) FROM tab0 AS cor0
----
-177

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 88 * col2 - + col2 * + - 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6576
SELECT col1 AS col0, - 13 * - + col1 - + + col1 + + col0 * - 90 * + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-6576
SELECT col1 AS col0, - 13 * - + col1 - + + col1 + + col0 * - 90 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT DISTINCT col0 + + col0, col1 AS col0 FROM tab1 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT DISTINCT col2 * 80 AS col0 FROM tab0
----
3760
7920
800

query I rowsort
SELECT - 56 + - 96 AS col2 FROM tab0
----
-152
-152
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + COUNT( * ) + - + 53 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-6580
SELECT + COUNT ( * ) + - + 53 FROM tab0
----
-50

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - col0 <> + col0 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + col1 ) * + + 91 + + + 80 FROM tab2 AS cor0
----
4721
6177
7087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6583
SELECT ALL + + CAST( + col0 AS SIGNED ) * - 66 FROM tab1 AS cor0
----
-3366
-5610
-6006

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + + CAST ( + col0 AS INTEGER ) * - 66 FROM tab1 AS cor0
----
-3366
-5610
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6584
SELECT + + CAST( 61 AS SIGNED ) FROM tab0 cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-6584
SELECT + + CAST ( 61 AS INTEGER ) FROM tab0 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT - ( ( - + 37 ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + ( + 63 ) IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-6585
SELECT - ( ( - + 37 ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + ( + 63 ) IS NULL
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6586
SELECT DISTINCT + CAST( + ( - 47 ) AS SIGNED ), - col1 AS col0 FROM tab0 WHERE NOT + 11 + - col1 IS NULL
----
-47
-1
-47
-21
-47
-81

skipif mysql # not compatible
query II rowsort label-6586
SELECT DISTINCT + CAST ( + ( - 47 ) AS INTEGER ), - col1 AS col0 FROM tab0 WHERE NOT + 11 + - col1 IS NULL
----
-47
-1
-47
-21
-47
-81

query I rowsort
SELECT - 91 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT ALL 61 * + - 98 AS col0 FROM tab2
----
-5978
-5978
-5978

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6589
SELECT AVG ( + col0 ) FROM tab0 WHERE col2 >= ( - - ( CAST( NULL AS DECIMAL ) ) / - ( - col1 ) * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT AVG ( + col0 ) FROM tab0 WHERE col2 >= ( - - ( CAST ( NULL AS REAL ) ) / - ( - col1 ) * + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL COUNT( * ) * + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL COUNT ( * ) * + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT DISTINCT + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT + CAST( + - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6592
SELECT + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6593
SELECT CAST( + ( - + 79 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-6593
SELECT CAST ( + ( - + 79 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN ( - - col2 * - - col2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 74 * - col1 AS col0 FROM tab1
----
-1036
-3478
-370

query I rowsort
SELECT ALL 92 * + col1 AS col1 FROM tab0
----
1932
7452
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * 40 col2, + col2 AS col1 FROM tab1
----
1880
68
200
59
560
96

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL - MAX( + + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL - MAX ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT + COUNT( * ) * + 40 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6600
SELECT + COUNT ( * ) * + 40 FROM tab2 AS cor0
----
120

query I rowsort
SELECT - col1 * + - 57 * - + 22 FROM tab1 AS cor0
----
-17556
-58938
-6270

query I rowsort
SELECT - 14 * + - col1 FROM tab2 AS cor0
----
1078
714
938

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT 66 DIV - COUNT( * ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT 66 / - COUNT ( * ) FROM tab1
----
-22

query I rowsort
SELECT - - 36 * - col1 * + col2 + - col0 FROM tab0 cor0
----
-137067
-3661
-7647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT - + CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT - + CAST ( NULL AS INTEGER ) + + + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL - MAX( - col2 ) + + SUM( - ( + ( + col1 ) ) ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - MAX ( - col2 ) + + SUM ( - ( + ( + col1 ) ) ) FROM tab1 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT + + 25 + ( COUNT( * ) ) FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT + + 25 + ( COUNT ( * ) ) FROM tab1 cor0
----
28

query I rowsort
SELECT - col2 + 92 AS col2 FROM tab0 AS cor0
----
-7
45
82

query I rowsort
SELECT DISTINCT + + col2 + - - col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE ( col1 + + + col2 IS NULL )
----

query I rowsort
SELECT ALL - - col2 + + - 21 FROM tab2 AS cor0
----
19
2
37

query I rowsort
SELECT - - col0 - 71 FROM tab0 AS cor0
----
-56
16
26

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE + 69 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL - ( - + 7 ) * - - col0 + + + CAST( col0 AS SIGNED ) - - col1 FROM tab0
----
201
717
777

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - ( - + 7 ) * - - col0 + + + CAST ( col0 AS INTEGER ) - - col1 FROM tab0
----
201
717
777

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 36 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( ( NOT 60 * - col1 + col2 IS NOT NULL ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT - ( + MIN( DISTINCT - - col2 ) ) * 13 FROM tab2 AS cor0
----
-299

skipif mysql # not compatible
query I rowsort label-6618
SELECT - ( + MIN ( DISTINCT - - col2 ) ) * 13 FROM tab2 AS cor0
----
-299

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT ALL - 37 * + 15 AS col2 FROM tab0 AS cor0
----
-555
-555
-555

query I rowsort
SELECT DISTINCT + - col1 * 90 AS col2 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT - + ( - - MIN( + CAST( col0 AS SIGNED ) ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6622
SELECT - + ( - - MIN ( + CAST ( col0 AS INTEGER ) ) ) FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT col2 * + 30 FROM tab2
----
1200
1740
690

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT ALL 89 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL 89 / + col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT ALL 96 AS col0, - COUNT( * ) + + 46 AS col2 FROM tab0
----
96
43

skipif mysql # not compatible
query II rowsort label-6625
SELECT ALL 96 AS col0, - COUNT ( * ) + + 46 AS col2 FROM tab0
----
96
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + COUNT( * ) FROM tab0 WHERE NOT 75 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6626
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 75 IS NOT NULL
----
0

query I rowsort
SELECT ALL ( - + col0 ) AS col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 13 col2 FROM tab0
----
-15
13
-87
13
-97
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT COUNT( + 9 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6629
SELECT COUNT ( + 9 ) col1 FROM tab1
----
3

query I rowsort
SELECT + col2 * - + ( + 62 ) AS col1 FROM tab1 AS cor0
----
-3658
-4216
-5952

query I rowsort
SELECT ALL - - col1 * col1 + - + col2 FROM tab2 AS cor0
----
2578
4431
5889

query I rowsort
SELECT ALL - 74 + + + col1 AS col0 FROM tab1 AS cor0 WHERE + col2 * - - 62 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6633
SELECT CAST( NULL AS DECIMAL ) + - + col0 col2, - 85 * - col1 FROM tab2
----
NULL
4335
NULL
5695
NULL
6545

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6633
SELECT CAST ( NULL AS REAL ) + - + col0 col2, - 85 * - col1 FROM tab2
----
NULL
4335
NULL
5695
NULL
6545

query I rowsort
SELECT DISTINCT + 28 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6635
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE 54 <> + col2 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 79 )
----

query II rowsort
SELECT ALL - col2 AS col1, col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT 56 + col0 FROM tab2
----
102
120
131

query I rowsort
SELECT ALL ( + - 2 ) FROM tab0
----
-2
-2
-2

query I rowsort
SELECT 74 + - 56 FROM tab0
----
18
18
18

query I rowsort
SELECT + 13 + + col1 * - col2 + + 7 FROM tab2
----
-1153
-3060
-3866

onlyif mysql # DIV for integer division: 
query I rowsort label-6643
SELECT - 72 DIV col0 * + ( - col0 ) + - col0 AS col1 FROM tab1
----
-85
-91
0

skipif mysql # not compatible
query I rowsort label-6643
SELECT - 72 / col0 * + ( - col0 ) + - col0 AS col1 FROM tab1
----
-85
-91
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL IN ( col1 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND - col0
----

query I rowsort
SELECT - - 52 AS col0 FROM tab0 WHERE NOT + col2 + + 0 IS NULL
----
52
52
52

query I rowsort
SELECT ALL - + col0 * 64 FROM tab1 AS cor0
----
-3264
-5440
-5824

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT - - col2 * - ( + col1 ) * + col2 + + col2 DIV 11 FROM tab2 AS cor0
----
-123197
-225383
-26977

skipif mysql # not compatible
query I rowsort label-6651
SELECT - - col2 * - ( + col1 ) * + col2 + + col2 / 11 FROM tab2 AS cor0
----
-123197
-225383
-26977

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) / - col0 * - 78 BETWEEN ( NULL ) AND 94
----

query I rowsort
SELECT ALL + col0 * + - col1 * 49 AS col1 FROM tab2 AS cor0
----
-114954
-241472
-246225

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 81 / + col1 / + col2 <> 8
----

query I rowsort
SELECT col0 * 98 FROM tab1
----
4998
8330
8918

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6656
SELECT MAX( DISTINCT + 69 ) DIV - COUNT( * ) AS col0, 91 AS col2 FROM tab0
----
-23
91

skipif mysql # not compatible
query II rowsort label-6656
SELECT MAX ( DISTINCT + 69 ) / - COUNT ( * ) AS col0, 91 AS col2 FROM tab0
----
-23
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT + CAST( - ( 75 ) AS SIGNED ) FROM tab2
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-6657
SELECT + CAST ( - ( 75 ) AS INTEGER ) FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT COUNT( * ) DIV + + 35 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT COUNT ( * ) / + + 35 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 BETWEEN NULL AND + 6
----

query II rowsort
SELECT + col0 AS col0, - 56 FROM tab0
----
15
-56
87
-56
97
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT SUM( + + 75 ) FROM tab0 WHERE NOT + 38 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT SUM ( + + 75 ) FROM tab0 WHERE NOT + 38 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6662
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE + 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE + 82 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * + + col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - - 65 + - col2 * 69 * + col0 FROM tab2 AS cor0
----
-176575
-300085
-72937

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6665
SELECT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - + col1 BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6665
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + col1 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT 45 AS col2, + 52 FROM tab1 AS cor0
----
45
52
45
52
45
52

query I rowsort
SELECT ALL + + AVG ( - + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND col2
----

query I rowsort
SELECT DISTINCT - col1 + 4 FROM tab2
----
-47
-63
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 * - + col0, 39 col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
4896
39
5015
39
6188
39

query I rowsort
SELECT - 10 + - col0 FROM tab0 cor0
----
-107
-25
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT + COUNT( * ) * + 39 + + 56 AS col2 FROM tab2 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-6672
SELECT + COUNT ( * ) * + 39 + + 56 AS col2 FROM tab2 AS cor0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT + ( + MAX( ALL + + col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6673
SELECT + ( + MAX ( ALL + + col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT - + MAX( - - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6674
SELECT - + MAX ( - - col1 ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( - col1 ) AND 71
----

query II rowsort
SELECT col0 AS col2, + col1 * col1 AS col0 FROM tab0 cor0
----
15
6561
87
441
97
1

query I rowsort
SELECT col0 * + 36 AS col1 FROM tab0
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT MIN( + 45 ) * + - 81 AS col2 FROM tab0
----
-3645

skipif mysql # not compatible
query I rowsort label-6678
SELECT MIN ( + 45 ) * + - 81 AS col2 FROM tab0
----
-3645

query I rowsort
SELECT col0 * + + col1 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT col0 DIV - + col2 - + - 60 col1 FROM tab0
----
52
60
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6680
SELECT col0 / - + col2 - + - 60 col1 FROM tab0
----
52
60
60

query I rowsort
SELECT ALL - 49 * col2 + + - 37 AS col2 FROM tab1
----
-2928
-3369
-4741

onlyif mysql # aggregate syntax: 
query II rowsort label-6682
SELECT COUNT( * ) - 34 col0, 85 AS col2 FROM tab1
----
-31
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6682
SELECT COUNT ( * ) - 34 col0, 85 AS col2 FROM tab1
----
-31
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6683
SELECT DISTINCT - MIN( - + 45 ) + + + 26 + - + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6683
SELECT DISTINCT - MIN ( - + 45 ) + + + 26 + - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col0 + 61 AS col0, col2 AS col2 FROM tab1 AS cor0
----
112
96
146
59
152
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL + MAX( ALL + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL + MAX ( ALL + col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT - 70 AS col1, SUM( + col1 ) FROM tab2
----
-70
195

skipif mysql # not compatible
query II rowsort label-6686
SELECT - 70 AS col1, SUM ( + col1 ) FROM tab2
----
-70
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6687
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 - CAST( - 86 AS SIGNED ) * + 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6687
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 - CAST ( - 86 AS INTEGER ) * + 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + - 81 ) FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL + col0 * - 37 + + ( 17 ) FROM tab1 AS cor0
----
-1870
-3128
-3350

query I rowsort
SELECT - 86 * + col2 FROM tab2 AS cor0
----
-1978
-3440
-4988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, 0 AS col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col2 col1 FROM tab0 cor0
----
15
47
87
10
97
99

query I rowsort
SELECT + + 32 * - - col2 * 75 - + - col0 - + 59 AS col0 FROM tab1 cor0
----
141626
163232
230392

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT - ( - + COUNT( * ) ) * + 22 col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6694
SELECT - ( - + COUNT ( * ) ) * + 22 col0 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT + + 8 / - col2 * - + ( - - CAST( NULL AS SIGNED ) ) AS col1, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-6695
SELECT + + 8 / - col2 * - + ( - - CAST ( NULL AS INTEGER ) ) AS col1, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT - - MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT - - MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 6 * - + col0 AS col2 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT ALL 97 * ( + col0 ) FROM tab1
----
4947
8245
8827

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 / + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 + 82 - + col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 + 82 - + col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col1 FROM tab0 cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT + CAST( + - col2 AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6703
SELECT + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - 16 * - col1 FROM tab2
----
51
816
67
1072
77
1232

query I rowsort
SELECT DISTINCT + col2 * + 24 + 52 FROM tab2
----
1012
1444
604

query I rowsort
SELECT DISTINCT + - col1 + - 92 AS col2 FROM tab2 cor0
----
-143
-159
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + SUM( - + 56 ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-6707
SELECT + SUM ( - + 56 ) FROM tab1 AS cor0
----
-168

query I rowsort
SELECT ALL - 45 * + - col1 * + + 48 + - - ( + + 93 ) + col0 AS col2 FROM tab1 AS cor0
----
101704
10978
30384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - ( - - col1 ) col2 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT ALL 65 * - 28 - + + col2 + + col2 DIV - col2 FROM tab2 AS cor0
----
-1844
-1861
-1879

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL 65 * - 28 - + + col2 + + col2 / - col2 FROM tab2 AS cor0
----
-1844
-1861
-1879

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6711
SELECT - 50 * - COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT - 50 * - COUNT ( * ) + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT ALL col0 * col2 DIV - + ( + - col0 ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL col0 * col2 / - + ( + - col0 ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL 55 - + col0 FROM tab1
----
-30
-36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT DISTINCT COUNT( ALL - - ( - 6 ) ) - - 64 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT COUNT ( ALL - - ( - 6 ) ) - - 64 FROM tab0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT MAX( ALL - + CAST( NULL AS SIGNED ) ) + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * - col2 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - 1 + SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-6717
SELECT - 1 + SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT CAST( NULL AS SIGNED ) * + - 23 * + 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT CAST ( NULL AS INTEGER ) * + - 23 * + 54 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + col0 + - 82 + col2 * col1 AS col0 FROM tab0 AS cor0
----
15
3740
87
215
97
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col0 FROM tab2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT + 65 * - col0 + 14 DIV - col1 * 25 + + - 20 AS col2 FROM tab2 AS cor0
----
-3010
-4180
-4895

skipif mysql # not compatible
query I rowsort label-6721
SELECT + 65 * - col0 + 14 / - col1 * 25 + + - 20 AS col2 FROM tab2 AS cor0
----
-3010
-4180
-4895

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT 6 * col1 NOT BETWEEN NULL AND 60
----

query I rowsort
SELECT + col2 * - col2 + + col2 * + ( + col1 ) + + col1 FROM tab2 AS cor0
----
1557
589
695

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT + col0 + - + col1 DIV + 53 FROM tab2 AS cor0
----
46
63
74

skipif mysql # not compatible
query I rowsort label-6724
SELECT + col0 + - + col1 / + 53 FROM tab2 AS cor0
----
46
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT MAX( DISTINCT + 54 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT MAX ( DISTINCT + 54 ) FROM tab2
----
54

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col2 * + col2, col2, - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT + ( + + 33 ) DIV + 68 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT + ( + + 33 ) / + 68 AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT - - col2, col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL 94 + + 83 DIV col2 + + 16 FROM tab2
----
111
112
113

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL 94 + + 83 / col2 + + 16 FROM tab2
----
111
112
113

query I rowsort
SELECT DISTINCT col0 * + + 62 * - ( - col2 ) + - + 89 + - col1 FROM tab2 AS cor0
----
158554
269544
65456

query I rowsort
SELECT DISTINCT - col0 + - col2 + + ( + + col2 ) + - col1 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT ALL + - col2 + 34 FROM tab0 AS cor0
----
-13
-65
24

query I rowsort
SELECT 97 * 74 FROM tab0 AS cor0
----
7178
7178
7178

query II rowsort
SELECT - 90 * + col2 + + 74, col0 FROM tab1 AS cor0
----
-5236
85
-6046
91
-8566
51

query I rowsort
SELECT ALL - col0 * + 40 AS col0 FROM tab1 AS cor0
----
-2040
-3400
-3640

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT col2 + - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + 21 - - col0 FROM tab1 AS cor0
----
106
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6740
SELECT + COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col0 - col0, + 28 AS col0 FROM tab2 AS cor0
----
0
28

query I rowsort
SELECT ALL + col2 * + 82 FROM tab2 AS cor0
----
1886
3280
4756

query II rowsort
SELECT col1 AS col0, - col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT DISTINCT - 40 - + - 99 FROM tab1
----
59

query I rowsort
SELECT ALL - col1 * + - 57 + + col0 FROM tab2
----
2953
3894
4453

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT + ( + - 94 ) * - COUNT( * ) col2 FROM tab2 WHERE NOT - - 39 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6746
SELECT + ( + - 94 ) * - COUNT ( * ) col2 FROM tab2 WHERE NOT - - 39 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT ALL ( ( + - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL ( ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT + SUM( + 84 ) AS col1 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT + SUM ( + 84 ) AS col1 FROM tab2 AS cor0
----
252

query I rowsort
SELECT ALL col2 * 22 FROM tab1 AS cor0
----
1298
1496
2112

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN - 49 AND NULL )
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col2 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6753
SELECT ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT col2 * 34 + - 78 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = + ( + col2 ) / + ( - col0 )
----

query I rowsort
SELECT - 70 * + - col1 AS col1 FROM tab1 AS cor0
----
3290
350
980

query II rowsort
SELECT + - col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6757
SELECT DISTINCT + COUNT( * ) col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6757
SELECT DISTINCT + COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - + col0 * - - 41 - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL > col2 / + - col1 * + + col0
----

skipif mysql # not compatible
query I rowsort label-6759
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL > col2 / + - col1 * + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NOT - col0 - + 55 BETWEEN NULL AND + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT - 9 * + - COUNT( * ) FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT - 9 * + - COUNT ( * ) FROM tab1, tab0 AS cor0
----
81

query I rowsort
SELECT ALL - ( + + 14 ) AS col2 FROM tab0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL ( + + SUM( - col1 ) ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL ( + + SUM ( - col1 ) ) AS col0 FROM tab0
----
-103

query I rowsort
SELECT - col2 FROM tab2 WHERE ( NOT + 43 = ( - col2 ) )
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT ALL + 80 * + COUNT( * ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL + 80 * + COUNT ( * ) FROM tab1
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6768
SELECT DISTINCT - col0 + + 64 / - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6768
SELECT DISTINCT - col0 + + 64 / - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT ALL - COUNT( * ) + - CAST( ( + - 46 ) AS SIGNED ) FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL - COUNT ( * ) + - CAST ( ( + - 46 ) AS INTEGER ) FROM tab1 cor0
----
43

query I rowsort
SELECT ( - 62 ) * col1 FROM tab1
----
-2914
-310
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT - + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6772
SELECT - + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT ( - col2 ) * - + col2 * col1 * + col0 FROM tab2
----
1241034
16904100
7884800

query I rowsort
SELECT ALL col2 + 35 FROM tab1
----
103
131
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT CAST( col2 AS SIGNED ) - + col1 - + 88 + + + col0 + + 43 * - col0 AS col2 FROM tab1 AS cor0
----
-2148
-3604
-3889

skipif mysql # not compatible
query I rowsort label-6775
SELECT CAST ( col2 AS INTEGER ) - + col1 - + 88 + + + col0 + + 43 * - col0 AS col2 FROM tab1 AS cor0
----
-2148
-3604
-3889

query I rowsort
SELECT 78 - + col1 AS col2 FROM tab1 cor0
----
31
64
73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT col2 + + - 69 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT - SUM( DISTINCT + + col0 ) + + 92 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6778
SELECT - SUM ( DISTINCT + + col0 ) + + 92 FROM tab1 AS cor0
----
-135

query I rowsort
SELECT DISTINCT col1 - - col2 - + + col1 * - + col2 FROM tab1 cor0
----
1454
3311
359

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6781
SELECT ALL CAST( + 21 AS SIGNED ) * col2 AS col0 FROM tab0
----
2079
210
987

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL CAST ( + 21 AS INTEGER ) * col2 AS col0 FROM tab0
----
2079
210
987

query I rowsort
SELECT DISTINCT - ( - 98 ) AS col0 FROM tab0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT DISTINCT - MAX( + CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT - MAX ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + 36 + + 99 col1 FROM tab2 AS cor0 WHERE NOT - col1 + 22 <= col0 * + + 10
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 = - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6786
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6787
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col2 > NULL
----

query I rowsort
SELECT ALL - - col0 + 16 AS col2 FROM tab2 AS cor0
----
62
80
91

query I rowsort
SELECT + col1 + 65 FROM tab1 AS cor0
----
112
70
79

query I rowsort
SELECT ALL + 56 * + col2 AS col2 FROM tab1 AS cor0
----
3304
3808
5376

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6792
SELECT DISTINCT 29 DIV SUM( DISTINCT + 43 ) AS col2, SUM( ALL + 72 ) AS col1 FROM tab0 AS cor0
----
0
216

skipif mysql # not compatible
query II rowsort label-6792
SELECT DISTINCT 29 / SUM ( DISTINCT + 43 ) AS col2, SUM ( ALL + 72 ) AS col1 FROM tab0 AS cor0
----
0
216

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - 97 + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6793
SELECT - 97 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col1 col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - - col0 + - + 42 + - 69 FROM tab1 AS cor0
----
-20
-26
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( col1 ) ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT 70 + - COUNT( * ) * - 39 FROM tab2
----
187

skipif mysql # not compatible
query I rowsort label-6797
SELECT 70 + - COUNT ( * ) * - 39 FROM tab2
----
187

query III rowsort
SELECT * FROM tab2 WHERE NOT - 90 IS NOT NULL AND - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6800
SELECT DISTINCT - col2 col2, - col1 * col2 DIV col2 * col1 FROM tab1
----
-59
-25
-68
-2209
-96
-196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6800
SELECT DISTINCT - col2 col2, - col1 * col2 / col2 * col1 FROM tab1
----
-59
-25
-68
-2209
-96
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-6801
SELECT DISTINCT - COUNT( * ) AS col1, 24 FROM tab2
----
-3
24

skipif mysql # not compatible
query II rowsort label-6801
SELECT DISTINCT - COUNT ( * ) AS col1, 24 FROM tab2
----
-3
24

query I rowsort
SELECT DISTINCT 10 * + - 90 * + col2 + - - col1 AS col2 FROM tab0 cor0
----
-42219
-89099
-8979

query I rowsort
SELECT + + 73 AS col0 FROM tab0 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT + SUM( 97 ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6804
SELECT + SUM ( 97 ) FROM tab0 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6805
SELECT ALL * FROM tab0 cor0 WHERE - col2 + CAST( - + 7 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6805
SELECT ALL * FROM tab0 cor0 WHERE - col2 + CAST ( - + 7 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT + - COUNT( ALL col0 ) + - COUNT( * ) + 57 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + - COUNT ( ALL col0 ) + - COUNT ( * ) + 57 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT - - 67 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6807
SELECT - - 67 / col2 AS col2 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT DISTINCT + ( + + col1 ) DIV + col0 - + 65 + + col2 AS col0 FROM tab1 AS cor0
----
-6
3
31

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT + ( + + col1 ) / + col0 - + 65 + + col2 AS col0 FROM tab1 AS cor0
----
-6
3
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT DISTINCT + 4 * - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) * 42 * + - 93 - + COUNT( * ) + CAST( - 15 AS SIGNED ) + + + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + 4 * - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * 42 * + - 93 - + COUNT ( * ) + CAST ( - 15 AS INTEGER ) + + + COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL MIN( + 6 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL MIN ( + 6 ) AS col1 FROM tab1
----
6

query I rowsort
SELECT DISTINCT - 27 + + col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - ( col2 ) FROM tab2 WHERE - 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT DISTINCT + SUM( - - 8 ) AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT + SUM ( - - 8 ) AS col2 FROM tab1
----
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 * + + col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col1 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - + 41 * - col1 AS col1 FROM tab0 AS cor0
----
3321
41
861

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab2 WHERE 15 = - 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT - CAST( - col1 AS SIGNED ) + - 69 col2 FROM tab0
----
-48
-68
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6818
SELECT - CAST ( - col1 AS INTEGER ) + - 69 col2 FROM tab0
----
-48
-68
12

query I rowsort
SELECT col1 - - col0 / 13 AS col1 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( + 2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) NOT BETWEEN col2 AND ( 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 65 * - ( 86 * - AVG ( DISTINCT + col1 ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6822
SELECT + 20 FROM tab1 WHERE ( CAST( NULL AS DECIMAL ) ) = 75
----

skipif mysql # not compatible
query I rowsort label-6822
SELECT + 20 FROM tab1 WHERE ( CAST ( NULL AS REAL ) ) = 75
----

query I rowsort
SELECT DISTINCT col1 + 3 AS col0 FROM tab0
----
24
4
84

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + col0 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL - COUNT( * ) + 18 AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - COUNT ( * ) + 18 AS col2 FROM tab0
----
15

query I rowsort
SELECT + col1 - + ( + col1 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT + 81 - + 19 * SUM( + 84 * - col2 ) FROM tab2
----
193197

skipif mysql # not compatible
query I rowsort label-6827
SELECT + 81 - + 19 * SUM ( + 84 * - col2 ) FROM tab2
----
193197

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 81 / + col1 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - 70 - + SUM( 92 + 51 ) FROM tab1
----
-499

skipif mysql # not compatible
query I rowsort label-6829
SELECT - 70 - + SUM ( 92 + 51 ) FROM tab1
----
-499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6830
SELECT ALL col2 * - col1 + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6830
SELECT ALL col2 * - col1 + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + col1 * - 36 col1 FROM tab0
----
-2860
-700
20

query I rowsort
SELECT ALL + ( col2 ) * 84 FROM tab1
----
4956
5712
8064

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <> 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL SUM( col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL SUM ( col1 ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT col0 - 89 FROM tab0
----
-2
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ( COUNT( * ) ) * + COUNT( * ) - 67 col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6837
SELECT ( COUNT ( * ) ) * + COUNT ( * ) - 67 col0 FROM tab2
----
-58

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6839
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 80 + col1 AS col0 FROM tab0
----
101
161
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT COUNT( * ) * - 70 + COUNT( * ) FROM tab1 WHERE ( - col2 ) NOT BETWEEN NULL AND col0 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT COUNT ( * ) * - 70 + COUNT ( * ) FROM tab1 WHERE ( - col2 ) NOT BETWEEN NULL AND col0 - + col2
----
0

query I rowsort
SELECT + 70 * + col2 AS col0 FROM tab2
----
1610
2800
4060

query III rowsort
SELECT * FROM tab2 WHERE col1 <> ( col1 )
----

query I rowsort
SELECT DISTINCT - 29 * col0 + col1 AS col2 FROM tab0
----
-2502
-2812
-354

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * col1 ) <= ( col2 * col1 + - col0 )
----

query I rowsort
SELECT 50 * ( col0 ) FROM tab2
----
2300
3200
3750

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 * + col0 BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6849
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 10 * - col0 ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6849
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 10 * - col0 ) >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT - 36 / col1 + 77 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 * col2 + + 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT - + 90 DIV - col1 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-6852
SELECT - + 90 / - col1 FROM tab1 AS cor0
----
1
18
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 78 + col1 )
----

query I rowsort
SELECT - col2 * - 6 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL <> + col0
----

query I rowsort
SELECT - ( - 53 ) FROM tab1
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT ALL CAST( + 3 AS SIGNED ) FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL CAST ( + 3 AS INTEGER ) FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL - COUNT( * ) col0 FROM tab1 WHERE - 64 > ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6859
SELECT ALL - COUNT ( * ) col0 FROM tab1 WHERE - 64 > ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 > + col1
----

query I rowsort
SELECT - 33 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + 59 AS col0 FROM tab2 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6863
SELECT * FROM tab1 WHERE NOT + CAST( 60 AS DECIMAL ) NOT BETWEEN + 22 AND col0 + - 5
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-6863
SELECT * FROM tab1 WHERE NOT + CAST ( 60 AS REAL ) NOT BETWEEN + 22 AND col0 + - 5
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab0 cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT - + col1 DIV ( 47 ) col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6865
SELECT - + col1 / ( 47 ) col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + + col2 * + 75 AS col1 FROM tab2 AS cor0
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) + 47 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6867
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) + 47 IS NULL
----
3

query I rowsort
SELECT ALL - - 94 + 92 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7c201b64e0e5870bf1ece59e22cba4f7

query I rowsort
SELECT - 69 * - + col2 FROM tab0
----
3243
6831
690

query I rowsort
SELECT ALL + col2 * - ( col1 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col0 * ( col0 ) FROM tab2 AS cor0
----
-2144
-4133
-5634

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 + col0 ) IS NULL
----

query I rowsort
SELECT col2 + + - 7 + 36 AS col2 FROM tab2 AS cor0
----
52
69
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 56 * col0 ) NOT IN ( - col0 * - ( 51 ) + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - 85 + + COUNT( * ) + + 67 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6875
SELECT - 85 + + COUNT ( * ) + + 67 FROM tab2 cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 90 * + 28 - - col0 * + col1 + - col1 col1 FROM tab1 AS cor0
----
-1820
-2100
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT + MAX( DISTINCT ( - col1 ) ) + + MAX( DISTINCT 34 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT + MAX ( DISTINCT ( - col1 ) ) + + MAX ( DISTINCT 34 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT CAST( + - ( + - col0 ) AS SIGNED ) + + 42 FROM tab0 AS cor0
----
129
139
57

skipif mysql # not compatible
query I rowsort label-6878
SELECT CAST ( + - ( + - col0 ) AS INTEGER ) + + 42 FROM tab0 AS cor0
----
129
139
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT + col2 DIV - 49 + + - 95 - 48 AS col0 FROM tab1 AS cor0
----
-144
-144
-144

skipif mysql # not compatible
query I rowsort label-6879
SELECT + col2 / - 49 + + - 95 - 48 AS col0 FROM tab1 AS cor0
----
-144
-144
-144

query I rowsort
SELECT - 85 AS col1 FROM tab1 AS cor0 WHERE 69 NOT IN ( 50 * + col2 )
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT - ( - + col0 ) NOT BETWEEN 55 + - 64 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT + + MAX( ( - 11 ) ) AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6883
SELECT + + MAX ( ( - 11 ) ) AS col0 FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL COUNT( * ) + + 27 AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL COUNT ( * ) + + 27 AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL MIN( DISTINCT col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT 73 * + 72 AS col1 FROM tab1 WHERE 64 NOT BETWEEN col0 * + col0 + col2 * - 85 AND NULL
----
5256
5256

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6887
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - - col1 + - 60 >= col2 * col1 + + CAST( 59 + + col1 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6887
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - - col1 + - 60 >= col2 * col1 + + CAST ( 59 + + col1 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 72 * + col2 FROM tab0
----
3384
7128
720

query I rowsort
SELECT - col1 FROM tab1 WHERE 0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT DISTINCT MAX( - col0 ) * SUM( col0 ) AS col0 FROM tab2
----
-8510

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT MAX ( - col0 ) * SUM ( col0 ) AS col0 FROM tab2
----
-8510

query I rowsort
SELECT DISTINCT 11 * col0 + col1 FROM tab1
----
1048
575
940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6892
SELECT MAX( - 25 ) DIV + - 86 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT MAX ( - 25 ) / + - 86 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 + + - 51 + + col1 AS col2 FROM tab1
----
13
59
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT + ( 96 ) * - 79 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-7581

skipif mysql # not compatible
query I rowsort label-6894
SELECT + ( 96 ) * - 79 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-7581

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT MAX( - col2 ) - + SUM( - + 26 ) * COUNT( * ) FROM tab0 cor0
----
224

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT MAX ( - col2 ) - + SUM ( - + 26 ) * COUNT ( * ) FROM tab0 cor0
----
224

query I rowsort
SELECT + col1 * - 26 * ( + ( col0 ) ) + - col1 FROM tab1 AS cor0
----
-11055
-111249
-18578

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + MAX( + + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6897
SELECT + MAX ( + + col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6898
SELECT + CAST( ( + - col2 ) AS SIGNED ), 96 AS col1 FROM tab2 AS cor0
----
-23
96
-40
96
-58
96

skipif mysql # not compatible
query II rowsort label-6898
SELECT + CAST ( ( + - col2 ) AS INTEGER ), 96 AS col1 FROM tab2 AS cor0
----
-23
96
-40
96
-58
96

query I rowsort
SELECT col0 * - col1 - - + 25 AS col0 FROM tab1 AS cor0
----
-400
-4252
-689

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 72 - ( - col0 ) )
----

query I rowsort
SELECT ALL - ( col1 ) * - col2 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT + ( - COUNT( * ) ) AS col1 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6902
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT DISTINCT COUNT( - - ( col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT COUNT ( - - ( col2 ) ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 IN ( - 81, col1 * + 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + 33 + - - col0 + - - ( - col0 ) * - 35 FROM tab1 AS cor0 WHERE col2 + col1 < NULL
----

query I rowsort
SELECT ALL col1 + col1 * - col1 FROM tab1 AS cor0
----
-182
-20
-2162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6908
SELECT ALL CAST( col2 AS SIGNED ) AS col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-6908
SELECT ALL CAST ( col2 AS INTEGER ) AS col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT - ( 73 ) FROM tab1
----
-73
-73
-73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / + col2 NOT IN ( - col1 * - col0 + + + 81 + + + col1 - + 81 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 - + col0 ) > NULL
----

query I rowsort
SELECT ALL + 90 + 43 AS col2 FROM tab1 AS cor0
----
133
133
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab0 AS cor0 WHERE NOT 98 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL 70 * - - COUNT( * ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL 70 * - - COUNT ( * ) FROM tab2
----
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 - - col0 + col0, col2 col2 FROM tab2
----
115
23
168
40
208
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT DISTINCT SUM( DISTINCT + 37 ) * - 78 FROM tab1
----
-2886

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT SUM ( DISTINCT + 37 ) * - 78 FROM tab1
----
-2886

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT - col0 + + + col2 DIV + 76 FROM tab1
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-6918
SELECT - col0 + + + col2 / + 76 FROM tab1
----
-50
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT + COUNT( * ) + - + MIN( ALL + col1 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-6919
SELECT + COUNT ( * ) + - + MIN ( ALL + col1 ) FROM tab0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT ALL col2 DIV - + col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL col2 / - + col2 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col1 * - - col0 * 72 AS col0 FROM tab1
----
-30600
-307944
-51408

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6922
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT - CAST ( NULL AS REAL ) + + + col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT ALL CAST( NULL AS SIGNED ) / + - col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6923
SELECT ALL CAST ( NULL AS INTEGER ) / + - col1 col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT DISTINCT CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= - col1 * CAST( + 69 AS SIGNED ) - - + col2 / - 58 * + col0
----

skipif mysql # not compatible
query I rowsort label-6926
SELECT col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= - col1 * CAST ( + 69 AS INTEGER ) - - + col2 / - 58 * + col0
----

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT + 6 * COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT + 6 * COUNT ( * ) FROM tab0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT ALL + col1 DIV ( - - 73 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + col1 / ( - - 73 ) AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT 94 DIV - + 64 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6931
SELECT 94 / - + 64 AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 67 * - col1 * col1 FROM tab0 AS cor0
----
29547
439587
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT DISTINCT + col2 DIV - col2 + col2 + - col2 * + - col1 col0 FROM tab2 AS cor0
----
1195
3119
3943

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6933
SELECT DISTINCT + col2 / - col2 + col2 + - col2 * + - col1 col0 FROM tab2 AS cor0
----
1195
3119
3943

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 72 NOT BETWEEN - - col0 AND 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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6936
SELECT DISTINCT * FROM tab0 WHERE + ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + + + 44 BETWEEN - - 35 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6936
SELECT DISTINCT * FROM tab0 WHERE + ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + + 44 BETWEEN - - 35 AND NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, + 37 FROM tab0
----
10
37
47
37
99
37

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - ( 56 ) / + col0 NOT IN ( - 10 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + ( + col0 ) col1, - col2 * - 36 FROM tab1
----
-4896
3456
-5015
2124
-6188
2448

query III rowsort
SELECT ALL * FROM tab2 WHERE 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT 61 + COUNT( * ) AS col0 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT 61 + COUNT ( * ) AS col0 FROM tab1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6942
SELECT + ( CAST( ( + + 7 ) AS SIGNED ) ) FROM tab2 WHERE NOT + - 85 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6942
SELECT + ( CAST ( ( + + 7 ) AS INTEGER ) ) FROM tab2 WHERE NOT + - 85 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - col1
----

query II rowsort
SELECT ALL + col0 AS col0, 69 FROM tab2
----
46
69
64
69
75
69

query II rowsort
SELECT DISTINCT col0 AS col2, + col0 - + col1 AS col0 FROM tab1
----
51
37
85
80
91
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / col2 * - ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT ALL + col1 + - col1 + - col2 DIV col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL + col1 + - col1 + - col2 / col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - col0 * col0 FROM tab1 cor0 WHERE NOT NULL IN ( + 59 * + - col2 + + + col2 * col0, col1 )
----

query II rowsort
SELECT - col0, ( + col2 ) * + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-15
-2209
-87
-100
-97
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT COUNT( * ) * + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6950
SELECT COUNT ( * ) * + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-177

query I rowsort
SELECT col1 * - 24 + - col0 AS col2 FROM tab0 AS cor0
----
-121
-1959
-591

query I rowsort
SELECT DISTINCT - col2 * - - 92 * - + col1 FROM tab0
----
19320
350244
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL 67 - - ( - COUNT( * ) ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL 67 - - ( - COUNT ( * ) ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL MAX( - col0 ) + + SUM( DISTINCT - - 91 ) + + SUM( + + col0 ) * - - 23 * + 5 * - COUNT( * ) FROM tab0
----
-68579

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL MAX ( - col0 ) + + SUM ( DISTINCT - - 91 ) + + SUM ( + + col0 ) * - - 23 * + 5 * - COUNT ( * ) FROM tab0
----
-68579

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT SUM( - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT SUM ( - col1 ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT SUM( ALL 33 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6957
SELECT SUM ( ALL 33 ) FROM tab1 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN - col0 AND + + col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6959
SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - CAST( NULL AS DECIMAL ) * - 99 - - col1
----

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND - CAST ( NULL AS REAL ) * - 99 - - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + + 6 <> - 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT COUNT( * ) * 56 AS col0 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-6961
SELECT COUNT ( * ) * 56 AS col0 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT + COUNT( ALL + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6962
SELECT + COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT DISTINCT - - col2 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT 89 >= col1
----

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT - - col2 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT 89 >= col1
----

query I rowsort
SELECT ALL 12 * - 17 + col0 AS col0 FROM tab2 AS cor0
----
-129
-140
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 92 AS col0, 64 col0 FROM tab0 AS cor0
----
92
64

query I rowsort
SELECT DISTINCT - col2 * + ( - + 4 ) AS col1 FROM tab2 AS cor0
----
160
232
92

query I rowsort
SELECT DISTINCT + ( + - 82 ) * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 55 AS col2, - col1 + col1 AS col1 FROM tab1 AS cor0
----
55
0
55
0
55
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6969
SELECT ALL + COUNT( CAST( col2 AS SIGNED ) ) FROM tab2 cor0 WHERE NOT col2 - + col1 = - col0 * - col0 - - col2
----
3

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL + COUNT ( CAST ( col2 AS INTEGER ) ) FROM tab2 cor0 WHERE NOT col2 - + col1 = - col0 * - col0 - - col2
----
3

query I rowsort
SELECT DISTINCT - 99 * col0 AS col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT ALL COUNT( - - 97 ) * 76 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL COUNT ( - - 97 ) * 76 FROM tab1 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT + MIN( - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + MIN ( - col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + SUM( ALL - 83 ) + + 32 col0 FROM tab1 WHERE NOT + col1 * + - col2 * + - 47 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6973
SELECT + SUM ( ALL - 83 ) + + 32 col0 FROM tab1 WHERE NOT + col1 * + - col2 * + - 47 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT + MAX( - CAST( + - col1 AS SIGNED ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6974
SELECT + MAX ( - CAST ( + - col1 AS INTEGER ) ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL - MAX( - 26 ) * - - COUNT( * ) AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL - MAX ( - 26 ) * - - COUNT ( * ) AS col1 FROM tab2
----
78

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col0 / - col2 + + 37 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + ( - col0 ) ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + SUM( + 42 ) col1 FROM tab1
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6978
SELECT + SUM ( + 42 ) col1 FROM tab1
----
126

query I rowsort
SELECT ALL - col1 + + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-114
-76
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + MIN( 47 ) FROM tab2 cor0 WHERE col1 * - + 33 IN ( + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT + MIN ( 47 ) FROM tab2 cor0 WHERE col1 * - + 33 IN ( + 55 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6981
SELECT - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 29 + + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
116
126
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6983
SELECT DISTINCT - - COUNT( * ), + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
9

skipif mysql # not compatible
query II rowsort label-6983
SELECT DISTINCT - - COUNT ( * ), + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6984
SELECT ALL - COUNT( * ), 4 DIV - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9
0

skipif mysql # not compatible
query II rowsort label-6984
SELECT ALL - COUNT ( * ), 4 / - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9
0

query I rowsort
SELECT ALL 8 + + + col2 AS col0 FROM tab0 AS cor0
----
107
18
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT + + COUNT( col2 ) - - + 9 - + - SUM( DISTINCT + col2 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
480

skipif mysql # not compatible
query I rowsort label-6986
SELECT + + COUNT ( col2 ) - - + 9 - + - SUM ( DISTINCT + col2 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
480

query II rowsort
SELECT ALL col2 * - col0 AS col0, + 91 FROM tab2 AS cor0 WHERE - col2 + + col2 IS NULL
----

query I rowsort
SELECT ALL col1 + - + col0 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6990
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - + col0 + - + 5 - - col0 AS col0 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL - col1 - + 16 FROM tab2 AS cor0
----
-67
-83
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6993
SELECT * FROM tab0 WHERE + 0 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6993
SELECT * FROM tab0 WHERE + 0 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 - 48 AS col1 FROM tab1
----
-1
-34
-43

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 <= ( NULL )
----

query I rowsort
SELECT - col0 FROM tab0 WHERE + col0 * + col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT col0 * - + 10 + - col0 + + ( col0 ) * col1 FROM tab2 WHERE + col2 * - col1 IS NOT NULL
----
1840
4200
4224

query I rowsort
SELECT ALL - 40 - + col1 FROM tab1
----
-45
-54
-87

query I rowsort
SELECT col0 * - - 38 FROM tab1
----
1938
3230
3458

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 BETWEEN + col0 + col2 + - 75 / + 18 * - col1 AND NULL
----

query I rowsort
SELECT - col2 * + - col1 * col2 FROM tab1 AS cor0
----
129024
17405
217328

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> ( col1 )
----

query I rowsort
SELECT DISTINCT - 37 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-37

query III rowsort
SELECT ALL * FROM tab1 WHERE 94 IS NULL
----

query I rowsort
SELECT ALL + col0 * - - col2 AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + - 45 * - 52 AS col0 FROM tab0 AS cor0
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT - MAX( + + ( - 51 ) ) / - 50 - + MAX( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 0 * + col1 BETWEEN + - 24 * - col0 / - ( col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT - MAX ( + + ( - 51 ) ) / - 50 - + MAX ( DISTINCT - + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 0 * + col1 BETWEEN + - 24 * - col0 / - ( col2 ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7008
SELECT ALL + 82 + - - col1 + + CAST( + 70 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
157
166
199

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + 82 + - - col1 + + CAST ( + 70 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
157
166
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL - ( MIN( + col2 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - ( MIN ( + col2 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT DISTINCT 80 AS col2 FROM tab0 AS cor0 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT 80 AS col2 FROM tab0 AS cor0 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT - COUNT( * ) * - COUNT( * ) + + - 42 + + + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-42

skipif mysql # not compatible
query I rowsort label-7011
SELECT - COUNT ( * ) * - COUNT ( * ) + + - 42 + + + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT 76 DIV + col2 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-20
-39
-57

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT 76 / + col2 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-20
-39
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7013
SELECT ALL MAX( - CAST( NULL AS SIGNED ) ) / - 4 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) ) / - 4 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT - + 39 IS NOT NULL
----

query I rowsort
SELECT col0 * - 63 FROM tab0
----
-5481
-6111
-945

query I rowsort
SELECT - ( - + col1 ) * - col1 * - + col2 AS col2 FROM tab0
----
308367
4410
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT ALL ( CAST( NULL AS SIGNED ) ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + 10 AS col1 FROM tab0
----
107
25
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7019
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col2 * - CAST( NULL AS SIGNED ) * - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7019
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col2 * - CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 55 + - 42 AS col1 FROM tab0 cor0
----
13
13
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - col2 < - 46 + - col0
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + 3 * col0 col1 FROM tab2 AS cor0
----
161
232
283

query II rowsort
SELECT col1, + 86 + 29 FROM tab0 cor0
----
1
115
21
115
81
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 AS col1, 2 + - 16 * col0 col1 FROM tab0 AS cor0
----
35
-1390
35
-1550
35
-238

query I rowsort
SELECT ALL - col0 + + 85 - + - col0 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT - MIN( + col1 ) - 49 AS col2 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-7026
SELECT - MIN ( + col1 ) - 49 AS col2 FROM tab2 AS cor0
----
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + 97 + - col2 * + col1 col2 FROM tab2 AS cor0
----
-1025
-2906
-3722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7028
SELECT - + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - 39 + - col1, - col1, + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7028
SELECT - + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - 39 + - col1, - col1, + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + - 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT SUM( + 47 ) AS col0 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-7031
SELECT SUM ( + 47 ) AS col0 FROM tab2 AS cor0
----
141

query I rowsort
SELECT ( - 48 ) AS col1 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7033
SELECT - MIN( DISTINCT - 58 ), 46 col0 FROM tab2 AS cor0
----
58
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7033
SELECT - MIN ( DISTINCT - 58 ), 46 col0 FROM tab2 AS cor0
----
58
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - + col1 + col0 AS col0 FROM tab1 AS cor0 WHERE 64 IS NOT NULL
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT + MAX( ALL 71 ) AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-7036
SELECT + MAX ( ALL 71 ) AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL col2 - - 32 FROM tab1 AS cor0
----
100
128
91

query I rowsort
SELECT - - 22 FROM tab0 AS cor0 WHERE + 11 IS NOT NULL
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * - 5 IS NULL
----

query I rowsort
SELECT ALL + ( - + col0 ) FROM tab0 WHERE - col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL - COUNT( - - 76 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - COUNT ( - - 76 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7042
SELECT col0 AS col1, - CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7042
SELECT col0 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7043
SELECT col2 DIV - + col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-7043
SELECT col2 / - + col1 AS col2 FROM tab1
----
-1
-11
-6

query II rowsort
SELECT ALL col1, 64 AS col2 FROM tab0
----
1
64
21
64
81
64

query I rowsort
SELECT DISTINCT - 78 * 52 * - col2 * - 14 AS col0 FROM tab1 AS cor0
----
-3350256
-3861312
-5451264

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT col2 DIV col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7046
SELECT col2 / col1 col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7048
SELECT DISTINCT + COUNT( * ) DIV + ( - 28 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT + COUNT ( * ) / + ( - 28 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - COUNT( DISTINCT + ( - + col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7049
SELECT - COUNT ( DISTINCT + ( - + col1 ) ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + col0 * col0 * + 86 + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7051
SELECT - col2 * 98 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( 67 * + CAST( + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7051
SELECT - col2 * 98 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( 67 * + CAST ( + col0 AS REAL ) )
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( + 76 ) - + - 5 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 76 * + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 * - col0, col0 FROM tab0
----
-225
15
-7569
87
-9409
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT 73 + + 48 DIV ( + 31 ) col1 FROM tab0
----
74
74
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7055
SELECT 73 + + 48 / ( + 31 ) col1 FROM tab0
----
74
74
74

query I rowsort
SELECT + col2 + col0 * + ( + 61 ) * + 93 AS col1 FROM tab0
----
493561
550380
85142

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL ( COUNT( * ) ) * - 49 * + ( - COUNT( * ) ) + - COUNT( * ) FROM tab0
----
438

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL ( COUNT ( * ) ) * - 49 * + ( - COUNT ( * ) ) + - COUNT ( * ) FROM tab0
----
438

onlyif mysql # DIV for integer division: 
query I rowsort label-7058
SELECT ALL + col1 + + col0 + + col0 * - 0 DIV col1 AS col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + col1 + + col0 + + col0 * - 0 / col1 AS col1 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT - col0 + CAST( NULL AS SIGNED ) + - col1 * + + 82 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT - col0 + CAST ( NULL AS INTEGER ) + - col1 * + + 82 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 80 * col0 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 34 col2 FROM tab0 AS cor0 WHERE NOT - col2 <= + 50 + - col0 + 42
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - - 12 * 34 - + col1 col1 FROM tab0
----
-312
-342
-474

query I rowsort
SELECT - col2 FROM tab2 WHERE 79 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - 77 + - - col1 + - 49 * + col1 * col2 AS col0 FROM tab2 AS cor0
----
-150920
-190424
-57503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 col2 FROM tab0 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL + MAX( col1 ) AS col0 FROM tab2 AS cor0 WHERE - 5 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + MAX ( col1 ) AS col0 FROM tab2 AS cor0 WHERE - 5 IS NULL
----
NULL

query I rowsort
SELECT + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT + 32 AS col2, + 2 + - col0 FROM tab0 AS cor0
----
32
-13
32
-85
32
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT DISTINCT + 55, COUNT( * ) AS col1 FROM tab2 AS cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-7070
SELECT DISTINCT + 55, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
55
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL 54 * + + COUNT( * ) FROM tab0 WHERE + col0 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL 54 * + + COUNT ( * ) FROM tab0 WHERE + col0 + col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) BETWEEN ( NULL ) AND + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT ( + COUNT( * ) ) * + + 35 AS col2 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-7073
SELECT ( + COUNT ( * ) ) * + + 35 AS col2 FROM tab0
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col2 FROM tab0
----
52
52
52

query I rowsort
SELECT - 44 FROM tab1 WHERE NOT - col1 < - 91
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT DISTINCT - col2 DIV + + 78 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - col2 / + + 78 AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT DISTINCT + MIN( - col2 ), 76 AS col0 FROM tab1 AS cor0
----
-96
76

skipif mysql # not compatible
query II rowsort label-7077
SELECT DISTINCT + MIN ( - col2 ), 76 AS col0 FROM tab1 AS cor0
----
-96
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL - + SUM( + + 13 ) AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - + SUM ( + + 13 ) AS col1 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT + - col2 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT + col0 * + 45 FROM tab0
----
3915
4365
675

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + - col2 + + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT 67 IS NOT NULL
----

query I rowsort
SELECT 81 * + col2 FROM tab1 AS cor0
----
4779
5508
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT DISTINCT SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( - + col0 ) * - - 97 col1 FROM tab2
----
-205252
-397312
-545625

query I rowsort
SELECT ALL - col2 * + ( + 46 ) FROM tab2
----
-1058
-1840
-2668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 - + col1 col2 FROM tab1
----
112
133
139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7090
SELECT col0 * CAST( NULL AS SIGNED ) AS col2, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-7090
SELECT col0 * CAST ( NULL AS INTEGER ) AS col2, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT col1 * + 16 FROM tab1
----
224
752
80

query I rowsort
SELECT - + col1 FROM tab1 WHERE - col0 - - col2 + col1 * 74 + + col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + col2 + + col1 FROM tab0 WHERE - 90 NOT BETWEEN NULL AND - - 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7094
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col2 - 29 FROM tab0 AS cor0
----
-128
-39
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7096
SELECT ALL + + col1 - 35 DIV + + 89 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL + + col1 - 35 / + + 89 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + 24 + + col1 FROM tab0 AS cor0
----
105
25
45

query III rowsort
SELECT * FROM tab2 WHERE NULL < + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT SUM( DISTINCT - col1 ) AS col0 FROM tab1 WHERE NOT - col0 NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT SUM ( DISTINCT - col1 ) AS col0 FROM tab1 WHERE NOT - col0 NOT IN ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL + COUNT( * ) * + 81 * - COUNT( * ) FROM tab1 AS cor0
----
-729

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + COUNT ( * ) * + 81 * - COUNT ( * ) FROM tab1 AS cor0
----
-729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7101
SELECT - - col2 * col1 * 35 / col1 + + - col1 * + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7101
SELECT - - col2 * col1 * 35 / col1 + + - col1 * + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + 14 * col1 + 43 AS col0, col0 - - 7 * - col2 AS col1 FROM tab0 AS cor0
----
-1091
-314
-251
17
29
-596

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 cor0 WHERE NOT 25 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * 5 col0, - col1 FROM tab1 AS cor0
----
295
-5
340
-47
480
-14

query I rowsort
SELECT DISTINCT + 18 + + - 36 FROM tab0 AS cor0 WHERE NULL >= 52 * col0 + - - col2 * - - col2 * col1 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT + 60 * + MIN( DISTINCT - ( - + 59 ) ) + - 88 FROM tab0 AS cor0
----
3452

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT + 60 * + MIN ( DISTINCT - ( - + 59 ) ) + - 88 FROM tab0 AS cor0
----
3452

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 22 NOT BETWEEN - ( 98 ) AND 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - col0 / 78 > + - col0
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT DISTINCT 33 DIV - col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT 33 / - col2 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND + + 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL 81 * + + MAX( 0 ) * MAX( - col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL 81 * + + MAX ( 0 ) * MAX ( - col1 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <> 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col2 ) * - 92 AS col1 FROM tab2
----
2116
3680
5336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7115
SELECT + col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT + col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 65, + 3 + col0 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-65
100
-65
18
-65
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT DISTINCT - - col0 DIV col2 + + 26 FROM tab2 WHERE NULL IS NULL
----
27
28

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT - - col0 / col2 + + 26 FROM tab2 WHERE NULL IS NULL
----
27
28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT + COUNT( ALL - + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7119
SELECT + COUNT ( ALL - + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN col0 + - - col1 * - col2 AND col2
----

query I rowsort
SELECT DISTINCT 89 + + + col0 * col2 AS col2 FROM tab0 AS cor0
----
794
959
9692

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT 9 * + + MAX( + col0 ) - + 38 + + COUNT( ALL + col0 ) + + MIN( + + col2 ) + - - 61 * - MIN( 82 ) col2 FROM tab1 AS cor0
----
-4159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7122
SELECT DISTINCT 9 * + + MAX ( + col0 ) - + 38 + + COUNT ( ALL + col0 ) + + MIN ( + + col2 ) + - - 61 * - MIN ( 82 ) col2 FROM tab1 AS cor0
----
-4159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7123
SELECT ALL 72 * - 73 * col0 AS col1, - col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
-268056
NULL
-446760
NULL
-478296
NULL

skipif mysql # not compatible
query II rowsort label-7123
SELECT ALL 72 * - 73 * col0 AS col1, - col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
-268056
NULL
-446760
NULL
-478296
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7124
SELECT col2 AS col0 FROM tab1 WHERE - 38 BETWEEN ( - - col0 ) AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7124
SELECT col2 AS col0 FROM tab1 WHERE - 38 BETWEEN ( - - col0 ) AND + + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + - col2 + + 53 col1 FROM tab0
----
-33
-85
4

query I rowsort
SELECT + - col1 FROM tab0 WHERE NULL IN ( + col0, + col1 / - - col2, 55 + col2 )
----

query I rowsort
SELECT - 87 + - ( - col1 ) AS col2 FROM tab1
----
-40
-73
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT col0 DIV + + col1 + - + col2 FROM tab1
----
-42
-67
-93

skipif mysql # not compatible
query I rowsort label-7128
SELECT col0 / + + col1 + - + col2 FROM tab1
----
-42
-67
-93

query I rowsort
SELECT - ( + 63 ) + + col1 AS col1 FROM tab1
----
-16
-49
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT + CAST( col0 AS SIGNED ) * + col0 * - + col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

skipif mysql # not compatible
query I rowsort label-7130
SELECT + CAST ( col0 AS INTEGER ) * + col0 * - + col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7131
SELECT + CAST( col2 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE col0 * + col0 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7131
SELECT + CAST ( col2 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE col0 * + col0 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + 26 )
----

query I rowsort
SELECT DISTINCT - col2 * col0 - + col2 AS col2 FROM tab0 AS cor0
----
-752
-880
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT - CAST( NULL AS SIGNED ) * + 89 + + AVG ( ALL - + col2 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7134
SELECT - CAST ( NULL AS INTEGER ) * + 89 + + AVG ( ALL - + col2 ) col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1 AS col0, col0 + - col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 * 28 col1 FROM tab2 AS cor0
----
2576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col1 + - 11 * + + col2 col2 FROM tab1 AS cor0 WHERE NOT ( - 31 ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL + + COUNT( * ) * + SUM( ALL - 35 ) + MIN( DISTINCT - - 6 ) FROM tab1 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + + COUNT ( * ) * + SUM ( ALL - 35 ) + MIN ( DISTINCT - - 6 ) FROM tab1 AS cor0
----
-309

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT ALL - col0 * col0 DIV 63 AS col2 FROM tab1 AS cor0
----
-114
-131
-41

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL - col0 * col0 / 63 AS col2 FROM tab1 AS cor0
----
-114
-131
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT DISTINCT col2 DIV + + 56 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT col2 / + + 56 FROM tab0
----
0
1

query I rowsort
SELECT ALL + col2 * + + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS SIGNED ) * - + SUM( + 33 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - + SUM ( + 33 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( 47 ) * - 4 FROM tab0
----
18612
1880
8836

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT SUM( ALL + 73 ) AS col2 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-7144
SELECT SUM ( ALL + 73 ) AS col2 FROM tab1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT MAX( + 21 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7145
SELECT MAX ( + 21 ) FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - 20 * - + MAX( DISTINCT col2 ) AS col2 FROM tab0
----
1980

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - 20 * - + MAX ( DISTINCT col2 ) AS col2 FROM tab0
----
1980

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = 43 * 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 2 FROM tab2 cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT - COUNT( * ) * + 44 + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-7149
SELECT - COUNT ( * ) * + 44 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7150
SELECT + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7150
SELECT + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col0 * + 54 + - 42 FROM tab2 AS cor0
----
2442
3414
4008

query I rowsort
SELECT DISTINCT - col1 + 74 AS col2 FROM tab1
----
27
60
69

query I rowsort
SELECT + 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL + col0 + ( - col1 ) * + + col1 AS col1 FROM tab0 cor0
----
-354
-6546
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - MAX( ALL + - 66 ) + + 1 AS col1 FROM tab1 cor0
----
67

skipif mysql # not compatible
query I rowsort label-7155
SELECT - MAX ( ALL + - 66 ) + + 1 AS col1 FROM tab1 cor0
----
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 8 * - col0 / + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NULL > col0 * + col0 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NULL > col0 * + col0 * - col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + col2 * - - 62 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + col1, 1 AS col2 FROM tab1 AS cor0
----
14
1
47
1
5
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT - AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT ALL - col2 + + col2 + col1 * col1 DIV col0 FROM tab1 AS cor0
----
0
24
3

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - col2 + + col2 + col1 * col1 / col0 FROM tab1 AS cor0
----
0
24
3

query II rowsort
SELECT 17, + col2 FROM tab0 AS cor0
----
17
10
17
47
17
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT - - COUNT( * ) - + 97 AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT - - COUNT ( * ) - + 97 AS col2 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT - - ( - 11 ) AS col1 FROM tab2 AS cor0
----
-11
-11
-11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + col0 NOT BETWEEN + ( 39 ) + + - 64 AND 53 * - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT DISTINCT MIN( ALL - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL + 68 AS col0 FROM tab0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT + col2 - - col2 - + col2 DIV + col1 - - col0 AS col0 FROM tab0
----
107
109
196

skipif mysql # not compatible
query I rowsort label-7168
SELECT + col2 - - col2 - + col2 / + col1 - - col0 AS col0 FROM tab0
----
107
109
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT - col1 + - - CAST( NULL AS SIGNED ) FROM tab1 WHERE - - 20 > - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT - col1 + - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - - 20 > - col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL 82 + + COUNT( * ) - - - 91 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL 82 + + COUNT ( * ) - - - 91 FROM tab1
----
-6

query I rowsort
SELECT - col1 - + col0 + - 58 FROM tab0
----
-154
-156
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7172
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) col1, MIN( - 3 ) + + + 12 FROM tab2 AS cor0
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7172
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) col1, MIN ( - 3 ) + + + 12 FROM tab2 AS cor0
----
NULL
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT - col0 + - + CAST( - - ( col0 ) AS SIGNED ) - 89 AS col0 FROM tab1 AS cor0
----
-191
-259
-271

skipif mysql # not compatible
query I rowsort label-7173
SELECT - col0 + - + CAST ( - - ( col0 ) AS INTEGER ) - 89 AS col0 FROM tab1 AS cor0
----
-191
-259
-271

query I rowsort
SELECT - + 92 * + ( + + 17 ) / col1 AS col1 FROM tab0 AS cor0 WHERE 56 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7175
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 7 + + col1 + + 41 IS NOT NULL
----

query I rowsort
SELECT - 3 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7179
SELECT - + 64 * + col0 * + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT - + 64 * + col0 * + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 48, col0 AS col1 FROM tab2 AS cor0
----
-48
46
-48
64
-48
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT CAST( NULL AS SIGNED ) * + - 44 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT CAST ( NULL AS INTEGER ) * + - 44 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + ( col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
189
3726
98

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + + AVG ( - 93 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7187
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL ( + ( col2 ) ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + MIN( ALL + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7189
SELECT + MIN ( ALL + col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT 55 + MAX( ALL + ( + + col2 ) ) FROM tab1
----
151

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT 55 + MAX ( ALL + ( + + col2 ) ) FROM tab1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT + SUM( col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7191
SELECT + SUM ( col1 ) AS col1 FROM tab2
----
195

query II rowsort
SELECT ALL - col1, - 82 AS col0 FROM tab2
----
-51
-82
-67
-82
-77
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT 73 + + COUNT( * ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT 73 + + COUNT ( * ) FROM tab1
----
76

query I rowsort
SELECT DISTINCT + col1 * - 16 AS col2 FROM tab1
----
-224
-752
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT - ( + MAX( ALL - + col0 ) ) + MIN( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7195
SELECT - ( + MAX ( ALL - + col0 ) ) + MIN ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-84

query I rowsort
SELECT + 32 + + + 9 FROM tab1 AS cor0
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7198
SELECT ALL - 26 AS col1, col2 DIV - 80 AS col2 FROM tab2 cor0
----
-26
0
-26
0
-26
0

skipif mysql # not compatible
query II rowsort label-7198
SELECT ALL - 26 AS col1, col2 / - 80 AS col2 FROM tab2 cor0
----
-26
0
-26
0
-26
0

query I rowsort
SELECT 9 * - col0 * + col0 FROM tab2
----
-19044
-36864
-50625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT CAST( + + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7200
SELECT CAST ( + + col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7201
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col0 * - col1 + + + col1 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT ALL - col1 * - - ( + 65 ) + - col2 + 97 - - CAST( - col0 AS SIGNED ) * + ( - 47 ) * + col1 * - 76 AS col0 FROM tab0 AS cor0
----
-346551
-4345195
-6527322

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - col1 * - - ( + 65 ) + - col2 + 97 - - CAST ( - col0 AS INTEGER ) * + ( - 47 ) * + col1 * - 76 AS col0 FROM tab0 AS cor0
----
-346551
-4345195
-6527322

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + 17 - - col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT + 65 + - MAX( + + 46 ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7205
SELECT + 65 + - MAX ( + + 46 ) FROM tab1 AS cor0
----
19

query I rowsort
SELECT ALL + - col2 - col2 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 + + + 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7208
SELECT + CAST( - 61 AS SIGNED ) + - - 66 * - 86 col0 FROM tab2 AS cor0
----
-5737
-5737
-5737

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7208
SELECT + CAST ( - 61 AS INTEGER ) + - - 66 * - 86 col0 FROM tab2 AS cor0
----
-5737
-5737
-5737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 * + col0 col0 FROM tab0
----
-4611
-5141
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7210
SELECT 47 / - 35 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT 47 / - 35 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT MIN( + - 63 ) - - + 19 col0 FROM tab0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7211
SELECT DISTINCT MIN ( + - 63 ) - - + 19 col0 FROM tab0
----
-44

query I rowsort
SELECT DISTINCT + col0 + ( 34 ) AS col1 FROM tab2 WHERE NOT - + col1 + col1 / ( 94 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT ALL - 20 * + CAST( NULL AS SIGNED ) * + + col1 / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL - 20 * + CAST ( NULL AS INTEGER ) * + + col1 / - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT COUNT( * ) + - - 56 AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7214
SELECT COUNT ( * ) + - - 56 AS col1 FROM tab1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7215
SELECT SUM( DISTINCT - col0 ) DIV ( COUNT( * ) ) + + - 34 col0 FROM tab2
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7215
SELECT SUM ( DISTINCT - col0 ) / ( COUNT ( * ) ) + + - 34 col0 FROM tab2
----
-95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + + 4 <> 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col0 FROM tab1
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT - col1 * col0 DIV 24 * + - 15 FROM tab1
----
255
2670
435

skipif mysql # not compatible
query I rowsort label-7218
SELECT - col1 * col0 / 24 * + - 15 FROM tab1
----
255
2670
435

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT + + 9, col1 AS col1 FROM tab0 cor0
----
9
1
9
21
9
81

query II rowsort
SELECT + col1 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL - col1 AS col2, 85 + + - 66 AS col2 FROM tab2 AS cor0
----
-51
19
-67
19
-77
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7223
SELECT - MIN( ALL + col2 ) AS col2, - MIN( col1 ) AS col2 FROM tab1
----
-59
-5

skipif mysql # not compatible
query II rowsort label-7223
SELECT - MIN ( ALL + col2 ) AS col2, - MIN ( col1 ) AS col2 FROM tab1
----
-59
-5

query II rowsort
SELECT - 11 * - col1 AS col0, - 97 + - 38 FROM tab0
----
11
-135
231
-135
891
-135

query I rowsort
SELECT + + 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 61 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( - col0 ) BETWEEN NULL AND ( - ( + col1 ) + - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( - col0 ) BETWEEN NULL AND ( - ( + col1 ) + - - col1 )
----
0

query I rowsort
SELECT ALL + 21 AS col2 FROM tab1 cor0
----
21
21
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 IS NOT NULL
----

query I rowsort
SELECT ALL + 27 * - col1 + - col2 * - 83 AS col1 FROM tab2 cor0
----
1241
3005
532

query I rowsort
SELECT ALL ( + - col2 ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - ( ( + col1 ) ) * 69 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT ( col2 ) DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7233
SELECT ( col2 ) / col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 * + + 31 FROM tab1
----
-1581
-2635
-2821

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT MIN( + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT MIN ( + + col1 ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT + 93 + col1 FROM tab0
----
114
174
94

query II rowsort
SELECT col0, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL col2 * + + 69 AS col0 FROM tab1
----
4071
4692
6624

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= - 96
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 61 > ( + ( - - ( - col2 ) ) - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 25 AS col2 FROM tab0 cor0
----
25
25
25

query I rowsort
SELECT ALL + col2 + + - 76 AS col0 FROM tab0 AS cor0
----
-29
-66
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7243
SELECT ALL + col1 * - CAST( NULL AS DECIMAL ) + - col0 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL + col1 * - CAST ( NULL AS REAL ) + - col0 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 56 * col2 * col2 col1 FROM tab1 AS cor0
----
-194936
-258944
-516096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7245
SELECT ALL CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, - MAX( ALL - - col0 ) + + 44 FROM tab2
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-7245
SELECT ALL CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, - MAX ( ALL - - col0 ) + + 44 FROM tab2
----
NULL
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT DISTINCT 96 + - ( + COUNT( * ) ) FROM tab0 WHERE NOT col1 >= NULL
----
96

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT 96 + - ( + COUNT ( * ) ) FROM tab0 WHERE NOT col1 >= NULL
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7247
SELECT - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7247
SELECT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7248
SELECT ALL - - COUNT( * ) + + CAST( NULL AS SIGNED ) + + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT - - col0 DIV - col1 + - 68 * + 72 AS col0 FROM tab1 AS cor0
----
-4897
-4899
-4913

skipif mysql # not compatible
query I rowsort label-7249
SELECT - - col0 / - col1 + - 68 * + 72 AS col0 FROM tab1 AS cor0
----
-4897
-4899
-4913

query II rowsort
SELECT + + col1, col2 * - + col2 FROM tab0 AS cor0
----
1
-9801
21
-100
81
-2209

query I rowsort
SELECT ALL - - 0 - + + col2 + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1 - col0 col2, ( - 72 ) AS col0, - + 4 AS col2 FROM tab0 AS cor0
----
9 values hashing to e5aa09e7f25fdd8e494cc6fafb47ca41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - + col1 ) col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - + 57 + col2 FROM tab2 AS cor0 WHERE 45 * + - 4 / + 36 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - SUM( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7256
SELECT - SUM ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 - 66 * - - 44 col1 FROM tab0
----
-2839
-2839
-2839

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT 73 * - COUNT( * ) FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-7258
SELECT 73 * - COUNT ( * ) FROM tab2
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT + - col1 DIV - - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7259
SELECT + - col1 / - - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 68 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col2 AS col1, + col0 * + 79 AS col2 FROM tab0
----
-10
6873
-47
1185
-99
7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT COUNT( DISTINCT - - 62 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7263
SELECT COUNT ( DISTINCT - - 62 ) AS col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 * col2 - - col1 + + + 87 col0 FROM tab1 cor0
----
-1324
-1498
-2203

query I rowsort
SELECT DISTINCT + ( + 19 ) FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT - - MIN( DISTINCT - 63 ) * 88 AS col0 FROM tab2 AS cor0
----
-5544

skipif mysql # not compatible
query I rowsort label-7266
SELECT - - MIN ( DISTINCT - 63 ) * 88 AS col0 FROM tab2 AS cor0
----
-5544

query I rowsort
SELECT DISTINCT + 85 + - + col2 AS col0 FROM tab1 AS cor0
----
-11
17
26

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col0 < + 32
----
23
40
58

query I rowsort
SELECT DISTINCT 80 + col0 * - + 91 FROM tab1 AS cor0 WHERE NOT NULL <> - ( 58 ) * col0
----

query I rowsort
SELECT 64 + - col1 - - 16 AS col2 FROM tab2
----
13
29
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT 5 + - CAST( NULL AS SIGNED ) * - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT 5 + - CAST ( NULL AS INTEGER ) * - - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT ALL 48 + - col0 + + CAST( col0 AS SIGNED ) FROM tab0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL 48 + - col0 + + CAST ( col0 AS INTEGER ) FROM tab0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + 26 + + 39 + + COUNT( * ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 26 + + 39 + + COUNT ( * ) FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT DISTINCT COUNT( col0 ) + - + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT COUNT ( col0 ) + - + COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 52 / - + 20 - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( col2 ) ) IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + - col1 ) IS NULL
----

query I rowsort
SELECT 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + 87 * 34 AS col1 FROM tab0
----
2958
2958
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT DISTINCT + 88 + COUNT( * ) * + + 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
484

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT + 88 + COUNT ( * ) * + + 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
484

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT ( COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7281
SELECT DISTINCT ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col0 - + col2 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-767
-967
-9799

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 4 + + + col1 <= + ( + - col2 ) * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + + col2 + 17 + - col2 col1 FROM tab0 AS cor0
----
104
114
32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 94 <= + 85 / + 22
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7286
SELECT DISTINCT - - 26 - - - COUNT( + col0 ), + 48 + SUM( ALL - ( ( - col1 ) ) ) AS col2, - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
23
114
NULL

skipif mysql # not compatible
query III rowsort label-7286
SELECT DISTINCT - - 26 - - - COUNT ( + col0 ), + 48 + SUM ( ALL - ( ( - col1 ) ) ) AS col2, - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
23
114
NULL

query I rowsort
SELECT DISTINCT - 53 - + + 82 FROM tab0 AS cor0
----
-135

onlyif mysql # DIV for integer division: 
query II rowsort label-7288
SELECT - - col0 DIV - 14 + + col0, 20 AS col0 FROM tab0 cor0
----
14
20
81
20
91
20

skipif mysql # not compatible
query II rowsort label-7288
SELECT - - col0 / - 14 + + col0, 20 AS col0 FROM tab0 cor0
----
14
20
81
20
91
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT - - ( - + COUNT( * ) ) * + COUNT( * ) * + - 50 AS col1 FROM tab0 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - - ( - + COUNT ( * ) ) * + COUNT ( * ) * + - 50 AS col1 FROM tab0 AS cor0
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT MIN( - col0 ) FROM tab1 WHERE NOT - - 24 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-7290
SELECT MIN ( - col0 ) FROM tab1 WHERE NOT - - 24 IS NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL 53 * COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL 53 * COUNT ( * ) FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT DISTINCT COUNT( col2 ) * 3 + 64 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT COUNT ( col2 ) * 3 + 64 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7293
SELECT - COUNT( * ) AS col2, COUNT( * ) * + COUNT( * ) col2 FROM tab1
----
-3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7293
SELECT - COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) col2 FROM tab1
----
-3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col2 col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT 93 * - - col1 * + 62 FROM tab0
----
121086
467046
5766

query I rowsort
SELECT 11 * col2 AS col1 FROM tab1
----
1056
649
748

query II rowsort
SELECT ALL col1 AS col1, - 25 AS col2 FROM tab2
----
51
-25
67
-25
77
-25

query I rowsort
SELECT ALL - 5 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( ( ( NOT ( NULL <> NULL ) ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7300
SELECT - col2 DIV + + 72 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7300
SELECT - col2 / + + 72 col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * ( + col1 ) + - col1 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query II rowsort label-7303
SELECT + 90 + 98 * - - 93, COUNT( * ) AS col2 FROM tab1, tab2 AS cor0 WHERE - 29 * + 21 IS NULL
----
9204
0

skipif mysql # not compatible
query II rowsort label-7303
SELECT + 90 + 98 * - - 93, COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0 WHERE - 29 * + 21 IS NULL
----
9204
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7304
SELECT DISTINCT CAST( NULL AS SIGNED ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7304
SELECT DISTINCT CAST ( NULL AS INTEGER ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 AS col0, - 69 col0 FROM tab1
----
40
-69
40
-69
40
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL - COUNT( * ) + + 62 AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL - COUNT ( * ) + + 62 AS col0 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7307
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 29 * - col1 < + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7307
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 29 * - col1 < + - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 + col2 col0 FROM tab0 AS cor0
----
-24
13
65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( + + 49 + + ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - col2 * + 75 AS col2 FROM tab2 AS cor0
----
-1679
-2936
-4275

query I rowsort
SELECT DISTINCT - ( 98 ) - col1 FROM tab2 WHERE 86 NOT BETWEEN ( NULL ) AND + col2 + - col1 / + col1
----
-149
-165
-175

query I rowsort
SELECT 55 * 31 AS col2 FROM tab0
----
1705
1705
1705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT DISTINCT + MIN( - col1 ) DIV COUNT( * ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + MIN ( - col1 ) / COUNT ( * ) AS col2 FROM tab0
----
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT - 71 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * + 30 AS col1 FROM tab0
----
2610
2910
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT - col1 * CAST( + col0 * + col0 AS SIGNED ) AS col1 FROM tab1
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-7316
SELECT - col1 * CAST ( + col0 * + col0 AS INTEGER ) AS col1 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT + 43 * col2 + col0 FROM tab1
----
2622
3015
4179

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7318
SELECT DISTINCT col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT col1 * + 62 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT col1 * + 62 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7319
SELECT + 19 * 91 + col2 * - 55 FROM tab2 WHERE NOT - col1 * CAST( - col0 AS SIGNED ) IS NULL
----
-1461
-471
464

skipif mysql # not compatible
query I rowsort label-7319
SELECT + 19 * 91 + col2 * - 55 FROM tab2 WHERE NOT - col1 * CAST ( - col0 AS INTEGER ) IS NULL
----
-1461
-471
464

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT ALL col2 DIV - 36 AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL col2 / - 36 AS col0 FROM tab1
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL + 35 * COUNT( * ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + 35 * COUNT ( * ) FROM tab0
----
105

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - 39 * COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7323
SELECT - 39 * COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
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-7324
SELECT + CAST ( col1 AS INTEGER ) col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM tab1 WHERE NOT 49 / + col1 IN ( col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT 49 / + col1 IN ( col0 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT 27 DIV col0 + + col0 FROM tab0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-7326
SELECT 27 / col0 + + col0 FROM tab0
----
16
87
97

query I rowsort
SELECT ( - col1 ) FROM tab0 WHERE NOT NULL >= 40
----

query I rowsort
SELECT ( col0 ) - - col2 FROM tab2
----
104
133
69

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 * 30 ) < ( 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + 4 * 75 AS col1 FROM tab2
----
223
233
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 * - col0 FROM tab0 WHERE col1 + - col1 BETWEEN ( ( - 53 ) ) AND ( - 32 )
----

query I rowsort
SELECT - 96 * - AVG ( ALL col2 ) FROM tab0 WHERE NOT NULL > col0
----
NULL

query I rowsort
SELECT ALL + 50 + - col0 FROM tab0
----
-37
-47
35

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( + col2 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + SUM( DISTINCT + 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-7336
SELECT + SUM ( DISTINCT + 91 ) FROM tab0
----
91

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( - col0 * col1 + col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7338
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN CAST( - 79 AS SIGNED ) + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7338
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN CAST ( - 79 AS INTEGER ) + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 53 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 3 AS col0 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL MAX( ALL col2 ) * MAX( ALL col1 ) FROM tab1 WHERE NOT col2 NOT BETWEEN ( - 21 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL MAX ( ALL col2 ) * MAX ( ALL col1 ) FROM tab1 WHERE NOT col2 NOT BETWEEN ( - 21 ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 61 AS col0 FROM tab2 AS cor0
----
-1403
-2440
-3538

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7343
SELECT ALL + CAST( NULL AS DECIMAL ) * + 50 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-7343
SELECT ALL + CAST ( NULL AS REAL ) * + 50 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 BETWEEN col2 AND col1 + 56 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT ALL col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = 91
----

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT + CAST( - AVG ( DISTINCT col2 ) AS SIGNED ) col2 FROM tab1
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7346
SELECT + CAST ( - AVG ( DISTINCT col2 ) AS INTEGER ) col2 FROM tab1
----
-74

query I rowsort
SELECT DISTINCT + col2 + 92 AS col1 FROM tab1
----
151
160
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) / + col1 + + col0 AND + col2 * 2
----

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) / + col1 + + col0 AND + col2 * 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT COUNT( * ) + 73 * 73 AS col1 FROM tab1 AS cor0
----
5332

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT COUNT ( * ) + 73 * 73 AS col1 FROM tab1 AS cor0
----
5332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT col1 FROM tab0 AS cor0 WHERE + col1 BETWEEN 57 AND - CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-7350
SELECT col1 FROM tab0 AS cor0 WHERE + col1 BETWEEN 57 AND - CAST ( NULL AS INTEGER ) * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7352
SELECT SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT DISTINCT - + col0 DIV + 54 AS col2 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - + col0 / + 54 AS col2 FROM tab2 cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL - MIN( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL - MIN ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT ( - CAST( NULL AS SIGNED ) ) * + 15 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT ( - CAST ( NULL AS INTEGER ) ) * + 15 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 15 + - 81 FROM tab1 cor0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 18 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 36 + col2 NOT BETWEEN NULL AND col2 / 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT DISTINCT - col2 DIV - ( + 66 - 35 ) AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT - col2 / - ( + 66 - 35 ) AS col2 FROM tab0 AS cor0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - col2 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab2 WHERE + 67 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT COUNT( * ) * + ( 55 ) + - 44 * + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7363
SELECT COUNT ( * ) * + ( 55 ) + - 44 * + COUNT ( * ) FROM tab0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7364
SELECT ( + COUNT( * ) ) DIV - 7 + + 22 * COUNT( * ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7364
SELECT ( + COUNT ( * ) ) / - 7 + + 22 * COUNT ( * ) AS col0 FROM tab1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7365
SELECT - MAX( - 85 ) + - CAST( 40 + + CAST( NULL AS SIGNED ) * COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT - MAX ( - 85 ) + - CAST ( 40 + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT col1 + - + col2 DIV - col1 AS col0 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-7366
SELECT col1 + - + col2 / - col1 AS col0 FROM tab0
----
100
21
81

query III rowsort
SELECT * FROM tab2 WHERE col2 = ( + 0 * 4 )
----

query I rowsort
SELECT + 35 * - col1 * col2 + - 30 AS col1 FROM tab1
----
-10355
-111890
-47070

query I rowsort
SELECT + col1 + + col0 * + col2 FROM tab0
----
786
891
9604

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT 16 DIV + + col2 * + 70 + col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7370
SELECT 16 / + + col2 * + 70 + col1 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT ALL ( MIN( ALL col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL ( MIN ( ALL col1 ) ) AS col0 FROM tab0
----
1

query I rowsort
SELECT col0 + 84 * + 80 FROM tab1
----
6771
6805
6811

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT + MIN( col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7373
SELECT + MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL + 71 FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7375
SELECT ALL - 48 FROM tab0 AS cor0 WHERE + 29 + col0 BETWEEN ( NULL ) AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL - 48 FROM tab0 AS cor0 WHERE + 29 + col0 BETWEEN ( NULL ) AND ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL AVG ( 74 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL AVG ( 74 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + 65
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 80 * - 90 ) NOT BETWEEN + col1 * + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT COUNT( DISTINCT - 35 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7378
SELECT COUNT ( DISTINCT - 35 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT - ( CAST( + col2 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7379
SELECT - ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT - col1 - - - 97 AS col0 FROM tab1
----
-102
-111
-144

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
61

query I rowsort
SELECT col1 + 96 FROM tab1 WHERE ( - - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT ALL - MIN( DISTINCT - - 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL - MIN ( DISTINCT - - 72 ) FROM tab2
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 - + col2 col0 FROM tab2
----
-1196
-3120
-3944

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( col1 ) <= col2 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 25 AS col0 FROM tab2 cor0 WHERE NOT + 68 = NULL
----

query II rowsort
SELECT + col1, 41 FROM tab0 cor0
----
1
41
21
41
81
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 6 )
----

query I rowsort
SELECT ( - 79 ) FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7390
SELECT ALL MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT + CAST( + col0 AS DECIMAL ) * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT + CAST ( + col0 AS REAL ) * col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + + ( - 41 ) FROM tab0 AS cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT - COUNT( + col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7393
SELECT - COUNT ( + col1 ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - 23 ) = ( 35 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 + - ( 29 ) >= NULL
----

query I rowsort
SELECT DISTINCT col2 * - - col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL + col1 * + 45 AS col2 FROM tab2
----
2295
3015
3465

query I rowsort
SELECT DISTINCT 45 * + ( - col2 ) AS col2 FROM tab1
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL - COUNT( ALL col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL - COUNT ( ALL col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - col2 * 95 NOT IN ( - 63 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + 93 * - COUNT( * ) + - ( - 40 ) AS col0 FROM tab0 cor0
----
-239

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + 93 * - COUNT ( * ) + - ( - 40 ) AS col0 FROM tab0 cor0
----
-239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + col0 ) + - - CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + col0 ) + - - CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT ALL + col2 + - ( 73 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + col2 + - ( 73 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT col0 * - 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-7408
SELECT col0 * - 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT - COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT 40 FROM tab0 AS cor0 WHERE + CAST( - + 46 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7410
SELECT 40 FROM tab0 AS cor0 WHERE + CAST ( - + 46 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 80 - + - 2 * 31 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * col0 IS NULL
----
-18
-18
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL - + CAST( NULL AS SIGNED ) * + 54 + + SUM( - - col1 ) + 88 + - 15 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 54 + + SUM ( - - col1 ) + 88 + - 15 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * - ( - 0 ) + - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT ALL - + MIN( - col2 ) * - CAST( NULL AS SIGNED ) + 87 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - + MIN ( - col2 ) * - CAST ( NULL AS INTEGER ) + 87 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL + SUM( + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + SUM ( + - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL col2 * + ( - - col1 ) AS col0 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT ALL col0 AS col0, col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 < NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7420
SELECT - AVG ( ALL col0 ) / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT - AVG ( ALL col0 ) / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 38 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7422
SELECT CAST( NULL AS SIGNED ) * - - 5 AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7422
SELECT CAST ( NULL AS INTEGER ) * - - 5 AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + COUNT( * ) * MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7423
SELECT + COUNT ( * ) * MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT - - 54 / 89 / - col2 + - col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 58 * + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT DISTINCT - COUNT( ALL - - 30 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT - COUNT ( ALL - - 30 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT + - 16 DIV 50 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT + - 16 / 50 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN + - ( + ( - + ( CAST( + 84 AS SIGNED ) ) ) ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN + - ( + ( - + ( CAST ( + 84 AS INTEGER ) ) ) ) AND + col0
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT NULL < ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT DISTINCT + ( - CAST( + 47 AS SIGNED ) ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7430
SELECT DISTINCT + ( - CAST ( + 47 AS INTEGER ) ) col1 FROM tab1
----
-47

query II rowsort
SELECT ALL - 13 AS col2, + col1 AS col2 FROM tab0
----
-13
1
-13
21
-13
81

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab0 WHERE - 7 * - 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53 col1, - col0 AS col1 FROM tab0 AS cor0
----
53
-15
53
-87
53
-97

query I rowsort
SELECT DISTINCT + ( + 44 ) FROM tab0 cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7435
SELECT DISTINCT + col0 AS col1, - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7435
SELECT DISTINCT + col0 AS col1, - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab2, tab0 AS cor0 WHERE ( - + 63 ) IS NOT NULL
----
1

query I rowsort
SELECT ALL + 22 + - col2 AS col2 FROM tab2 cor0
----
-1
-18
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + - ( - col1 ) IS NULL
----

query I rowsort
SELECT - 10 AS col0 FROM tab1 AS cor0 WHERE 90 + col1 < + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 99 col2 FROM tab2
----
2277
3960
5742

query I rowsort
SELECT DISTINCT col2 - 9 - - ( - - col1 ) FROM tab2
----
108
116
65

query I rowsort
SELECT ALL + col0 - - + col0 * 63 AS col0 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT col2 + - col1 * - col2 * + 52 FROM tab2
----
160200
202130
61019

query I rowsort
SELECT ALL 62 * + + 21 AS col0 FROM tab2
----
1302
1302
1302

query I rowsort
SELECT + + 31 + + col0 FROM tab1 WHERE NULL IS NULL
----
116
122
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT 80 + - COUNT( * ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT 80 + - COUNT ( * ) AS col2 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT ALL - col1 * + - col2 * + + col2 + - 16 DIV + 24 - + - col1 FROM tab0 AS cor0
----
179010
2121
9802

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - col1 * + - col2 * + + col2 + - 16 / + 24 - + - col1 FROM tab0 AS cor0
----
179010
2121
9802

query I rowsort
SELECT DISTINCT 74 + + 63 AS col1 FROM tab2 cor0
----
137

query I rowsort
SELECT DISTINCT + - 84 FROM tab1 cor0
----
-84

query I rowsort
SELECT - ( + 25 ) FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT ALL 80 DIV + 69 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL 80 / + 69 AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 24 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - 90 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col1 + + col0
----

query I rowsort
SELECT 36 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT + + ( + 16 ) DIV - col1 AS col0 FROM tab1 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7461
SELECT + + ( + 16 ) / - col1 AS col0 FROM tab1 cor0
----
-1
-3
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7463
SELECT + - 59 DIV + + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7463
SELECT + - 59 / + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT - COUNT( + 7 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7465
SELECT - COUNT ( + 7 ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 72 col2 FROM tab2 AS cor0
----
-72
-72
-72

query II rowsort
SELECT - col0, - col0 FROM tab1 cor0
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT MAX( - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT MAX ( - col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7470
SELECT DISTINCT * FROM tab1 WHERE + CAST( 62 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7470
SELECT DISTINCT * FROM tab1 WHERE + CAST ( 62 AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + + col0 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT - COUNT( * ) + - AVG ( col1 ) col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7472
SELECT DISTINCT - COUNT ( * ) + - AVG ( col1 ) col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT DISTINCT - CAST( + ( + 23 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT - CAST ( + ( + 23 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - + col2 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT DISTINCT - 70 + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT - 70 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT COUNT( * ) * + MAX( - col0 ) col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7476
SELECT COUNT ( * ) * + MAX ( - col0 ) col1 FROM tab0 AS cor0
----
-45

query II rowsort
SELECT - 57 * + 35 AS col1, col0 FROM tab0 AS cor0
----
-1995
15
-1995
87
-1995
97

query I rowsort
SELECT - 0 + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT DISTINCT + CAST( + 24 AS SIGNED ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + CAST ( + 24 AS INTEGER ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND + - 52 * col2 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND + - 52 * col2 / - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT - col2 * ( - col2 ) DIV - + 21 FROM tab0
----
-105
-4
-466

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - col2 * ( - col2 ) / - + 21 FROM tab0
----
-105
-4
-466

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > col0 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 0 col0 FROM tab2 cor0
----
-46
0
-64
0
-75
0

query I rowsort
SELECT + - ( 63 ) * col1 FROM tab2 AS cor0
----
-3213
-4221
-4851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT + col0 * - + col1 DIV col1 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-7487
SELECT + col0 * - + col1 / col1 col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + - ( + 79 ) * + col0 AS col2 FROM tab0 cor0
----
-1185
-6873
-7663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT DISTINCT - CAST( - AVG ( col2 ) AS SIGNED ) * - 77 * + COUNT( * ) FROM tab0 AS cor0
----
-12012

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT - CAST ( - AVG ( col2 ) AS INTEGER ) * - 77 * + COUNT ( * ) FROM tab0 AS cor0
----
-12012

query I rowsort
SELECT DISTINCT + col2 * - col0 * - + col2 - - + col2 FROM tab1 AS cor0
----
295944
420852
470112

query I rowsort
SELECT DISTINCT - col1 * - + col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT 7 - 91 AS col2 FROM tab0
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT DISTINCT CAST( - 23 AS SIGNED ) * - - col0 + col0 - - - col0 + col1 * - + 33 AS col0 FROM tab2
----
-2741
-3936
-4013

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT CAST ( - 23 AS INTEGER ) * - - col0 + col0 - - - col0 + col1 * - + 33 AS col0 FROM tab2
----
-2741
-3936
-4013

query I rowsort
SELECT ALL - ( - col0 ) * + col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT - MAX( ALL + - 75 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7495
SELECT - MAX ( ALL + - 75 ) FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + COUNT( ALL + 71 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7496
SELECT + COUNT ( ALL + 71 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + col0 * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT 51 * + + SUM( col1 ) FROM tab2 AS cor0
----
9945

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT 51 * + + SUM ( col1 ) FROM tab2 AS cor0
----
9945

query I rowsort
SELECT DISTINCT col0 + col0 AS col1 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col0 * - 41
----
102
170
182

query I rowsort
SELECT 55 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7501
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) / CAST( NULL AS SIGNED ), 35 col2 FROM tab0
----
NULL
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7501
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) / CAST ( NULL AS INTEGER ), 35 col2 FROM tab0
----
NULL
35

query I rowsort
SELECT ALL col2 * + - col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT + + COUNT( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7503
SELECT + + COUNT ( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL MIN( + + ( col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL MIN ( + + ( col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT col0 DIV + + 30 + - + col0 AS col2 FROM tab1 AS cor0
----
-50
-83
-88

skipif mysql # not compatible
query I rowsort label-7505
SELECT col0 / + + 30 + - + col0 AS col2 FROM tab1 AS cor0
----
-50
-83
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + ( + - COUNT( ALL - + col1 ) ) * + MAX( ALL - col1 ) - + + 27 FROM tab2 AS cor0 WHERE NOT + 20 * 41 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT + ( + - COUNT ( ALL - + col1 ) ) * + MAX ( ALL - col1 ) - + + 27 FROM tab2 AS cor0 WHERE NOT + 20 * 41 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT COUNT( + + col2 ) * - 36 * + - 52 AS col2 FROM tab2 AS cor0
----
5616

skipif mysql # not compatible
query I rowsort label-7507
SELECT COUNT ( + + col2 ) * - 36 * + - 52 AS col2 FROM tab2 AS cor0
----
5616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + col1 - + col0 col0 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT DISTINCT ( col0 ) DIV - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT ( col0 ) / - col1 FROM tab1 AS cor0
----
-1
-17
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <= NULL
----

query II rowsort
SELECT ALL + col0 AS col1, 95 AS col0 FROM tab1 AS cor0
----
51
95
85
95
91
95

onlyif mysql # DIV for integer division: 
query II rowsort label-7512
SELECT ALL - - 77 AS col0, col1 DIV col2 * + col2 AS col1 FROM tab2 AS cor0
----
77
40
77
46
77
58

skipif mysql # not compatible
query II rowsort label-7512
SELECT ALL - - 77 AS col0, col1 / col2 * + col2 AS col1 FROM tab2 AS cor0
----
77
40
77
46
77
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + - ( + col1 )
----

query II rowsort
SELECT ALL - col1 AS col0, col1 AS col1 FROM tab1
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col1 IS NOT NULL
----

query I rowsort
SELECT + - col2 AS col0 FROM tab0 WHERE NOT col0 * + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT ALL col1 DIV + + 42 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL col1 / + + 42 FROM tab1
----
0
0
1

query II rowsort
SELECT DISTINCT - col2 AS col1, 19 AS col2 FROM tab0
----
-10
19
-47
19
-99
19

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + - col0 * - 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 43 FROM tab0 WHERE NULL IS NULL
----
43
43
43

onlyif mysql # DIV for integer division: 
query II rowsort label-7521
SELECT DISTINCT - col2 AS col0, col2 DIV col0 - + + ( - + 24 ) AS col0 FROM tab0
----
-10
24
-47
27
-99
25

skipif mysql # not compatible
query II rowsort label-7521
SELECT DISTINCT - col2 AS col0, col2 / col0 - + + ( - + 24 ) AS col0 FROM tab0
----
-10
24
-47
27
-99
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 57 - + 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col1 + - 26 FROM tab0 cor0
----
-107
-27
-47

query II rowsort
SELECT ALL + ( - - col2 ) + - + col1, + ( + col0 ) AS col2 FROM tab0
----
-11
87
-34
15
98
97

query I rowsort
SELECT ( + 62 ) - + - col1 + - col0 FROM tab0 AS cor0
----
-34
-4
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 17 ) + + col1 col2 FROM tab2 cor0
----
68
84
94

query I rowsort
SELECT DISTINCT - - 57 + - + 35 * - - 67 FROM tab1 AS cor0
----
-2288

query II rowsort
SELECT ALL - col0 - + + 3, + col1 * col1 AS col1 FROM tab1 AS cor0
----
-54
196
-88
25
-94
2209

query I rowsort
SELECT DISTINCT - col0 - + + col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7530
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7531
SELECT * FROM tab0 WHERE NOT ( col1 * + - CAST( - col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7531
SELECT * FROM tab0 WHERE NOT ( col1 * + - CAST ( - col2 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT ( - 53 ) * - - COUNT( * ) * + - MIN( DISTINCT + + 25 ) * + ( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT ( - 53 ) * - - COUNT ( * ) * + - MIN ( DISTINCT + + 25 ) * + ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7533
SELECT ALL 31, - COUNT( * ) AS col2 FROM tab2
----
31
-3

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL 31, - COUNT ( * ) AS col2 FROM tab2
----
31
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + MAX( ALL - 48 ) AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-7535
SELECT + MAX ( ALL - 48 ) AS col0 FROM tab2
----
-48

query I rowsort
SELECT + ( - + col0 ) * - + 75 AS col2 FROM tab0
----
1125
6525
7275

query II rowsort
SELECT DISTINCT + + 25 AS col2, col1 AS col1 FROM tab2 AS cor0
----
25
51
25
67
25
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( col1 ) BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7539
SELECT ALL CAST( + 54 AS SIGNED ) AS col1, 85 AS col2 FROM tab2 cor0
----
54
85
54
85
54
85

skipif mysql # not compatible
query II rowsort label-7539
SELECT ALL CAST ( + 54 AS INTEGER ) AS col1, 85 AS col2 FROM tab2 cor0
----
54
85
54
85
54
85

query I rowsort
SELECT 36 FROM tab2 AS cor0 WHERE NOT 58 - - 81 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 96 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7542
SELECT COUNT( * ) + + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT COUNT ( * ) + + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT COUNT( * ) + 29 AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7543
SELECT COUNT ( * ) + 29 AS col2 FROM tab2 AS cor0
----
32

query I rowsort
SELECT - 70 * - 61 - col2 AS col1 FROM tab1 AS cor0
----
4174
4202
4211

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col1 FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL MAX( + - 94 ) AS col0 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL MAX ( + - 94 ) AS col0 FROM tab2
----
-94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - - col1 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT + + MIN( + + col1 ) + - ( 7 ) AS col1 FROM tab2 cor0
----
44

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT + + MIN ( + + col1 ) + - ( 7 ) AS col1 FROM tab2 cor0
----
44

query I rowsort
SELECT - + col1 - - + col2 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
2175
89
9899

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT + ( - COUNT( * ) ) + 82 AS col1, SUM( DISTINCT - 25 ) FROM tab0 AS cor0
----
79
-25

skipif mysql # not compatible
query II rowsort label-7551
SELECT + ( - COUNT ( * ) ) + 82 AS col1, SUM ( DISTINCT - 25 ) FROM tab0 AS cor0
----
79
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL 66 + + COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL 66 + + COUNT ( * ) FROM tab1
----
69

query I rowsort
SELECT - col0 * - - col2 * + 86 FROM tab1 cor0
----
-421056
-431290
-532168

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT - + col1 DIV 16 * + 34 FROM tab0 AS cor0
----
-170
-34
0

skipif mysql # not compatible
query I rowsort label-7554
SELECT - + col1 / 16 * + 34 FROM tab0 AS cor0
----
-170
-34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT + ( - MIN( + + col0 ) ) col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7555
SELECT + ( - MIN ( + + col0 ) ) col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT col0 - 53 FROM tab0 cor0
----
-38
34
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - 11 + + - 8 - - + col2 IN ( - 96 * col2 + - 84, - col0, col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT - ( - SUM( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7558
SELECT - ( - SUM ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query II rowsort label-7559
SELECT 95 AS col1, + 44 * + COUNT( * ) - - 93 col2 FROM tab2 WHERE NOT + - col2 BETWEEN + 31 AND + 61 * - + col1
----
95
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7559
SELECT 95 AS col1, + 44 * + COUNT ( * ) - - 93 col2 FROM tab2 WHERE NOT + - col2 BETWEEN + 31 AND + 61 * - + col1
----
95
225

onlyif mysql # DIV for integer division: 
query I rowsort label-7560
SELECT - 3 DIV 37 * + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7560
SELECT - 3 / 37 * + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - col2 AS col0, 39 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 AS col0, col2 * 23 col1 FROM tab0
----
16
1081
16
2277
16
230

query I rowsort
SELECT 83 * - - 44 AS col0 FROM tab1
----
3652
3652
3652

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT - COUNT( * ) AS col1, + 57 col0 FROM tab1 AS cor0
----
-3
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7564
SELECT - COUNT ( * ) AS col1, + 57 col0 FROM tab1 AS cor0
----
-3
57

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7566
SELECT DISTINCT - COUNT( * ) + - - ( COUNT( * ) ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT - COUNT ( * ) + - - ( COUNT ( * ) ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 15 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 25 + col0 * col2 * - + 81 col2 FROM tab2
----
-208360
-353800
-86273

query I rowsort
SELECT DISTINCT col1 * 94 * + 41 FROM tab0
----
312174
3854
80934

query I rowsort
SELECT ALL ( - + 12 ) * + col0 * + ( 82 ) FROM tab2
----
-45264
-62976
-73800

query I rowsort
SELECT - col2 + + 98 * 79 AS col2 FROM tab0
----
7643
7695
7732

query I rowsort
SELECT ALL - 73 + + - col1 + - 59 AS col0 FROM tab2 AS cor0
----
-183
-199
-209

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( - 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 / - - col2 AS col2 FROM tab0 cor0 WHERE + col1 <= - + col1
----

query I rowsort
SELECT ALL col2 * - - col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT DISTINCT + 48 AS col0, col1 AS col0 FROM tab0
----
48
1
48
21
48
81

query I rowsort
SELECT - 40 + - col2 FROM tab0 AS cor0
----
-139
-50
-87

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab1 AS cor0 WHERE NOT - 94 * - col2 >= - col2
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 99 IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, - col0, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( 97 ) - + col0 BETWEEN 36 AND - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7582
SELECT + SUM ( + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7583
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( NULL AS DECIMAL ) / - col2 + - - 75 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7583
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( NULL AS REAL ) / - col2 + - - 75 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT DISTINCT SUM( + 20 ) AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT SUM ( + 20 ) AS col2 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7585
SELECT ALL 25, COUNT( * ) AS col2 FROM tab2
----
25
3

skipif mysql # not compatible
query II rowsort label-7585
SELECT ALL 25, COUNT ( * ) AS col2 FROM tab2
----
25
3

query II rowsort
SELECT + 70 AS col1, - col2 - + 84 AS col2 FROM tab2
----
70
-107
70
-124
70
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7587
SELECT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query II rowsort
SELECT ALL + col2 AS col2, - 96 * + col0 FROM tab0
----
10
-8352
47
-1440
99
-9312

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( - - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT DISTINCT MIN( col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT MIN ( col0 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT COUNT( * ), COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7591
SELECT COUNT ( * ), COUNT ( * ) AS col1 FROM tab2
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col1 * - col0 * + col2 AS col1 FROM tab0
----
10
-18270
47
-57105
99
-9603

query II rowsort
SELECT DISTINCT - - col2 AS col1, - col0 * - 56 FROM tab2 cor0
----
23
2576
40
3584
58
4200

query II rowsort
SELECT ALL - + col1 AS col2, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + - - col1 AND - col2 * - 35 / col2 * + 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT DISTINCT + CAST( - 97 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT + CAST ( - 97 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

query I rowsort
SELECT 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 98 * - col0 / - - col1 * col0 + + - 38 + + 84 + + + 21 + + 93 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-3

query II rowsort
SELECT - 13 + + col2 AS col2, - col0 * - + 30 FROM tab0 AS cor0
----
-3
2610
34
450
86
2910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 87 col0 FROM tab1 AS cor0 WHERE 64 IS NULL
----

query I rowsort
SELECT ALL + - col0 + col2 * + col2 AS col2 FROM tab2 cor0
----
1536
3289
483

query II rowsort
SELECT DISTINCT 26 + 17, + col0 + - col0 AS col2 FROM tab2 AS cor0
----
43
0

query I rowsort
SELECT - col1 + - col0 + col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT SUM( DISTINCT + 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7606
SELECT SUM ( DISTINCT + 75 ) FROM tab1 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT - + ( + + 77 ) * + + 65 DIV - - 13 FROM tab0 AS cor0
----
-385
-385
-385

skipif mysql # not compatible
query I rowsort label-7607
SELECT - + ( + + 77 ) * + + 65 / - - 13 FROM tab0 AS cor0
----
-385
-385
-385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 91 * + 9 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 18 FROM tab2 AS cor0
----
1206
1386
918

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 96 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + col0
----

query I rowsort
SELECT + 48 * - ( - col1 ) FROM tab0
----
1008
3888
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - SUM( DISTINCT - - col1 ) * + COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-7613
SELECT - SUM ( DISTINCT - - col1 ) * + COUNT ( * ) FROM tab1
----
-198

query II rowsort
SELECT DISTINCT col0, - col0 AS col1 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT 67 + - 94 FROM tab0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT ALL + CAST( 14 AS SIGNED ) FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + CAST ( 14 AS INTEGER ) FROM tab1
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT MIN( DISTINCT + - 26 ) * - 15 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT MIN ( DISTINCT + - 26 ) * - 15 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * + col1 + ( + + col1 ) + - 92 FROM tab2 AS cor0
----
1132
3065
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT DISTINCT 55 + + SUM( + col0 ) FROM tab1 AS cor0 WHERE + 25 - + col2 * + col1 IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT 55 + + SUM ( + col0 ) FROM tab1 AS cor0 WHERE + 25 - + col2 * + col1 IN ( + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT + 32 + + COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + 32 + + COUNT ( * ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT 95 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT ( - col2 ) - - col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col1 * - + 0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col0 * - + col1 * col1 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT + - 41 * + col0 FROM tab1 AS cor0
----
-2091
-3485
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT + - COUNT( ALL - 19 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT + - COUNT ( ALL - 19 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 69 * - col2 + - - col1 FROM tab1 AS cor0
----
-4066
-4645
-6610

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT DISTINCT + - MAX( ALL - col2 ) * + ( + 89 ) AS col2 FROM tab0 AS cor0
----
890

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT + - MAX ( ALL - col2 ) * + ( + 89 ) AS col2 FROM tab0 AS cor0
----
890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 5 col2 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + + ( + MIN( ALL + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + + ( + MIN ( ALL + col2 ) ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab2, tab1 AS cor0
----
71

query I rowsort
SELECT ( - 73 ) FROM tab1
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + SUM( ( - col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7633
SELECT + SUM ( ( - col0 ) ) FROM tab1
----
-227

query I rowsort
SELECT - 44 + + col0 FROM tab1 AS cor0
----
41
47
7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 66 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT + - col1 * + + col0 + 52 * 79 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 89 BETWEEN NULL AND + col2 * + col2 * + - col1 / + ( 64 ) + + 88
----

skipif mysql # not compatible
query I rowsort label-7636
SELECT + - col1 * + + col0 + 52 * 79 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 89 BETWEEN NULL AND + col2 * + col2 * + - col1 / + ( 64 ) + + 88
----

query I rowsort
SELECT ALL 43 + + - col1 + + col2 AS col1 FROM tab1
----
125
64
97

query I rowsort
SELECT 52 * + col1 * + - 75 FROM tab2
----
-198900
-261300
-300300

query I rowsort
SELECT DISTINCT + 56 + + col0 - 23 AS col1 FROM tab0
----
120
130
48

query I rowsort
SELECT col1 - - col2 + 94 FROM tab1 WHERE 78 IS NOT NULL
----
158
204
209

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT ALL - col2 + + 10 + col1 DIV - 28 - + 68 AS col2 FROM tab1 AS cor0
----
-117
-127
-154

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - col2 + + 10 + col1 / - 28 - + 68 AS col2 FROM tab1 AS cor0
----
-117
-127
-154

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE col1 - - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL + ( + SUM( col2 ) ) + - - COUNT( + 10 ) AS col0 FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + ( + SUM ( col2 ) ) + - - COUNT ( + 10 ) AS col0 FROM tab0 cor0
----
159

query I rowsort
SELECT ALL - 56 - + col0 + - 0 * - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab0
----
-69

query I rowsort
SELECT 31 + - 64 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - col1 AND ( + col0 )
----

query I rowsort
SELECT - 19 * - 51 + - + 72 FROM tab0
----
897
897
897

query I rowsort
SELECT + 42 + col1 FROM tab1
----
47
56
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7649
SELECT ALL 10 + - - 87 col1, - COUNT( * ) FROM tab0
----
97
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7649
SELECT ALL 10 + - - 87 col1, - COUNT ( * ) FROM tab0
----
97
-3

query I rowsort
SELECT 36 * - - 63 AS col1 FROM tab0 AS cor0
----
2268
2268
2268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 col1 FROM tab2 AS cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 4 * ( + 82 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT 55 - - - MIN( ALL - col1 ) + SUM( - + col0 ) FROM tab1 cor0
----
-125

skipif mysql # not compatible
query I rowsort label-7653
SELECT 55 - - - MIN ( ALL - col1 ) + SUM ( - + col0 ) FROM tab1 cor0
----
-125

query I rowsort
SELECT DISTINCT + col1 + - 14 FROM tab0 cor0
----
-13
67
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT ALL + 83 * ( - 18 ) DIV 78 * + + 50 AS col0 FROM tab1
----
-950
-950
-950

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + 83 * ( - 18 ) / 78 * + + 50 AS col0 FROM tab1
----
-950
-950
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT - CAST( NULL AS SIGNED ) * - 21 * - 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7656
SELECT - CAST ( NULL AS INTEGER ) * - 21 * - 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query II rowsort label-7657
SELECT + col2, + 10 DIV 92 FROM tab0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-7657
SELECT + col2, + 10 / 92 FROM tab0
----
10
0
47
0
99
0

query I rowsort
SELECT DISTINCT ( - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 15 * + col0 AS col2 FROM tab1 AS cor0
----
1275
1365
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - 84 col0 FROM tab1 AS cor0
----
-4956
-5712
-8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 15 col0 FROM tab2
----
1005
1155
765

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT ALL col1 DIV col2 * - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL col1 / col2 * - + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + 78 + col0 AS col1, - ( + + col2 ) * - + 99 FROM tab0
----
165
990
175
9801
93
4653

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7666
SELECT DISTINCT - 10 AS col0, - col1 + + - CAST( NULL AS SIGNED ) FROM tab2 WHERE - 55 IS NOT NULL
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-7666
SELECT DISTINCT - 10 AS col0, - col1 + + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE - 55 IS NOT NULL
----
-10
NULL

query I rowsort
SELECT ALL + - col1 + + - 44 AS col1 FROM tab1 AS cor0
----
-49
-58
-91

query I rowsort
SELECT DISTINCT - 75 / - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT DISTINCT - 91 DIV - - col1 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT - 91 / - - col1 AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7670
SELECT ALL CAST( - + MAX( - - 67 ) AS SIGNED ) DIV + MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL CAST ( - + MAX ( - - 67 ) AS INTEGER ) / + MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT col2 * + col1 * 19 FROM tab2 AS cor0
----
22287
58520
73834

query I rowsort
SELECT + 21 * - + 14 FROM tab1 AS cor0
----
-294
-294
-294

query I rowsort
SELECT DISTINCT - 55 + + 3 FROM tab0
----
-52

query III rowsort
SELECT ALL * FROM tab2 WHERE 2 / - ( + - col0 ) + + + 39 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT - col0 + + - 49 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - col0 + + - 49 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT + + COUNT( * ) AS col0, + 18 FROM tab0 AS cor0
----
3
18

skipif mysql # not compatible
query II rowsort label-7677
SELECT + + COUNT ( * ) AS col0, + 18 FROM tab0 AS cor0
----
3
18

query I rowsort
SELECT DISTINCT - 61 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT + 20 AS col2, - 84 FROM tab2 AS cor0
----
20
-84
20
-84
20
-84

query I rowsort
SELECT ALL 69 * 80 + + 60 FROM tab2 AS cor0
----
5580
5580
5580

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 47 NOT BETWEEN + + col0 AND col1 + - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7682
SELECT * FROM tab2 AS cor0 WHERE + ( + col2 ) BETWEEN - + col2 AND ( 0 * + CAST( + col0 AS DECIMAL ) + + 68 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7682
SELECT * FROM tab2 AS cor0 WHERE + ( + col2 ) BETWEEN - + col2 AND ( 0 * + CAST ( + col0 AS REAL ) + + 68 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 66 + - + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-19
-25
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7684
SELECT ALL - - ( + CAST( NULL AS SIGNED ) ) - 80 AS col2, COUNT( ALL CAST( - + ( + - col2 ) AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7684
SELECT ALL - - ( + CAST ( NULL AS INTEGER ) ) - 80 AS col2, COUNT ( ALL CAST ( - + ( + - col2 ) AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT - + CAST( - - ( + 47 ) AS SIGNED ) FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-7685
SELECT - + CAST ( - - ( + 47 ) AS INTEGER ) FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT 32 * SUM( DISTINCT - 44 ) FROM tab0 WHERE + - col0 * + col1 NOT IN ( + + 86 )
----
-1408

skipif mysql # not compatible
query I rowsort label-7686
SELECT 32 * SUM ( DISTINCT - 44 ) FROM tab0 WHERE + - col0 * + col1 NOT IN ( + + 86 )
----
-1408

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT IN ( + col0, + col0 - - col1 * col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT 49 + + 34 * COUNT( * ) FROM tab0, tab0 AS cor0
----
355

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT 49 + + 34 * COUNT ( * ) FROM tab0, tab0 AS cor0
----
355

query I rowsort
SELECT - col1 / - col0 FROM tab1 WHERE + col2 * - - ( 63 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + 29
----

query I rowsort
SELECT ALL - col0 + + - 90 * - 32 FROM tab0
----
2783
2793
2865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 + col0 col2 FROM tab2 AS cor0
----
-11
-22
-40

query I rowsort
SELECT ALL + 20 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT - MAX( DISTINCT + ( col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT - MAX ( DISTINCT + ( col1 ) ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ( - COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT + ( + - 45 ) * - 23 FROM tab0 AS cor0
----
1035
1035
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT - MAX( - col1 ) * - + 12 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - MAX ( - col1 ) * - + 12 FROM tab1 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( + ( - 27 ) ) * - + col2 col2 FROM tab1 AS cor0
----
-132192
-135405
-167076

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * 5 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 97 FROM tab2 cor0
----
97

query I rowsort
SELECT col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 88 * - col0 FROM tab2 AS cor0
----
-4048
-5632
-6600

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IN ( + col0, 85, col0 * + + col0 + - col1 )
----

query I rowsort
SELECT + 96 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + 95 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT DISTINCT + 0 * - 45 * + CAST( MAX( + + col0 ) AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT + 0 * - 45 * + CAST ( MAX ( + + col0 ) AS INTEGER ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 44 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - MAX( - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7709
SELECT - MAX ( - col1 ) AS col0 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7710
SELECT - col1 + + col2 DIV - col2 AS col1 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-7710
SELECT - col1 + + col2 / - col2 AS col1 FROM tab1
----
-15
-48
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7711
SELECT ALL + + col0 AS col2, - CAST( NULL AS SIGNED ) / col2 / - - col1 AS col2, - - ( - + col2 ) AS col0 FROM tab2 AS cor0
----
9 values hashing to 32ac8091526fd8992725ddc86f22283c

skipif mysql # not compatible
query III rowsort label-7711
SELECT ALL + + col0 AS col2, - CAST ( NULL AS INTEGER ) / col2 / - - col1 AS col2, - - ( - + col2 ) AS col0 FROM tab2 AS cor0
----
9 values hashing to 32ac8091526fd8992725ddc86f22283c

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 62 * + + col1 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND col0 / - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT col1 DIV - - 99 * col2 * ( - 94 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT col1 / - - 99 * col2 * ( - 94 ) FROM tab2
----
0
0
0

query I rowsort
SELECT + 50 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col1 FROM tab2 WHERE NOT - col0 >= 50
----
46
64
75

query I rowsort
SELECT ALL 40 + + + 87 AS col0 FROM tab0 AS cor0
----
127
127
127

query I rowsort
SELECT + col0 - + - col1 AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT 92 AS col0 FROM tab2 AS cor0 WHERE - 43 NOT IN ( - + 45, col0 * - + col1, col0 * - col1, + 97 )
----
92
92
92

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL ( + - col2 ) + - - col2 * - col1 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT DISTINCT + col0 * + 70 + + ( + 65 ) FROM tab2 AS cor0 WHERE - 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT ALL + CAST( NULL AS SIGNED ) - + col1 + + col2 * + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL + CAST ( NULL AS INTEGER ) - + col1 + + col2 * + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col0 + col1 * + 96 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 + col1 * + 96 IS NULL
----
0

query I rowsort
SELECT ALL 84 - + 64 * + - 2 * col0 - col2 * col1 * + + 44 AS col1 FROM tab0
----
-165504
1980
8144

query I rowsort
SELECT - col1 + - + col0 AS col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT 62 + - - col2 AS col2 FROM tab2
----
102
120
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7728
SELECT ALL + CAST( NULL AS SIGNED ) / + AVG ( ALL 95 ) - - MIN( - - col2 ) AS col2, - 76 FROM tab2
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-7728
SELECT ALL + CAST ( NULL AS INTEGER ) / + AVG ( ALL 95 ) - - MIN ( - - col2 ) AS col2, - 76 FROM tab2
----
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + MAX( DISTINCT + + 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + MAX ( DISTINCT + + 34 ) FROM tab1
----
34

query II rowsort
SELECT + 69, 2 * + 25 * col2 * col0 * + 4 AS col2 FROM tab0
----
69
141000
69
174000
69
1920600

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT SUM( - 45 ) AS col0 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-7731
SELECT SUM ( - 45 ) AS col0 FROM tab0
----
-135

query III rowsort
SELECT * FROM tab2 WHERE - + 32 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7733
SELECT + col0 * + CAST( - - col1 AS SIGNED ) * - col1 FROM tab0
----
-38367
-97
-98415

skipif mysql # not compatible
query I rowsort label-7733
SELECT + col0 * + CAST ( - - col1 AS INTEGER ) * - col1 FROM tab0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT - col2 + + + CAST( NULL AS SIGNED ) + - col1 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7734
SELECT - col2 + + + CAST ( NULL AS INTEGER ) + - col1 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + - 95 AS col1 FROM tab2 AS cor0
----
-95
-95
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( + 75 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 41 * + col1 AS col1 FROM tab0 AS cor0
----
3321
41
861

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7739
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 70 AND ( ( 35 ) ) / col2 + - CAST( col0 AS SIGNED ) - + col1
----

skipif mysql # not compatible
query III rowsort label-7739
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 70 AND ( ( 35 ) ) / col2 + - CAST ( col0 AS INTEGER ) - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT - 61 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7740
SELECT - 61 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 23 AS col0, + col2 + col2 AS col1 FROM tab0 AS cor0
----
23
198
23
20
23
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT - COUNT( - col0 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7742
SELECT DISTINCT - COUNT ( - col0 ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - ( + 24 ) ) AS col2 FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7744
SELECT ALL + - col0 AS col1, ( - - CAST( NULL AS SIGNED ) ) * - - col0 + - col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-7744
SELECT ALL + - col0 AS col1, ( - - CAST ( NULL AS INTEGER ) ) * - - col0 + - col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + + 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 43 col2, - col2 * - col0 FROM tab2 AS cor0
----
43
1058
43
2560
43
4350

query I rowsort
SELECT col0 * + - 63 FROM tab0 AS cor0
----
-5481
-6111
-945

query I rowsort
SELECT - col2 * - - 77 * 75 FROM tab0
----
-271425
-571725
-57750

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col0 - - + 61 <= 28
----
-1

skipif mysql # not compatible
query I rowsort label-7749
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col0 - - + 61 <= 28
----
-1

query I rowsort
SELECT ALL + ( + 9 ) FROM tab0
----
9
9
9

query I rowsort
SELECT ALL + col2 + + col2 + 80 * + col2 FROM tab2
----
1886
3280
4756

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7752
SELECT * FROM tab0 WHERE + 92 + 6 * - 38 <> + col2 - + CAST( - + col0 AS SIGNED ) * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7752
SELECT * FROM tab0 WHERE + 92 + 6 * - 38 <> + col2 - + CAST ( - + col0 AS INTEGER ) * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7753
SELECT ALL - - CAST( NULL AS DECIMAL ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - - CAST ( NULL AS REAL ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 45 + - ( - col1 ) + - - col2 FROM tab2
----
119
162
170

query III rowsort
SELECT * FROM tab2 WHERE - 91 > - 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT - - 76 AS col2 FROM tab0 AS cor0 WHERE + col0 * col0 + 57 NOT BETWEEN + - col0 AND - col0 + - CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query I rowsort label-7756
SELECT - - 76 AS col2 FROM tab0 AS cor0 WHERE + col0 * col0 + 57 NOT BETWEEN + - col0 AND - col0 + - CAST ( NULL AS INTEGER ) + - col0
----

query I rowsort
SELECT DISTINCT - - col1 + - ( + col2 ) + - - col2 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + col1 - - 72 AS col1 FROM tab0 AS cor0
----
153
73
93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab2 cor0
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( - + col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 98 * col2 AS col0 FROM tab0 AS cor0
----
4606
9702
980

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * - + col1 * + - 59 IS NULL
----

query I rowsort
SELECT ALL col2 - col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 + + col1 * - col0 col1 FROM tab2 AS cor0
----
-2338
-4920
-5017

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN ( col2 + - col0 ) AND NULL
----

query I rowsort
SELECT + - col1 - + 96 * 91 FROM tab0 AS cor0
----
-8737
-8757
-8817

query I rowsort
SELECT ALL + - col2 - - - 91 FROM tab1 AS cor0
----
-150
-159
-187

query I rowsort
SELECT DISTINCT - 23 - ( 32 ) FROM tab1
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-7770
SELECT + col2 DIV col0 * 87 - 18 AS col0, - 50 AS col2 FROM tab0
----
-18
-50
243
-50
69
-50

skipif mysql # not compatible
query II rowsort label-7770
SELECT + col2 / col0 * 87 - 18 AS col0, - 50 AS col2 FROM tab0
----
-18
-50
243
-50
69
-50

query III rowsort
SELECT * FROM tab2 WHERE - col0 * col0 - - col0 BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL col1 - + 33 * 95 FROM tab0
----
-3054
-3114
-3134

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL + 55 * + + COUNT( * ) AS col0 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL + 55 * + + COUNT ( * ) AS col0 FROM tab2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ALL + col1 DIV - - col0 * 49 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL + col1 / - - col0 * 49 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7775
SELECT ALL col2 / + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL col2 / + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + + 49 FROM tab0
----
-1029
-3969
-49

query I rowsort
SELECT - 68 * - col0 * 98 AS col1 FROM tab1
----
339864
566440
606424

query I rowsort
SELECT ALL 50 * + 55 FROM tab0 AS cor0
----
2750
2750
2750

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 59 ) NOT BETWEEN - col2 AND + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 61 / - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT + - 33 * + + COUNT( * ) col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7781
SELECT + - 33 * + + COUNT ( * ) col2 FROM tab1 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 87 col2 FROM tab2 cor0
----
87
87
87

query I rowsort
SELECT - 90 * + + 34 AS col0 FROM tab1 AS cor0
----
-3060
-3060
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL - - MAX( 15 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - - MAX ( 15 ) FROM tab1 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT + COUNT( * ) * + COUNT( * ) * COUNT( * ) * 78 * - 33 + - COUNT( * ) AS col1 FROM tab0
----
-69501

skipif mysql # not compatible
query I rowsort label-7786
SELECT + COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) * 78 * - 33 + - COUNT ( * ) AS col1 FROM tab0
----
-69501

query III rowsort
SELECT * FROM tab1 WHERE 2 * + - col0 IS NULL
----

query I rowsort
SELECT col1 + 51 * - col1 FROM tab2
----
-2550
-3350
-3850

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col2 + - - col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT DISTINCT - 95 * + - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
1995
7695
95

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - 95 * + - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
1995
7695
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT + 79 + - + COUNT( * ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT + 79 + - + COUNT ( * ) FROM tab1 AS cor0
----
76

query I rowsort
SELECT DISTINCT 51 + - 38 FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL ( - + ( + - COUNT( * ) ) ) - - COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL ( - + ( + - COUNT ( * ) ) ) - - COUNT ( * ) AS col1 FROM tab2
----
6

query III rowsort
SELECT * FROM tab1 WHERE - - 56 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT MAX( DISTINCT - - col0 ) * + + MAX( DISTINCT - 81 ) FROM tab1
----
-7371

skipif mysql # not compatible
query I rowsort label-7797
SELECT MAX ( DISTINCT - - col0 ) * + + MAX ( DISTINCT - 81 ) FROM tab1
----
-7371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7798
SELECT MAX( CAST( NULL AS SIGNED ) ) AS col1, 4 FROM tab0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-7798
SELECT MAX ( CAST ( NULL AS INTEGER ) ) AS col1, 4 FROM tab0
----
NULL
4

query I rowsort
SELECT + col0 - + - 75 * 14 AS col0 FROM tab0
----
1065
1137
1147

query I rowsort
SELECT - 84 * - col1 * - 29 - 7 FROM tab2
----
-124243
-163219
-187579

query I rowsort
SELECT ALL + - ( 87 ) - 92 FROM tab1 cor0
----
-179
-179
-179

query I rowsort
SELECT ALL ( col1 ) * - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT ALL 77 * col1 * 40 * col1 AS col1 FROM tab0 AS cor0
----
1358280
20207880
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-7804
SELECT DISTINCT 76 * + col0 DIV - - col0 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT 76 * + col0 / - - col0 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT + SUM( DISTINCT + col1 ) AS col2 FROM tab0 WHERE NOT col0 + - 80 >= col1 / - + col1
----
81

skipif mysql # not compatible
query I rowsort label-7805
SELECT + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 WHERE NOT col0 + - 80 >= col1 / - + col1
----
81

query I rowsort
SELECT DISTINCT + col2 * + + col1 * + 23 AS col1 FROM tab1
----
30912
6785
73508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT DISTINCT CAST( + + 77 AS SIGNED ) * 71 * col1 * - - ( + col1 ) AS col1 FROM tab0
----
2410947
35868987
5467

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT CAST ( + + 77 AS INTEGER ) * 71 * col1 * - - ( + col1 ) AS col1 FROM tab0
----
2410947
35868987
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT + COUNT( * ) * 86 AS col1 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-7808
SELECT + COUNT ( * ) * 86 AS col1 FROM tab1
----
258

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col1 + col0 - - 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7810
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * CAST( NULL AS SIGNED ) * col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-7810
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * CAST ( NULL AS INTEGER ) * col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT ALL - + CAST( + + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7811
SELECT ALL - + CAST ( + + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL COUNT( ALL - ( 44 ) ) AS col0 FROM tab0 WHERE NOT ( NULL ) <> ( col2 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL COUNT ( ALL - ( 44 ) ) AS col0 FROM tab0 WHERE NOT ( NULL ) <> ( col2 * + col1 )
----
0

query I rowsort
SELECT 16 + 33 AS col0 FROM tab0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL + MAX( 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL + MAX ( 95 ) FROM tab2
----
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 + - 69 * col1 AND ( col1 )
----

query I rowsort
SELECT col1 + 97 AS col2 FROM tab0
----
118
178
98

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( - col0 / - col2 )
----

query I rowsort
SELECT - col0 + ( + col0 + - col2 ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + 61 * - col0 AS col2 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT + col2 - + 9 FROM tab1
----
50
59
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT - 86 - + COUNT( * ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - 86 - + COUNT ( * ) FROM tab2
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= + 83
----

query I rowsort
SELECT - 34 * + 74 AS col1 FROM tab2
----
-2516
-2516
-2516

query I rowsort
SELECT + col1 FROM tab1 WHERE 62 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * col2 col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL - col0 * col1 + col1 AS col2 FROM tab0
----
-1134
-1806
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col2 FROM tab1 WHERE 43 - - 53 NOT IN ( - col1 )
----
6
6
6

query I rowsort
SELECT DISTINCT 13 + 89 FROM tab2
----
102

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( col0 + - col1 ) > 72
----
51
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL COUNT( DISTINCT + 93 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL COUNT ( DISTINCT + 93 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - MIN( col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7832
SELECT - MIN ( col0 ) AS col0 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) BETWEEN ( 41 ) AND ( NULL )
----
51
14
96
85
5
59

query I rowsort
SELECT ALL col1 - col0 * col1 AS col1 FROM tab2 cor0
----
-2295
-4851
-4958

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7835
SELECT ALL - col2 DIV + col0 + CAST( - 77 AS SIGNED ) FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - col2 / + col0 + CAST ( - 77 AS INTEGER ) FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT - 55 + COUNT( * ) FROM tab0 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7836
SELECT - 55 + COUNT ( * ) FROM tab0 cor0
----
-52

query III rowsort
SELECT * FROM tab0 WHERE col1 * - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + MAX( DISTINCT + 55 ) AS col1 FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-7838
SELECT + MAX ( DISTINCT + 55 ) AS col1 FROM tab1 cor0
----
55

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7840
SELECT - MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT - MAX ( ALL + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7842
SELECT ALL + CAST( COUNT( DISTINCT col0 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + CAST ( COUNT ( DISTINCT col0 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE NOT ( col0 ) BETWEEN NULL AND - 96
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT ALL col1 DIV - ( - col1 * col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL col1 / - ( - col1 * col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT - + 78 DIV col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT - + 78 / col0 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 - + 93 / + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 21 > ( - col0 )
----

query I rowsort
SELECT ALL - 28 * + 44 AS col2 FROM tab0
----
-1232
-1232
-1232

query I rowsort
SELECT + col1 - 60 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-39
-59
21

query I rowsort
SELECT DISTINCT col1 * + - col0 AS col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + + col2 ) < col2 * - ( col0 * 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL - MIN( ALL - col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - MIN ( ALL - col0 ) AS col0 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7853
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN 64 * 59 - - ( CAST( NULL AS SIGNED ) ) AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-7853
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN 64 * 59 - - ( CAST ( NULL AS INTEGER ) ) AND ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 60 * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT + 94 * - MAX( - col0 ) AS col2 FROM tab2
----
4324

skipif mysql # not compatible
query I rowsort label-7855
SELECT + 94 * - MAX ( - col0 ) AS col2 FROM tab2
----
4324

query III rowsort
SELECT * FROM tab2 WHERE NOT 7 IS NOT NULL
----

query I rowsort
SELECT - col1 * 91 * - col0 FROM tab0 AS cor0
----
110565
166257
8827

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col2 FROM tab1 AS cor0
----
23
23
23

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 92 - - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL ( - + COUNT( + col1 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL ( - + COUNT ( + col1 ) ) AS col0 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT col0 AS col0, + 26 AS col0 FROM tab0
----
15
26
87
26
97
26

query I rowsort
SELECT + 85 * 38 FROM tab2 WHERE + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7865
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7865
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 + - 89 + - col0 * + col0 FROM tab2 AS cor0
----
-2159
-4121
-5639

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > 30 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT DISTINCT + MAX( DISTINCT + 16 ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + MAX ( DISTINCT + 16 ) FROM tab1 AS cor0
----
16

query I rowsort
SELECT ALL col1 + - 83 + col1 FROM tab1 AS cor0
----
-55
-73
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 80 ) >= ( 39 * ( ( - col1 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + - ( - 32 ) AS col0 FROM tab1 AS cor0
----
-15
18
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT ALL - 21 + - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL - 21 + - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER ) + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 91 col1, col2 AS col2 FROM tab0 AS cor0
----
91
10
91
47
91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL COUNT( * ) + 73 AS col1 FROM tab0 cor0
----
76

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL COUNT ( * ) + 73 AS col1 FROM tab0 cor0
----
76

query I rowsort
SELECT col2 + + col1 + + 17 AS col0 FROM tab2
----
134
142
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - 55 ) AND - col1
----

query I rowsort
SELECT - 97 * + - col1 + + + 88 - - + 44 FROM tab1
----
1490
4691
617

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT - 59 DIV col2 + + 48 + + 43 DIV col2 FROM tab0
----
47
47
48

skipif mysql # not compatible
query I rowsort label-7878
SELECT - 59 / col2 + + 48 + + 43 / col2 FROM tab0
----
47
47
48

query I rowsort
SELECT col1 + - 30 * - col0 FROM tab0
----
2631
2911
531

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT ALL 63 * + - col1 + 7 - + col2 * col2 DIV - col0 FROM tab2
----
-3195
-4170
-4819

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL 63 * + - col1 + 7 - + col2 * col2 / - col0 FROM tab2
----
-3195
-4170
-4819

query I rowsort
SELECT + col1 * + - col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT col1 DIV - 30 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT col1 / - 30 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7883
SELECT * FROM tab0 AS cor0 WHERE ( 76 + + col2 * - col2 + 79 ) >= col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7883
SELECT * FROM tab0 AS cor0 WHERE ( 76 + + col2 * - col2 + 79 ) >= col0 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 - + 30 IN ( 21 * 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + MIN( col1 ) AS col2 FROM tab2 AS cor0 WHERE + 13 / + - col2 IN ( + - 6 * 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT + MIN ( col1 ) AS col2 FROM tab2 AS cor0 WHERE + 13 / + - col2 IN ( + - 6 * 45 )
----
NULL

query I rowsort
SELECT DISTINCT 72 FROM tab0 WHERE NULL <> - ( - ( - + 82 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7887
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON + - ( + 39 ) * CAST( NULL AS SIGNED ) NOT BETWEEN 72 AND + 50
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

skipif mysql # not compatible
query IIIIII rowsort label-7887
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON + - ( + 39 ) * CAST ( NULL AS INTEGER ) NOT BETWEEN 72 AND + 50
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT ALL + 51 FROM tab0 AS cor0 WHERE NOT + col2 * col1 < ( col0 + + - 98 )
----
51
51
51

query II rowsort
SELECT DISTINCT 53 * + col1, 56 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + col0 * 26 + 40 FROM tab2 AS cor0
----
1236
1704
1990

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT - 0 * - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - 0 * - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT 39 * col0 FROM tab2 AS cor0 WHERE NOT 49 * + 46 * - col1 = - - col2 * + col2 + - 17
----
1794
2496
2925

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7893
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + - col2 + + + col1 )
----

skipif mysql # not compatible
query III rowsort label-7893
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + - col2 + + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT - 42 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7894
SELECT - 42 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + ( + - col0 ) FROM tab1 cor0
----
-51
-85
-91

query II rowsort
SELECT ALL - col1 AS col1, col2 AS col0 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT COUNT( col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT COUNT ( col1 ) FROM tab0
----
3

query I rowsort
SELECT + col1 * + ( - + 41 ) * - + col2 FROM tab2
----
126280
159326
48093

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT SUM( DISTINCT 78 ) * + COUNT( * ) AS col2 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-7899
SELECT SUM ( DISTINCT 78 ) * + COUNT ( * ) AS col2 FROM tab1
----
234

query II rowsort
SELECT ALL col0, 46 * + - col2 FROM tab0
----
15
-2162
87
-460
97
-4554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT DISTINCT + ( - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + ( - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( - 91 ) NOT IN ( - col0 * - col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7904
SELECT COUNT( * ), 24 AS col0 FROM tab1 AS cor0
----
3
24

skipif mysql # not compatible
query II rowsort label-7904
SELECT COUNT ( * ), 24 AS col0 FROM tab1 AS cor0
----
3
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT col1 + + col1 + + 92 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-7905
SELECT col1 + + col1 + + 92 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT DISTINCT - col2 DIV col2 * col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - col2 / col2 * col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - - col1 - + 40 * - 83 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT + 87 DIV col1 col1 FROM tab1 AS cor0
----
1
17
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7908
SELECT + 87 / col1 col1 FROM tab1 AS cor0
----
1
17
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL + ( + MAX( DISTINCT + + col1 ) ) * - 19 col1 FROM tab0
----
-1539

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7909
SELECT ALL + ( + MAX ( DISTINCT + + col1 ) ) * - 19 col1 FROM tab0
----
-1539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) / - + col0 NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7910
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / - + col0 NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT DISTINCT + - 58 + + - CAST( 9 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + - 58 + + - CAST ( 9 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7913
SELECT DISTINCT - COUNT( * ) * 0 AS col2 FROM tab0 WHERE NOT - - ( - col2 ) * + CAST( col2 AS DECIMAL ) - + 74 * + 70 + col2 NOT IN ( 97 + - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT - COUNT ( * ) * 0 AS col2 FROM tab0 WHERE NOT - - ( - col2 ) * + CAST ( col2 AS REAL ) - + 74 * + 70 + col2 NOT IN ( 97 + - 98 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT DISTINCT 26 AS col2, COUNT( * ) FROM tab0
----
26
3

skipif mysql # not compatible
query II rowsort label-7914
SELECT DISTINCT 26 AS col2, COUNT ( * ) FROM tab0
----
26
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col1 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT COUNT( * ) AS col1 FROM tab2 WHERE ( NULL ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-7917
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE ( NULL ) <= col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL 37 * + 28 + - - MIN( + + col2 ) FROM tab2
----
1059

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL 37 * + 28 + - - MIN ( + + col2 ) FROM tab2
----
1059

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7920
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - col0 * 44 + CAST( 73 AS SIGNED ) <> ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7920
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - col0 * 44 + CAST ( 73 AS INTEGER ) <> ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - - MAX( ALL - + col2 ) * + ( + 56 ) AS col1 FROM tab2 AS cor0
----
-1288

skipif mysql # not compatible
query I rowsort label-7921
SELECT - - MAX ( ALL - + col2 ) * + ( + 56 ) AS col1 FROM tab2 AS cor0
----
-1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7922
SELECT ALL - CAST( SUM( col1 ) AS SIGNED ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7922
SELECT ALL - CAST ( SUM ( col1 ) AS INTEGER ) col0 FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 40 * 7 * col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + col2 )
----
0

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab2 AS cor0 WHERE NOT - 42 + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT 94 * - 25 + + - SUM( col2 ) AS col1 FROM tab1 AS cor0
----
-2573

skipif mysql # not compatible
query I rowsort label-7926
SELECT 94 * - 25 + + - SUM ( col2 ) AS col1 FROM tab1 AS cor0
----
-2573

query III rowsort
SELECT * FROM tab1 WHERE NOT + 7 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL - col0 FROM tab1 WHERE - - 7 > + CAST( - + col2 AS SIGNED )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - col0 FROM tab1 WHERE - - 7 > + CAST ( - + col2 AS INTEGER )
----
-51
-85
-91

query I rowsort
SELECT + col0 * + + col1 AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT ALL + ( - col1 ) + + CAST( + col0 AS SIGNED ) + - col2 col2 FROM tab2
----
-28
-50
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7930
SELECT ALL + ( - col1 ) + + CAST ( + col0 AS INTEGER ) + - col2 col2 FROM tab2
----
-28
-50
-53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 / + - col1 + - 65 * + col1 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7932
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT DISTINCT + col2 * + col2 DIV + col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + col2 * + col2 / + col2 AS col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7934
SELECT CAST( NULL AS SIGNED ) * - col0 * + ( + - col0 ) * 45 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT CAST ( NULL AS INTEGER ) * - col0 * + ( + - col0 ) * 45 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ( SUM( - + 45 ) ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-7935
SELECT ( SUM ( - + 45 ) ) FROM tab0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT MIN( + col1 ) * - + 49 AS col0 FROM tab1
----
-245

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT MIN ( + col1 ) * - + 49 AS col0 FROM tab1
----
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-7937
SELECT - 53 DIV - col1 AS col2 FROM tab0
----
0
2
53

skipif mysql # not compatible
query I rowsort label-7937
SELECT - 53 / - col1 AS col2 FROM tab0
----
0
2
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + 85 * COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + 85 * COUNT ( * ) FROM tab1
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT + COUNT( ALL 92 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7939
SELECT + COUNT ( ALL 92 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT col1 - - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT col1 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 + - 6 FROM tab1 AS cor0
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col2 FROM tab0 cor0 WHERE + col0 IS NOT NULL
----
-16
-16
-16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT + col2 - + - CAST( NULL AS SIGNED ) + - 34 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7945
SELECT DISTINCT + col2 - + - CAST ( NULL AS INTEGER ) + - 34 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 57 + + col2 - + col2 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT ALL + col1 * + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - col1 - + 89 + + col0 * - col2 * - 91 FROM tab1
----
445433
456271
562972

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT 93 * COUNT( * ) AS col2 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-7949
SELECT 93 * COUNT ( * ) AS col2 FROM tab1
----
279

onlyif mysql # DIV for integer division: 
query I rowsort label-7950
SELECT - col2 DIV 38 * + col1 FROM tab1
----
-28
-47
-5

skipif mysql # not compatible
query I rowsort label-7950
SELECT - col2 / 38 * + col1 FROM tab1
----
-28
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 col2 FROM tab2 cor0
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL COUNT( * ) * + CAST( + - 37 AS SIGNED ) AS col1 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL COUNT ( * ) * + CAST ( + - 37 AS INTEGER ) AS col1 FROM tab2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT DISTINCT COUNT( * ) + 88 FROM tab1 WHERE + col2 IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT COUNT ( * ) + 88 FROM tab1 WHERE + col2 IS NOT NULL
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7954
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7954
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 21 AS col1, 11 col0 FROM tab0 AS cor0
----
-21
11
-21
11
-21
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 14 ) col1 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL + + MIN( + col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7957
SELECT ALL + + MIN ( + col0 ) col2 FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7958
SELECT DISTINCT col0 DIV - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT col0 / - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT + + COUNT( * ) * - 2 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7959
SELECT + + COUNT ( * ) * - 2 FROM tab0 cor0
----
-6

query I rowsort
SELECT DISTINCT 91 * + 54 FROM tab1
----
4914

query I rowsort
SELECT ( 46 ) FROM tab1
----
46
46
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + + 91 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7963
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 - - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 63 + 98 FROM tab1
----
161

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col0 FROM tab0 WHERE NULL IS NULL
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT COUNT( * ) DIV + SUM( - col2 ) + + ( - - 23 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7968
SELECT COUNT ( * ) / + SUM ( - col2 ) + + ( - - 23 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
23

query II rowsort
SELECT - + col2 AS col0, col1 AS col0 FROM tab1 AS cor0 WHERE + col1 * + - 62 > + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ( ( - COUNT( col0 ) ) ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT ( ( - COUNT ( col0 ) ) ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
0

query I rowsort
SELECT + 29 + + 30 AS col0 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT ALL - 78 * - ( + + 41 ) + - - col1 AS col0 FROM tab0
----
3199
3219
3279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - + col1 col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7974
SELECT + + CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE CAST( + col1 AS SIGNED ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT + + CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE CAST ( + col1 AS INTEGER ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT COUNT( col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7976
SELECT COUNT ( col1 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT - col0 AS col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - ( - col2 ) * - col0 AND col2
----

query I rowsort
SELECT ALL - ( + + 63 ) - - col2 AS col2 FROM tab0 AS cor0
----
-16
-53
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT - col2 - - col2 DIV + 78 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-7981
SELECT - col2 - - col2 / + 78 FROM tab1
----
-59
-68
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL + COUNT( col0 ) FROM tab1 WHERE NOT NULL > NULL AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL + COUNT ( col0 ) FROM tab1 WHERE NOT NULL > NULL AND NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL + CAST( NULL AS SIGNED ) * 55 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + CAST ( NULL AS INTEGER ) * 55 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NULL IS NULL AND NOT - col2 NOT BETWEEN NULL AND + ( ( - 21 ) ) + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT DISTINCT - col2 * + CAST( - ( 65 ) AS SIGNED ) col2 FROM tab1
----
3835
4420
6240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7985
SELECT DISTINCT - col2 * + CAST ( - ( 65 ) AS INTEGER ) col2 FROM tab1
----
3835
4420
6240

query II rowsort
SELECT DISTINCT col2 AS col0, + 53 + + col1 FROM tab0
----
10
74
47
134
99
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT SUM( DISTINCT col1 ) * - + MAX( + + 11 ) FROM tab1
----
-726

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT SUM ( DISTINCT col1 ) * - + MAX ( + + 11 ) FROM tab1
----
-726

onlyif mysql # DIV for integer division: 
query I rowsort label-7988
SELECT - col1 DIV - - 32 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7988
SELECT - col1 / - - 32 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT col0 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT DISTINCT - - col1, - ( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL <> - 56
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 53 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + 59 * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-7992
SELECT + 59 * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-180

query II rowsort
SELECT - col2, col1 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT + - col0 * - 97 - - col0 AS col0 FROM tab1 AS cor0
----
4998
8330
8918

query I rowsort
SELECT ALL + - 26 * 89 FROM tab0 AS cor0
----
-2314
-2314
-2314

query I rowsort
SELECT 46 + col1 AS col1 FROM tab2
----
113
123
97

query I rowsort
SELECT col0 * - + 23 + - col2 + - - 65 AS col0 FROM tab1
----
-1204
-1949
-2096

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7999
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7999
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 87 + - col2 AS col0 FROM tab1
----
-9
19
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + + 20 col2 FROM tab1
----
-31
-65
-71

query III rowsort
SELECT * FROM tab0 WHERE + + 37 > + - col1 / col0 / + + col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + - col2 + - + 61 FROM tab2 cor0
----
-130
-165
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE 23 NOT BETWEEN - col1 AND - col1
----
-3

skipif mysql # not compatible
query I rowsort label-8004
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE 23 NOT BETWEEN - col1 AND - col1
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col1 ) * + col0 + - col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL + - COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL + - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - col2 + - 43 * + + ( - + 18 ) * + col0 * - + col1 - + col1 + + col2 * - ( - 18 ) AS col0 FROM tab0
----
-1413949
-73396
-939692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT ALL CAST( NULL AS SIGNED ) + - + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - 72 - + 42 * - + 55 AS col2 FROM tab0
----
2238
2238
2238

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 * 16 + - + col0 + - col0 AS col2 FROM tab1 AS cor0
----
1434
774
906

query I rowsort
SELECT ALL + 4 * + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-101
-171
-339

query II rowsort
SELECT ALL 29 AS col0, col2 AS col0 FROM tab0
----
29
10
29
47
29
99

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT ALL - SUM( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / - - col1 + 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT 93 * + - 32 * + SUM( + 37 ) FROM tab1
----
-330336

skipif mysql # not compatible
query I rowsort label-8017
SELECT 93 * + - 32 * + SUM ( + 37 ) FROM tab1
----
-330336

query II rowsort
SELECT DISTINCT + + 26, ( + col2 ) AS col2 FROM tab2 AS cor0
----
26
23
26
40
26
58

query I rowsort
SELECT ALL col2 - + col1 + + col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - - 60 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL - ( - - ( - 2 ) ) AS col2 FROM tab2
----
2
2
2

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > + 38
----

query I rowsort
SELECT ALL + ( + - col2 ) * + ( - + col2 ) + - col1 + - - 4 * col2 AS col0 FROM tab1 AS cor0
----
3712
4849
9586

query II rowsort
SELECT + col2 + 38, + col1 AS col1 FROM tab0 AS cor0
----
137
1
48
21
85
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 2 + + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 2 + + col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8026
SELECT - COUNT( * ) * SUM( - 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-8026
SELECT - COUNT ( * ) * SUM ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8027
SELECT + - MIN( - col0 ) DIV - + 11 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8027
SELECT + - MIN ( - col0 ) / - + 11 FROM tab1 AS cor0
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * + col0 + + col0 AND - col1
----

query II rowsort
SELECT col0 * - + col2, + col2 FROM tab2 cor0
----
-1058
23
-2560
40
-4350
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT ALL 70 DIV + + col2 AS col0 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL 70 / + + col2 AS col0 FROM tab0
----
0
1
7

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8032
SELECT DISTINCT col2 DIV 96 AS col2, col2 FROM tab0
----
0
10
0
47
1
99

skipif mysql # not compatible
query II rowsort label-8032
SELECT DISTINCT col2 / 96 AS col2, col2 FROM tab0
----
0
10
0
47
1
99

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab1 WHERE NULL > - col0 * col2 * + + 71 + - col0 + 84
----

query I rowsort
SELECT 15 * - col0 FROM tab1
----
-1275
-1365
-765

query II rowsort
SELECT ALL ( col2 ) AS col1, - col1 AS col2 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8036
SELECT DISTINCT + - SUM( DISTINCT col0 ) col2, - CAST( NULL AS DECIMAL ) + - + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL BETWEEN - 54 AND NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8036
SELECT DISTINCT + - SUM ( DISTINCT col0 ) col2, - CAST ( NULL AS REAL ) + - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL BETWEEN - 54 AND NULL
----
NULL
NULL

query I rowsort
SELECT ALL - - ( col1 ) + - + col1 + - col2 + + + 80 * + + col0 AS col1 FROM tab2 cor0
----
3657
5080
5942

query I rowsort
SELECT + 99 + col0 + - 93 AS col1 FROM tab1 AS cor0
----
57
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col2 + ( - col2 ) + + col2 col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT + col1 + - 90 DIV + - col2 FROM tab0 cor0
----
1
30
82

skipif mysql # not compatible
query I rowsort label-8040
SELECT + col1 + - 90 / + - col2 FROM tab0 cor0
----
1
30
82

query I rowsort
SELECT col2 + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 9 - + + col2 col1 FROM tab1 AS cor0
----
-590
-680
-960

query II rowsort
SELECT ALL + col0 + + 77 + col2, + ( col0 ) - + + 83 AS col1 FROM tab2 AS cor0
----
146
-37
181
-19
210
-8

query I rowsort
SELECT ALL 21 FROM tab1 AS cor0 WHERE ( NULL ) >= col1 - + + 23 - col2
----

query II rowsort
SELECT DISTINCT col1 + - 76 * + 37 AS col0, - 9 FROM tab2 AS cor0
----
-2735
-9
-2745
-9
-2761
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - - 89 - - COUNT( * ) col1 FROM tab1 cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8047
SELECT - - 89 - - COUNT ( * ) col1 FROM tab1 cor0
----
92

query I rowsort
SELECT DISTINCT + - col2 * - col2 + - - col0 * + col2 FROM tab1 AS cor0
----
10812
14112
8496

onlyif mysql # DIV for integer division: 
query II rowsort label-8049
SELECT DISTINCT - - col2 AS col2, col1 DIV + - col2 FROM tab2 AS cor0
----
23
-2
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-8049
SELECT DISTINCT - - col2 AS col2, col1 / + - col2 FROM tab2 AS cor0
----
23
-2
40
-1
58
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8050
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8050
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + + CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > 46
----

query I rowsort
SELECT ALL col0 * - 43 FROM tab1 WHERE - 41 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8053
SELECT * FROM tab1 WHERE NOT - 61 NOT BETWEEN CAST( + 7 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8053
SELECT * FROM tab1 WHERE NOT - 61 NOT BETWEEN CAST ( + 7 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT col2 DIV + - 41 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8054
SELECT col2 / + - 41 FROM tab1
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= - - col1 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT - SUM( col1 ) * + SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
-10609

skipif mysql # not compatible
query I rowsort label-8056
SELECT - SUM ( col1 ) * + SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
-10609

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT ( - + 24 ) + - MAX( + + col0 ) FROM tab0 AS cor0 WHERE + col1 * - col2 * - col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT ( - + 24 ) + - MAX ( + + col0 ) FROM tab0 AS cor0 WHERE + col1 * - col2 * - col0 NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 42 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT MIN( ALL - 19 ) col1 FROM tab2
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8060
SELECT MIN ( ALL - 19 ) col1 FROM tab2
----
-19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 < NULL
----

query I rowsort
SELECT ALL + 18 / - col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 + - col0 AND - 63
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8063
SELECT - MIN( ALL + - CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT - MIN ( ALL + - CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL + + 65 + - COUNT( * ) col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8064
SELECT ALL + + 65 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
62

query I rowsort
SELECT DISTINCT + ( + + ( - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE CAST( + - col0 AS SIGNED ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8066
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8067
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-8067
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
3
6

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8069
SELECT DISTINCT + CAST( CAST( col0 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT + + col1 * 95 * + col0 IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT + CAST ( CAST ( col0 AS REAL ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT + + col1 * 95 * + col0 IS NULL
----
15
87
97

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL = + + ( 35 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8071
SELECT DISTINCT - col2 + + + 28 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT - col2 + + + 28 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 > - + 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 12, - col2 col1 FROM tab2
----
12
-23
12
-40
12
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8074
SELECT col2 + - 37 * + CAST( NULL AS DECIMAL ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT col2 + - 37 * + CAST ( NULL AS REAL ) + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 62 FROM tab2
----
1426
2480
3596

query I rowsort
SELECT - 12 * - - col2 + col2 FROM tab1
----
-1056
-649
-748

query I rowsort
SELECT + col1 + col0 + - 54 AS col0 FROM tab0
----
42
44
54

query I rowsort
SELECT ALL - col2 * - col1 + - + col1 * + ( - - col0 ) AS col2 FROM tab1
----
-1081
-130
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT COUNT( * ) + - - MAX( DISTINCT - + col1 ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8079
SELECT COUNT ( * ) + - - MAX ( DISTINCT - + col1 ) AS col1 FROM tab0
----
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - col1
----

query I rowsort
SELECT DISTINCT col1 * - col1 * - 16 AS col2 FROM tab1
----
3136
35344
400

query I rowsort
SELECT DISTINCT - col2 + - col1 + + ( - col0 ) FROM tab0
----
-118
-143
-197

query I rowsort
SELECT - ( 34 ) + - col2 AS col1 FROM tab1
----
-102
-130
-93

query I rowsort
SELECT ALL ( + - 2 ) + - + col0 - - col2 FROM tab0
----
-79
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT COUNT( - 51 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8085
SELECT COUNT ( - 51 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - col2 - + + 55 AS col2 FROM tab2
----
-113
-78
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT COUNT( * ) + 54 AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8089
SELECT COUNT ( * ) + 54 AS col2 FROM tab2
----
57

query I rowsort
SELECT + col0 * + ( + 82 ) * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8091
SELECT ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 18 NOT BETWEEN col0 AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 70 IS NOT NULL
----

query I rowsort
SELECT col0 * - + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-8095
SELECT + COUNT( * ) AS col0, + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8095
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT SUM( - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT SUM ( - col2 ) AS col2 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab1 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT MAX( DISTINCT - + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8098
SELECT MAX ( DISTINCT - + col1 ) FROM tab1
----
-5

query II rowsort
SELECT ALL - 34, col1 AS col1 FROM tab1
----
-34
14
-34
47
-34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT MIN( ALL + 38 ) col1 FROM tab1
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8100
SELECT MIN ( ALL + 38 ) col1 FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8101
SELECT DISTINCT + COUNT( * ) AS col0, + MAX( - col0 ) AS col0 FROM tab2
----
3
-46

skipif mysql # not compatible
query II rowsort label-8101
SELECT DISTINCT + COUNT ( * ) AS col0, + MAX ( - col0 ) AS col0 FROM tab2
----
3
-46

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0, - 77 + - col0 + 43 AS col2 FROM tab2 AS cor0
----
-46
-80
-64
-98
-75
-109

query II rowsort
SELECT + 89 AS col2, 2 AS col1 FROM tab0 AS cor0
----
89
2
89
2
89
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT COUNT( ALL - 34 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT COUNT ( ALL - 34 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 70 * + col1 * col0 FROM tab2
----
164220
344960
351750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8107
SELECT DISTINCT - - ( + + col1 ), 28 * + + CAST( NULL AS SIGNED ) + + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 = - 12
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8107
SELECT DISTINCT - - ( + + col1 ), 28 * + + CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 = - 12
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 20 ) - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT DISTINCT + CAST( ( + 37 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + CAST ( ( + 37 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8110
SELECT - 14 + - + COUNT( * ) + + 83 DIV 46 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8110
SELECT - 14 + - + COUNT ( * ) + + 83 / 46 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL + - col0 * + 96 + + 18 FROM tab2 cor0
----
-4398
-6126
-7182

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 + + 11 + - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - + SUM( col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8113
SELECT - + SUM ( col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT - col2 * + col1 - - 56 AS col1 FROM tab0 AS cor0
----
-154
-3751
-43

query I rowsort
SELECT - - col1 * ( 86 ) AS col1 FROM tab0 AS cor0
----
1806
6966
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT - - COUNT( * ) * + 25 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT - - COUNT ( * ) * + 25 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - MAX( + col2 ) * - MIN( + + col1 ) AS col0 FROM tab2
----
2958

skipif mysql # not compatible
query I rowsort label-8117
SELECT - MAX ( + col2 ) * - MIN ( + + col1 ) AS col0 FROM tab2
----
2958

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + col1
----

query II rowsort
SELECT DISTINCT - col1 * + col2 * - + col1 AS col0, col0 AS col2 FROM tab0
----
308367
15
4410
87
99
97

query I rowsort
SELECT ALL col1 * + 11 AS col0 FROM tab0
----
11
231
891

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col0 / + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) * + - col0 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT DISTINCT col1 * col0 + - CAST( - + col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
1296
1848
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8123
SELECT DISTINCT col1 * col0 + - CAST ( - + col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT 94 * - ( + - col1 ) + - col2 AS col1 FROM tab2 AS cor0
----
4771
6240
7198

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT - 5 - - + COUNT( * ) + - ( 53 ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT - 5 - - + COUNT ( * ) + - ( 53 ) FROM tab1 AS cor0
----
-55

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT DISTINCT + 41 DIV - 94 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT + 41 / - 94 FROM tab2
----
0

query I rowsort
SELECT 91 * - col1 AS col0 FROM tab2
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT + + SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8129
SELECT + + SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 BETWEEN - 23 AND - - col0 )
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT - - col1 * - col2 + + - col1 DIV col2 FROM tab2 AS cor0
----
-1175
-3081
-3887

skipif mysql # not compatible
query I rowsort label-8131
SELECT - - col1 * - col2 + + - col1 / col2 FROM tab2 AS cor0
----
-1175
-3081
-3887

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8132
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8132
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT DISTINCT MAX( ALL + - 81 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT MAX ( ALL + - 81 ) FROM tab1 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8134
SELECT DISTINCT - 12 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-8134
SELECT DISTINCT - 12 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - - MAX( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT - - MAX ( DISTINCT col1 ) col2 FROM tab2 AS cor0
----
77

query II rowsort
SELECT ALL - col1 AS col1, - col2 AS col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query II rowsort
SELECT ALL + 47 AS col2, col0 AS col0 FROM tab2 AS cor0
----
47
46
47
64
47
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT - MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8138
SELECT - MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 84 col0, + col0 AS col1 FROM tab2 AS cor0
----
84
46
84
64
84
75

query I rowsort
SELECT ALL 63 * - col2 FROM tab1
----
-3717
-4284
-6048

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8141
SELECT + col2 - + - col1 * 58 FROM tab2 WHERE NOT + - col0 + col2 * 13 NOT BETWEEN CAST( NULL AS DECIMAL ) AND col1
----

skipif mysql # not compatible
query I rowsort label-8141
SELECT + col2 - + - col1 * 58 FROM tab2 WHERE NOT + - col0 + col2 * 13 NOT BETWEEN CAST ( NULL AS REAL ) AND col1
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT DISTINCT ( + - CAST( - col2 AS SIGNED ) ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT ( + - CAST ( - col2 AS INTEGER ) ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab0
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8145
SELECT - + col1 + - - col0 DIV + col2 AS col0 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-8145
SELECT - + col1 + - - col0 / + col2 AS col0 FROM tab2 AS cor0
----
-49
-66
-76

query I rowsort
SELECT + + col2 * - 81 * 98 + 46 FROM tab0 AS cor0
----
-373040
-785816
-79334

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab2 cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL + 13 + - COUNT( * ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + 13 + - COUNT ( * ) AS col1 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT + COUNT( * ) * - 51 AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + COUNT ( * ) * - 51 AS col0 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT ALL - 59 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - + 70 ) FROM tab2 AS cor0 WHERE NOT col0 <> - col2 + - + col0 + + col0 * - - col0
----

query II rowsort
SELECT ALL + col0 * + 14 + - col1 + col2 AS col1, col2 * + 99 FROM tab0 cor0
----
1207
990
1456
9801
176
4653

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - 15 * - 93 + + - COUNT( * ) AS col2 FROM tab2 cor0
----
1392

skipif mysql # not compatible
query I rowsort label-8153
SELECT - 15 * - 93 + + - COUNT ( * ) AS col2 FROM tab2 cor0
----
1392

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col2 * - + 96 - - - col0 - - + 13 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL - COUNT( * ) * + 90 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL - COUNT ( * ) * + 90 FROM tab2 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT + + 57 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8156
SELECT + + 57 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-8157
SELECT ALL + 43 AS col0, - 53 DIV 92 FROM tab1 cor0
----
43
0
43
0
43
0

skipif mysql # not compatible
query II rowsort label-8157
SELECT ALL + 43 AS col0, - 53 / 92 FROM tab1 cor0
----
43
0
43
0
43
0

query II rowsort
SELECT ALL col0 AS col1, - col0 FROM tab1 AS cor0 WHERE NOT col2 - - - 67 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 16 + ( + + col0 ) + - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL ( - + COUNT( * ) ) * 6 * - MIN( + 36 ) FROM tab2
----
648

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL ( - + COUNT ( * ) ) * 6 * - MIN ( + 36 ) FROM tab2
----
648

query II rowsort
SELECT DISTINCT - 36 + + 4 AS col0, - col0 FROM tab1
----
-32
-51
-32
-85
-32
-91

query I rowsort
SELECT - 53 * col1 AS col1 FROM tab2
----
-2703
-3551
-4081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 43 + 82 col2 FROM tab0
----
104
124
44

query I rowsort
SELECT 53 * - col1 AS col0 FROM tab0
----
-1113
-4293
-53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 19 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 66 + + col1 * + col0 * - 44 FROM tab1 AS cor0
----
-18766
-188254
-31482

query I rowsort
SELECT ALL - + 68 + - 40 FROM tab1 AS cor0
----
-108
-108
-108

query I rowsort
SELECT - + 18 - - + col2 FROM tab0 AS cor0
----
-8
29
81

query I rowsort
SELECT 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT col0 * + - 56 AS col0 FROM tab2 AS cor0 WHERE NOT 73 * + 81 + + col2 >= + - col2 / + col1 * - + 72 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + - 65 + - SUM( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT + - 65 + - SUM ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + col1 <= NULL
----
NULL

query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab1 cor0
----
68

query I rowsort
SELECT DISTINCT + + 32 * - col1 AS col2 FROM tab0 AS cor0
----
-2592
-32
-672

query I rowsort
SELECT ALL - - 35 * + col1 FROM tab0 AS cor0
----
2835
35
735

query II rowsort
SELECT 51 AS col2, + col0 AS col1 FROM tab2
----
51
46
51
64
51
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - ( - col1 ) + 15 * + 86 AS col0 FROM tab1
----
59
1295
68
1337
96
1304

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT DISTINCT ( + SUM( DISTINCT + + col1 ) ) col2 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8179
SELECT DISTINCT ( + SUM ( DISTINCT + + col1 ) ) col2 FROM tab0
----
103

query I rowsort
SELECT DISTINCT - col0 + - - 84 AS col0 FROM tab2
----
20
38
9

query I rowsort
SELECT DISTINCT + 34 * col1 FROM tab1
----
1598
170
476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT ALL - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL + 48 * MAX( 16 ) + + COUNT( 39 ) FROM tab0 AS cor0
----
771

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL + 48 * MAX ( 16 ) + + COUNT ( 39 ) FROM tab0 AS cor0
----
771

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL + SUM( ALL + + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + SUM ( ALL + + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - COUNT( * ) * + SUM( DISTINCT + - ( + 34 ) ) + + COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-8188
SELECT - COUNT ( * ) * + SUM ( DISTINCT + - ( + 34 ) ) + + COUNT ( * ) FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT + - 26 + SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-211

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT + - 26 + SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-211

query II rowsort
SELECT - - ( 33 ), - 21 + 82 AS col0 FROM tab1 AS cor0
----
33
61
33
61
33
61

query I rowsort
SELECT - - ( - + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * 49 IN ( - 14 )
----

query I rowsort
SELECT ALL - ( 4 ) - + col1 + + + 72 FROM tab0 cor0
----
-13
47
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL COUNT( * ) + + 69 AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL COUNT ( * ) + + 69 AS col2 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8195
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, 76 * + col2 FROM tab0 AS cor0
----
NULL
3572
NULL
7524
NULL
760

skipif mysql # not compatible
query II rowsort label-8195
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, 76 * + col2 FROM tab0 AS cor0
----
NULL
3572
NULL
7524
NULL
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 94 - - + col0, col0 col1 FROM tab2 AS cor0
----
140
46
158
64
169
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT SUM( ALL col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8198
SELECT SUM ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + + col0 + - 51 * - - col2 FROM tab2 cor0
----
-1127
-1976
-2883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8200
SELECT col0 - + 65 + col2 * + - col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT col0 - + 65 + col2 * + - col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT - 64 - COUNT( * ) AS col1 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-8201
SELECT - 64 - COUNT ( * ) AS col1 FROM tab1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8202
SELECT + CAST( NULL AS SIGNED ) - + - 16 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT + CAST ( NULL AS INTEGER ) - + - 16 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 83 + - + col0 AS col1 FROM tab2
----
19
37
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT ALL COUNT( * ), COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8205
SELECT ALL COUNT ( * ), COUNT ( * ) AS col2 FROM tab1
----
3
3

query II rowsort
SELECT DISTINCT 11, - 42 AS col0 FROM tab2 AS cor0
----
11
-42

query I rowsort
SELECT - ( - + 67 ) AS col0 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8208
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query IIIIII rowsort
SELECT DISTINCT * 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 - col0 * + 16 + + 32 col1 FROM tab2 AS cor0
----
-1168
-704
-992

query I rowsort
SELECT 93 AS col1 FROM tab0 cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE NOT + 18 IS NOT NULL
----

query II rowsort
SELECT + col0 * - 39 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-1794
-23
-2496
-40
-2925
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-8215
SELECT ALL + ( + col1 ) * + ( - 99 ), - col2 DIV ( + col2 ) col2 FROM tab2 AS cor0
----
-5049
-1
-6633
-1
-7623
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8215
SELECT ALL + ( + col1 ) * + ( - 99 ), - col2 / ( + col2 ) col2 FROM tab2 AS cor0
----
-5049
-1
-6633
-1
-7623
-1

query I rowsort
SELECT ALL - 86 * + 6 AS col2 FROM tab2 AS cor0
----
-516
-516
-516

onlyif mysql # DIV for integer division: 
query II rowsort label-8217
SELECT DISTINCT col1 DIV + col2, + col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-8217
SELECT DISTINCT col1 / + col2, + col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) - - col1 * - 11 / + col0 * 98 * + + 54 FROM tab0 AS cor0 WHERE NOT col2 / - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) - - col1 * - 11 / + col0 * 98 * + + 54 FROM tab0 AS cor0 WHERE NOT col2 / - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT - MAX( - + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT - MAX ( - + col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT + ( - 50 ) FROM tab1
----
-50
-50
-50

query II rowsort
SELECT DISTINCT - 47, - col0 AS col2 FROM tab2
----
-47
-46
-47
-64
-47
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT - 97 * - + COUNT( * ) * + 85 + - ( - - 57 ) FROM tab1
----
24678

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT - 97 * - + COUNT ( * ) * + 85 + - ( - - 57 ) FROM tab1
----
24678

query II rowsort
SELECT col2 * col1 + 55, - col0 AS col1 FROM tab0
----
154
-97
265
-87
3862
-15

query I rowsort
SELECT + 76 + + 63 AS col1 FROM tab2
----
139
139
139

query I rowsort
SELECT DISTINCT col1 + col0 * 98 FROM tab0
----
1551
8547
9507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT + col0 + - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT + col0 + - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 42 + + + col1 - - 57 - - 16 FROM tab2
----
108
82
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col1 col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT - col2 + - col2 + - col0 * + - col2 / col2 * + col1 + col1 * - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + - - col1 <> col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8231
SELECT DISTINCT + - col0 AS col1, - 25 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-15
375
-87
2175
-97
2425

skipif mysql # not compatible
query II rowsort label-8231
SELECT DISTINCT + - col0 AS col1, - 25 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-15
375
-87
2175
-97
2425

query I rowsort
SELECT + col2 * - - 11 FROM tab0 AS cor0
----
1089
110
517

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT + ( + 36 ) DIV + + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT + ( + 36 ) / + + col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 89 - + 35 + - col2 FROM tab1
----
-14
-42
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL - MIN( + col0 ) + - 76 AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - MIN ( + col0 ) + - 76 AS col0 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - 6 + + + col0 + + col1 AS col1 FROM tab2 AS cor0
----
135
136
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 + col0 col0 FROM tab2 cor0
----
128
146
157

query I rowsort
SELECT - - col0 + 41 AS col0 FROM tab1 AS cor0
----
126
132
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8240
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) / + ( - - COUNT( * ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8240
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) / + ( - - COUNT ( * ) ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8241
SELECT ALL * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) < + + col2
----

skipif mysql # not compatible
query III rowsort label-8241
SELECT ALL * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) < + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT CAST( 69 AS SIGNED ) * col2 FROM tab1
----
4071
4692
6624

skipif mysql # not compatible
query I rowsort label-8242
SELECT CAST ( 69 AS INTEGER ) * col2 FROM tab1
----
4071
4692
6624

query I rowsort
SELECT DISTINCT + ( - - 94 ) * - - col0 AS col2 FROM tab0 cor0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL - ( MAX( ALL - col0 ) ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL - ( MAX ( ALL - col0 ) ) AS col1 FROM tab1 AS cor0
----
51

query II rowsort
SELECT col0, col0 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * - 98 AS col1 FROM tab2 WHERE NOT - 36 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8247
SELECT DISTINCT - col2 AS col0, - CAST( NULL AS SIGNED ) / - - 12 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-8247
SELECT DISTINCT - col2 AS col0, - CAST ( NULL AS INTEGER ) / - - 12 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT + + 25 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 47 / + ( + 73 ) IS NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8250
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND + + 83
----

skipif mysql # not compatible
query III rowsort label-8250
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT + - 19 * - - COUNT( * ) FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8251
SELECT + - 19 * - - COUNT ( * ) FROM tab1 cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <= ( 57 )
----
15
81
47

query I rowsort
SELECT - ( + col0 ) * + 1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 51 >= - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8255
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8255
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col1 FROM tab1
----
52

query III rowsort
SELECT * FROM tab1 WHERE col2 = col1
----

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + col2 * + 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT col1 col0 FROM tab1 WHERE - - col0 <= ( - CAST( + + 31 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8260
SELECT col1 col0 FROM tab1 WHERE - - col0 <= ( - CAST ( + + 31 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT ( + + ( + - col2 ) ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT + MIN( ( + - 90 ) ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT + MIN ( ( + - 90 ) ) FROM tab2
----
-90

query I rowsort
SELECT ALL col2 * 57 FROM tab2
----
1311
2280
3306

query I rowsort
SELECT DISTINCT + col2 - + - ( ( - col1 ) ) * + + col1 * - col2 FROM tab2
----
237200
260420
59846

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE ( NOT col2 + - col2 IS NULL )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL - MIN( DISTINCT + - col1 ) + - + 50 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - MIN ( DISTINCT + - col1 ) + - + 50 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( 12 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * ( + col2 ) IS NULL
----

query I rowsort
SELECT - 2 AS col0 FROM tab0 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8269
SELECT ALL - + 30 AS col0, col0 * - col2 + - col2 / ( - col0 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 + + + col0 - - - col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-8269
SELECT ALL - + 30 AS col0, col0 * - col2 + - col2 / ( - col0 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 + + + col0 - - - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 - - col2 col2 FROM tab0 AS cor0
----
-19
195
76

query II rowsort
SELECT DISTINCT - col1 - - + col0 + - + col1 AS col0, - col0 FROM tab1 AS cor0
----
-3
-91
23
-51
75
-85

query I rowsort
SELECT - col0 - - col0 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT ALL col1 * - col0, + col0 + - col1 AS col2 FROM tab0
----
-1215
-66
-1827
66
-97
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT ALL - 13 * COUNT( * ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - 13 * COUNT ( * ) FROM tab0
----
-39

query I rowsort
SELECT DISTINCT - 80 * + col2 FROM tab2
----
-1840
-3200
-4640

query II rowsort
SELECT ALL + 14 AS col1, 44 AS col1 FROM tab1
----
14
44
14
44
14
44

query II rowsort
SELECT ALL - col1 AS col1, + col0 AS col2 FROM tab0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT col0, col0 + + - col0 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8279
SELECT ALL - - col2 DIV + - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL - - col2 / + - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT DISTINCT + 0 DIV - - 5 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT + 0 / - - 5 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8281
SELECT + COUNT( ALL - 73 ) AS col0, 92 DIV COUNT( * ) col2 FROM tab0 AS cor0
----
3
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8281
SELECT + COUNT ( ALL - 73 ) AS col0, 92 / COUNT ( * ) col2 FROM tab0 AS cor0
----
3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT + SUM( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8282
SELECT + SUM ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL 12 / - 3 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - ( 20 ) * + + 17 NOT IN ( + 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT SUM( - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT SUM ( - col2 ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col0 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT 41 AS col2 FROM tab1 cor0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT ALL col0 + + + 7 DIV + col0 + - col1 + + - 17 FROM tab2 AS cor0
----
-22
-30
-9

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL col0 + + + 7 / + col0 + - col1 + + - 17 FROM tab2 AS cor0
----
-22
-30
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * ( - + col1 ) * ( - 78 ) * + col0 * - col2 col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT + 4 * - COUNT( * ) * - 85 FROM tab1 AS cor0
----
1020

skipif mysql # not compatible
query I rowsort label-8290
SELECT + 4 * - COUNT ( * ) * - 85 FROM tab1 AS cor0
----
1020

query I rowsort
SELECT DISTINCT + ( + + ( + - col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT 77 + + + col2 FROM tab1
----
136
145
173

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + 7 IS NULL )
----

query I rowsort
SELECT 94 * 24 + + + 55 AS col0 FROM tab1
----
2311
2311
2311

query III rowsort
SELECT * FROM tab2 WHERE + col2 * 53 - - 78 BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT COUNT( * ) + - 7 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8297
SELECT COUNT ( * ) + - 7 FROM tab0
----
-4

query I rowsort
SELECT DISTINCT + col0 + - 30 FROM tab1 AS cor0 WHERE - ( + 39 ) * + - 64 IS NULL
----

query I rowsort
SELECT + col1 / - col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col0 IN ( col0 / - 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8301
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT ( NULL ) BETWEEN + col2 + 39 / + col0 AND - 10
----

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL CAST ( NULL AS REAL ) FROM tab0 WHERE NOT ( NULL ) BETWEEN + col2 + 39 / + col0 AND - 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8302
SELECT DISTINCT CAST( - 74 AS SIGNED ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT CAST ( - 74 AS INTEGER ) FROM tab2
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8303
SELECT 80 AS col1 FROM tab0 WHERE col1 * + col1 - - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8303
SELECT 80 AS col1 FROM tab0 WHERE col1 * + col1 - - CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 36 NOT IN ( - col1 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT ( col1 ) DIV - col2 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT ( col1 ) / - col2 AS col1 FROM tab0
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> - col1 * - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8307
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) + + 3 AS col2 FROM tab1 WHERE 86 / + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) + + 3 AS col2 FROM tab1 WHERE 86 / + col2 IS NULL
----

query I rowsort
SELECT ALL + 46 * col2 AS col1 FROM tab0
----
2162
4554
460

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL - SUM( ALL 43 ) + - 37 FROM tab2
----
-166

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL - SUM ( ALL 43 ) + - 37 FROM tab2
----
-166

query I rowsort
SELECT DISTINCT - col0 + + 71 FROM tab0
----
-16
-26
56

query I rowsort
SELECT DISTINCT + 56 * ( - col0 ) AS col1 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT ALL 44 FROM tab1 WHERE NOT col0 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 <= ( col1 )
----

query I rowsort
SELECT ( + 74 ) - + col2 AS col2 FROM tab1 WHERE + col2 NOT BETWEEN + col1 AND col2
----

query I rowsort
SELECT DISTINCT 4 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE NULL <= + col0
----

query I rowsort
SELECT col0 FROM tab1 WHERE ( ( col1 ) ) > NULL
----

query I rowsort
SELECT ALL ( - 57 ) AS col0 FROM tab0
----
-57
-57
-57

query III rowsort
SELECT * FROM tab2 WHERE 85 * - col1 IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NULL IN ( 38 )
----
0

skipif mysql # not compatible
query I rowsort label-8321
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IN ( 38 )
----
0

query I rowsort
SELECT DISTINCT + col2 * col1 AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
1173
3080
3886

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE 16 / - col1 >= 43 + - 79
----
51
67
77

query I rowsort
SELECT ALL col2 + + col0 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL 59 + - col1 * + col2 AS col0 FROM tab1
----
-1285
-236
-3137

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT 82 + SUM( + col1 ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
277

skipif mysql # not compatible
query I rowsort label-8326
SELECT 82 + SUM ( + col1 ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
277

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 cor0 WHERE NOT ( col0 ) <> ( + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + col1 < ( - col0 )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( col0 ) * - col2 ) < ( NULL )
----

query I rowsort
SELECT 95 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 94 + - 31 * + col0 NOT BETWEEN NULL AND ( + 63 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col2 + 76 )
----

query I rowsort
SELECT DISTINCT - col2 * + col0 + col1 AS col0 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT ALL - 46 AS col0 FROM tab2 AS cor0 WHERE NULL = ( + col2 / col2 )
----

query I rowsort
SELECT 97 * 14 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT - 79 + + 51 * COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8337
SELECT - 79 + + 51 * COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( - col1 ) ) = ( NULL )
----

query I rowsort
SELECT DISTINCT - - col0 + 6 * - col1 FROM tab0 AS cor0
----
-39
-471
91

query I rowsort
SELECT DISTINCT + 99 + - 70 * col1 FROM tab0 AS cor0
----
-1371
-5571
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8341
SELECT DISTINCT + - 77 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT + - 77 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT - 35 * 38 AS col2 FROM tab1 AS cor0
----
-1330
-1330
-1330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8343
SELECT CAST( NULL AS SIGNED ) * 93 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT CAST ( NULL AS INTEGER ) * 93 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT - CAST( 17 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-1445
-1547
-867

skipif mysql # not compatible
query I rowsort label-8344
SELECT - CAST ( 17 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-1445
-1547
-867

query III rowsort
SELECT * FROM tab1 WHERE - col2 + + col2 BETWEEN + 32 - 40 AND NULL
----

query I rowsort
SELECT 84 * - col0 AS col2 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT + 54 DIV - - 92 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT + 54 / - - 92 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT + SUM( + + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8348
SELECT + SUM ( + + col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8349
SELECT - 72 DIV SUM( ALL + col1 ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8349
SELECT - 72 / SUM ( ALL + col1 ) col2 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE ( 4 * + col0 ) IN ( - col0 )
----

query I rowsort
SELECT ALL - 18 + - col0 FROM tab0
----
-105
-115
-33

query I rowsort
SELECT DISTINCT 93 FROM tab0 WHERE 46 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( 48 + col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( 48 + col1 ) <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT ALL CAST( NULL AS SIGNED ) - COUNT( ALL 81 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8354
SELECT ALL CAST ( NULL AS INTEGER ) - COUNT ( ALL 81 ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + 5 + COUNT( * ) * COUNT( * ) col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8355
SELECT + 5 + COUNT ( * ) * COUNT ( * ) col0 FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8356
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT + - col1 / - CAST( NULL AS SIGNED ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT + - col1 / - CAST ( NULL AS INTEGER ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - col1 * col0 AS col0 FROM tab0 AS cor0
----
-1168
-1817
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 + - ( + col2 ) col2 FROM tab0 AS cor0
----
-145
-56
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8360
SELECT ALL COUNT( * ) * 84 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL COUNT ( * ) * 84 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < NULL
----
0

query I rowsort
SELECT ( - + col2 ) + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 - - col1 AS col0 FROM tab2
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, col0 col1 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - col1 ) NOT IN ( 46 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - + 41, 59 * + - 76 AS col2 FROM tab1 AS cor0
----
-41
-4484
-41
-4484
-41
-4484

query I rowsort
SELECT DISTINCT + + col2 * 52 AS col1 FROM tab0 AS cor0
----
2444
5148
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + ( 6 ) ) col0 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT ( MIN( 17 ) ) DIV 42 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT ( MIN ( 17 ) ) / 42 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col0 + 16 AS col0 FROM tab0 AS cor0
----
-10
103
-47
31
-99
113

query I rowsort
SELECT - + col0 * + col2 * col2 FROM tab2 cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT - - MAX( - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8372
SELECT - - MAX ( - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - ( - ( - 29 ) ) FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT - 30 * - 51 - - - 77 DIV 10 AS col1 FROM tab0 AS cor0
----
1523
1523
1523

skipif mysql # not compatible
query I rowsort label-8374
SELECT - 30 * - 51 - - - 77 / 10 AS col1 FROM tab0 AS cor0
----
1523
1523
1523

query II rowsort
SELECT DISTINCT + 14, + col2 AS col0 FROM tab2 AS cor0
----
14
23
14
40
14
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + - col1 * - col1 col2 FROM tab1 AS cor0
----
103823
125
2744

query I rowsort
SELECT ALL + col0 * - col1 AS col1 FROM tab2 WHERE + col1 + + + col1 * col2 >= - col0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + + col0 + col0 * 85 AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT - MIN( - 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT - MIN ( - 74 ) FROM tab1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8380
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8380
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8381
SELECT + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
9

query II rowsort
SELECT DISTINCT - 46 * col0 AS col2, + col1 AS col0 FROM tab0 AS cor0
----
-4002
21
-4462
1
-690
81

query I rowsort
SELECT col0 + + 41 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( - + col1 )
----
105
116
87

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( + 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col0 FROM tab2 AS cor0 WHERE NOT + col1 < + col1
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT - 24 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + + + 66 * - - 14 + CAST( + 76 AS SIGNED ) * 75 IS NOT NULL
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-8386
SELECT - 24 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + + + 66 * - - 14 + CAST ( + 76 AS INTEGER ) * 75 IS NOT NULL
----
-24
-24
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <= - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 < ( NULL )
----

query I rowsort
SELECT ALL - 42 + + col2 + + + col1 FROM tab1 AS cor0
----
22
68
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 96 ) NOT BETWEEN ( NULL ) AND ( 6 / col0 ) AND NOT 6 IS NOT NULL
----

query I rowsort
SELECT + + col2 + 36 AS col0 FROM tab1 AS cor0
----
104
132
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT - COUNT( * ) + - 64 + 55 * - - COUNT( * ) * + 90 FROM tab0 cor0
----
14783

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT - COUNT ( * ) + - 64 + 55 * - - COUNT ( * ) * + 90 FROM tab0 cor0
----
14783

query I rowsort
SELECT - 33 * ( col2 ) + - ( - col1 ) FROM tab1
----
-1942
-2197
-3154

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT ( + 40 * + col2 * col2 + - 16 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE - + col0 IS NULL
----

query I rowsort
SELECT col1 * + + col0 * + col2 + + col2 AS col2 FROM tab2
----
197160
291508
53981

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - ( - MIN( + + col0 ) ) + + COUNT( * ) * COUNT( * ) - 18 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8397
SELECT - ( - MIN ( + + col0 ) ) + + COUNT ( * ) * COUNT ( * ) - 18 FROM tab1
----
42

query I rowsort
SELECT 10 * + 61 AS col0 FROM tab0
----
610
610
610

query I rowsort
SELECT ( - + 31 ) FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL col0 - + 19 FROM tab1 AS cor0
----
32
66
72

query I rowsort
SELECT col0 + + 72 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
159
169
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 * 76 + - + 2 > + 59 / - - col1
----
0

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 * 76 + - + 2 > + 59 / - - col1
----
0

query I rowsort
SELECT ALL - col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IN ( - col0 + 78 )
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT + MAX( ALL + + col2 ) * + 76 - + 2 FROM tab1
----
7294

skipif mysql # not compatible
query I rowsort label-8404
SELECT + MAX ( ALL + + col2 ) * + 76 - + 2 FROM tab1
----
7294

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 / 63 IS NOT NULL
----

query I rowsort
SELECT col2 * - 5 FROM tab0
----
-235
-495
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT DISTINCT CAST( + - col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + - col1 * - col1 + col2 <= ( + 71 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 49 + col1 = col2 * - col0 * 43 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - + col1 * 92 AND + col2 * - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 73 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
73
73
73

query I rowsort
SELECT DISTINCT - + 71 * col0 FROM tab2 cor0
----
-3266
-4544
-5325

query II rowsort
SELECT ALL + 0 * - + col0, ( + + 56 ) AS col1 FROM tab2 AS cor0
----
0
56
0
56
0
56

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE + col1 + + 75 IN ( + 9 / + col2 * - 98 * + - col1 )
----

query I rowsort
SELECT 23 AS col0 FROM tab1 WHERE NOT - ( - col2 ) IS NULL
----
23
23
23

query II rowsort
SELECT ALL + col0 AS col0, + col1 * - 84 FROM tab0
----
15
-6804
87
-1764
97
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8417
SELECT - 62 DIV COUNT( * ) * - + 90 FROM tab0
----
1800

skipif mysql # not compatible
query I rowsort label-8417
SELECT - 62 / COUNT ( * ) * - + 90 FROM tab0
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT SUM( + 9 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT SUM ( + 9 ) FROM tab0
----
27

query II rowsort
SELECT ALL col0, + 4 AS col1 FROM tab0
----
15
4
87
4
97
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL COUNT( * ) * + 73 AS col1 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL COUNT ( * ) * + 73 AS col1 FROM tab0
----
219

query II rowsort
SELECT DISTINCT + 60 AS col1, col0 + - ( 17 ) + + - 11 FROM tab0 AS cor0
----
60
-13
60
59
60
69

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 39 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT + col0 * + - CAST( col2 AS SIGNED ) FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8423
SELECT + col0 * + - CAST ( col2 AS INTEGER ) FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8424
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NULL IN ( + CAST( + + 61 AS SIGNED ) * + col0 + - + col2 + + - 16, col0 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( + + 61 AS INTEGER ) * + col0 + - + col2 + + - 16, col0 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + ( 9 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + ( 9 ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + - 25 * - 6 AS col0, - ( - col0 ) AS col0 FROM tab2 AS cor0
----
150
46
150
64
150
75

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col1 + - + 82 * 88 / + col1 * col2 IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 - 73 + + col1 * + - col2 * - - col2 * + 97 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT - - 31 + COUNT( * ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT - - 31 + COUNT ( * ) FROM tab1 AS cor0
----
34

query I rowsort
SELECT - - 49 AS col1 FROM tab0 cor0
----
49
49
49

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8433
SELECT + CAST( NULL AS SIGNED ) AS col0, 8 AS col1 FROM tab2
----
NULL
8
NULL
8
NULL
8

skipif mysql # not compatible
query II rowsort label-8433
SELECT + CAST ( NULL AS INTEGER ) AS col0, 8 AS col1 FROM tab2
----
NULL
8
NULL
8
NULL
8

query I rowsort
SELECT - 80 - + col1 AS col1 FROM tab0
----
-101
-161
-81

query I rowsort
SELECT AVG ( - + ( - + col1 ) ) AS col0 FROM tab2 WHERE NULL >= + - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT 79 + + COUNT( * ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-8436
SELECT 79 + + COUNT ( * ) FROM tab1
----
82

query I rowsort
SELECT col1 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - COUNT( * ) + - 86 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8438
SELECT - COUNT ( * ) + - 86 FROM tab0 AS cor0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 45 col0 FROM tab0 AS cor0
----
-2
-54
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT + COUNT( * ) + + 3 FROM tab2 WHERE NOT + 30 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-8442
SELECT + COUNT ( * ) + + 3 FROM tab2 WHERE NOT + 30 IS NULL
----
6

query I rowsort
SELECT ALL 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query II rowsort
SELECT DISTINCT col1, + col1 + - col1 AS col0 FROM tab0 cor0
----
1
0
21
0
81
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 1 - 74 NOT BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND + 43
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 60 * + col2 * - 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8448
SELECT + 19 * - + COUNT( * ) DIV - - SUM( - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8448
SELECT + 19 * - + COUNT ( * ) / - - SUM ( - col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 95 * + + col2 FROM tab1 AS cor0
----
5605
6460
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8450
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 18 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + - MAX( DISTINCT - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8452
SELECT + - MAX ( DISTINCT - col1 ) FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - + col1 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

query II rowsort
SELECT + col2 * 33, col2 + + 70 AS col1 FROM tab0 AS cor0
----
1551
117
3267
169
330
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8455
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8455
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + - - col2 * col0 * - 5 FROM tab1
----
-24384
-25016
-30872

query I rowsort
SELECT col2 + + 90 FROM tab2
----
113
130
148

query I rowsort
SELECT ALL col2 + + + 34 FROM tab2
----
57
74
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8460
SELECT DISTINCT + col1 + + col1 + + col2 DIV col2 + 92 * + 93 AS col2 FROM tab1 AS cor0
----
8567
8585
8651

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + col1 + + col1 + + col2 / col2 + 92 * + 93 AS col2 FROM tab1 AS cor0
----
8567
8585
8651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0 WHERE NOT NULL = 54
----

query II rowsort
SELECT - ( 89 ) + - col2 AS col1, col1 + - + col0 + + 29 + - col0 AS col2 FROM tab1 AS cor0
----
-148
-136
-157
-106
-185
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL OR - 88 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab0 WHERE col1 + + col0 IS NOT NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT 7 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-8465
SELECT 7 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT COUNT( + col0 ) FROM tab1 WHERE NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-8466
SELECT COUNT ( + col0 ) FROM tab1 WHERE NULL <= col2
----
0

query II rowsort
SELECT col0 AS col2, + col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT col1 * - + col1 - + + col2 FROM tab1 AS cor0
----
-2277
-292
-84

query I rowsort
SELECT + 45 FROM tab2 AS cor0 WHERE col1 - 81 + 72 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT - col0 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT + col2 + - CAST( NULL AS SIGNED ) + 81 * - col2 * - - 80 * - col2 * - + col2 + - + 21 * + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT + col2 + - CAST ( NULL AS INTEGER ) + 81 * - col2 * - - 80 * - col2 * - + col2 + - + 21 * + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - ( + col2 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 37 + - 8 FROM tab0 AS cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * - col0 col1 FROM tab0
----
-1168
-1817
2

query III rowsort
SELECT * FROM tab2 WHERE - 75 + col0 + + col2 BETWEEN ( col2 ) AND col0 + - - col1 + + col2
----
75
67
58

query I rowsort
SELECT DISTINCT ( col0 ) * ( - + 24 ) FROM tab0
----
-2088
-2328
-360

query I rowsort
SELECT + col1 * 44 FROM tab0
----
3564
44
924

query II rowsort
SELECT DISTINCT - col0 * - 47 AS col2, + col0 FROM tab0
----
4089
87
4559
97
705
15

query I rowsort
SELECT DISTINCT + col2 * col2 * + + 98 AS col1 FROM tab2
----
156800
329672
51842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT - col2 * CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-8481
SELECT - col2 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT CAST( 29 AS SIGNED ) AS col2 FROM tab0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-8483
SELECT CAST ( 29 AS INTEGER ) AS col2 FROM tab0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8484
SELECT * FROM tab1 WHERE NOT - col0 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8484
SELECT * FROM tab1 WHERE NOT - col0 > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + ( - - 31 ) * + - 65 FROM tab2 WHERE ( NOT col1 IS NOT NULL )
----

query I rowsort
SELECT ALL - 10 FROM tab2 cor0
----
-10
-10
-10

query II rowsort
SELECT ALL + + col2 AS col1, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT ALL - + col2 * - 32 FROM tab1 AS cor0
----
1888
2176
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8489
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - SUM( + ( 21 ) ) FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8490
SELECT - SUM ( + ( 21 ) ) FROM tab0 cor0
----
-63

query II rowsort
SELECT ALL col0 AS col2, + 42 AS col1 FROM tab0 AS cor0
----
15
42
87
42
97
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT - - MIN( DISTINCT 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8492
SELECT - - MIN ( DISTINCT 62 ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT col1 * - - col0 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT ( + col2 ) DIV + - 60 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT ( + col2 ) / + - 60 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL + COUNT( + col0 ) + 94 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL + COUNT ( + col0 ) + 94 FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT SUM( - col1 ) AS col0 FROM tab2 WHERE NOT - - col1 * - 36 * - - 63 + - col0 IN ( + + 54 )
----
-195

skipif mysql # not compatible
query I rowsort label-8496
SELECT SUM ( - col1 ) AS col0 FROM tab2 WHERE NOT - - col1 * - 36 * - - 63 + - col0 IN ( + + 54 )
----
-195

query I rowsort
SELECT col0 * + + col2 * - + col2 AS col2 FROM tab0
----
-33135
-8700
-950697

query II rowsort
SELECT col0 AS col1, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT + + col2 * - 25 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 89
----

query I rowsort
SELECT - 88 AS col0 FROM tab0 WHERE col1 IS NOT NULL
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT + + 53 DIV + - col1 + + 62 AS col0 FROM tab1 AS cor0
----
52
59
61

skipif mysql # not compatible
query I rowsort label-8501
SELECT + + 53 / + - col1 + + 62 AS col0 FROM tab1 AS cor0
----
52
59
61

query I rowsort
SELECT + 67 * - 86 * col0 + + col0 FROM tab0 AS cor0 WHERE + ( col0 ) BETWEEN - col1 - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL + - SUM( ALL col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + - SUM ( ALL col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - MIN( - 97 ) + - 65 AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8504
SELECT - MIN ( - 97 ) + - 65 AS col1 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT - MAX( DISTINCT 74 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-74

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - MAX ( DISTINCT 74 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-74

query I rowsort
SELECT ALL + col0 * + 52 * - - col0 * - 40 AS col0 FROM tab1
----
-15028000
-17224480
-5410080

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT DISTINCT - col2 + + + 55 DIV - 62 * - col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - col2 + + + 55 / - 62 * - col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT ALL 75 + + col1 * col2 - - col0 + + col1 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL 75 + + col1 * col2 - - col0 + + col1 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT + - 36 DIV + + col2 + + ( 45 ) + + - col2 + + col0 FROM tab2 AS cor0
----
62
67
69

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + - 36 / + + col2 + + ( 45 ) + + - col2 + + col0 FROM tab2 AS cor0
----
62
67
69

query II rowsort
SELECT + + col2 AS col0, 66 AS col2 FROM tab1 cor0 WHERE NULL >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col0 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8512
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <= 69
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - + 91 * + - col1 AS col2 FROM tab2
----
4687
6172
7071

query I rowsort
SELECT + col0 + - col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT ALL 88 DIV + col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL 88 / + col2 FROM tab0
----
0
1
8

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT DISTINCT - + SUM( col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT - + SUM ( col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= + + 70
----
0

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= + + 70
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < 46 + - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT DISTINCT col2 DIV - ( + col0 ) FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT col2 / - ( + col0 ) FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - SUM( + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8522
SELECT - SUM ( + col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + 27 - + col0 FROM tab0 cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / - 8 - - col1 * + col0 + + + 66 NOT BETWEEN NULL AND - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - 47 + 35 FROM tab1
----
-106

skipif mysql # not compatible
query I rowsort label-8527
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 47 + 35 FROM tab1
----
-106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col0 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col1 + - - col1 - - col0 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - 41 + + - col0 FROM tab0 AS cor0
----
-128
-138
-56

query I rowsort
SELECT - col2 * 26 + + col2 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT ALL + COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) + - COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL + COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT + 84 - + + COUNT( * ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-8533
SELECT + 84 - + + COUNT ( * ) AS col0 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8535
SELECT ALL 47 + ( - col0 ) + - 1 DIV col2 * - 38 AS col2, - 47 AS col2 FROM tab1 AS cor0
----
-38
-47
-4
-47
-44
-47

skipif mysql # not compatible
query II rowsort label-8535
SELECT ALL 47 + ( - col0 ) + - 1 / col2 * - 38 AS col2, - 47 AS col2 FROM tab1 AS cor0
----
-38
-47
-4
-47
-44
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 48 - col2 AS col1 FROM tab2 cor0
----
-10
25
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 = NULL
----

query I rowsort
SELECT ALL - - 47 - - col2 FROM tab2 AS cor0
----
105
70
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + - col2 col0 FROM tab0 AS cor0
----
-16
-68
21

query I rowsort
SELECT ALL col1 * + + col2 * + 37 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - col0 > - - 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col0 FROM tab0
----
62

query I rowsort
SELECT + - col2 * col1 * + - 28 * - 37 - + 17 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8545
SELECT DISTINCT + 38 DIV - SUM( DISTINCT col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT + 38 / - SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ( COUNT( - 27 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8546
SELECT ( COUNT ( - 27 ) ) FROM tab2
----
3

query I rowsort
SELECT - col0 * - - 99 FROM tab2
----
-4554
-6336
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT MIN( DISTINCT 47 ) * + 18 FROM tab0
----
846

skipif mysql # not compatible
query I rowsort label-8548
SELECT MIN ( DISTINCT 47 ) * + 18 FROM tab0
----
846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT - col2 * CAST( - + col2 AS SIGNED ) AS col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-8549
SELECT - col2 * CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT + ( + SUM( 71 ) ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-8550
SELECT + ( + SUM ( 71 ) ) FROM tab0
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8551
SELECT ALL + COUNT( * ) / + + AVG ( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL + COUNT ( * ) / + + AVG ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + col0 = - + 34 * - 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = - 1 + - ( + col1 ) + + 96 + - ( ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + 60 AS col0 FROM tab2 AS cor0
----
111
127
137

query I rowsort
SELECT ALL + col1 + + - col0 * - + 40 + + + col0 - - - 65 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
1872
2636
3077

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-31
-70
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT DISTINCT COUNT( * ) * 64 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
192

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT COUNT ( * ) * 64 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8559
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8559
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 1 * - + col2 + + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT col2 * + 20 * col1 FROM tab0
----
1980
4200
76140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8562
SELECT + MAX( ALL + col2 ) AS col0, COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-8562
SELECT + MAX ( ALL + col2 ) AS col0, COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col2 FROM tab2
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT ALL + col0 DIV - 68 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL + col0 / - 68 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( 78 * - 47 + + col2, + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 + + 26, + col2 AS col0 FROM tab2 AS cor0
----
-20
23
-38
40
-49
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col1 + - col1 col0 FROM tab0 AS cor0
----
-1296
-1848
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 * col2 AND + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - COUNT( DISTINCT - 9 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - COUNT ( DISTINCT - 9 ) FROM tab2
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col2 + - col0 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT 83 - + col0 FROM tab2 AS cor0
----
19
37
8

query I rowsort
SELECT + - 51 - - col0 * - + col0 AS col2 FROM tab0 AS cor0
----
-276
-7620
-9460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab2 cor0
----
24
24
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * + col0 * - - col2, + col1 + 99, col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8576
SELECT + col1 DIV - ( col1 ) AS col0, 73 FROM tab2 AS cor0
----
-1
73
-1
73
-1
73

skipif mysql # not compatible
query II rowsort label-8576
SELECT + col1 / - ( col1 ) AS col0, 73 FROM tab2 AS cor0
----
-1
73
-1
73
-1
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8577
SELECT + CAST( NULL AS SIGNED ) * - + col2 + + col0 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT + CAST ( NULL AS INTEGER ) * - + col2 + + col0 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 77 * + 51 FROM tab2
----
3927
3927
3927

query II rowsort
SELECT - col0 AS col0, col0 + + col0 AS col0 FROM tab2
----
-46
92
-64
128
-75
150

query II rowsort
SELECT col1, col0 + + 92 FROM tab0
----
1
189
21
179
81
107

query II rowsort
SELECT col2, + col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + + 74 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + + 74 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT 57 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-8583
SELECT 57 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL + 98 * MAX( - col0 ) + 1 AS col0 FROM tab1 AS cor0
----
-4997

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + 98 * MAX ( - col0 ) + 1 AS col0 FROM tab1 AS cor0
----
-4997

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - MIN( DISTINCT - + 52 ) AS col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-8585
SELECT - MIN ( DISTINCT - + 52 ) AS col0 FROM tab1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8586
SELECT ALL * FROM tab1 WHERE NULL > + col1 * + - CAST( col0 AS SIGNED ) + - 49 + 71 * - + col1 * - - col0
----

skipif mysql # not compatible
query III rowsort label-8586
SELECT ALL * FROM tab1 WHERE NULL > + col1 * + - CAST ( col0 AS INTEGER ) + - 49 + 71 * - + col1 * - - col0
----

query I rowsort
SELECT ALL - 97 + - + 73 AS col2 FROM tab1 AS cor0
----
-170
-170
-170

query I rowsort
SELECT ALL col0 + - + 81 AS col1 FROM tab2 AS cor0
----
-17
-35
-6

query I rowsort
SELECT DISTINCT - + ( + col2 ) * - 13 AS col0 FROM tab0 AS cor0
----
1287
130
611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 - + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE col2 - + col1 * + col0 * col2 + CAST( NULL AS SIGNED ) <= + 31
----

skipif mysql # not compatible
query I rowsort label-8591
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE col2 - + col1 * + col0 * col2 + CAST ( NULL AS INTEGER ) <= + 31
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 60 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT - 96 + + COUNT( * ) AS col2, - 10 FROM tab1 AS cor0
----
-93
-10

skipif mysql # not compatible
query II rowsort label-8593
SELECT - 96 + + COUNT ( * ) AS col2, - 10 FROM tab1 AS cor0
----
-93
-10

query II rowsort
SELECT DISTINCT - ( - 35 ) AS col1, - col2 FROM tab2 cor0
----
35
-23
35
-40
35
-58

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE - col2 + + col1 + - + 89 IS NULL
----

query I rowsort
SELECT 20 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + COUNT( * ) + + ( MIN( + ( + col1 ) ) ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-8598
SELECT + COUNT ( * ) + + ( MIN ( + ( + col1 ) ) ) FROM tab2
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - - 20 + - 48, 90 col1 FROM tab1
----
23
90
57
90
63
90

query I rowsort
SELECT DISTINCT 87 FROM tab1 WHERE + 36 = 95 * - 43
----

query I rowsort
SELECT DISTINCT 71 * 48 AS col1 FROM tab1
----
3408

query I rowsort
SELECT - col1 + + + 91 AS col2 FROM tab2
----
14
24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - MAX( + 63 ) * COUNT( ALL - col2 ) FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-8603
SELECT - MAX ( + 63 ) * COUNT ( ALL - col2 ) FROM tab0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT 1 DIV + 92 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT 1 / + 92 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT CAST( + SUM( ALL - ( col1 ) ) AS SIGNED ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8605
SELECT CAST ( + SUM ( ALL - ( col1 ) ) AS INTEGER ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - col1 * + + 63 + col0 AS col0 FROM tab0
----
-1236
-5088
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8607
SELECT ALL * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) > ( - + col0 )
----

skipif mysql # not compatible
query III rowsort label-8607
SELECT ALL * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) > ( - + col0 )
----

query II rowsort
SELECT col0, 61 AS col2 FROM tab2
----
46
61
64
61
75
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT + MAX( DISTINCT - col1 ) + - 25 + + + MIN( ALL + + col2 ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT + MAX ( DISTINCT - col1 ) + - 25 + + + MIN ( ALL + + col2 ) FROM tab2 AS cor0
----
-53

query I rowsort
SELECT DISTINCT col2 + - 21 - + ( col0 ) + - - col1 AS col2 FROM tab0 AS cor0
----
-18
-77
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL - CAST( NULL AS SIGNED ) * + 50 * + + ( - col1 ) + + + 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - CAST ( NULL AS INTEGER ) * + 50 * + + ( - col1 ) + + + 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT AVG ( col1 ) FROM tab1 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL - COUNT( * ) * + + COUNT( * ) + + + 51 AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) + + + 51 AS col0 FROM tab2
----
42

query I rowsort
SELECT DISTINCT col1 * - - 8 FROM tab2
----
408
536
616

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + ( 10 ) * - - COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8616
SELECT + ( 10 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
30

query II rowsort
SELECT col2, 90 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab0 cor0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8620
SELECT + COUNT( * ) AS col0, 35 AS col1 FROM tab0
----
3
35

skipif mysql # not compatible
query II rowsort label-8620
SELECT + COUNT ( * ) AS col0, 35 AS col1 FROM tab0
----
3
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8621
SELECT DISTINCT MIN( ALL - CAST( - 48 AS SIGNED ) ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT MIN ( ALL - CAST ( - 48 AS INTEGER ) ) FROM tab0
----
48

query I rowsort
SELECT DISTINCT 89 * + col0 FROM tab2
----
4094
5696
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ( + - COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8623
SELECT ( + - COUNT ( * ) ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL + MAX( - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + MAX ( - col1 ) FROM tab0
----
-1

query II rowsort
SELECT DISTINCT - col0 AS col0, 88 FROM tab0 AS cor0
----
-15
88
-87
88
-97
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT - ( MIN( DISTINCT col2 ) ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8626
SELECT - ( MIN ( DISTINCT col2 ) ) FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab1 cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + MAX( col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8628
SELECT + MAX ( col1 ) FROM tab2
----
77

query I rowsort
SELECT col1 + - + 60 * col0 AS col0 FROM tab1
----
-3046
-5095
-5413

query I rowsort
SELECT - col2 + - 22 AS col2 FROM tab0
----
-121
-32
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL COUNT( * ) + 47 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL COUNT ( * ) + 47 FROM tab0 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT + - 22 - - col1 AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8632
SELECT + - 22 - - col1 AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT ALL + + col1 * - 69 + + - 8 AS col2 FROM tab1 AS cor0
----
-3251
-353
-974

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 61 )
----

query I rowsort
SELECT DISTINCT + ( - - col2 ) * + + col0 AS col2 FROM tab0 cor0
----
705
870
9603

query II rowsort
SELECT - 23, - col1 AS col1 FROM tab1 AS cor0
----
-23
-14
-23
-47
-23
-5

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + + SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8640
SELECT + + SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + 74 * + 56 + col0 FROM tab0 AS cor0
----
4159
4231
4241

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT - + 62 DIV - 66 * + 2 * - - 83 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8642
SELECT - + 62 / - 66 * + 2 * - - 83 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + 47 + col0 AS col2, - 57 FROM tab0 AS cor0
----
134
-57
144
-57
62
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT ALL ( col0 ) * col0 + - ( CAST( + ( 25 ) AS SIGNED ) ) FROM tab1
----
2576
7200
8256

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL ( col0 ) * col0 + - ( CAST ( + ( 25 ) AS INTEGER ) ) FROM tab1
----
2576
7200
8256

onlyif mysql # DIV for integer division: 
query I rowsort label-8645
SELECT + 48 * - col2 DIV + - col2 AS col0 FROM tab1
----
48
48
48

skipif mysql # not compatible
query I rowsort label-8645
SELECT + 48 * - col2 / + - col2 AS col0 FROM tab1
----
48
48
48

query II rowsort
SELECT + col0 - + - col0 AS col1, col0 AS col0 FROM tab1
----
102
51
170
85
182
91

query I rowsort
SELECT DISTINCT + 27 + col1 AS col0 FROM tab2
----
104
78
94

query I rowsort
SELECT 14 - + col0 FROM tab2
----
-32
-50
-61

query I rowsort
SELECT ALL + col1 + - col1 / - col2 * 94 * - + 35 + col0 AS col0 FROM tab1 WHERE + 89 + - col2 <= - col1
----

query II rowsort
SELECT DISTINCT + 76 * col2 AS col2, + 59 AS col0 FROM tab1 AS cor0
----
4484
59
5168
59
7296
59

query II rowsort
SELECT DISTINCT - 37 + - col1 AS col2, col1 FROM tab1 AS cor0
----
-42
5
-51
14
-84
47

query II rowsort
SELECT DISTINCT col2, + 69 AS col1 FROM tab2
----
23
69
40
69
58
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ( MIN( + col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8653
SELECT ( MIN ( + col1 ) ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + 72 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT MIN( - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT MIN ( - col0 ) FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - + 11 * + - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
726

skipif mysql # not compatible
query I rowsort label-8657
SELECT - + 11 * + - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
726

query I rowsort
SELECT - 86 * + 27 FROM tab0 AS cor0
----
-2322
-2322
-2322

query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) * - col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-8660
SELECT - - MAX( DISTINCT - col1 ) * + 84 AS col2, - ( + 49 ) AS col1 FROM tab2 AS cor0
----
-4284
-49

skipif mysql # not compatible
query II rowsort label-8660
SELECT - - MAX ( DISTINCT - col1 ) * + 84 AS col2, - ( + 49 ) AS col1 FROM tab2 AS cor0
----
-4284
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8661
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8661
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT - - 76 + + + col0 AS col1 FROM tab2 WHERE NOT - 23 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 36 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL COUNT( ALL + - 8 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL COUNT ( ALL + - 8 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT - + 53 + - + 56 * + - 77 * + 38 AS col0 FROM tab2 AS cor0
----
163803
163803
163803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT + + CAST( NULL AS SIGNED ) + col2 / + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT + + CAST ( NULL AS INTEGER ) + col2 / + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT - COUNT( * ) + + - 15 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT - COUNT ( * ) + + - 15 FROM tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8668
SELECT 69 * - COUNT( * ) - - 59 DIV + + 63 + - 86 AS col0 FROM tab1 AS cor0
----
-293

skipif mysql # not compatible
query I rowsort label-8668
SELECT 69 * - COUNT ( * ) - - 59 / + + 63 + - 86 AS col0 FROM tab1 AS cor0
----
-293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8669
SELECT ALL - + 17 * - - 86 + + CAST( NULL AS SIGNED ) * + 83 * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL - + 17 * - - 86 + + CAST ( NULL AS INTEGER ) * + 83 * COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8670
SELECT DISTINCT - + col1 * + col2 + - CAST( NULL AS SIGNED ) + 63 + col0 + + 68 + - + col0 * col0 AS col0, col0 * + - col2 AS col1 FROM tab2 cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
query II rowsort label-8670
SELECT DISTINCT - + col1 * + col2 + - CAST ( NULL AS INTEGER ) + 63 + col0 + + 68 + - + col0 * col0 AS col0, col0 * + - col2 AS col1 FROM tab2 cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

query I rowsort
SELECT DISTINCT + 99 * - - col1 AS col1 FROM tab2
----
5049
6633
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + SUM( ALL - + 69 ) AS col1 FROM tab2 WHERE ( NULL NOT IN ( 1, - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT + SUM ( ALL - + 69 ) AS col1 FROM tab2 WHERE ( NULL NOT IN ( 1, - col1 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT DISTINCT - 81 * - 42, MAX( ALL - 67 ) AS col2 FROM tab0
----
3402
-67

skipif mysql # not compatible
query II rowsort label-8673
SELECT DISTINCT - 81 * - 42, MAX ( ALL - 67 ) AS col2 FROM tab0
----
3402
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 47 col1, col0 FROM tab2
----
47
46
47
64
47
75

query I rowsort
SELECT DISTINCT - col1 + - - col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT MIN( ALL - 26 ) AS col2 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-8676
SELECT MIN ( ALL - 26 ) AS col2 FROM tab0
----
-26

query I rowsort
SELECT ( + col2 ) * - - 96 AS col2 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT ALL col0 + - ( - + col1 ) FROM tab2 WHERE - - col2 IN ( col2, + 63 )
----
141
142
97

query II rowsort
SELECT + - col0 * - ( col1 ) AS col1, + col0 FROM tab0 AS cor0
----
1215
15
1827
87
97
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT col1 <> ( + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 <> ( + 81 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL - + COUNT( * ) * - 59 AS col1 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - + COUNT ( * ) * - 59 AS col1 FROM tab0 AS cor0
----
177

query I rowsort
SELECT ALL ( + ( col2 ) ) FROM tab2
----
23
40
58

query II rowsort
SELECT col0, 17 FROM tab1
----
51
17
85
17
91
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT + MIN( ALL + - col2 ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8685
SELECT DISTINCT + MIN ( ALL + - col2 ) col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT MAX( ALL - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8686
SELECT MAX ( ALL - col2 ) AS col2 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT DISTINCT ( + + CAST( - 56 AS SIGNED ) ) AS col0 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT ( + + CAST ( - 56 AS INTEGER ) ) AS col0 FROM tab1
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-8688
SELECT DISTINCT col1 DIV ( + col1 ), col1 AS col1 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-8688
SELECT DISTINCT col1 / ( + col1 ), col1 AS col1 FROM tab0
----
1
1
1
21
1
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + 40 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8690
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8690
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + + col0 + + 25 * + col0 FROM tab0 AS cor0
----
2262
2522
390

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT DISTINCT ( - col0 ) DIV + - 47 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT ( - col0 ) / + - 47 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT + 90 + - 92 FROM tab2 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT - + CAST( - 50 AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
131
51
71

skipif mysql # not compatible
query I rowsort label-8694
SELECT - + CAST ( - 50 AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND - 72 - + + col1 )
----

query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 * + - 71 + 2 AS col2 FROM tab2
----
-5678

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL - MAX( + + col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - MAX ( + + col2 ) AS col1 FROM tab0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 66 - - col1 + - 72 * + col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = col1
----

query I rowsort
SELECT ALL - col0 + + - 68 FROM tab1 AS cor0
----
-119
-153
-159

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( + col0 ) AS col0, col0 col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT 31 + + 4 - col1 AS col0 FROM tab0 AS cor0
----
-46
14
34

query I rowsort
SELECT col0 - - ( + 51 ) AS col1 FROM tab0
----
138
148
66

query I rowsort
SELECT + col1 - - + 52 FROM tab1
----
57
66
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - col1 - + - 87 AS col1, col0 col2 FROM tab0
----
528
87
6648
15
88
97

query I rowsort
SELECT - col0 * + col0 * + col0 + - col2 AS col1 FROM tab1 cor0
----
-132747
-614184
-753639

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8710
SELECT - - ( + - CAST( NULL AS SIGNED ) ) / + col1 col2, - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8710
SELECT - - ( + - CAST ( NULL AS INTEGER ) ) / + col1 col2, - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT - - 21 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT 35 * + - col2 * - ( - col2 ) FROM tab1 cor0
----
-121835
-161840
-322560

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT 81 * + SUM( DISTINCT + - 17 ) FROM tab2 AS cor0
----
-1377

skipif mysql # not compatible
query I rowsort label-8713
SELECT 81 * + SUM ( DISTINCT + - 17 ) FROM tab2 AS cor0
----
-1377

query I rowsort
SELECT - 26 * - + col2 * + - col2 * - col1 FROM tab1 AS cor0
----
3354624
452530
5650528

query I rowsort
SELECT DISTINCT col1 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT col2 * - - 31 AS col1 FROM tab2 AS cor0
----
1240
1798
713

query II rowsort
SELECT + col0, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + 27 * + col0 + + col2 FROM tab1
----
1473
2354
2525

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE + + 62 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col2 + - col1 + + 64 FROM tab0
----
-36
-64
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT + ( + 29 ) + - MAX( 53 ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT + ( + 29 ) + - MAX ( 53 ) AS col0 FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT ALL - CAST( col1 AS SIGNED ) * + - 41 - + col0 + col0 AS col2 FROM tab2 AS cor0
----
2091
2747
3157

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - CAST ( col1 AS INTEGER ) * + - 41 - + col0 + col0 AS col2 FROM tab2 AS cor0
----
2091
2747
3157

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * - - col1 + + ( + 65 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 13 * + 60 AS col1 FROM tab0 cor0
----
780
780
780

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 0 BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 + col2 col1 FROM tab2 cor0 WHERE NULL IS NULL
----
1196
3120
3944

query I rowsort
SELECT - 21 + - col2 FROM tab1 AS cor0
----
-117
-80
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-8729
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND - col2
----
0

query I rowsort
SELECT ALL - - col2 + - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + 1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8732
SELECT + 4 * - 55 * + COUNT( * ) DIV + COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab0
----
-220
3

skipif mysql # not compatible
query II rowsort label-8732
SELECT + 4 * - 55 * + COUNT ( * ) / + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0
----
-220
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8733
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + + col0 + CAST( - 57 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8733
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + + col0 + CAST ( - 57 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT + COUNT( * ) * - ( - CAST( COUNT( * ) AS SIGNED ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8734
SELECT + COUNT ( * ) * - ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col2 col0, col2 FROM tab1
----
-4896
96
-5015
59
-6188
68

query III rowsort
SELECT * FROM tab1 WHERE NOT - 23 > + 15 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + - ( + 43 )
----

query I rowsort
SELECT + 47 * - col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2209
-4653
-470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( 95 ) ) col2 FROM tab0 AS cor0
----
95

query I rowsort
SELECT DISTINCT 13 * 16 AS col1 FROM tab2 AS cor0
----
208

query I rowsort
SELECT + 90 * - col1 FROM tab2 AS cor0
----
-4590
-6030
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL + MIN( - 21 ) + + + 79 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + MIN ( - 21 ) + + + 79 FROM tab1 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8743
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL ( - - col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8745
SELECT - CAST( NULL AS SIGNED ) / - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 25 * + col2 AS col2 FROM tab0
----
1175
2475
250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8747
SELECT DISTINCT + 43 col0, - MAX( + - col0 ) * - CAST( + 67 AS SIGNED ) AS col0 FROM tab0
----
43
-1005

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8747
SELECT DISTINCT + 43 col0, - MAX ( + - col0 ) * - CAST ( + 67 AS INTEGER ) AS col0 FROM tab0
----
43
-1005

query I rowsort
SELECT DISTINCT + 91 FROM tab0 WHERE NULL = 78
----

query I rowsort
SELECT ALL + col1 + + - 38 AS col1 FROM tab2
----
13
29
39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8750
SELECT CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * + col1 + + 51 AS col1, + 19 FROM tab1
----
NULL
19
NULL
19
NULL
19

skipif mysql # not compatible
query II rowsort label-8750
SELECT CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * + col1 + + 51 AS col1, + 19 FROM tab1
----
NULL
19
NULL
19
NULL
19

query I rowsort
SELECT ALL col2 * 32 AS col0 FROM tab2
----
1280
1856
736

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT + MIN( + + 93 ) + - MAX( + col0 ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + MIN ( + + 93 ) + - MAX ( + col0 ) AS col1 FROM tab1
----
2

query I rowsort
SELECT ALL + ( col0 ) + - + 40 AS col2 FROM tab0
----
-25
47
57

query I rowsort
SELECT DISTINCT col2 + - col1 * - - col1 AS col2 FROM tab0
----
-431
-6514
98

query I rowsort
SELECT - + 9 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-9
-9
-9

query I rowsort
SELECT ALL col0 * + - 24 - - col1 FROM tab0 AS cor0
----
-2067
-2327
-279

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8757
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

query I rowsort
SELECT - 63 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT COUNT( DISTINCT + col1 ) + - MAX( + ( + + col1 ) ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT COUNT ( DISTINCT + col1 ) + - MAX ( + ( + + col1 ) ) FROM tab1 AS cor0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8761
SELECT - ( - 70 ) DIV col0 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8761
SELECT - ( - 70 ) / col0 AS col1 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * col2 * - 95 / + 36 BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - 11 ) AND 18 * - 1
----

query I rowsort
SELECT DISTINCT - col2 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 65 FROM tab2 AS cor0 WHERE NOT + 21 - + 42 IS NULL
----
-65

query I rowsort
SELECT + ( 85 ) * 73 FROM tab0
----
6205
6205
6205

query II rowsort
SELECT DISTINCT + col0, - 62 + + - 76 FROM tab0
----
15
-138
87
-138
97
-138

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) > - col2
----

query I rowsort
SELECT + - 77 * + col1 FROM tab1 AS cor0
----
-1078
-3619
-385

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT ALL + + COUNT( * ) AS col0, 95 AS col1 FROM tab1 AS cor0
----
3
95

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL + + COUNT ( * ) AS col0, 95 AS col1 FROM tab1 AS cor0
----
3
95

query II rowsort
SELECT - 92 AS col1, - col0 FROM tab2 AS cor0
----
-92
-46
-92
-64
-92
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT + + COUNT( DISTINCT - 77 ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8772
SELECT + + COUNT ( DISTINCT - 77 ) col2 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT + 29 DIV - 2 FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-8773
SELECT + 29 / - 2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + col2 * + col1 + + col0 * + col0 AS col2 FROM tab0
----
4032
7779
9508

query III rowsort
SELECT * FROM tab2 WHERE col2 * 15 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( + col1 * - 60 )
----

query I rowsort
SELECT - col2 * col1 + + col1 FROM tab1 WHERE NOT 33 / 54 > - col2
----

query I rowsort
SELECT - col1 * ( - 70 ) AS col0 FROM tab0 WHERE NOT 8 NOT IN ( + 75 * 37 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE - col0 + 65 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8780
SELECT ALL * FROM tab2 WHERE + CAST( + col2 AS SIGNED ) + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8780
SELECT ALL * FROM tab2 WHERE + CAST ( + col2 AS INTEGER ) + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 62 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN 77 * 54 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT 31 + COUNT( * ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-8783
SELECT 31 + COUNT ( * ) FROM tab0
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8784
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8784
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 81 + - col1 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 * - col0 col1 FROM tab2 WHERE NOT col2 BETWEEN ( + col0 + 78 ) AND - 20
----
4278
5952
6975

query III rowsort
SELECT ALL * FROM tab2 WHERE 86 / col0 NOT BETWEEN NULL AND - col2 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT DISTINCT ( ( + COUNT( col2 ) ) ) * + SUM( - 67 * col0 ) - SUM( DISTINCT col2 ) AS col0 FROM tab2
----
-37306

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT ( ( + COUNT ( col2 ) ) ) * + SUM ( - 67 * col0 ) - SUM ( DISTINCT col2 ) AS col0 FROM tab2
----
-37306

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT COUNT( ALL - ( + 68 ) ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8789
SELECT COUNT ( ALL - ( + 68 ) ) * - COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT - 32 * + col0 FROM tab2
----
-1472
-2048
-2400

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + col1 ) * 44 AS col0 FROM tab2 WHERE ( NULL ) < - col1 * + 12
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col0 FROM tab1 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - SUM( ALL 90 ) * COUNT( * ) AS col0 FROM tab1
----
-810

skipif mysql # not compatible
query I rowsort label-8794
SELECT - SUM ( ALL 90 ) * COUNT ( * ) AS col0 FROM tab1
----
-810

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE + col2 < - col0
----

query I rowsort
SELECT - 1 - - 44 FROM tab1
----
43
43
43

query I rowsort
SELECT ALL 46 * + ( - 3 ) AS col2 FROM tab2
----
-138
-138
-138

query I rowsort
SELECT 33 * - 87 FROM tab2
----
-2871
-2871
-2871

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1 * col1 + 36 * ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT DISTINCT 46 + - col0 DIV col2 AS col2 FROM tab1
----
45
46

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT 46 + - col0 / col2 AS col2 FROM tab1
----
45
46

query I rowsort
SELECT ALL 26 + - col0 FROM tab0 AS cor0
----
-61
-71
11

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 88 / col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 88 / col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 26 * ( - col0 ) AS col1 FROM tab2
----
1196
1664
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - ( - col2 ) - 80 FROM tab2
----
-22
-40
-57

query I rowsort
SELECT - col2 + - 53 * + col0 FROM tab1
----
-2799
-4564
-4891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8808
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + COUNT( * ) + - SUM( col1 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-8809
SELECT + COUNT ( * ) + - SUM ( col1 ) FROM tab0
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT + col0 * + col0 + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
2602
7226
8282

skipif mysql # not compatible
query I rowsort label-8810
SELECT + col0 * + col0 + col2 / + col2 AS col1 FROM tab1 AS cor0
----
2602
7226
8282

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL - COUNT( * ) + 94 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - COUNT ( * ) + 94 FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT 42 FROM tab1 AS cor0 WHERE 81 * - col2 = - 46 * + ( col2 )
----

query I rowsort
SELECT DISTINCT 50 + + 4 AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - - MAX( col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8814
SELECT - - MAX ( col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ALL COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8815
SELECT ALL COUNT ( * ) col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL - MIN( DISTINCT ( + col2 ) ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8816
SELECT ALL - MIN ( DISTINCT ( + col2 ) ) col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT 0 * COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= - 0
----
0

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT 0 * COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= - 0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) >= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * - 79 AS col2 FROM tab1 AS cor0
----
4661
5372
7584

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8821
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 * - col0 + col1 * - ( CAST( col2 AS DECIMAL ) * 98 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8821
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 * - col0 + col1 * - ( CAST ( col2 AS REAL ) * 98 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT 49 * MIN( + col2 ) FROM tab2 AS cor0
----
1127

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT 49 * MIN ( + col2 ) FROM tab2 AS cor0
----
1127

query I rowsort
SELECT ALL col1 * col2 * + ( - 63 ) FROM tab1
----
-18585
-201348
-84672

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) IN ( - 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT SUM( DISTINCT - - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8825
SELECT SUM ( DISTINCT - - col2 ) FROM tab0
----
156

query I rowsort
SELECT ALL ( col1 ) FROM tab0 WHERE col0 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 / col2 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT 26 * COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-8828
SELECT 26 * COUNT ( * ) FROM tab2
----
78

query I rowsort
SELECT ALL 78 * + 55 FROM tab2
----
4290
4290
4290

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT MAX( - 53 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT MAX ( - 53 ) FROM tab0
----
-53

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + 33 + + col2 * 84 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT - COUNT( - + 29 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - COUNT ( - + 29 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT DISTINCT + ( + 32 ) DIV col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT + ( + 32 ) / col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * 14 NOT IN ( - col2 * - col1 + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 / + col0 ) NOT IN ( + 62 )
----

query I rowsort
SELECT + 43 * - col1 AS col2 FROM tab1
----
-2021
-215
-602

query I rowsort
SELECT + 23 + 35 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + ( - - 76 ) AS col1 FROM tab1
----
76
76
76

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL BETWEEN + 11 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8840
SELECT - CAST( AVG ( col1 ) AS SIGNED ) + COUNT( * ) DIV COUNT( * ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-8840
SELECT - CAST ( AVG ( col1 ) AS INTEGER ) + COUNT ( * ) / COUNT ( * ) FROM tab2
----
-64

query II rowsort
SELECT ALL 86, - col1 * + col1 * + 95 + col1 AS col0 FROM tab1
----
86
-18606
86
-209808
86
-2370

query I rowsort
SELECT DISTINCT + ( 3 ) + + 0 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( - col0 / + 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT 50 + + - MAX( - 88 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT 50 + + - MAX ( - 88 ) FROM tab1 AS cor0
----
138

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 41 ) <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL - COUNT( * ) + SUM( DISTINCT + col0 ) col2 FROM tab0 cor0
----
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8845
SELECT ALL - COUNT ( * ) + SUM ( DISTINCT + col0 ) col2 FROM tab0 cor0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT - + MAX( + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8846
SELECT - + MAX ( + col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - + 87 * 50 AS col0 FROM tab2 AS cor0
----
-4350
-4350
-4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * - col1 * - 43 col2 FROM tab0
----
-174150
-2150
-45150

query I rowsort
SELECT ALL AVG ( ALL col2 ) FROM tab2 WHERE NOT NULL NOT IN ( 99 )
----
NULL

query I rowsort
SELECT ALL - col0 * col2 * col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT 25 * + 66 FROM tab1
----
1650
1650
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + MIN( DISTINCT col0 ) - - 62 FROM tab2 WHERE - + col1 IS NOT NULL
----
108

skipif mysql # not compatible
query I rowsort label-8853
SELECT + MIN ( DISTINCT col0 ) - - 62 FROM tab2 WHERE - + col1 IS NOT NULL
----
108

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 IS NULL AND NOT 37 <> 60 * + 3
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE + col1 * col2 / - col2 IS NULL
----

query I rowsort
SELECT + - col1 + - col0 * - 30 AS col0 FROM tab0 cor0
----
2589
2909
369

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT DISTINCT + 23 * + 75 + - 90 DIV + 54 FROM tab2 AS cor0
----
1724

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT + 23 * + 75 + - 90 / + 54 FROM tab2 AS cor0
----
1724

query I rowsort
SELECT DISTINCT + - col2 * - col1 - 44 AS col1 FROM tab1 AS cor0
----
1300
251
3152

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT DISTINCT ( + ( COUNT( * ) ) ) FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT ( + ( COUNT ( * ) ) ) FROM tab0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL 20 AS col2 FROM tab1 WHERE NOT ( + col2 ) NOT IN ( col2 )
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT + ( - 61 ) DIV + + col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8861
SELECT + ( - 61 ) / + + col2 AS col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT ALL ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 * - col0 * + col2 ) = ( col2 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL + - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 16 <> col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8865
SELECT DISTINCT 35 * - - COUNT( * ) DIV 1 col2 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8865
SELECT DISTINCT 35 * - - COUNT ( * ) / 1 col2 FROM tab0 AS cor0
----
105

query I rowsort
SELECT DISTINCT + - 18 * + col2 FROM tab0 AS cor0
----
-1782
-180
-846

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 31 + + - col1 IN ( 86 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 38 AS col2, - 65 * - - 3 col0 FROM tab2 AS cor0 WHERE - 4 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 90 + + - col1 NOT IN ( 93 )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE - 51 + - 92 < ( + col0 )
----
14
47
5

query I rowsort
SELECT 47 / - 19 + + + col1 + + 10 * - 36 AS col2 FROM tab0 WHERE NOT ( - 71 ) IS NOT NULL
----

query II rowsort
SELECT ALL col2, col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT COUNT( ALL col1 ) * - 13 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-8873
SELECT COUNT ( ALL col1 ) * - 13 FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8874
SELECT ALL + col0 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8874
SELECT ALL + col0 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT - col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + 80
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 <= ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 23 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - 74 ) FROM tab0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL + - COUNT( ALL + col2 ) * - COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL + - COUNT ( ALL + col2 ) * - COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT col0 >= col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8883
SELECT ALL - 44 + 78 * ( - col2 ) + - + col1, + ( + col0 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
-4651
1
-5395
1
-7546
1

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL - 44 + 78 * ( - col2 ) + - + col1, + ( + col0 ) / + col0 AS col1 FROM tab1 AS cor0
----
-4651
1
-5395
1
-7546
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8884
SELECT + ( + col1 ) DIV - col1 + - - 23 + col1 col1, 33 * col0 FROM tab1 AS cor0
----
27
2805
36
1683
69
3003

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8884
SELECT + ( + col1 ) / - col1 + - - 23 + col1 col1, 33 * col0 FROM tab1 AS cor0
----
27
2805
36
1683
69
3003

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 70 = NULL
----

query I rowsort
SELECT col2 + col0 + - + 58 FROM tab2 AS cor0
----
11
46
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 17 / + 51 * col0 NOT BETWEEN + col2 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8888
SELECT * FROM tab0 WHERE - 33 NOT IN ( + col0, 52 / CAST( NULL AS SIGNED ) / + col2 )
----

skipif mysql # not compatible
query III rowsort label-8888
SELECT * FROM tab0 WHERE - 33 NOT IN ( + col0, 52 / CAST ( NULL AS INTEGER ) / + col2 )
----

query II rowsort
SELECT col2 * - col2 + + 27 AS col0, ( + col1 ) AS col2 FROM tab2
----
-1573
77
-3337
67
-502
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT COUNT( - - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT COUNT ( - - col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL 61 + col2 FROM tab2
----
101
119
84

query I rowsort
SELECT DISTINCT + col1 * + 70 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT DISTINCT CAST( + 73 AS SIGNED ) * + 16 * + 78 - col2 + + 39 + + col2 * - + col0 AS col1 FROM tab1
----
84887
86069
86151

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT CAST ( + 73 AS INTEGER ) * + 16 * + 78 - col2 + + 39 + + col2 * - + col0 AS col1 FROM tab1
----
84887
86069
86151

query II rowsort
SELECT + col0, col2 + + - 12 AS col2 FROM tab2
----
46
11
64
28
75
46

query I rowsort
SELECT + col1 * + + col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT + 72 * + 29 FROM tab0 AS cor0
----
2088
2088
2088

query I rowsort
SELECT DISTINCT col0 + col1 + col0 AS col0 FROM tab2 cor0
----
143
205
217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8898
SELECT DISTINCT + MAX( - - ( - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT + MAX ( - - ( - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT + MIN( - 38 ) FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-8901
SELECT + MIN ( - 38 ) FROM tab1
----
-38

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8903
SELECT ALL - col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8903
SELECT ALL - col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + COUNT( - - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8904
SELECT + COUNT ( - - col2 ) FROM tab2
----
3

query I rowsort
SELECT col1 * - + col2 * 26 AS col2 FROM tab2
----
-101036
-30498
-80080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT ALL + col2 FROM tab1 WHERE NULL NOT IN ( + ( - - col0 ) + 80, 12 + - ( CAST( + 75 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL + col2 FROM tab1 WHERE NULL NOT IN ( + ( - - col0 ) + 80, 12 + - ( CAST ( + 75 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + ( - MAX( ALL - col0 ) ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8907
SELECT + ( - MAX ( ALL - col0 ) ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT - COUNT( * ) + 20 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - COUNT ( * ) + 20 FROM tab2 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT DISTINCT - + ( + - col2 ) DIV + - 53 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT - + ( + - col2 ) / + - 53 AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL + + MIN( - col1 ) * COUNT( * ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + + MIN ( - col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 36 col2 FROM tab1 cor0
----
-22
-31
11

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8912
SELECT - col0 - + 55 AS col0, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE ( NOT NULL <= col1 + + ( col1 ) )
----

skipif mysql # not compatible
query II rowsort label-8912
SELECT - col0 - + 55 AS col0, CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE ( NOT NULL <= col1 + + ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 99 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 99 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + col0, 84 AS col2 FROM tab2
----
46
84
64
84
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT + MIN( ALL + col2 ) * - - 38 AS col2 FROM tab1 AS cor0
----
2242

skipif mysql # not compatible
query I rowsort label-8915
SELECT + MIN ( ALL + col2 ) * - - 38 AS col2 FROM tab1 AS cor0
----
2242

query I rowsort
SELECT DISTINCT 85 + - 5 AS col1 FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col2 * 42 FROM tab2 AS cor0
----
1720
2494
989

onlyif mysql # DIV for integer division: 
query II rowsort label-8918
SELECT col0 AS col0, + 64 DIV + ( + ( col0 ) ) FROM tab1 AS cor0
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-8918
SELECT col0 AS col0, + 64 / + ( + ( col0 ) ) FROM tab1 AS cor0
----
51
1
85
0
91
0

query II rowsort
SELECT col1 * + col0 AS col0, 95 FROM tab2 cor0
----
2346
95
4928
95
5025
95

query II rowsort
SELECT col2, - 54 AS col0 FROM tab0 AS cor0
----
10
-54
47
-54
99
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT MAX( + col2 ) * - 83 AS col0 FROM tab2 AS cor0
----
-4814

skipif mysql # not compatible
query I rowsort label-8921
SELECT MAX ( + col2 ) * - 83 AS col0 FROM tab2 AS cor0
----
-4814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL + CAST( + + MAX( DISTINCT + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + CAST ( + + MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT ALL - MIN( DISTINCT + 5 ) AS col1 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL - MIN ( DISTINCT + 5 ) AS col1 FROM tab2
----
-5

query I rowsort
SELECT ALL col0 + + + col2 * col2 AS col0 FROM tab2
----
1664
3439
575

query I rowsort
SELECT DISTINCT + 50 + + col1 + - col2 + + + col0 * - col0 FROM tab2
----
-2038
-4009
-5566

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8926
SELECT - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9

query I rowsort
SELECT ALL + 63 * - 0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 81 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT + + COUNT( * ) col0, 65 FROM tab0 AS cor0
----
3
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8929
SELECT + + COUNT ( * ) col0, 65 FROM tab0 AS cor0
----
3
65

query II rowsort
SELECT DISTINCT - + col1, + 50 * + 25 - - + col2 AS col1 FROM tab0 AS cor0
----
-1
1349
-21
1260
-81
1297

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL COUNT( - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL COUNT ( - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8932
SELECT ALL * FROM tab0 WHERE NOT NULL < NULL OR CAST( - ( + col0 ) AS SIGNED ) - + + col1 * col2 / col0 + - + col1 * CAST( + col1 AS SIGNED ) NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8932
SELECT ALL * FROM tab0 WHERE NOT NULL < NULL OR CAST ( - ( + col0 ) AS INTEGER ) - + + col1 * col2 / col0 + - + col1 * CAST ( + col1 AS INTEGER ) NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT DISTINCT MIN( ALL + + 3 ) + + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT MIN ( ALL + + 3 ) + + COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8934
SELECT - CAST( - - col2 AS SIGNED ) + - col0 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-8934
SELECT - CAST ( - - col2 AS INTEGER ) + - col0 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - 74 - - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + col1 + - col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT COUNT( * ) + + 30 col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8937
SELECT DISTINCT COUNT ( * ) + + 30 col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT col2 + - 51 FROM tab2 AS cor0
----
-11
-28
7

query I rowsort
SELECT - ( + 61 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT + 48 + + col2 AS col2 FROM tab0
----
147
58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + COUNT( * ) + + + MAX( ALL - col2 ) + + SUM( DISTINCT + col1 ) * 86 FROM tab1 cor0
----
5620

skipif mysql # not compatible
query I rowsort label-8941
SELECT + COUNT ( * ) + + + MAX ( ALL - col2 ) + + SUM ( DISTINCT + col1 ) * 86 FROM tab1 cor0
----
5620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT + COUNT( * ) * - - 17 + - + MAX( ALL + col2 ) - - COUNT( * ) + COUNT( * ) + 59 DIV + - SUM( - col1 ) FROM tab0 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8942
SELECT + COUNT ( * ) * - - 17 + - + MAX ( ALL + col2 ) - - COUNT ( * ) + COUNT ( * ) + 59 / + - SUM ( - col1 ) FROM tab0 cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT SUM( DISTINCT + + col2 ) + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 * + col0 IS NOT NULL
----
226

skipif mysql # not compatible
query I rowsort label-8943
SELECT SUM ( DISTINCT + + col2 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 * + col0 IS NOT NULL
----
226

query I rowsort
SELECT DISTINCT + 50 + - col1 AS col1 FROM tab1 AS cor0
----
3
36
45

query I rowsort
SELECT DISTINCT 17 * + - col2 - 31 - + 44 AS col2 FROM tab2 cor0
----
-1061
-466
-755

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL + MAX( - + col2 ) col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8947
SELECT ALL + MAX ( - + col2 ) col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8948
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 16 + - - CAST( + 44 AS DECIMAL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8948
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 16 + - - CAST ( + 44 AS REAL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT COUNT( * ) + - + 21 AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT COUNT ( * ) + - + 21 AS col2 FROM tab1 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT DISTINCT CAST( - 26 AS SIGNED ) * - - col1 AS col1 FROM tab0 AS cor0
----
-2106
-26
-546

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT CAST ( - 26 AS INTEGER ) * - - col1 AS col1 FROM tab0 AS cor0
----
-2106
-26
-546

query I rowsort
SELECT ALL col2 - ( + col1 ) FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT + 81 FROM tab1 WHERE + 42 + + - col2 IS NULL
----

query II rowsort
SELECT col0, + col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8954
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) < - 36
----

skipif mysql # not compatible
query III rowsort label-8954
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) < - 36
----

query I rowsort
SELECT - 68 - + col1 * 72 FROM tab1
----
-1076
-3452
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL COUNT( * ) * - 27 * + - 0 * - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL COUNT ( * ) * - 27 * + - 0 * - COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT + - 45 * + MAX( ALL - col1 ) + - 49 DIV + 38 FROM tab2 AS cor0
----
2294

skipif mysql # not compatible
query I rowsort label-8957
SELECT + - 45 * + MAX ( ALL - col1 ) + - 49 / + 38 FROM tab2 AS cor0
----
2294

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT DISTINCT - + COUNT( DISTINCT - col2 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8958
SELECT DISTINCT - + COUNT ( DISTINCT - col2 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT DISTINCT - 55 DIV + col0 AS col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - 55 / + col0 AS col0 FROM tab0 AS cor0
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( - AVG ( ALL - col1 ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - AVG ( ALL - col1 ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 IN ( col1 - + col0 + + + 25, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL + col0 * - ( 93 ), - col1 + + col0 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to 52db58add4a6e06d06715f113d23531d

onlyif mysql # DIV for integer division: 
query II rowsort label-8964
SELECT + col1 DIV - - 75 AS col2, + 44 AS col2 FROM tab0 AS cor0
----
0
44
0
44
1
44

skipif mysql # not compatible
query II rowsort label-8964
SELECT + col1 / - - 75 AS col2, + 44 AS col2 FROM tab0 AS cor0
----
0
44
0
44
1
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT + 65 * col1 * - col2 + ( + col2 ) + - col2 DIV col2 * + col2 FROM tab1 AS cor0
----
-19175
-207740
-87360

skipif mysql # not compatible
query I rowsort label-8965
SELECT + 65 * col1 * - col2 + ( + col2 ) + - col2 / col2 * + col2 FROM tab1 AS cor0
----
-19175
-207740
-87360

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT + col2 * + + 30 * - col0 IS NULL
----
-51
-85
-91

query I rowsort
SELECT - col0 * + 87 * - + col1 AS col1 FROM tab2 AS cor0
----
204102
428736
437175

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT + + col1 DIV + 26 + col2 AS col2 FROM tab1 AS cor0
----
59
69
96

skipif mysql # not compatible
query I rowsort label-8968
SELECT + + col1 / + 26 + col2 AS col2 FROM tab1 AS cor0
----
59
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT - ( - + COUNT( - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8969
SELECT - ( - + COUNT ( - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT - MIN( - 27 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT - MIN ( - 27 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT - 91 * - - 40 FROM tab0
----
-3640
-3640
-3640

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 / - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - 38 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 * + 69 * - col1 AS col1 FROM tab1 AS cor0
----
-13524
-152421
-1725

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 0 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + MIN( col2 ) col2 FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8976
SELECT + MIN ( col2 ) col2 FROM tab2 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT + + col2 * - col0 * + - col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + - col2 * 89 - ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-5256
-6099
-8558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - - 84 * + + col2 + - 65 col1 FROM tab2
----
1913
3359
4882

query I rowsort
SELECT - 78 + - - 25 AS col2 FROM tab1
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 * + 51 * + - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 * + 51 * + - col1 FROM tab0
----
NULL

query I rowsort
SELECT + 58 FROM tab1 WHERE NOT - col1 IS NULL
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8984
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - - CAST( ( + - 83 ) AS SIGNED ) / - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8984
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - - CAST ( ( + - 83 ) AS INTEGER ) / - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8985
SELECT * FROM tab2 WHERE NOT ( - + 57 / - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8985
SELECT * FROM tab2 WHERE NOT ( - + 57 / - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8986
SELECT COUNT( * ) * - COUNT( * ) * - - COUNT( * ) DIV - 70 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT COUNT ( * ) * - COUNT ( * ) * - - COUNT ( * ) / - 70 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL - + COUNT( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL - + COUNT ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT DISTINCT + CAST( - ( col1 ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT + CAST ( - ( col1 ) AS INTEGER ) FROM tab0
----
-1
-21
-81

query II rowsort
SELECT + - col0, - col1 AS col2 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 25 ) + 72 + - col0 col1, + col0 + - - col2 + + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
22
191
33
144
51
92

query I rowsort
SELECT DISTINCT - 54 + - + 34 + + col2 FROM tab1 AS cor0
----
-20
-29
8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 67 * 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, + 13 col0 FROM tab2 AS cor0
----
51
13
67
13
77
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT DISTINCT ( - + COUNT( * ) ), - 73 col0 FROM tab0 AS cor0
----
-3
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8994
SELECT DISTINCT ( - + COUNT ( * ) ), - 73 col0 FROM tab0 AS cor0
----
-3
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
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-8995
SELECT ALL SUM ( col2 ) col1 FROM tab2 AS cor0
----
121

query II rowsort
SELECT DISTINCT + col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL + MAX( + - ( col2 ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + MAX ( + - ( col2 ) ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT col1 + col2 * + + 13 - 35 FROM tab2
----
315
562
786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT - SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE 75 / - 70 + + + ( 12 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE 75 / - 70 + + + ( 12 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - 69 * + MAX( - col1 ) + - COUNT( * ) FROM tab2
----
3516

skipif mysql # not compatible
query I rowsort label-9000
SELECT - 69 * + MAX ( - col1 ) + - COUNT ( * ) FROM tab2
----
3516

query I rowsort
SELECT DISTINCT 68 + col1 * 51 FROM tab1
----
2465
323
782

query I rowsort
SELECT DISTINCT + + col1 + + - 16 AS col1 FROM tab0 AS cor0
----
-15
5
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT DISTINCT MIN( ALL + col2 ) + - CAST( + SUM( ALL + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT MIN ( ALL + col2 ) + - CAST ( + SUM ( ALL + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT DISTINCT + + CAST( - 16 AS SIGNED ) AS col0 FROM tab2 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT + + CAST ( - 16 AS INTEGER ) AS col0 FROM tab2 cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT COUNT( DISTINCT - col0 ) + - COUNT( ALL - - col2 ) - COUNT( * ) - - 89 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT COUNT ( DISTINCT - col0 ) + - COUNT ( ALL - - col2 ) - COUNT ( * ) - - 89 FROM tab0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - + col2 * - + 92 col0, + col0 AS col2 FROM tab2
----
2139
46
3720
64
5394
75

query I rowsort
SELECT DISTINCT + + 43 AS col0 FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT - col1 - + 54 + - 38 - - 54 FROM tab2 AS cor0
----
-105
-115
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < + col1 + col0 * + 43
----
0

skipif mysql # not compatible
query I rowsort label-9009
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < + col1 + col0 * + 43
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 98 >= + 18 * col0 + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT ALL + 96 * + col1 AS col2 FROM tab0
----
2016
7776
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 55 / + - col0 * - + col2 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + 0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 / - col2 * - 75 AS col0 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT DISTINCT - COUNT( * ) * + 55 + 54 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - COUNT ( * ) * + 55 + 54 FROM tab2 AS cor0
----
-111

query I rowsort
SELECT ALL + 78 * + col2 + - + 86 FROM tab2 cor0
----
1708
3034
4438

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9018
SELECT DISTINCT - col2 / - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - col2 / - CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT - col1 + - col0 + col1 DIV 58 DIV - 77 * col1 AS col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-9019
SELECT - col1 + - col0 + col1 / 58 / - 77 * col1 AS col0 FROM tab2
----
-141
-142
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9020
SELECT ALL 66 + + col1 DIV + col0 * + + col2 AS col0 FROM tab1
----
66
66
66

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL 66 + + col1 / + col0 * + + col2 AS col0 FROM tab1
----
66
66
66

query I rowsort
SELECT ALL - 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - + MIN( ALL col0 ) FROM tab2 WHERE NULL IS NULL AND - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT - + MIN ( ALL col0 ) FROM tab2 WHERE NULL IS NULL AND - + col2 IS NULL
----
NULL

query I rowsort
SELECT ALL col0 + 35 * - col1 AS col0 FROM tab0
----
-2820
-648
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT 11 + ( MAX( ALL ( col1 ) ) ) * MAX( + - 58 ) col1 FROM tab0 AS cor0
----
-4687

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9024
SELECT DISTINCT 11 + ( MAX ( ALL ( col1 ) ) ) * MAX ( + - 58 ) col1 FROM tab0 AS cor0
----
-4687

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 68 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9025
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 68 AND NULL
----
0

query II rowsort
SELECT ALL + - col2 AS col1, col2 + col0 + + + 15 FROM tab1 AS cor0
----
-59
159
-68
174
-96
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT - 5 * - CAST( - col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-115
-200
-290

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT - 5 * - CAST ( - col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-115
-200
-290

query I rowsort
SELECT + - ( - 85 ) - 79 FROM tab2 cor0 WHERE NULL < + col0
----

query I rowsort
SELECT - ( + + ( 58 ) ) / - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 99 * col0 AS col0 FROM tab2 AS cor0
----
4554
6336
7425

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 < + - col2 + + + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT MAX( - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT MAX ( - + col2 ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT col2 * + 39 FROM tab2
----
1560
2262
897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT ALL SUM( DISTINCT + 4 ) / CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9034
SELECT ALL SUM ( DISTINCT + 4 ) / CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT 90 * col0 * + 55 * + col2 FROM tab0
----
3489750
4306500
47534850

query II rowsort
SELECT col2 * - col1, + col2 + + col1 AS col2 FROM tab0
----
-210
31
-3807
128
-99
100

query II rowsort
SELECT ALL - col1 AS col1, + 35 AS col2 FROM tab0
----
-1
35
-21
35
-81
35

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= 77 / - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 52 - - 76 + col0 * 68 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + + col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + 34 - col1 AS col1 FROM tab1 AS cor0
----
-13
20
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 94 col1 FROM tab1 AS cor0
----
47
80
89

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 IN ( 83, - ( col0 ) )
----

query I rowsort
SELECT + 13 FROM tab0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT DISTINCT CAST( + col2 AS SIGNED ) + + col2 + + col0 + + 11 - - - col0 + - col1 FROM tab2
----
14
6
60

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + + col2 + + col0 + + 11 - - - col0 + - col1 FROM tab2
----
14
6
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + - col1 + - col2 * - - 83 col0 FROM tab1 AS cor0 WHERE - 46 IS NULL
----

query I rowsort
SELECT + col2 * - col1 * + + col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT + 97 * - + 79 FROM tab0 AS cor0
----
-7663
-7663
-7663

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL < col2 * - - ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - 99 * - col1 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9052
SELECT - 70 AS col2, col1 DIV - 3 AS col2 FROM tab1
----
-70
-1
-70
-15
-70
-4

skipif mysql # not compatible
query II rowsort label-9052
SELECT - 70 AS col2, col1 / - 3 AS col2 FROM tab1
----
-70
-1
-70
-15
-70
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col2 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, 75 col1 FROM tab0
----
-10
75
-47
75
-99
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 28 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 12, - 70 AS col0 FROM tab0 AS cor0
----
12
-70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 / - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9058
SELECT - 38 DIV - col0 * - col2 * + - col0 AS col1, - 16 col1 FROM tab2 AS cor0
----
0
-16
0
-16
0
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9058
SELECT - 38 / - col0 * - col2 * + - col0 AS col1, - 16 col1 FROM tab2 AS cor0
----
0
-16
0
-16
0
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT + - COUNT( * ) * + ( - - 34 ) AS col2 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9059
SELECT + - COUNT ( * ) * + ( - - 34 ) AS col2 FROM tab0 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT - + MIN( DISTINCT + 41 ) AS col0 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9060
SELECT - + MIN ( DISTINCT + 41 ) AS col0 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT 92 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 22 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * ( - - 94 ) + + col1 * + - 52 col0 FROM tab2
----
2188
2889
3298

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT ALL + SUM( - - 60 ), + COUNT( * ) AS col1 FROM tab2
----
180
3

skipif mysql # not compatible
query II rowsort label-9064
SELECT ALL + SUM ( - - 60 ), + COUNT ( * ) AS col1 FROM tab2
----
180
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9065
SELECT ALL - 69 DIV + + 45 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - 69 / + + 45 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9066
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 20 + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 20 + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 + + + 89 FROM tab0 AS cor0
----
-10
42
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + 98, + col0 col2 FROM tab0 AS cor0
----
17
15
77
87
97
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9069
SELECT ALL col0 + CAST( - CAST( + + col1 AS DECIMAL ) AS SIGNED ) + - + 89 FROM tab0 AS cor0
----
-155
-23
7

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL col0 + CAST ( - CAST ( + + col1 AS REAL ) AS INTEGER ) + - + 89 FROM tab0 AS cor0
----
-155
-23
7

query I rowsort
SELECT + col0 + - - col1 + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9071
SELECT - MIN( DISTINCT + 77 ) + + ( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT - MIN ( DISTINCT + 77 ) + + ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - + col2, col1 FROM tab1 WHERE NULL <> - col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL MIN( ALL - col1 ) col2 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9073
SELECT ALL MIN ( ALL - col1 ) col2 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 79 col1, - 17 + col2 AS col0 FROM tab0
----
79
-7
79
30
79
82

query III rowsort
SELECT * FROM tab2 WHERE 0 * - 97 / - + col1 / col1 >= + 68
----

query I rowsort
SELECT DISTINCT 49 + col1 * - + 44 AS col1 FROM tab1
----
-171
-2019
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE col2 + + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE col2 + + col2 >= NULL
----
0

query I rowsort
SELECT + + col1 - - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 53 * - 68 FROM tab2
----
-3604
-3604
-3604

query I rowsort
SELECT + 64 + - col2 FROM tab0 AS cor0 WHERE NOT + 72 IS NULL
----
-35
17
54

query II rowsort
SELECT col0 AS col2, col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT DISTINCT + ( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL 94 * + 90 * + COUNT( * ) FROM tab2 cor0
----
25380

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL 94 * + 90 * + COUNT ( * ) FROM tab2 cor0
----
25380

query II rowsort
SELECT ALL 62 AS col0, + col1 AS col0 FROM tab0 cor0
----
62
1
62
21
62
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 AS col0, + 50 col1 FROM tab0 cor0
----
-5
50
-5
50
-5
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT DISTINCT SUM( + 61 ) col0 FROM tab2
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9087
SELECT DISTINCT SUM ( + 61 ) col0 FROM tab2
----
183

query I rowsort
SELECT DISTINCT + 76 FROM tab1 WHERE NULL BETWEEN NULL AND + col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9089
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + 46 * - CAST( - 74 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9089
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + 46 * - CAST ( - 74 AS INTEGER )
----

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 83 + - + 28 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 83 + - + 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT MIN( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT MIN ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + ( 88 ) * 58 + + col0 FROM tab0 AS cor0
----
5119
5191
5201

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 <> NULL )
----

query I rowsort
SELECT DISTINCT 88 + + - col1 AS col1 FROM tab0
----
67
7
87

query I rowsort
SELECT + - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL - 40 * + - col0 * + + col2 + + col2 AS col0 FROM tab2 cor0
----
102440
174058
42343

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT - - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT - - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE col2 + col2 IS NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT ALL 61 + col2 AS col0 FROM tab0 cor0
----
108
160
71

query II rowsort
SELECT DISTINCT 75, col1 AS col1 FROM tab2 AS cor0
----
75
51
75
67
75
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9103
SELECT ALL 32, - COUNT( * ) + - 33 AS col1 FROM tab1 AS cor0
----
32
-36

skipif mysql # not compatible
query II rowsort label-9103
SELECT ALL 32, - COUNT ( * ) + - 33 AS col1 FROM tab1 AS cor0
----
32
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT - MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9104
SELECT - MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT col0 * + ( col2 ) AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT + 19 - - ( - 3 ) FROM tab1
----
16
16
16

query I rowsort
SELECT - col0 + - col1 + - - col2 * 98 * - col0 + - 33 FROM tab1
----
-479906
-491593
-606595

query II rowsort
SELECT + col2 + + col2, col2 FROM tab1 AS cor0
----
118
59
136
68
192
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT DISTINCT - 19 + + - 98 + CAST( NULL AS SIGNED ) * - + 76 + + col0 + + ( + col2 ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - 19 + + - 98 + CAST ( NULL AS INTEGER ) * - + 76 + + col0 + + ( + col2 ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - - 37 * + 5 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-9110
SELECT - - 37 * + 5 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 98 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + + + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + - col0 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT ALL - col2, 18 * - 78 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( 85 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 col2 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col0 * col0 IS NOT NULL
----

query II rowsort
SELECT col1 * - - col2 * - ( col0 ) + - + col1, col2 FROM tab0 AS cor0
----
-18291
10
-57186
47
-9604
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT - MAX( 37 ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9118
SELECT - MAX ( 37 ) FROM tab0 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9119
SELECT ALL + col1 DIV CAST( - 77 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + col1 / CAST ( - 77 AS INTEGER ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col0 AS col0 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT ALL - + 97 AS col2, + COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-97
-9

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL - + 97 AS col2, + COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-97
-9

query I rowsort
SELECT col0 * + 34 + + - 28 + + col2 AS col0 FROM tab1 AS cor0
----
1802
2921
3134

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 40 * ( - + 80 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT MIN( - + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT MIN ( - + col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL + MIN( 48 ) * - + 61 + + + COUNT( + 40 ) FROM tab0 AS cor0
----
-2925

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL + MIN ( 48 ) * - + 61 + + + COUNT ( + 40 ) FROM tab0 AS cor0
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + - COUNT( DISTINCT 22 ) + 26 AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9126
SELECT + - COUNT ( DISTINCT 22 ) + 26 AS col1 FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL + col2 + ( + + col1 ) FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT col1 - - col1 + - col0 FROM tab1 AS cor0
----
-23
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT + MAX( - col0 ) col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9129
SELECT DISTINCT + MAX ( - col0 ) col0 FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT DISTINCT - + col2 DIV - - 90 + col1 + col2 + col1 AS col2 FROM tab0 cor0
----
100
209
52

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT - + col2 / - - 90 + col1 + col2 + col1 AS col2 FROM tab0 cor0
----
100
209
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 3
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + 65 > - - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 5 ) * - 89 FROM tab1
----
445
445
445

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT - COUNT( - col2 ) * SUM( col1 ) + + 59 AS col1 FROM tab0
----
-250

skipif mysql # not compatible
query I rowsort label-9135
SELECT - COUNT ( - col2 ) * SUM ( col1 ) + + 59 AS col1 FROM tab0
----
-250

query II rowsort
SELECT DISTINCT + col2 + - + 60 + - - col2 AS col1, - 36 FROM tab0
----
-40
-36
138
-36
34
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, ( col2 ) + + col0 col2 FROM tab1
----
51
147
85
144
91
159

query I rowsort
SELECT ALL + 50 + + - col1 * + + col1 FROM tab2
----
-2551
-4439
-5879

query I rowsort
SELECT DISTINCT col2 * 84 AS col2 FROM tab0
----
3948
8316
840

query I rowsort
SELECT col0 * - ( 51 ) FROM tab2
----
-2346
-3264
-3825

query I rowsort
SELECT + 89 * - - col1 FROM tab1
----
1246
4183
445

onlyif mysql # aggregate syntax: 
query II rowsort label-9142
SELECT ALL COUNT( * ) AS col2, - 37 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
-37

skipif mysql # not compatible
query II rowsort label-9142
SELECT ALL COUNT ( * ) AS col2, - 37 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT ALL - ( + + 90 ) DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - ( + + 90 ) / - col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT MIN( DISTINCT - 53 ) AS col0 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT MIN ( DISTINCT - 53 ) AS col0 FROM tab2 AS cor0
----
-53

query II rowsort
SELECT ALL + + 59 AS col0, col2 FROM tab1 AS cor0
----
59
59
59
68
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 71 + - 15 AS col2 FROM tab0, tab1 AS cor0
----
56

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 83 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9149
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + col0 * ( CAST( - 57 AS SIGNED ) ) - - 24 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9149
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + col0 * ( CAST ( - 57 AS INTEGER ) ) - - 24 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <= - - 7
----

query I rowsort
SELECT + ( - 31 ) AS col0 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT 29 * - ( + + col2 ) AS col2 FROM tab0
----
-1363
-2871
-290

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT ALL + 56 DIV 30 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + 56 / 30 AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT CAST( NULL AS SIGNED ) / 48 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT CAST ( NULL AS INTEGER ) / 48 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col0, - 52 + col2 AS col2 FROM tab0
----
-10
-42
-47
-5
-99
47

query II rowsort
SELECT + col1, col2 * col1 FROM tab2
----
51
1173
67
3886
77
3080

query I rowsort
SELECT ALL col2 + 33 FROM tab2
----
56
73
91

query I rowsort
SELECT 28 + - col0 - - - col0 FROM tab2 AS cor0
----
-100
-122
-64

query I rowsort
SELECT 26 + - - col1 * - + col0 * - col1 FROM tab0
----
123
38393
98441

query I rowsort
SELECT ALL 39 AS col2 FROM tab0 WHERE NOT 70 IS NULL
----
39
39
39

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < col0 + - 24
----

query I rowsort
SELECT DISTINCT + 74 - - 27 FROM tab2 cor0
----
101

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 28 >= ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 96 + col2 AS col1 FROM tab0 cor0
----
106
143
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT - CAST( - + CAST( col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9165
SELECT - CAST ( - + CAST ( col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT 4 - COUNT( * ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9166
SELECT 4 - COUNT ( * ) col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + + COUNT( * ) - - - 22 AS col1 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9167
SELECT + + COUNT ( * ) - - - 22 AS col1 FROM tab2 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-9168
SELECT DISTINCT + col1 + - + col1 AS col1, + col1 DIV - 49 FROM tab2 AS cor0
----
0
-1

skipif mysql # not compatible
query II rowsort label-9168
SELECT DISTINCT + col1 + - + col1 AS col1, + col1 / - 49 FROM tab2 AS cor0
----
0
-1

query I rowsort
SELECT + - ( + - col1 ) - + col0 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT - col2 - CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT - col2 - CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 + - col0 AS col0 FROM tab2 WHERE - - col2 IS NOT NULL
----
-20
-38
-49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN 2 / + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 23 * + - 16 FROM tab2 AS cor0
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT DISTINCT MAX( ALL + + 61 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
61

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT MAX ( ALL + + 61 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9177
SELECT ALL + col2 DIV 5 FROM tab1
----
11
13
19

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + col2 / 5 FROM tab1
----
11
13
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT + SUM( DISTINCT + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT DISTINCT - col2 * + - 83 AS col2 FROM tab0 cor0
----
3901
8217
830

query I rowsort
SELECT ALL - - col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - - col2 * - + 68 AS col0 FROM tab2 AS cor0
----
-1564
-2720
-3944

query II rowsort
SELECT + col0 AS col1, 5 AS col1 FROM tab2 AS cor0
----
46
5
64
5
75
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL - - CAST( NULL AS SIGNED ) + + col2 * 35 AS col2 FROM tab2 cor0 WHERE NOT - 18 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col2 * 35 AS col2 FROM tab2 cor0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - - 22 AS col2 FROM tab2 AS cor0
----
-1012
-1408
-1650

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( ( NOT ( NULL <= NULL ) ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ( - + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9186
SELECT ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9187
SELECT DISTINCT + COUNT( * ), + 33 col0 FROM tab1 AS cor0
----
3
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9187
SELECT DISTINCT + COUNT ( * ), + 33 col0 FROM tab1 AS cor0
----
3
33

query I rowsort
SELECT ALL col0 * + 89 AS col1 FROM tab0 AS cor0
----
1335
7743
8633

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT SUM( ALL col1 ) + 55 * - 6 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-9189
SELECT SUM ( ALL col1 ) + 55 * - 6 FROM tab2
----
-135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9190
SELECT ALL - 57 + + ( col2 ) DIV + - CAST( - - col2 AS SIGNED ) - col1 AS col0 FROM tab1
----
-105
-63
-72

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL - 57 + + ( col2 ) / + - CAST ( - - col2 AS INTEGER ) - col1 AS col0 FROM tab1
----
-105
-63
-72

query I rowsort
SELECT 4 + - + col2 + + 64 AS col0 FROM tab2
----
10
28
45

query I rowsort
SELECT ( - + col0 ) + + + 92 FROM tab1
----
1
41
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT DISTINCT ( + col2 ) DIV col0 + + col0 * - col1 FROM tab1
----
-425
-4277
-713

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT ( + col2 ) / col0 + + col0 * - col1 FROM tab1
----
-425
-4277
-713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT DISTINCT + AVG ( ALL - 2 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT + AVG ( ALL - 2 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col1 ) > - - col0
----
15
81
47

query I rowsort
SELECT - - 56 * + 46 + + col2 + + col1 AS col1 FROM tab0 AS cor0
----
2607
2676
2704

query I rowsort
SELECT DISTINCT ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT ALL - - col1 DIV col2 + + + 8 AS col0 FROM tab2 cor0
----
10
9
9

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL - - col1 / col2 + + + 8 AS col0 FROM tab2 cor0
----
10
9
9

query I rowsort
SELECT + - ( - - 92 ) + - + col0 AS col2 FROM tab1 AS cor0
----
-143
-177
-183

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab1 AS cor0 WHERE ( - - 47 ) = NULL
----

query I rowsort
SELECT ALL - 17 - - 27 * - ( + col2 ) * - col2 + - col2 + + col0 + + col1 * - col0 FROM tab0 AS cor0
----
264511
58379
933

query I rowsort
SELECT + col2 + + 46 FROM tab2 AS cor0
----
104
69
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT + + MIN( ALL - - 60 ) - - COUNT( * ) FROM tab0 cor0
----
63

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT + + MIN ( ALL - - 60 ) - - COUNT ( * ) FROM tab0 cor0
----
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - 9
----

query I rowsort
SELECT + - col1 FROM tab0 WHERE + 43 * - - col2 + - col0 IS NULL
----

query I rowsort
SELECT ALL col1 - + 56 AS col2 FROM tab1
----
-42
-51
-9

query I rowsort
SELECT ( + col2 ) * col0 * + col1 FROM tab2
----
197120
291450
53958

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - 23 FROM tab1
----
-1357
-1564
-2208

query I rowsort
SELECT DISTINCT ( 2 ) AS col0 FROM tab2
----
2

query II rowsort
SELECT - col1 AS col0, col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

query II rowsort
SELECT ALL - 33 AS col1, 77 AS col2 FROM tab2
----
-33
77
-33
77
-33
77

query I rowsort
SELECT DISTINCT - col2 * - + col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT 51 * COUNT( * ) * - + COUNT( * ) FROM tab1
----
-459

skipif mysql # not compatible
query I rowsort label-9215
SELECT 51 * COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT + COUNT( DISTINCT - - 4 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + COUNT ( DISTINCT - - 4 ) FROM tab2
----
1

query I rowsort
SELECT ( 47 ) * + col2 * col1 * 80 FROM tab1
----
1109200
12016960
5053440

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + ( + MIN( - col1 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL < + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT + ( + MIN ( - col1 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL < + col2 )
----
NULL

query II rowsort
SELECT ALL col0 AS col0, col0 + col2 FROM tab2 cor0
----
46
69
64
104
75
133

query I rowsort
SELECT col2 * 51 * - col2 FROM tab1
----
-177531
-235824
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL COUNT( col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL COUNT ( col1 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT + col1 * 83, col1 AS col2 FROM tab1
----
1162
14
3901
47
415
5

query I rowsort
SELECT ALL + col1 + 81 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
128
86
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT ALL - CAST( NULL AS SIGNED ) * + - 55 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 55 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) <> 19 * 85 - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT DISTINCT - col0 DIV - col1 + + 98 FROM tab0 cor0
----
102
195
98

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT - col0 / - col1 + + 98 FROM tab0 cor0
----
102
195
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + ( + col0 ) / + col1 AND - + ( - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT COUNT( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9229
SELECT COUNT ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + 2 * col1 FROM tab2
----
102
134
154

query III rowsort
SELECT * FROM tab0 WHERE ( - - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9232
SELECT + CAST( NULL AS SIGNED ), col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9232
SELECT + CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, ( 44 ) FROM tab1
----
59
44
68
44
96
44

query II rowsort
SELECT ALL col2, col1 * - col2 AS col1 FROM tab2
----
23
-1173
40
-3080
58
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT DISTINCT CAST( - 53 AS SIGNED ) + - - col0 + col1 FROM tab1
----
12
37
85

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT CAST ( - 53 AS INTEGER ) + - - col0 + col1 FROM tab1
----
12
37
85

query I rowsort
SELECT ALL - col2 + - 20 AS col2 FROM tab1
----
-116
-79
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT DISTINCT col0 DIV - - col0 + - ( - col1 ) * + col2 AS col1 FROM tab0
----
100
211
3808

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT col0 / - - col0 + - ( - col1 ) * + col2 AS col1 FROM tab0
----
100
211
3808

query III rowsort
SELECT * FROM tab2 WHERE - 52 = - col2
----

query I rowsort
SELECT - - 44 + + - col1 FROM tab0 AS cor0
----
-37
23
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT DISTINCT 10 + col0 DIV + 23 FROM tab1 AS cor0
----
12
13

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT 10 + col0 / + 23 FROM tab1 AS cor0
----
12
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col1 + - + 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 15 col1 FROM tab0 cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT col1 + + + 24 AS col1 FROM tab1 AS cor0
----
29
38
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9244
SELECT + MIN( + ( 36 ) ) DIV - COUNT( * ) FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 30 IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-9244
SELECT + MIN ( + ( 36 ) ) / - COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 30 IS NULL
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9245
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) * - ( 78 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - ( 78 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 43 + col1 FROM tab0 cor0
----
124
44
64

query I rowsort
SELECT - 86 * - col1 + + 80 AS col2 FROM tab2
----
4466
5842
6702

query I rowsort
SELECT ALL + 1 * + 76 FROM tab1
----
76
76
76

query I rowsort
SELECT ALL - col0 * + 58 AS col0 FROM tab0
----
-5046
-5626
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT + ( col1 ) DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9250
SELECT + ( col1 ) / col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + 56 + - col0 FROM tab1
----
-29
-35
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9252
SELECT COUNT( + 22 ) DIV ( - MAX( + col0 ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9252
SELECT COUNT ( + 22 ) / ( - MAX ( + col0 ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT ALL COUNT( * ) DIV 71 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL COUNT ( * ) / 71 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - 45 + COUNT( * ) col1 FROM tab0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9254
SELECT - 45 + COUNT ( * ) col1 FROM tab0
----
-42

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN ( col1 ) AND + col1 * + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 56 * - 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL < col2
----
0

query I rowsort
SELECT ALL 91 / col0 FROM tab2 WHERE NOT 77 BETWEEN col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL + MIN( DISTINCT - 64 ) FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + MIN ( DISTINCT - 64 ) FROM tab1
----
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 36 * 17 BETWEEN - ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT COUNT( * ) FROM tab1 WHERE col1 * + 87 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9261
SELECT COUNT ( * ) FROM tab1 WHERE col1 * + 87 IS NOT NULL
----
3

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab2 WHERE 38 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NOT 11 + - col2 IN ( + 29 + - col0 / - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT + 87 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
87
87
87

skipif mysql # not compatible
query I rowsort label-9264
SELECT + 87 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL MAX( - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL MAX ( - col1 ) FROM tab0
----
-1

query I rowsort
SELECT ALL + col2 * - 23 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-1334
-529
-920

query I rowsort
SELECT ( - 40 ) AS col0 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL col2 * + 94 AS col2 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND + 42
----
6392

query I rowsort
SELECT 12 AS col1 FROM tab0 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT - ( 2 ) - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 14 ) IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - ( 2 ) - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 14 ) IS NULL
----
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - COUNT( * ) FROM tab1 WHERE - col2 / + ( - col2 * col1 ) + + ( col0 ) NOT IN ( + col0 + + 87 )
----
-3

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - col2 / + ( - col2 * col1 ) + + ( col0 ) NOT IN ( + col0 + + 87 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + MAX( ALL - col0 ) FROM tab1 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT + MAX ( ALL - col0 ) FROM tab1 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9274
SELECT ALL - 9 DIV + col2 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL - 9 / + col2 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + COUNT( ALL 37 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9275
SELECT + COUNT ( ALL 37 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - ( - 28 ) AS col2 FROM tab1 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * 40 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * 40 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT SUM( DISTINCT col2 ) + 52 * COUNT( + col2 ) FROM tab2 cor0
----
277

skipif mysql # not compatible
query I rowsort label-9278
SELECT SUM ( DISTINCT col2 ) + 52 * COUNT ( + col2 ) FROM tab2 cor0
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT - COUNT( DISTINCT + 88 ) * ( 53 ) + + 25 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9279
SELECT - COUNT ( DISTINCT + 88 ) * ( 53 ) + + 25 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN 45 * - 96 AND ( col2 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 24 + + ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT COUNT( * ) * - COUNT( col2 ) + COUNT( * ) * 92 AS col1 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-9282
SELECT COUNT ( * ) * - COUNT ( col2 ) + COUNT ( * ) * 92 AS col1 FROM tab2 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT ALL COUNT( ALL col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL COUNT ( ALL col1 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT col2 DIV - col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT col2 / - col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-1
-11
-6

query I rowsort
SELECT - ( + - 68 ) + - col0 * + col0 AS col0 FROM tab2
----
-2048
-4028
-5557

query I rowsort
SELECT col1 * - col2 AS col2 FROM tab1 WHERE - col1 < col2
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT + col0 + col1 DIV col0 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-9287
SELECT + col0 + col1 / col0 FROM tab2
----
47
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL MIN( ALL + 77 ) col2 FROM tab0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9288
SELECT ALL MIN ( ALL + 77 ) col2 FROM tab0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 28 * + 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col2 FROM tab2
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 + - col1 * col0 col1 FROM tab2 WHERE NULL IN ( ( + col1 ) - + 91 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col2 FROM tab2
----
80
80
80

query I rowsort
SELECT + 12 * col2 * 6 AS col1 FROM tab1
----
4248
4896
6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col2 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - 1 + + col0 + 40 * col0 * + col0 FROM tab1 AS cor0
----
104090
289084
331330

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT DISTINCT - ( + 30 ) - col1 DIV + col1 AS col2 FROM tab1 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT - ( + 30 ) - col1 / + col1 AS col2 FROM tab1 cor0
----
-31

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > ( 91 )
----

query I rowsort
SELECT col0 * - + 18 - - col0 AS col1 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT - + 32 - - 73 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT MIN( DISTINCT + col2 ) / + 56 FROM tab0 WHERE col1 * 81 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT MIN ( DISTINCT + col2 ) / + 56 FROM tab0 WHERE col1 * 81 <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT DISTINCT + col2 * col2 DIV + - 10 + 72 col2 FROM tab0
----
-148
-908
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9301
SELECT DISTINCT + col2 * col2 / + - 10 + 72 col2 FROM tab0
----
-148
-908
62

query I rowsort
SELECT 13 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL - MAX( 47 ) * SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
5687

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - MAX ( 47 ) * SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
5687

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * - col0 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - + col2 * col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT + - COUNT( * ) * - - MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + - COUNT ( * ) * - - MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT - + CAST( - ( + 92 ) AS SIGNED ) FROM tab0 cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-9308
SELECT - + CAST ( - ( + 92 ) AS INTEGER ) FROM tab0 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT COUNT( * ) * + 8 * - - 3 * - COUNT( * ) AS col2 FROM tab1 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9309
SELECT COUNT ( * ) * + 8 * - - 3 * - COUNT ( * ) AS col2 FROM tab1 cor0
----
-216

query II rowsort
SELECT ALL 52 AS col1, + col0 FROM tab0 cor0
----
52
15
52
87
52
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT DISTINCT - - 0 * ( COUNT( col2 ) * 28 ) + - MAX( DISTINCT col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT - - 0 * ( COUNT ( col2 ) * 28 ) + - MAX ( DISTINCT col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9312
SELECT - CAST( ( + 93 ) AS SIGNED ) FROM tab2 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-9312
SELECT - CAST ( ( + 93 ) AS INTEGER ) FROM tab2 AS cor0
----
-93
-93
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + col0 + - col2 NOT BETWEEN col1 AND NULL
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT + col0 DIV + + 71 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + col0 / + + 71 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + COUNT( * ) * - 82 AS col1 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-9315
SELECT + COUNT ( * ) * - 82 AS col1 FROM tab0
----
-246

query I rowsort
SELECT + col0 * - 92 FROM tab0
----
-1380
-8004
-8924

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9317
SELECT DISTINCT CAST( - col0 AS SIGNED ) DIV + col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT CAST ( - col0 AS INTEGER ) / + col1 FROM tab1
----
-1
-17
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + 75 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - ( + col2 ) * + - 24 AS col1 FROM tab0
----
1128
2376
240

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - + col0 - + col1 * + col2 NOT IN ( 30 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - + col2 = col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9322
SELECT CAST( - col1 AS SIGNED ) DIV + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9322
SELECT CAST ( - col1 AS INTEGER ) / + col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - col1 + - 2 + 68 AS col2 FROM tab2
----
-1
-11
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9325
SELECT ALL + CAST( - MAX( - col0 ) AS SIGNED ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + CAST ( - MAX ( - col0 ) AS INTEGER ) FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + + col2 col0 FROM tab0
----
133
185
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - ( + 79 ) + - col2 ) NOT BETWEEN ( NULL ) AND + 1
----

query I rowsort
SELECT col1 + - + col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT + col2 * 20 + + 38 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9330
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + + 79 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9330
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + + 79 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN + 17 * - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 82 col2 FROM tab0 AS cor0
----
-1
-61
-81

query I rowsort
SELECT ALL - - 22 AS col1 FROM tab2 AS cor0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 56 AND - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT + 7 * - COUNT( * ) AS col1 FROM tab1 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9336
SELECT + 7 * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-21

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 24 / + 28 = NULL
----

query I rowsort
SELECT ALL - col0 + ( + 50 ) FROM tab1 cor0
----
-1
-35
-41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( col2 + - col1 )
----

query I rowsort
SELECT ALL + 6 AS col0 FROM tab2 cor0 WHERE NOT ( - col0 ) IS NULL
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT + MAX( ALL col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + MAX ( ALL col1 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT col1 * + - ( CAST( NULL AS SIGNED ) ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT col1 * + - ( CAST ( NULL AS INTEGER ) ) * - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT + COUNT( * ) - COUNT( DISTINCT + col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT + COUNT ( * ) - COUNT ( DISTINCT + col1 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 66 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT MAX( DISTINCT + + col1 ) + - + COUNT( - 75 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT MAX ( DISTINCT + + col1 ) + - + COUNT ( - 75 ) FROM tab0
----
78

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( - - col2 ) IS NULL
----
46
64
75

query I rowsort
SELECT + + col2 + col2 * col0 + + col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
767
967
9799

query II rowsort
SELECT 30 AS col0, col1 AS col2 FROM tab2 AS cor0
----
30
51
30
67
30
77

query I rowsort
SELECT ALL 57 - 92 * 64 FROM tab2 AS cor0
----
-5831
-5831
-5831

query II rowsort
SELECT + col1 AS col2, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT + 31 * + col0 AS col0 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL - COUNT( * ) * + + 55 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - COUNT ( * ) * + + 55 FROM tab0 AS cor0
----
-165

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col1 + + col0 AND col2 + col1 - + 25
----

query I rowsort
SELECT ALL - col2 * - col0 - + + 69 FROM tab0
----
636
801
9534

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT DISTINCT col0 DIV - 42 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT col0 / - 42 FROM tab2
----
-1

query I rowsort
SELECT ALL ( - + col2 ) AS col1 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT - + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9359
SELECT - + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT col0 * + + col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT - COUNT( * ) * - 69 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-9361
SELECT - COUNT ( * ) * - 69 FROM tab1 AS cor0
----
207

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 31 AND + 10
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9363
SELECT DISTINCT - 22 DIV + - 45, - COUNT( * ) * - - 16 AS col1 FROM tab2 AS cor0
----
0
-48

skipif mysql # not compatible
query II rowsort label-9363
SELECT DISTINCT - 22 / + - 45, - COUNT ( * ) * - - 16 AS col1 FROM tab2 AS cor0
----
0
-48

query I rowsort
SELECT ( + + col1 ) FROM tab1 AS cor0 WHERE NOT col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + SUM( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + SUM ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL + MIN( - col0 ) * ( + 35 ) AS col1 FROM tab1 AS cor0
----
-3185

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + MIN ( - col0 ) * ( + 35 ) AS col1 FROM tab1 AS cor0
----
-3185

query I rowsort
SELECT DISTINCT + col2 * + 39 AS col2 FROM tab2
----
1560
2262
897

query I rowsort
SELECT DISTINCT col1 - col0 AS col1 FROM tab1 WHERE + col0 <= - 56 * + col0 + + 44 OR NOT ( col0 * - col0 ) IS NULL
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT DISTINCT - col1 DIV + 6 FROM tab0
----
-13
-3
0

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT - col1 / + 6 FROM tab0
----
-13
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT DISTINCT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9371
SELECT DISTINCT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT - col2 * CAST( - 82 AS SIGNED ) * + + col1 + - col0 FROM tab1
----
110157
24105
261981

skipif mysql # not compatible
query I rowsort label-9372
SELECT - col2 * CAST ( - 82 AS INTEGER ) * + + col1 + - col0 FROM tab1
----
110157
24105
261981

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( + col0 * + col1 * + col0, - col0 / col2 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + col0 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9376
SELECT DISTINCT 10 AS col2, CAST( 79 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
79

skipif mysql # not compatible
query II rowsort label-9376
SELECT DISTINCT 10 AS col2, CAST ( 79 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
79

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 24 col0, col0 FROM tab1 AS cor0
----
24
51
24
85
24
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT ALL + col2 DIV + col1 * - - col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + col2 / + col1 * - - col1 FROM tab0 AS cor0
----
0
0
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> col2 * 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9381
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9382
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9383
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT ALL 43 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query II rowsort label-9385
SELECT ALL COUNT( * ) + COUNT( * ) AS col2, ( + - 35 ) AS col1 FROM tab2
----
6
-35

skipif mysql # not compatible
query II rowsort label-9385
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2, ( + - 35 ) AS col1 FROM tab2
----
6
-35

query I rowsort
SELECT 65 + col1 FROM tab1 AS cor0
----
112
70
79

query I rowsort
SELECT + col0 + - 92 FROM tab2 AS cor0
----
-17
-28
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( col2 + + - col1 + - + col0 + - + 76 - + col0 ) = ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( col2 + + - col1 + - + col0 + - + 76 - + col0 ) = ( + col1 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 28
----

query I rowsort
SELECT DISTINCT - col0 - 71 FROM tab2 AS cor0
----
-117
-135
-146

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT SUM( - col2 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-9394
SELECT SUM ( - col2 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-121

query I rowsort
SELECT DISTINCT 70 + - + col2 FROM tab2
----
12
30
47

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - + col2 + - col1 IN ( - + 43 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9397
SELECT 16 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9397
SELECT 16 / + + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * + 78 FROM tab1
----
1092
3666
390

onlyif mysql # DIV for integer division: 
query I rowsort label-9399
SELECT - 38 DIV + + col0 * + - col2 * col0 * + 9 * + 22 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9399
SELECT - 38 / + + col0 * + - col2 * col0 * + 9 * + 22 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT COUNT( * ) * - 94 * MIN( DISTINCT col2 ) col2 FROM tab1
----
-16638

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9400
SELECT COUNT ( * ) * - 94 * MIN ( DISTINCT col2 ) col2 FROM tab1
----
-16638

query I rowsort
SELECT ALL + ( 11 ) AS col0 FROM tab1
----
11
11
11

query I rowsort
SELECT DISTINCT col1 + + col0 + + + 5 FROM tab0
----
101
103
113

query I rowsort
SELECT DISTINCT col1 + + + col2 * + col1 * - - 55 FROM tab0 AS cor0
----
11571
209466
5446

query I rowsort
SELECT DISTINCT - + col2 + + + col1 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # DIV for integer division: 
query II rowsort label-9405
SELECT ALL - col1 + + + col0 DIV col1, 73 * - - col0 AS col0 FROM tab2 AS cor0
----
-51
3358
-66
5475
-77
4672

skipif mysql # not compatible
query II rowsort label-9405
SELECT ALL - col1 + + + col0 / col1, 73 * - - col0 AS col0 FROM tab2 AS cor0
----
-51
3358
-66
5475
-77
4672

onlyif mysql # aggregate syntax: 
query II rowsort label-9406
SELECT ALL 29 - + 67 + 52, COUNT( * ) col2 FROM tab2 AS cor0
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9406
SELECT ALL 29 - + 67 + 52, COUNT ( * ) col2 FROM tab2 AS cor0
----
14
3

query II rowsort
SELECT + 67, + col1 FROM tab1
----
67
14
67
47
67
5

query III rowsort
SELECT * FROM tab1 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT - 69 DIV - col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9409
SELECT - 69 / - col2 AS col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL ( + ( - COUNT( * ) ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL ( + ( - COUNT ( * ) ) ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT MAX( - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT MAX ( - col2 ) FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 83 col0 FROM tab0 AS cor0
----
10
83
47
83
99
83

query I rowsort
SELECT + col1 + col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - + col2 * - + col0 AND - ( - 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT + SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9414
SELECT + SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 32 <= NULL
----

query I rowsort
SELECT ALL col2 * + 43 * 0 * - 40 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + SUM( + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9418
SELECT + SUM ( + col2 ) FROM tab1
----
223

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col1 AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9420
SELECT 44 * + CAST( NULL AS DECIMAL ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9420
SELECT 44 * + CAST ( NULL AS REAL ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + - + 39 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT 40 * - MIN( - + col1 ) * + + SUM( + col0 ) - + 3 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
644754

skipif mysql # not compatible
query I rowsort label-9422
SELECT 40 * - MIN ( - + col1 ) * + + SUM ( + col0 ) - + 3 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
644754

query I rowsort
SELECT - ( + 48 ) + - + 66 + - 60 AS col2 FROM tab0 AS cor0
----
-174
-174
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + COUNT( * ) + - - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9424
SELECT + COUNT ( * ) + - - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + 12 col1 FROM tab1
----
47
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( - 16 NOT IN ( - 91 / + 92 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( - 16 NOT IN ( - 91 / + 92 ) )
----
NULL

query I rowsort
SELECT ALL + 0 + - - col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT - + 19 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN - col0 AND - col2
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
59
68
96

query I rowsort
SELECT + 97 * 74 AS col1 FROM tab0 cor0
----
7178
7178
7178

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL = + col1 - + col2 + - + col0 * + col1 )
----

query I rowsort
SELECT ALL + col0 + - 46 AS col0 FROM tab2 cor0
----
0
18
29

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - 8 + col1 AS col2 FROM tab0
----
-7
13
73

query I rowsort
SELECT - - ( + + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9440
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9440
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col1 ) col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT col2 * - 27 FROM tab1 AS cor0
----
-1593
-1836
-2592

query II rowsort
SELECT col0, - 34 AS col2 FROM tab0 cor0
----
15
-34
87
-34
97
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 28 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 28 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT ALL - - 67 AS col0 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT ( + 72 ) AS col0 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 * + col2 * 4 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9450
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 * + col2 * 4 ) IS NULL
----
3

query II rowsort
SELECT - - col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT + - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 86 IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9452
SELECT + - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 86 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL ( 4 ) AS col0 FROM tab1
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL MAX( DISTINCT + - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL MAX ( DISTINCT + - col2 ) AS col2 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( - col0 + - col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT DISTINCT + 18 FROM tab2 WHERE col1 + - + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT + 18 FROM tab2 WHERE col1 + - + CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9457
SELECT ALL * FROM tab2 WHERE + + col1 + - - col0 + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9457
SELECT ALL * FROM tab2 WHERE + + col1 + - - col0 + CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT ALL MAX( - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL MAX ( - col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL + ( + ( - + 54 ) ) + + SUM( - col1 ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + ( + ( - + 54 ) ) + + SUM ( - col1 ) FROM tab1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL COUNT( ALL - - col2 ) + 57 AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL COUNT ( ALL - - col2 ) + 57 AS col2 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT - - 99 AS col0 FROM tab2 WHERE NOT - 60 * - + col2 + + + col0 + - - col1 NOT BETWEEN + CAST( NULL AS SIGNED ) * col0 + - + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9461
SELECT - - 99 AS col0 FROM tab2 WHERE NOT - 60 * - + col2 + + + col0 + - - col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) * col0 + - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9462
SELECT 47 AS col0, COUNT( * ) * 97 AS col0 FROM tab2
----
47
291

skipif mysql # not compatible
query II rowsort label-9462
SELECT 47 AS col0, COUNT ( * ) * 97 AS col0 FROM tab2
----
47
291

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9463
SELECT + COUNT( * ), COUNT( * ) DIV 83 AS col2 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-9463
SELECT + COUNT ( * ), COUNT ( * ) / 83 AS col2 FROM tab1 AS cor0
----
3
0

query I rowsort
SELECT ( - 59 ) * 40 FROM tab2 AS cor0
----
-2360
-2360
-2360

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + COUNT( DISTINCT - 76 ) col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9465
SELECT + COUNT ( DISTINCT - 76 ) col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9466
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL ) = ( CAST( + - col2 AS SIGNED ) ) * - 84 )
----

skipif mysql # not compatible
query III rowsort label-9466
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL ) = ( CAST ( + - col2 AS INTEGER ) ) * - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9467
SELECT + SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NULL <= 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 58 + + col2 * + + col1 * - col0 * - - ( col2 ) AS col1 FROM tab0 AS cor0
----
-182758
-2683993
-950755

query I rowsort
SELECT ALL + col0 * - 97 - + col0 FROM tab2 AS cor0
----
-4508
-6272
-7350

query I rowsort
SELECT 38 AS col1 FROM tab0 AS cor0 WHERE col2 * + - 87 IS NOT NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT MIN( + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT 19 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 99 - - col1 FROM tab1 cor0
----
-52
-85
-94

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( + col2 / 95 * - + col1 / col0 - 81 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL - COUNT( * ) - 38 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - COUNT ( * ) - 38 FROM tab0
----
-41

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL < + col1
----

query I rowsort
SELECT + col1 * col2 * col2 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT DISTINCT 90 + - col2 AS col0 FROM tab0
----
-9
43
80

query I rowsort
SELECT DISTINCT ( 42 ) * 47 AS col2 FROM tab0
----
1974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 20 col2 FROM tab0
----
-1740
-1940
-300

query I rowsort
SELECT + 28 * 9 AS col1 FROM tab1 AS cor0
----
252
252
252

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 >= - - 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + 45 - - - 35 FROM tab2 AS cor0
----
1000
1765
2575

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 + + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, 11 * col0 AS col2 FROM tab2 AS cor0 WHERE 83 IS NOT NULL
----
-51
506
-67
825
-77
704

query I rowsort
SELECT ALL ( 67 ) AS col2 FROM tab2
----
67
67
67

query I rowsort
SELECT + 40 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 82 AND + 72
----

query I rowsort
SELECT ALL + - 31 FROM tab2 cor0
----
-31
-31
-31

query I rowsort
SELECT + ( col0 ) - + - col0 + col1 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT + - ( COUNT( DISTINCT col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9492
SELECT + - ( COUNT ( DISTINCT col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9493
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE - - 34 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE - - 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT SUM( ALL col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9494
SELECT SUM ( ALL col1 ) AS col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT MAX( col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9495
SELECT MAX ( col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT - col0 * - - col2 + + col1 + + - ( - col0 ) AS col2 FROM tab0
----
-609
-762
-9505

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL ( - - MIN( ALL + + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL ( - - MIN ( ALL + + col2 ) ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT SUM( + + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9498
SELECT SUM ( + + col1 ) AS col0 FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 + - + col0 col1 FROM tab1 cor0
----
-46
-80
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT + + 81 + - + MIN( + col1 ) col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT + + 81 + - + MIN ( + col1 ) col1 FROM tab2 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 = NULL
----

query I rowsort
SELECT DISTINCT col2 * 39 AS col1 FROM tab2
----
1560
2262
897

query I rowsort
SELECT 2 * - - 14 * + 1 AS col1 FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE + col0 < - 14
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 < - 14
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= ( + 30 )
----

query I rowsort
SELECT + - col0 FROM tab2 cor0 WHERE + 65 * col1 * + - col1 * - 76 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 - - col1 * + - col0 AS col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + - col0 ) FROM tab2 cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT + - 82 - - - COUNT( * ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9512
SELECT + - 82 - - - COUNT ( * ) FROM tab2 AS cor0
----
-85

query I rowsort
SELECT ALL 12 - + 85 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT col0 - - - col2 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 4 <= + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT 82 * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - 63 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT 82 * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 63 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + MAX( + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9517
SELECT + MAX ( + col2 ) AS col2 FROM tab0
----
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 40 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT - 26 DIV - ( - ( + col1 ) ) FROM tab0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT - 26 / - ( - ( + col1 ) ) FROM tab0
----
-1
-26
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT DISTINCT - CAST( 74 AS SIGNED ) AS col2 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - CAST ( 74 AS INTEGER ) AS col2 FROM tab0
----
-74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 89 >= - col1 * 76
----

query I rowsort
SELECT + + col1 * ( - - col2 ) FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col0 FROM tab0 AS cor0
----
58
58
58

query II rowsort
SELECT DISTINCT + col0 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT - COUNT( * ) AS col0, ( - 22 ) col1 FROM tab0 AS cor0
----
-3
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9526
SELECT - COUNT ( * ) AS col0, ( - 22 ) col1 FROM tab0 AS cor0
----
-3
-22

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> col0 * + col2
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 <> ( + 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT CAST( NULL AS SIGNED ) * - 76 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9529
SELECT CAST ( NULL AS INTEGER ) * - 76 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT DISTINCT MAX( ALL - col0 ) + + + MIN( - + col1 ), COUNT( * ) col1 FROM tab0
----
-96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9530
SELECT DISTINCT MAX ( ALL - col0 ) + + + MIN ( - + col1 ), COUNT ( * ) col1 FROM tab0
----
-96
3

query II rowsort
SELECT ALL + col0 AS col2, - col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + - col0 col0, 0 * - col1 + col0 FROM tab1 AS cor0
----
-23
91
-26
85
45
51

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 cor0 WHERE - col1 < - ( col0 )
----
15

query I rowsort
SELECT + col0 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT 71 + + - 76 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT ALL - ( 44 ) AS col2 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT col1 + - + ( - 96 ) * col1 AS col2 FROM tab1 cor0
----
1358
4559
485

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9538
SELECT DISTINCT - + 86 - - + CAST( NULL AS DECIMAL ) / COUNT( + 28 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT - + 86 - - + CAST ( NULL AS REAL ) / COUNT ( + 28 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9539
SELECT - col0, + col0 * col1 * + + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( - + col0 AS SIGNED ) <= 22
----
-46
119646
-64
379456
-75
336675

skipif mysql # not compatible
query II rowsort label-9539
SELECT - col0, + col0 * col1 * + + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( - + col0 AS INTEGER ) <= 22
----
-46
119646
-64
379456
-75
336675

query II rowsort
SELECT DISTINCT col0, col0 / + 56 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( - 56 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9541
SELECT - + MAX( ALL 96 ) / - - 6 - - 28 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / col1 >= + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT - + MAX ( ALL 96 ) / - - 6 - - 28 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / col1 >= + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT MIN( ALL + + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9542
SELECT MIN ( ALL + + col0 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT DISTINCT + col2 * - + 16 * + col0 FROM tab2
----
-16928
-40960
-69600

onlyif mysql # DIV for integer division: 
query III rowsort label-9544
SELECT - col2 AS col2, - col2 + + - col2 DIV - col2, col0 FROM tab2
----
9 values hashing to 1481c66f089a6225b661fb276c78177c

skipif mysql # not compatible
query III rowsort label-9544
SELECT - col2 AS col2, - col2 + + - col2 / - col2, col0 FROM tab2
----
9 values hashing to 1481c66f089a6225b661fb276c78177c

query II rowsort
SELECT ALL - 52 * - 34, - col0 AS col1 FROM tab1
----
1768
-51
1768
-85
1768
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT col1 * + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT col1 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9547
SELECT DISTINCT COUNT( * ), COUNT( * ) * MIN( DISTINCT - - col0 ) AS col2 FROM tab2
----
3
138

skipif mysql # not compatible
query II rowsort label-9547
SELECT DISTINCT COUNT ( * ), COUNT ( * ) * MIN ( DISTINCT - - col0 ) AS col2 FROM tab2
----
3
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + MAX( ALL + col0 ) + - - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
78

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + MAX ( ALL + col0 ) + - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
78

query II rowsort
SELECT DISTINCT 47, - col0 AS col2 FROM tab2
----
47
-46
47
-64
47
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT + 68 * - ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT + 68 * - ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL + CAST( - + col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + CAST ( - + col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col2 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL <> + ( - 78 ) / + 22 * + 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT ALL + 27 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + 27 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 61 ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0 + - col1 AS col2, 56 FROM tab2 AS cor0
----
-141
56
-142
56
-97
56

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9559
SELECT * FROM tab0 cor0 WHERE NULL >= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9559
SELECT * FROM tab0 cor0 WHERE NULL >= - CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / + col2 BETWEEN ( - col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 71 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT + + ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + + ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col0 * - col2
----

query I rowsort
SELECT ALL + - ( col2 ) * - col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9565
SELECT 32 DIV - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9565
SELECT 32 / - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT ALL - CAST( NULL AS SIGNED ) / - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL - CAST ( NULL AS INTEGER ) / - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - SUM( + + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9567
SELECT - SUM ( + + col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT - col2 * - + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + COUNT( * ) * 56 AS col0 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COUNT ( * ) * 56 AS col0 FROM tab1
----
168

query III rowsort
SELECT * FROM tab2 WHERE 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT 79 + - + COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-9571
SELECT 79 + - + COUNT ( * ) FROM tab0
----
76

query I rowsort
SELECT DISTINCT + 93 + - col0 + + ( - col1 ) + - col0 * + 78 AS col1 FROM tab2
----
-3592
-5040
-5899

query II rowsort
SELECT ALL col1 + - 68 + col0, col0 FROM tab1
----
-3
51
22
85
70
91

query I rowsort
SELECT col0 + - - 83 FROM tab0 AS cor0
----
170
180
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL COUNT( * ) + 96 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL COUNT ( * ) + 96 FROM tab2 AS cor0
----
99

query I rowsort
SELECT ALL + - 21 AS col2 FROM tab0 cor0
----
-21
-21
-21

query I rowsort
SELECT ALL col1 - 84 AS col1 FROM tab0 AS cor0
----
-3
-63
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT MAX( - + 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT MAX ( - + 73 ) FROM tab2
----
-73

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col1 + - 45 AS col2 FROM tab1
----
-31
-40
2

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL + 36 * - MAX( + - col2 ) FROM tab0 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + 36 * - MAX ( + - col2 ) FROM tab0 AS cor0
----
360

query I rowsort
SELECT + col1 * - + 39 + ( - col0 ) FROM tab1 AS cor0
----
-1924
-280
-597

query I rowsort
SELECT DISTINCT 93 * col0 FROM tab0 AS cor0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT - 92 * + COUNT( * ) AS col0 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - 92 * + COUNT ( * ) AS col0 FROM tab0
----
-276

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + - col1 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL - MIN( ALL col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - MIN ( ALL col2 ) FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * - col2 col0 FROM tab0
----
-3666
-7722
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT + COUNT( * ) * + MIN( ALL - 29 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT + COUNT ( * ) * + MIN ( ALL - 29 ) FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9592
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) - - 15 + + - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - 15 + + - COUNT ( * ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 43 ) col0 FROM tab0 cor0
----
43
43
43

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) > ( + col1 )
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT ALL + 3 DIV - + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + 3 / - + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT COUNT( 81 ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9596
SELECT COUNT ( 81 ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT - - 27 AS col2, - 38 AS col2 FROM tab2 AS cor0
----
27
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9598
SELECT - + COUNT( * ) FROM tab0 WHERE NOT - - 32 + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT - - 32 + CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab1 WHERE NULL BETWEEN + col2 AND 75
----

query I rowsort
SELECT + + col2 * + + 57 FROM tab1 AS cor0
----
3363
3876
5472

query I rowsort
SELECT DISTINCT - col0 * - 40 + 39 + - col1 + - 62 AS col1 FROM tab0 AS cor0
----
3436
3856
496

query I rowsort
SELECT - ( 63 ) + 2 FROM tab1 cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT + + 13 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT + + 13 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * 89 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 75 NOT BETWEEN - 99 AND 49
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 + col1 - + col1 * 54 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT ALL - 99 + - - 43 AS col1 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL + 90 - + col0 FROM tab2 cor0
----
15
26
44

query II rowsort
SELECT DISTINCT + col2 AS col1, - 49 + + + col1 FROM tab2
----
23
2
40
28
58
18

query I rowsort
SELECT - 39 * + - col1 + + ( + + 88 ) AS col1 FROM tab1
----
1921
283
634

query II rowsort
SELECT ALL + col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT - 79 * - 9 AS col2 FROM tab1 AS cor0
----
711
711
711

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 58 * - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 58 * - col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT DISTINCT - 7, + COUNT( * ) col1 FROM tab1 AS cor0
----
-7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9616
SELECT DISTINCT - 7, + COUNT ( * ) col1 FROM tab1 AS cor0
----
-7
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + 95 ) * 69 / 63 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT + + COUNT( * ) DIV + 70 - - 68 FROM tab1 WHERE NOT 3 IS NULL
----
68

skipif mysql # not compatible
query I rowsort label-9618
SELECT + + COUNT ( * ) / + 70 - - 68 FROM tab1 WHERE NOT 3 IS NULL
----
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - + 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT ( + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT ( + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 91 * - col0 FROM tab2
----
-4186
-5824
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT + COUNT( ALL + 45 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT + COUNT ( ALL + 45 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT + col2 * - CAST( col0 AS SIGNED ) FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9623
SELECT + col2 * - CAST ( col0 AS INTEGER ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT CAST( - + COUNT( col2 ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9624
SELECT CAST ( - + COUNT ( col2 ) AS INTEGER ) FROM tab0
----
-3

query I rowsort
SELECT ALL col1 * + + 18 FROM tab0 AS cor0
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT 70 * + SUM( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7210

skipif mysql # not compatible
query I rowsort label-9626
SELECT 70 * + SUM ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7210

query I rowsort
SELECT DISTINCT - - ( - + col1 ) * 23 AS col0 FROM tab2 AS cor0
----
-1173
-1541
-1771

query I rowsort
SELECT ALL + + 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 - + col2 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL + MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - SUM( - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9631
SELECT - SUM ( - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT col0 * 2 + col2 * - - col0 FROM tab0 AS cor0
----
1044
735
9797

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT + CAST( - col2 AS SIGNED ) - + + col1 AS col2 FROM tab0 cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-9634
SELECT + CAST ( - col2 AS INTEGER ) - + + col1 AS col2 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab1 WHERE ( + 88 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + 62 col1 FROM tab2
----
51
62
67
62
77
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL - 81 * - COUNT( * ) * 10 FROM tab0
----
2430

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - 81 * - COUNT ( * ) * 10 FROM tab0
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT - - MAX( + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9638
SELECT - - MAX ( + - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-9639
SELECT - col0 * + col1, - 77 DIV + col2 AS col1 FROM tab1
----
-425
-1
-4277
-1
-714
0

skipif mysql # not compatible
query II rowsort label-9639
SELECT - col0 * + col1, - 77 / + col2 AS col1 FROM tab1
----
-425
-1
-4277
-1
-714
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT + MIN( ALL + 60 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9640
SELECT + MIN ( ALL + 60 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-180

query II rowsort
SELECT - - ( - col2 ) AS col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT ( + + 21 ) DIV col0 DIV + 17 + + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9642
SELECT ( + + 21 ) / col0 / + 17 + + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + 34 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9644
SELECT 29 DIV - ( - MIN( - + col0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9644
SELECT 29 / - ( - MIN ( - + col0 ) ) FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9645
SELECT DISTINCT * FROM tab1 WHERE NULL <> + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9645
SELECT DISTINCT * FROM tab1 WHERE NULL <> + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + + col1 - + col1 + + - col1 - + + col2 * - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9647
SELECT 74 AS col0, COUNT( * ) * - - COUNT( * ) FROM tab2
----
74
9

skipif mysql # not compatible
query II rowsort label-9647
SELECT 74 AS col0, COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
74
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 BETWEEN + col2 AND + col2 + + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 4 / - + 86 ) IS NOT NULL
----

query I rowsort
SELECT - 83 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT ALL - + col1 + + + 80 + - col0 AS col0 FROM tab2 AS cor0
----
-17
-61
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT DISTINCT col2 + - col2 + - col1 * - 69 * + col1 + - + col1 + - + 65 DIV - + col1 AS col2 FROM tab2 AS cor0
----
179419
309674
409024

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT col2 + - col2 + - col1 * - 69 * + col1 + - + col1 + - + 65 / - + col1 AS col2 FROM tab2 AS cor0
----
179419
309674
409024

query I rowsort
SELECT - + col0 * + col1 + + col0 - + - 99 AS col0 FROM tab0 AS cor0
----
-1101
-1641
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT DISTINCT - 54 - + + COUNT( * ) col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9654
SELECT DISTINCT - 54 - + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - + col2 + - col0 AS col0 FROM tab1 cor0
----
-144
-147
-159

query II rowsort
SELECT + col2 + 24 AS col0, col1 FROM tab1 AS cor0
----
120
14
83
5
92
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT + ( - COUNT( * ) ) * 30 AS col1 FROM tab1 AS cor0 WHERE 83 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT + ( - COUNT ( * ) ) * 30 AS col1 FROM tab1 AS cor0 WHERE 83 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT ( + + SUM( ALL + 54 ) ) * + ( - - 8 ) col1 FROM tab2 AS cor0
----
1296

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9658
SELECT DISTINCT ( + + SUM ( ALL + 54 ) ) * + ( - - 8 ) col1 FROM tab2 AS cor0
----
1296

query I rowsort
SELECT DISTINCT - col2 - 77 - ( + 57 ) FROM tab2
----
-157
-174
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT COUNT( * ) * - MAX( 99 ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-9660
SELECT COUNT ( * ) * - MAX ( 99 ) FROM tab2
----
-297

query I rowsort
SELECT col0 * - 27 FROM tab2
----
-1242
-1728
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL + 82 + - COUNT( + ( + ( - col1 ) ) ) AS col1 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL + 82 + - COUNT ( + ( + ( - col1 ) ) ) AS col1 FROM tab1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT DISTINCT col2 DIV + - col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT col2 / + - col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 47 + + col2 FROM tab0
----
146
57
94

query II rowsort
SELECT + + 93, + col2 FROM tab2 cor0
----
93
23
93
40
93
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT DISTINCT + 11 * - col1 AS col1 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT DISTINCT - 60 * - ( + 3 ) FROM tab0
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, - 74 FROM tab1
----
-51
-74
-85
-74
-91
-74

query I rowsort
SELECT col1 * - - col1 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT + col2 * col0 * + 94 AS col2 FROM tab0 cor0
----
66270
81780
902682

query I rowsort
SELECT - 19 * + - 63 FROM tab1 AS cor0
----
1197
1197
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL - + COUNT( - col0 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - + COUNT ( - col0 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL - COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2 / col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT + - ( 10 ) DIV - 27 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT + - ( 10 ) / - 27 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 98 * - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-254898
-439922
-581042

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT + 99 DIV col1 AS col1 FROM tab0
----
1
4
99

skipif mysql # not compatible
query I rowsort label-9678
SELECT + 99 / col1 AS col1 FROM tab0
----
1
4
99

query I rowsort
SELECT 57 + col2 AS col1 FROM tab1 cor0
----
116
125
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + ( 57 ) * - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
513

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + ( 57 ) * - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
513

query I rowsort
SELECT ALL col2 + - + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 + ( - - col1 ) * + - col2 AS col1 FROM tab1 AS cor0
----
-1358
-300
-3243

onlyif mysql # aggregate syntax: 
query II rowsort label-9683
SELECT + + 98 AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-9683
SELECT + + 98 AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
98
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - col0 ) + + col2 IS NULL
----

query II rowsort
SELECT col1 AS col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + col2 * + - 48 + + ( + col1 ) FROM tab2 AS cor0
----
-1053
-1843
-2717

query I rowsort
SELECT DISTINCT + col1 * + + col2 * col2 - - 11 FROM tab1 AS cor0
----
129035
17416
217339

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT + - SUM( ALL + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + - SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 - - - col1 FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT - col2 + - + 66 FROM tab1
----
-125
-134
-162

query I rowsort
SELECT 79 + 84 AS col1 FROM tab2
----
163
163
163

query I rowsort
SELECT DISTINCT - col2 - + - col0 + - col1 FROM tab2
----
-28
-50
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL - ( MIN( ALL + - 91 ) ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - ( MIN ( ALL + - 91 ) ) AS col1 FROM tab1
----
91

query I rowsort
SELECT 37 * - col0 * - 98 FROM tab2 AS cor0
----
166796
232064
271950

query II rowsort
SELECT DISTINCT col1 AS col0, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT - col0 * - 88 AS col0 FROM tab0 AS cor0
----
1320
7656
8536

query I rowsort
SELECT col0 * - 1 * - + col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL - col2 * - - col0 * + col1 + + + col1 FROM tab2 AS cor0
----
-197043
-291383
-53907

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL MIN( ALL + 55 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL MIN ( ALL + 55 ) FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT - ( COUNT( * ) ) * - + 63 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT - ( COUNT ( * ) ) * - + 63 FROM tab1 AS cor0
----
189

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE NOT col0 <= - + ( col0 )
----
10
47
99

query I rowsort
SELECT ALL + 69 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
-48645
-60030
-662607

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 82 + col2 NOT BETWEEN - col2 + + col0 + - - col0 * 92 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT - COUNT( DISTINCT 37 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9706
SELECT - COUNT ( DISTINCT 37 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE - 66 * col0 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + + 60 AS col2, col2 col1 FROM tab2
----
-17
40
-7
58
9
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT COUNT( * ) * - - MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT COUNT ( * ) * - - MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 19 + + + col0, 87 col2 FROM tab1
----
104
87
110
87
70
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, col0 * + col1 - + col1 col2 FROM tab0 AS cor0
----
10
1806
47
1134
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT ( ( - 30 ) ) AS col2 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT 20 * - col0 * + 27 AS col2 FROM tab2 AS cor0 WHERE col2 > 71 * + + col0 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9715
SELECT - MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9716
SELECT 71 DIV 56 + + ( + ( SUM( - 42 ) ) ) col1 FROM tab2
----
-125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9716
SELECT 71 / 56 + + ( + ( SUM ( - 42 ) ) ) col1 FROM tab2
----
-125

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 * - col1 - - 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 38 + - col0 * col1 FROM tab2 AS cor0
----
-2308
-4890
-4987

query I rowsort
SELECT ALL col2 - + col2 + + + col2 * - 66 + 29 FROM tab1 AS cor0
----
-3865
-4459
-6307

query I rowsort
SELECT - ( + ( + ( col0 ) ) ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT - ( + 43 ) + - COUNT( * ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - ( + 43 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-46

query I rowsort
SELECT DISTINCT col2 - + col0 + + col1 FROM tab1 AS cor0
----
-21
24
59

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0
----

query II rowsort
SELECT + col1 AS col2, col0 * - + col0 AS col0 FROM tab0
----
1
-9409
21
-7569
81
-225

query I rowsort
SELECT + 20 * - 61 * - - col1 AS col1 FROM tab2
----
-62220
-81740
-93940

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT + MAX( ALL - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT + MAX ( ALL - - col1 ) FROM tab0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + 47 + - - 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL MAX( ALL - col0 ) FROM tab1 AS cor0 WHERE NOT 68 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL MAX ( ALL - col0 ) FROM tab1 AS cor0 WHERE NOT 68 IS NULL
----
-51

query II rowsort
SELECT ALL + col2, - 11 FROM tab0 AS cor0
----
10
-11
47
-11
99
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT MAX( - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9730
SELECT MAX ( - col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT + col2 + col0 * + 2 FROM tab2
----
115
168
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 54 * - col1 AS col0 FROM tab0 WHERE col2 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9734
SELECT + col2 + - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT NULL <= col0
----

skipif mysql # not compatible
query I rowsort label-9734
SELECT + col2 + - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT NULL <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ( - COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9736
SELECT ( - COUNT ( * ) ) col1 FROM tab1
----
-3

query I rowsort
SELECT + 74 + - col0 AS col0 FROM tab0
----
-13
-23
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT 4 + - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9739
SELECT 4 + - COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
15
87
97

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL col2 + - col0 * + 22 FROM tab0
----
-1904
-2035
-283

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT + ( + SUM( DISTINCT 10 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + ( + SUM ( DISTINCT 10 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT - 59 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + 31 FROM tab2
----
-20
-36
-46

query I rowsort
SELECT ALL + ( - ( + col2 ) ) * - 93 AS col2 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL - SUM( ALL col2 ) * + 89 col2 FROM tab0
----
-13884

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9747
SELECT ALL - SUM ( ALL col2 ) * + 89 col2 FROM tab0
----
-13884

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > ( 6 * col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 >= + 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col2 FROM tab2
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 56 / col1 + + col0 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col0 * + 0 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT - SUM( - 43 ) AS col1 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT - SUM ( - 43 ) AS col1 FROM tab0
----
129

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col1 * - 22 )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * col0 + col2 / - 6 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 17 - + 69 BETWEEN NULL AND 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT COUNT( * ) FROM tab2 WHERE + col0 NOT BETWEEN 31 AND col2
----
3

skipif mysql # not compatible
query I rowsort label-9758
SELECT COUNT ( * ) FROM tab2 WHERE + col0 NOT BETWEEN 31 AND col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9759
SELECT * FROM tab0 WHERE NOT 41 BETWEEN NULL AND CAST( col0 AS SIGNED )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-9759
SELECT * FROM tab0 WHERE NOT 41 BETWEEN NULL AND CAST ( col0 AS INTEGER )
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE col2 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT + COUNT( ( - col0 ) ) FROM tab1 AS cor0 WHERE ( CAST( + 91 AS SIGNED ) + 92 * - col0 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9761
SELECT + COUNT ( ( - col0 ) ) FROM tab1 AS cor0 WHERE ( CAST ( + 91 AS INTEGER ) + 92 * - col0 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 88 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - 21 AS col2 FROM tab2
----
19
2
37

query I rowsort
SELECT DISTINCT col2 * col0 + 18 AS col1 FROM tab1
----
4914
5033
6206

query I rowsort
SELECT 27 + 27 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL + 97 + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + 97 + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT - COUNT( * ) - 48 col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9768
SELECT - COUNT ( * ) - 48 col2 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL - COUNT( * ) + - 45 AS col0 FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - COUNT ( * ) + - 45 AS col0 FROM tab2 cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL - - COUNT( - col0 ) - + 34 AS col1 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - - COUNT ( - col0 ) - + 34 AS col1 FROM tab1 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 57 ) col0 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT - 50 AS col0 FROM tab2 cor0
----
-50
-50
-50

query I rowsort
SELECT ALL 44 + 71 AS col0 FROM tab0 cor0 WHERE col0 + 81 IS NOT NULL
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT + - SUM( ALL + 54 ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9774
SELECT + - SUM ( ALL + 54 ) FROM tab0 AS cor0
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9775
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col0 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NOT - col2 <> ( - ( 96 ) * col1 )
----

query I rowsort
SELECT 75 * - col0 + col1 AS col2 FROM tab2 WHERE NOT 20 * + col1 - - 87 NOT BETWEEN ( - 58 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + col2 + 53 * + 5
----

query I rowsort
SELECT - 31 AS col2 FROM tab0 WHERE NOT ( + 87 ) NOT IN ( - col0 - - 78 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 3 * + 48 + - col2 NOT BETWEEN NULL AND - col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9782
SELECT - 8 DIV - CAST( - col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9782
SELECT - 8 / - CAST ( - col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col1 * + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 + + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 84 + col0 AS col2 FROM tab1 AS cor0
----
-33
1
7

query I rowsort
SELECT - col0 + - + 94 AS col0 FROM tab0 AS cor0
----
-109
-181
-191

query I rowsort
SELECT 98 + + 2 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT - 34 + + 55 * col0 FROM tab2 AS cor0
----
2496
3486
4091

query I rowsort
SELECT - 41 AS col2 FROM tab0 AS cor0 WHERE 63 IS NOT NULL
----
-41
-41
-41

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab0
----
32
32
32

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE col1 / col1 <= 5
----
-51
-67
-77

query II rowsort
SELECT col1 * col1 AS col0, col0 * - col2 AS col0 FROM tab2
----
2601
-1058
4489
-4350
5929
-2560

query I rowsort
SELECT DISTINCT 0 * 4 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 94 ) = ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT COUNT( * ) - + - CAST( + + 10 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT COUNT ( * ) - + - CAST ( + + 10 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT + COUNT( 42 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + COUNT ( 42 ) FROM tab2 cor0
----
3

query I rowsort
SELECT + col1 + + - 3 + 26 FROM tab0
----
104
24
44

query I rowsort
SELECT DISTINCT - col1 * col0 + col0 AS col2 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT CAST( NULL AS SIGNED ) + - + 54 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT CAST ( NULL AS INTEGER ) + - + 54 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col2 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9803
SELECT + + col1 AS col2, CAST( 54 AS SIGNED ) FROM tab0 AS cor0
----
1
54
21
54
81
54

skipif mysql # not compatible
query II rowsort label-9803
SELECT + + col1 AS col2, CAST ( 54 AS INTEGER ) FROM tab0 AS cor0
----
1
54
21
54
81
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL COUNT( DISTINCT - 34 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL COUNT ( DISTINCT - 34 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9805
SELECT * FROM tab2 cor0 WHERE NOT NULL <> col0 / + col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9805
SELECT * FROM tab2 cor0 WHERE NOT NULL <> col0 / + col0 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT DISTINCT - CAST( ( 13 ) AS SIGNED ) * - col0 FROM tab0 AS cor0
----
1131
1261
195

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - CAST ( ( 13 ) AS INTEGER ) * - col0 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9807
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9808
SELECT col0 * + CAST( - 7 AS SIGNED ) AS col2 FROM tab1
----
-357
-595
-637

skipif mysql # not compatible
query I rowsort label-9808
SELECT col0 * + CAST ( - 7 AS INTEGER ) AS col2 FROM tab1
----
-357
-595
-637

query I rowsort
SELECT DISTINCT col2 * + 11 FROM tab2
----
253
440
638

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9810
SELECT * FROM tab0 WHERE NOT + - col1 + - 93 <> ( - + col2 * - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9810
SELECT * FROM tab0 WHERE NOT + - col1 + - 93 <> ( - + col2 * - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL + col1, + col1, + + col0 FROM tab2
----
9 values hashing to dc5c61f956d3b4789327b88befcf1a8d

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT + MIN( - 33 ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + MIN ( - 33 ) FROM tab2
----
-33

query II rowsort
SELECT ALL col1 AS col2, col2 AS col1 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT DISTINCT col0, 81 AS col1 FROM tab0
----
15
81
87
81
97
81

query II rowsort
SELECT - 41 AS col1, col0 AS col2 FROM tab0
----
-41
15
-41
87
-41
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + ( + + 15 ) + - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9818
SELECT ALL + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col2 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT - MAX( 28 ) * + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT - MAX ( 28 ) * + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col2 + + col0 * + col1 - + col1 * - col0 FROM tab0 AS cor0
----
2477
293
3664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + 8 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9822
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 58 col1 FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL + MAX( DISTINCT + + ( - col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL + MAX ( DISTINCT + + ( - col2 ) ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT MAX( ALL + 11 ) AS col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9826
SELECT MAX ( ALL + 11 ) AS col0 FROM tab1 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9827
SELECT - 79 DIV + - col2 AS col1 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-9827
SELECT - 79 / + - col2 AS col1 FROM tab0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT MIN( DISTINCT + 36 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9828
SELECT MIN ( DISTINCT + 36 ) FROM tab0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT + CAST( NULL AS SIGNED ) - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT + CAST ( NULL AS INTEGER ) - + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9830
SELECT col2 + + col2 + + col2 DIV + - col1 FROM tab0
----
20
94
99

skipif mysql # not compatible
query I rowsort label-9830
SELECT col2 + + col2 + + col2 / + - col1 FROM tab0
----
20
94
99

query I rowsort
SELECT DISTINCT - col1 * + + col0 * - col1 + 79 + col1 * 98 FROM tab2
----
124723
343320
387081

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9832
SELECT ALL col1 * + - col1 * + + CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL col1 * + - col1 * + + CAST ( NULL AS REAL ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9833
SELECT * FROM tab0 AS cor0 WHERE 91 + + CAST( col2 AS SIGNED ) * + col0 + - col2 * + + col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9833
SELECT * FROM tab0 AS cor0 WHERE 91 + + CAST ( col2 AS INTEGER ) * + col0 + - col2 * + + col2 <> NULL
----

query I rowsort
SELECT - - col0 * + + 67 AS col2 FROM tab0 AS cor0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT - SUM( col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - SUM ( col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT - 42 * col0 FROM tab1 cor0
----
-2142
-3570
-3822

query I rowsort
SELECT - - 88 * + - 79 FROM tab2 AS cor0
----
-6952
-6952
-6952

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9838
SELECT ALL - col0 * + col2 + - col1 + 18 DIV + 45 AS col0, - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
-4910
NULL
-5020
NULL
-6235
NULL

skipif mysql # not compatible
query II rowsort label-9838
SELECT ALL - col0 * + col2 + - col1 + 18 / + 45 AS col0, - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-4910
NULL
-5020
NULL
-6235
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab1 AS cor0 WHERE NOT ( col0 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9840
SELECT DISTINCT ( - col0 ) DIV - 78 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT ( - col0 ) / - 78 AS col0 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL COUNT( * ) * - 91 AS col2 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL COUNT ( * ) * - 91 AS col2 FROM tab1
----
-273

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9842
SELECT ALL * FROM tab1 WHERE + - CAST( + 10 AS DECIMAL ) <= - col0
----

skipif mysql # not compatible
query III rowsort label-9842
SELECT ALL * FROM tab1 WHERE + - CAST ( + 10 AS REAL ) <= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT DISTINCT - col0 DIV col1 * - col0 FROM tab1
----
1445
153
91

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - col0 / col1 * - col0 FROM tab1
----
1445
153
91

query III rowsort
SELECT * FROM tab1 WHERE NOT 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 91 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 91 IS NOT NULL
----
0

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - col1 + - - col2 + col0 * + - 30 * + - 7 + - - col2 - - - col1 - + - col2 IS NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - + 85 AS col0 FROM tab1 AS cor0
----
-1190
-3995
-425

query I rowsort
SELECT + col2 * + ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 63 <= NULL
----

query I rowsort
SELECT DISTINCT - - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - 69 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT + 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 18 IS NULL
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL col1 + - 20 * 77 AS col1 FROM tab1 AS cor0
----
-1493
-1526
-1535

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT + col0 DIV - col0 + + + 14 AS col2 FROM tab2 cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-9854
SELECT + col0 / - col0 + + + 14 AS col2 FROM tab2 cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query II rowsort label-9855
SELECT - col0 + col1 AS col0, + 90 * 50 DIV + col2 AS col0 FROM tab0 cor0
----
-66
450
-96
45
66
95

skipif mysql # not compatible
query II rowsort label-9855
SELECT - col0 + col1 AS col0, + 90 * 50 / + col2 AS col0 FROM tab0 cor0
----
-66
450
-96
45
66
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + 90 * COUNT( * ) * - MIN( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
15660

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + 90 * COUNT ( * ) * - MIN ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
15660

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT + 69 + + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-18
-28
54

query I rowsort
SELECT - col1 + - + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT ALL - + 68 + + 41 FROM tab2 AS cor0
----
-27
-27
-27

query II rowsort
SELECT DISTINCT + col2, col0 - - col2 FROM tab0 AS cor0
----
10
97
47
62
99
196

query I rowsort
SELECT + - 64 + col1 FROM tab0 WHERE NULL IS NULL
----
-43
-63
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT col0 / + + col0 * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9863
SELECT col0 / + + col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL + + 18 * + ( - MIN( - ( 37 ) ) ) AS col1 FROM tab2 WHERE NOT ( NULL ) >= + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + + 18 * + ( - MIN ( - ( 37 ) ) ) AS col1 FROM tab2 WHERE NOT ( NULL ) >= + 30
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 / + + col2 <> ( NULL )
----

query I rowsort
SELECT ALL ( 41 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT col1 * - 93 * - 58 AS col0 FROM tab0
----
113274
436914
5394

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9868
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9868
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab2 WHERE + + 92 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 63 + + col0 FROM tab2
----
109
127
138

query I rowsort
SELECT DISTINCT + ( + - col0 ) + col0 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 39 col2 FROM tab1 cor0
----
107
135
98

query III rowsort
SELECT * FROM tab1 cor0 WHERE 17 < NULL
----

query I rowsort
SELECT DISTINCT 27 * - ( 38 ) FROM tab0 cor0
----
-1026

query I rowsort
SELECT - ( - col0 ) * + ( - 36 ) FROM tab1
----
-1836
-3060
-3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT DISTINCT AVG ( - col1 ) * - ( - CAST( NULL AS SIGNED ) ) / + + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT AVG ( - col1 ) * - ( - CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT + 85 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9877
SELECT + 85 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col2 * + 98
----

query II rowsort
SELECT - col1 * - ( + 2 ), 84 AS col2 FROM tab2 AS cor0
----
102
84
134
84
154
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT DISTINCT COUNT( * ) AS col0, 23 FROM tab0 cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-9880
SELECT DISTINCT COUNT ( * ) AS col0, 23 FROM tab0 cor0
----
3
23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT ALL col0 * - + 69 AS col2 FROM tab0 cor0
----
-1035
-6003
-6693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9883
SELECT - MAX( CAST( NULL AS SIGNED ) ) AS col0, - CAST( NULL AS SIGNED ) * - 46 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9883
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) * - 46 FROM tab1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT - SUM( 79 ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-9884
SELECT - SUM ( 79 ) FROM tab1
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT - COUNT( - col1 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9885
SELECT - COUNT ( - col1 ) col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab0
----
48

query I rowsort
SELECT DISTINCT ( - - col2 ) + - + 29 FROM tab2
----
-6
11
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 32 * - col2 col1, col2 * + col2 FROM tab2
----
-1280
1600
-1856
3364
-736
529

query I rowsort
SELECT ALL + 21 + - + 95 + - col1 FROM tab1 cor0
----
-121
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT SUM( DISTINCT + 47 ) col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9890
SELECT SUM ( DISTINCT + 47 ) col1 FROM tab1 cor0
----
47

query I rowsort
SELECT ALL - 43 AS col1 FROM tab2 cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + + 41 FROM tab0 WHERE + col0 IS NOT NULL
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9894
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL < ( NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col0 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 57 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 57 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL 57 + + 56 FROM tab2 AS cor0
----
113
113
113

onlyif mysql # aggregate syntax: 
query II rowsort label-9899
SELECT ALL COUNT( * ) - + 58 * 81 AS col0, 20 FROM tab1 AS cor0
----
-4695
20

skipif mysql # not compatible
query II rowsort label-9899
SELECT ALL COUNT ( * ) - + 58 * 81 AS col0, 20 FROM tab1 AS cor0
----
-4695
20

query II rowsort
SELECT col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 * col1 + - col0 * - 39 )
----

query II rowsort
SELECT DISTINCT + ( + - 23 ) - + col2, + col2 * 12 AS col2 FROM tab0 AS cor0
----
-122
1188
-33
120
-70
564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 77 col1 FROM tab1 AS cor0
----
-14
-8
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 14 AS col0, - 43 col0 FROM tab2 AS cor0
----
14
-43
14
-43
14
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * col2 + + col2 col1 FROM tab1
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + COUNT( * ) + - MIN( - col2 ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9906
SELECT + COUNT ( * ) + - MIN ( - col2 ) FROM tab2
----
61

query I rowsort
SELECT + col0 + - - col2 + - 27 AS col0 FROM tab2
----
106
42
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 87 * + - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 87 * + - col1 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT DISTINCT - 62 AS col1, + SUM( + + col2 ) FROM tab2
----
-62
121

skipif mysql # not compatible
query II rowsort label-9909
SELECT DISTINCT - 62 AS col1, + SUM ( + + col2 ) FROM tab2
----
-62
121

query II rowsort
SELECT DISTINCT 2 * col1 * col2 * + - 39 + + col0 + - col2 AS col0, + col2 AS col0 FROM tab1
----
-104877
96
-22984
59
-249265
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * - - col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT ALL - - 21 + col2 FROM tab1 WHERE NOT + col1 NOT IN ( col2 / + col2, - col2, - CAST( + col0 AS SIGNED ) / 68 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - - 21 + col2 FROM tab1 WHERE NOT + col1 NOT IN ( col2 / + col2, - col2, - CAST ( + col0 AS INTEGER ) / 68 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT SUM( DISTINCT + col0 ) * - 8 FROM tab1 AS cor0
----
-1816

skipif mysql # not compatible
query I rowsort label-9913
SELECT SUM ( DISTINCT + col0 ) * - 8 FROM tab1 AS cor0
----
-1816

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT ALL + - col2 * + col2 DIV + col2 AS col2 FROM tab1 AS cor0 WHERE 37 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + - col2 * + col2 / + col2 AS col2 FROM tab1 AS cor0 WHERE 37 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - + ( - - col2 ) AS col1 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT + 13 * col1 AS col1 FROM tab2 AS cor0
----
1001
663
871

query I rowsort
SELECT + + ( 92 ) AS col1 FROM tab2 AS cor0
----
92
92
92

query II rowsort
SELECT - - col1 AS col0, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 = + + col1
----

query I rowsort
SELECT DISTINCT + 21 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT DISTINCT + CAST( 54 AS SIGNED ) AS col0 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + CAST ( 54 AS INTEGER ) AS col0 FROM tab2 cor0
----
54

query I rowsort
SELECT + + 49 * + - col1 + - col0 FROM tab0 AS cor0
----
-1116
-146
-3984

query I rowsort
SELECT DISTINCT - + col1 * - + col1 * + ( + col2 ) + col1 FROM tab0 AS cor0
----
100
308448
4431

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 37 IS NOT NULL
----

query I rowsort
SELECT - col1 + - - col0 * + 1 * + col2 AS col1 FROM tab2 AS cor0
----
1007
2483
4283

query I rowsort
SELECT - 76 + + + col2 AS col2 FROM tab2
----
-18
-36
-53

query I rowsort
SELECT + 24 + - 37 * - - col1 * - - ( col1 ) FROM tab0
----
-13
-16293
-242733

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL SUM( - - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL SUM ( - - col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT DISTINCT col2 * + col2 + - + col2 * + - 49 AS col2 FROM tab1
----
13920
6372
7956

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + COUNT( * ) * - 94 col2 FROM tab0
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9931
SELECT + COUNT ( * ) * - 94 col2 FROM tab0
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT ALL col2 + - - 89 DIV col0 FROM tab0
----
11
52
99

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL col2 + - - 89 / col0 FROM tab0
----
11
52
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT ALL - - CAST( NULL AS SIGNED ) + - - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - - CAST ( NULL AS INTEGER ) + - - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL CAST( CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE 61 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL CAST ( CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT DISTINCT + 98 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-9935
SELECT DISTINCT + 98 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
98
3

query I rowsort
SELECT ALL + 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT ( + - ( COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT ( + - ( COUNT ( * ) ) ) FROM tab1
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 85 ) IS NOT NULL
----

query II rowsort
SELECT + col2 + + - 1, col1 AS col2 FROM tab2
----
22
51
39
77
57
67

query I rowsort
SELECT col0 + - col1 - 24 AS col2 FROM tab2 AS cor0
----
-16
-29
-37

query I rowsort
SELECT - col2 * + + col0 * - col1 + - 70 AS col1 FROM tab1 AS cor0
----
25005
290766
68474

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9942
SELECT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT ALL 31 + + - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-20
-36
-46

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL 31 + + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-20
-36
-46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col0 - col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT + col1 + col2 + + + 89 AS col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT - 31 + MIN( - 43 ) AS col1 FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - 31 + MIN ( - 43 ) AS col1 FROM tab2 cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT ALL CAST( NULL AS SIGNED ) - COUNT( * ) + 9 + + CAST( NULL AS SIGNED ) + - 81 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL CAST ( NULL AS INTEGER ) - COUNT ( * ) + 9 + + CAST ( NULL AS INTEGER ) + - 81 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + + 22 ) AS col2 FROM tab2
----
-22
-22
-22

query I rowsort
SELECT ( + - col1 ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT - - ( - ( col0 ) ) DIV - 21 FROM tab1 AS cor0
----
2
4
4

skipif mysql # not compatible
query I rowsort label-9951
SELECT - - ( - ( col0 ) ) / - 21 FROM tab1 AS cor0
----
2
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9952
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT MIN( 68 ) FROM tab2 WHERE NOT - + ( - col1 ) > + 80
----
68

skipif mysql # not compatible
query I rowsort label-9953
SELECT MIN ( 68 ) FROM tab2 WHERE NOT - + ( - col1 ) > + 80
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45 AS col1, col1 col0 FROM tab2
----
45
51
45
67
45
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9955
SELECT COUNT( * ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9955
SELECT COUNT ( * ), COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT - + MAX( DISTINCT + 85 ) col0 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9956
SELECT DISTINCT - + MAX ( DISTINCT + 85 ) col0 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT + col1 * 39 AS col2 FROM tab2 AS cor0
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT ALL + 83 AS col0, - COUNT( - 77 ) FROM tab2 AS cor0
----
83
-3

skipif mysql # not compatible
query II rowsort label-9958
SELECT ALL + 83 AS col0, - COUNT ( - 77 ) FROM tab2 AS cor0
----
83
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - 41 * + SUM( ( col2 ) ) AS col0 FROM tab0
----
-6396

skipif mysql # not compatible
query I rowsort label-9959
SELECT - 41 * + SUM ( ( col2 ) ) AS col0 FROM tab0
----
-6396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9960
SELECT + SUM( 8 ) DIV - - 48 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9960
SELECT + SUM ( 8 ) / - - 48 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN - col1 AND + - col0
----

query I rowsort
SELECT DISTINCT - 8 FROM tab0 WHERE NULL IS NULL
----
-8

query I rowsort
SELECT DISTINCT + col2 + + col0 + - col2 AS col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9964
SELECT * FROM tab2 WHERE 35 IN ( + CAST( - + col2 AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-9964
SELECT * FROM tab2 WHERE 35 IN ( + CAST ( - + col2 AS INTEGER ) + col1 )
----

query I rowsort
SELECT col0 + ( - - col0 ) FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT - 37 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT 67 DIV + 32 AS col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9967
SELECT 67 / + 32 AS col2 FROM tab2
----
2
2
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT 68 * - + COUNT( * ) - - 16 + - COUNT( * ) * 58 FROM tab0 AS cor0
----
-362

skipif mysql # not compatible
query I rowsort label-9969
SELECT 68 * - + COUNT ( * ) - - 16 + - COUNT ( * ) * 58 FROM tab0 AS cor0
----
-362

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 - - col2 col2 FROM tab1 AS cor0
----
40
49
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT col0 + - 7 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL AND NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9971
SELECT col0 + - 7 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL AND NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 - - + 51 col2 FROM tab2 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT + - col1 + - 51 AS col0 FROM tab0 AS cor0
----
-132
-52
-72

query I rowsort
SELECT + col1 - 77 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-1013
-295
-3481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - 19 * + + ( - + ( - 78 ) ) + + col0 + col0 col2 FROM tab2 AS cor0
----
-1399
-1431
-1441

query II rowsort
SELECT + col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT ALL col2 * - 26 FROM tab0
----
-1222
-2574
-260

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col0 * + - col2 * - - 99 * - - 39 <= + - col0 + - 88 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT - 20 + - 20 < NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT 95 * - SUM( ALL + + col0 ) FROM tab1 AS cor0
----
-21565

skipif mysql # not compatible
query I rowsort label-9982
SELECT 95 * - SUM ( ALL + + col0 ) FROM tab1 AS cor0
----
-21565

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 49, 42 * + col0 + + - col2, + 84 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9984
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 49, 42 * + col0 + + - col2, + 84 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9985
SELECT - CAST( NULL AS SIGNED ), COUNT( ALL + 51 ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9985
SELECT - CAST ( NULL AS INTEGER ), COUNT ( ALL + 51 ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 82 col0 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT + 42 * + col0 + - 2 FROM tab0 AS cor0
----
3652
4072
628

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + 96 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9988
SELECT + 96 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL + - ( + ( + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT - AVG ( + + CAST( NULL AS SIGNED ) ) + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT - AVG ( + + CAST ( NULL AS INTEGER ) ) + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + ( + 23 ) + - + col1 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL ( - - MIN( DISTINCT col1 ) ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9992
SELECT ALL ( - - MIN ( DISTINCT col1 ) ) col1 FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9993
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * - 54 + 24 FROM tab0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9993
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - 54 + 24 FROM tab0
----
0
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - + 39 AS col0, 50 FROM tab1 AS cor0
----
-39
50
-39
50
-39
50

onlyif mysql # DIV for integer division: 
query II rowsort label-9996
SELECT ALL - + col0 AS col2, col2 DIV + col1 col0 FROM tab0 cor0
----
-15
0
-87
0
-97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9996
SELECT ALL - + col0 AS col2, col2 / + col1 col0 FROM tab0 cor0
----
-15
0
-87
0
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT DISTINCT 45 + ( - COUNT( * ) ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT 45 + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9999
SELECT DISTINCT 62 * - 99 - + col1 - + - CAST( NULL AS DECIMAL ) * ( - 11 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT 62 * - 99 - + col1 - + - CAST ( NULL AS REAL ) * ( - 11 ) AS col0 FROM tab2 cor0
----
NULL

