sqllogictest
Artifact Content
Not logged in

Artifact 99f72961ab01117a7dfd1ea9614cafe43570a0a0:


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
-