sqllogictest
Artifact Content
Not logged in

Artifact 7f353b52fc30f408b51668a25261c5555857985a:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL - 18 * + COUNT( * ) col1 FROM tab2
----
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT - COUNT( * ) + - 77 DIV 37 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT - COUNT ( * ) + - 77 / 37 FROM tab0
----
-5

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( NULL ) NOT IN ( col2 )
----

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

query I rowsort
SELECT ALL - 13 AS col0 FROM tab1 WHERE NULL IS NULL
----
-13
-13
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT ALL - COUNT( * ) - + COUNT( * ) DIV - ( MAX( DISTINCT - col2 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - COUNT ( * ) - + COUNT ( * ) / - ( MAX ( DISTINCT - col2 ) ) AS col0 FROM tab2
----
-3

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

query I rowsort
SELECT + 36 FROM tab0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT COUNT( * ) + MAX( - col0 ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9
SELECT COUNT ( * ) + MAX ( - col0 ) col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-48

query I rowsort
SELECT col0 - - col1 FROM tab2 WHERE NOT 12 + 23 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + + col0 * col1 AS col0 FROM tab1
----
430
4324
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT DISTINCT 87 DIV MIN( ALL 93 * col0 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-12
SELECT DISTINCT 87 / MIN ( ALL 93 * col0 ) col0 FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT COUNT( * ) + ( + 46 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-14
SELECT COUNT ( * ) + ( + 46 ) AS col1 FROM tab2
----
49

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + 77 >= - 58 * + col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( + col0 ) + col1 = col2
----
59
68
96

query I rowsort
SELECT 42 * col2 AS col2 FROM tab2
----
1680
2436
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 / 44 col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT COUNT( * ) FROM tab0 WHERE + 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-20
SELECT COUNT ( * ) FROM tab0 WHERE + 11 IS NULL
----
0

query I rowsort
SELECT 82 * col1 FROM tab1 WHERE col1 + - 31 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col1 * + col1 col2 FROM tab1
----
-1148
-270
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL MIN( 1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL MIN ( 1 ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE + 57 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT - 94 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 74 > ( 50 + + col0 * 52 )
----
-91

skipif mysql # not compatible
query I rowsort label-28
SELECT - 94 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 74 > ( 50 + + col0 * 52 )
----
-91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 * + col1 col1 FROM tab0
----
-1533
-5913
-73

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

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

query I rowsort
SELECT ALL - 84 * - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1260
-7308
-8148

query I rowsort
SELECT + + col1 * + col0 + 13 AS col1 FROM tab1 AS cor0
----
4290
438
727

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

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col2 = col0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col1 * 90
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-38
SELECT ALL - MIN( col0 ) + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( - 23 ) IN ( 49 / + CAST( NULL AS SIGNED ) + - col2 / + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL - MIN ( col0 ) + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( - 23 ) IN ( 49 / + CAST ( NULL AS INTEGER ) + - col2 / + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT ALL + col0 + + ( 43 - + 72 DIV col2 ) col0 FROM tab2 AS cor0
----
106
117
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-39
SELECT ALL + col0 + + ( 43 - + 72 / col2 ) col0 FROM tab2 AS cor0
----
106
117
86

query I rowsort
SELECT ALL 86 * + col2 * + col2 AS col0 FROM tab2
----
137600
289304
45494

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL SUM( ALL 1 ) * + 57 + 47 AS col1 FROM tab0
----
218

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL SUM ( ALL 1 ) * + 57 + 47 AS col1 FROM tab0
----
218

query I rowsort
SELECT 20 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ( - 71 ) FROM tab1
----
-71
-71
-71

query I rowsort
SELECT 70 * + + col0 FROM tab2
----
3220
4480
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT DISTINCT SUM( DISTINCT col1 ) + - 12 AS col2 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT SUM ( DISTINCT col1 ) + - 12 AS col2 FROM tab0
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + + 23 + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + + 23 + COUNT ( * ) FROM tab2 AS cor0
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 26 + col0 * + 86 >= + 10 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * - + col2 FROM tab2 cor0
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col2 - 11
----

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

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

query I rowsort
SELECT ALL + 72 * 0 + 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-56
SELECT DISTINCT - 76 - COUNT( * ) + - MIN( 0 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - 76 - COUNT ( * ) + - MIN ( 0 ) / COUNT ( * ) FROM tab2 AS cor0
----
-79

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= + 22
----
87
21
10

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 <= - col0 / - 47
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 8 = ( + col2 )
----

query I rowsort
SELECT + col0 * + + 94 FROM tab0 AS cor0
----
1410
8178
9118

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 + - - ( 28 ) ) NOT IN ( - 41 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT + col1 DIV + 73 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-65
SELECT + col1 / + 73 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-66
SELECT - CAST( - col1 AS SIGNED ) FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-66
SELECT - CAST ( - col1 AS INTEGER ) FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT - 5 DIV + - 2 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-67
SELECT - 5 / + - 2 FROM tab1
----
2
2
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT + COUNT( * ) * - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + 39 NOT IN ( - + col0 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT + COUNT ( * ) * - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + 39 NOT IN ( - + col0 * - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT COUNT( ALL - - 37 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-71
SELECT COUNT ( ALL - - 37 ) FROM tab0
----
3

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

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - - col2 <> + 22 * + 6 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT + col0 DIV col1 * col0 + + 52 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND + - 62
----
143
1497
205

skipif mysql # not compatible
query I rowsort label-74
SELECT + col0 / col1 * col0 + + 52 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND + - 62
----
143
1497
205

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

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

query I rowsort
SELECT - 69 * col1 * ( - 6 ) FROM tab1 cor0
----
19458
2070
5796

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 15 * + - 68 + - col2 / + col2 )
----

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

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

query I rowsort
SELECT + - col0 * + - col0 + col1 AS col1 FROM tab0 AS cor0
----
306
7590
9410

query I rowsort
SELECT DISTINCT col2 + + + ( col1 ) FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-82
SELECT ALL - 28 + 5 DIV - SUM( - col1 ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL - 28 + 5 / - SUM ( - col1 ) FROM tab1
----
-28

query I rowsort
SELECT ALL ( 87 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE col1 * + 91 > NULL
----

query I rowsort
SELECT - 50 + - col1 FROM tab1
----
-55
-64
-97

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-90
SELECT ALL COUNT( DISTINCT + 11 ) DIV + - CAST( + 89 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL COUNT ( DISTINCT + 11 ) / + - CAST ( + 89 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0

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

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

query II rowsort
SELECT - col0, col1 - col2 AS col1 FROM tab0 AS cor0
----
-15
34
-87
11
-97
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT ALL - COUNT( * ) * 74 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL - COUNT ( * ) * 74 FROM tab0 AS cor0
----
-222

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

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

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 50 * MAX ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-97
SELECT ALL + col0 DIV - col0 col0, - col0 * - col2 FROM tab1 AS cor0
----
-1
4896
-1
5015
-1
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-97
SELECT ALL + col0 / - col0 col0, - col0 * - col2 FROM tab1 AS cor0
----
-1
4896
-1
5015
-1
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-98
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( ( - - col0 ) * + - col0 + + - col1 * + + col0 + + + CAST( - 98 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-98
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( ( - - col0 ) * + - col0 + + - col1 * + + col0 + + + CAST ( - 98 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

skipif mysql # not compatible
query I rowsort label-100
SELECT - CAST ( - + COUNT ( - - 0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 - + + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37
44
80

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

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

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL COUNT ( + 18 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT + ( + - 29 ) DIV - + 74 * - col1 * - 11 * + 40 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-104
SELECT + ( + - 29 ) / - + 74 * - col1 * - 11 * + 40 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT 69 * + col1 AS col0 FROM tab1 AS cor0
----
3243
345
966

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 8 * - col0 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 25 / 19 / + col1 + - - col0 * - - col0 * - col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT DISTINCT - 62 AS col0 FROM tab1 WHERE + - col0 <> - CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT - 62 AS col0 FROM tab1 WHERE + - col0 <> - CAST ( NULL AS INTEGER ) + - col1
----

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

query I rowsort
SELECT DISTINCT 41 + col1 + + col0 FROM tab2
----
138
182
183

query I rowsort
SELECT ALL - - 56 AS col2 FROM tab0 AS cor0
----
56
56
56

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

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

query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab2 AS cor0 WHERE NOT + ( col0 ) IN ( + col2 )
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT - col0 + - col1 DIV - 69 col0 FROM tab2 AS cor0
----
-46
-63
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-119
SELECT - col0 + - col1 / - 69 col0 FROM tab2 AS cor0
----
-46
-63
-75

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

skipif mysql # not compatible
query II rowsort label-120
SELECT CAST ( col0 AS INTEGER ) AS col1, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT - + 61 * col2 AS col1 FROM tab1 AS cor0
----
-3599
-4148
-5856

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-122
SELECT * FROM tab0 AS cor0 WHERE - 23 * + CAST( - 15 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-122
SELECT * FROM tab0 AS cor0 WHERE - 23 * + CAST ( - 15 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 29 * + + 24 FROM tab0
----
696
696
696

query I rowsort
SELECT + 95 * - 71 FROM tab0
----
-6745
-6745
-6745

query I rowsort
SELECT DISTINCT + 67 + + ( - + col1 ) FROM tab0
----
-14
46
66

query I rowsort
SELECT ALL + ( - - 91 ) FROM tab1
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT ( - SUM( - 1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-127
SELECT ( - SUM ( - 1 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL + 74 + - 51 AS col2 FROM tab0
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT col2 DIV - 97 - - col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-129
SELECT col2 / - 97 - - col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 - ( + 33 ) FROM tab0
----
-12
-32
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT + col1 * + 42 + 80 AS col2 FROM tab0 AS cor0 WHERE - col1 + CAST( NULL AS SIGNED ) IS NULL
----
122
3482
962

skipif mysql # not compatible
query I rowsort label-131
SELECT + col1 * + 42 + 80 AS col2 FROM tab0 AS cor0 WHERE - col1 + CAST ( NULL AS INTEGER ) IS NULL
----
122
3482
962

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

query I rowsort
SELECT - 61 + col1 FROM tab0
----
-40
-60
20

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT - COUNT( * ) + + 94 AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - COUNT ( * ) + + 94 AS col2 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-135
SELECT ALL * FROM tab1 WHERE NOT 16 / - CAST( NULL AS SIGNED ) * + - 93 IS NULL
----

skipif mysql # not compatible
query III rowsort label-135
SELECT ALL * FROM tab1 WHERE NOT 16 / - CAST ( NULL AS INTEGER ) * + - 93 IS NULL
----

query I rowsort
SELECT - 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT DISTINCT - MAX( ALL + ( - col2 ) ) DIV 89 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT - MAX ( ALL + ( - col2 ) ) / 89 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 25 col1 FROM tab0
----
2175
2425
375

query I rowsort
SELECT DISTINCT + 34 * 35 FROM tab0
----
1190

query I rowsort
SELECT ALL - col0 * - - col2 AS col2 FROM tab2
----
-1058
-2560
-4350

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-146
SELECT MIN ( col2 ) * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query II rowsort
SELECT ALL + 41 * - + 27 AS col0, col0 FROM tab2
----
-1107
46
-1107
64
-1107
75

query III rowsort
SELECT * FROM tab1 WHERE NOT - 71 * col1 + + + col1 + + col1 / - 62 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT DISTINCT + ( - + col0 ) DIV - 97 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT + ( - + col0 ) / - 97 AS col0 FROM tab2 AS cor0
----
0

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

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

query II rowsort
SELECT - 78 * + 60 * col1, col1 FROM tab2 AS cor0
----
-238680
51
-313560
67
-360360
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-153
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT - col1 NOT IN ( + ( + col2 ) * - 90 )
----

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT - col1 NOT IN ( + ( + col2 ) * - 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + COUNT( 15 ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND 52
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + COUNT ( 15 ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND 52
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-156
SELECT col1 - + + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-156
SELECT col1 - + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - + 54 AS col0 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT col2 DIV - + 71 + 48 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
48
48
48

skipif mysql # not compatible
query I rowsort label-158
SELECT col2 / - + 71 + 48 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
48
48
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT 35 * - + col1 + + CAST( - + col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-1790
-2337
-2708

skipif mysql # not compatible
query I rowsort label-160
SELECT 35 * - + col1 + + CAST ( - + col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-1790
-2337
-2708

query I rowsort
SELECT 41 + 70 FROM tab2 AS cor0
----
111
111
111

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT + col0 DIV col0 + - + col2 - - col0 FROM tab0 AS cor0
----
-1
-31
78

skipif mysql # not compatible
query I rowsort label-162
SELECT + col0 / col0 + - + col2 - - col0 FROM tab0 AS cor0
----
-1
-31
78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - 37 col2 FROM tab0 WHERE - col0 + - + 8 NOT BETWEEN - + col2 AND NULL
----
-3219
-3589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-165
SELECT - - col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) + col2 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-165
SELECT - - col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + col2 IS NULL
----
51
67
77

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

query I rowsort
SELECT + col2 - - - ( - - 60 ) * + col1 - col0 AS col2 FROM tab0 AS cor0
----
-1337
-4828
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT COUNT( DISTINCT + 15 ) AS col2 FROM tab1, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-169
SELECT COUNT ( DISTINCT + 15 ) AS col2 FROM tab1, tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col2 col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT - 44 * + col0 FROM tab2
----
-2024
-2816
-3300

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT + + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-173
SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-175
SELECT + - SUM( ALL + col1 ) DIV COUNT( * ) + + 59 AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-175
SELECT + - SUM ( ALL + col1 ) / COUNT ( * ) + + 59 AS col1 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 2 AND - - col1 * - - col0
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 48 NOT IN ( - 9 + + - col1 + + + 80, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT ( col2 ) = ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-181
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT + 80 * COUNT( * ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT + 80 * COUNT ( * ) FROM tab1
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 * + - 59 col1 FROM tab0
----
-12390
-224613
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - COUNT( * ) FROM tab1 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-184
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - col1 IS NULL
----
-3

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

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

query I rowsort
SELECT - + 90 * 48 FROM tab1 AS cor0
----
-4320
-4320
-4320

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

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT + + 21 * + MIN( col1 ) AS col0 FROM tab1 cor0
----
105

skipif mysql # not compatible
query I rowsort label-189
SELECT + + 21 * + MIN ( col1 ) AS col0 FROM tab1 cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL - MAX( DISTINCT + 76 ) * + 18 AS col1 FROM tab1 cor0
----
-1368

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - MAX ( DISTINCT + 76 ) * + 18 AS col1 FROM tab1 cor0
----
-1368

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT DISTINCT + 45 * col2 - - 28 DIV + col1 + 2 AS col0 FROM tab2 AS cor0
----
1037
1802
2612

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT + 45 * col2 - - 28 / + col1 + 2 AS col0 FROM tab2 AS cor0
----
1037
1802
2612

query II rowsort
SELECT DISTINCT + ( + 70 ), col0 FROM tab1 AS cor0
----
70
51
70
85
70
91

query I rowsort
SELECT DISTINCT - col1 * + - col2 - + + col1 AS col2 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT - COUNT( ALL - ( + + 31 ) ) - MIN( + + col0 ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-194
SELECT - COUNT ( ALL - ( + + 31 ) ) - MIN ( + + col0 ) AS col1 FROM tab0
----
-18

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

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

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

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

query II rowsort
SELECT ALL col2 AS col1, + col1 - - 99 + - ( + - col2 ) + - + col2 + + col2 - - col2 * + col2 FROM tab2 AS cor0
----
23
702
40
1816
58
3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT ( + + SUM( + CAST( + - 24 AS SIGNED ) ) ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-199
SELECT ( + + SUM ( + CAST ( + - 24 AS INTEGER ) ) ) FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT - COUNT( * ) * 19 * - COUNT( * ) + + + 66 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
1605

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT - COUNT ( * ) * 19 * - COUNT ( * ) + + + 66 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
1605

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

skipif mysql # not compatible
query I rowsort label-201
SELECT - COUNT ( - - 86 ) FROM tab0 AS cor0
----
-3

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-204
SELECT + col0 AS col1, 53 DIV + + 27 + - col0 FROM tab1
----
51
-50
85
-84
91
-90

skipif mysql # not compatible
query II rowsort label-204
SELECT + col0 AS col1, 53 / + + 27 + - col0 FROM tab1
----
51
-50
85
-84
91
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT ALL - col0 * - col0 * - + CAST( - 44 AS SIGNED ) FROM tab2
----
180224
247500
93104

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL - col0 * - col0 * - + CAST ( - 44 AS INTEGER ) FROM tab2
----
180224
247500
93104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 + + 15 + + col1 FROM tab2
----
46
112
64
156
75
157

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT DISTINCT + col0 + + col1 DIV - + col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT + col0 + + col1 / - + col1 FROM tab1
----
50
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + - col0 * + col1 + - col1 * + - col2 AS col1, ( - 86 ) * col1 col2 FROM tab0
----
-1704
-1806
-95
-86
2577
-6966

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

query I rowsort
SELECT DISTINCT + col1 + - col1 * + 70 AS col0 FROM tab1
----
-3243
-345
-966

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-215
SELECT - MIN ( - 40 ) AS col2 FROM tab2 AS cor0
----
40

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 >= NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-218
SELECT 33 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL 75 * - - 94 + - col2 FROM tab1 AS cor0
----
6954
6982
6991

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT MIN( col0 ) + COUNT( * ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-223
SELECT MIN ( col0 ) + COUNT ( * ) AS col1 FROM tab2
----
49

query I rowsort
SELECT ALL - col1 * - 77 + - + col1 FROM tab1
----
1064
3572
380

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

skipif mysql # not compatible
query I rowsort label-225
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE - col2 - + col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-226
SELECT - - SUM( ALL - - ( - CAST( NULL AS SIGNED ) ) ) + CAST( - 1 AS SIGNED ) col1 FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-226
SELECT - - SUM ( ALL - - ( - CAST ( NULL AS INTEGER ) ) ) + CAST ( - 1 AS INTEGER ) col1 FROM tab0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT col1 * + 19 FROM tab0
----
1539
19
399

onlyif mysql # DIV for integer division: 
query II rowsort label-228
SELECT + col0 DIV col2, col0 + + + 94 AS col2 FROM tab1
----
0
145
1
179
1
185

skipif mysql # not compatible
query II rowsort label-228
SELECT + col0 / col2, col0 + + + 94 AS col2 FROM tab1
----
0
145
1
179
1
185

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL MIN( ALL + col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL MIN ( ALL + col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT 39 * col0 AS col0 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT ALL col1 * + - 89 FROM tab0 AS cor0
----
-1869
-7209
-89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 58 ) > + 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT DISTINCT - col1 DIV + - col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT - col1 / + - col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-234
SELECT DISTINCT - COUNT( * ) AS col2, - 36 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9
-36

skipif mysql # not compatible
query II rowsort label-234
SELECT DISTINCT - COUNT ( * ) AS col2, - 36 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-235
SELECT DISTINCT - CAST( + 70 AS SIGNED ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - CAST ( + 70 AS INTEGER ) FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-236
SELECT + - 62 AS col1, COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-62
6

skipif mysql # not compatible
query II rowsort label-236
SELECT + - 62 AS col1, COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-62
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 33 * - col0 >= + 98 + col0
----

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

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

query II rowsort
SELECT col1 AS col2, - 52 AS col0 FROM tab2 AS cor0
----
51
-52
67
-52
77
-52

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - ( - 35 ) FROM tab0
----
134
45
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 98 - - 96
----

query I rowsort
SELECT 50 + + 46 AS col0 FROM tab0
----
96
96
96

query I rowsort
SELECT DISTINCT ( + col2 ) + 11 AS col1 FROM tab2
----
34
51
69

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT 6 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-246
SELECT 6 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
15

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

skipif mysql # not compatible
query I rowsort label-247
SELECT ( MIN ( DISTINCT - 71 ) ) FROM tab2 AS cor0
----
-71

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

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

query II rowsort
SELECT DISTINCT + 1 * + col1 + + - col2 AS col2, - col1 FROM tab1 AS cor0
----
-21
-47
-54
-5
-82
-14

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

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

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE - col1 * - 61 * - + col1 / - 40 * + + ( - + 41 ) IS NULL
----

query I rowsort
SELECT ALL 46 - col2 + + - 61 * + col2 FROM tab2 AS cor0
----
-1380
-2434
-3550

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT COUNT( * ) * - MAX( DISTINCT + 43 ) - - ( + 57 ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-256
SELECT COUNT ( * ) * - MAX ( DISTINCT + 43 ) - - ( + 57 ) AS col2 FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + 41 * - ( - - COUNT( * ) ) * 29 AS col0 FROM tab1
----
-3567

skipif mysql # not compatible
query I rowsort label-257
SELECT + 41 * - ( - - COUNT ( * ) ) * 29 AS col0 FROM tab1
----
-3567

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 - - - col0 <> NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-260
SELECT DISTINCT MAX( ALL + + col2 ) DIV COUNT( * ) col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-260
SELECT DISTINCT MAX ( ALL + + col2 ) / COUNT ( * ) col0 FROM tab0 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT DISTINCT col2 DIV + - col1 FROM tab1 WHERE NULL IS NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT col2 / + - col1 FROM tab1 WHERE NULL IS NULL
----
-1
-11
-6

query I rowsort
SELECT + col0 * - col0 * + col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-263
SELECT - CAST( 24 AS SIGNED ) DIV - col2 FROM tab1 AS cor0 WHERE NOT + 10 - - 30 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-263
SELECT - CAST ( 24 AS INTEGER ) / - col2 FROM tab1 AS cor0 WHERE NOT + 10 - - 30 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT ALL 48 DIV ( + col0 ) + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL 48 / ( + col0 ) + col1 FROM tab1 AS cor0
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-265
SELECT + CAST ( - - ( col0 ) AS INTEGER ) FROM tab1 cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT - - 96 DIV + ( col1 ) col2 FROM tab1 AS cor0
----
19
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-266
SELECT - - 96 / + ( col1 ) col2 FROM tab1 AS cor0
----
19
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT ALL + 96 + - COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL + 96 + - COUNT ( * ) FROM tab2
----
93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-269
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) - + COUNT( * ) FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-269
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) - + COUNT ( * ) FROM tab2
----
NULL
0

query I rowsort
SELECT - 94 + + 72 AS col2 FROM tab2
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL 65 + - COUNT( * ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL 65 + - COUNT ( * ) FROM tab2
----
62

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT + 70 DIV 47 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-274
SELECT + 70 / 47 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col0 * + col2 * + - col2 + - 64 FROM tab0 AS cor0
----
-33199
-8764
-950761

query I rowsort
SELECT - col2 + 46 AS col0 FROM tab2 AS cor0
----
-12
23
6

query II rowsort
SELECT + 35 + col0 * + 37 * - col1 * - col0, 76 AS col0 FROM tab2 AS cor0
----
11669539
76
13944410
76
3992927
76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-279
SELECT + CAST( col2 AS SIGNED ) * - col0 * + col1 col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-279
SELECT + CAST ( col2 AS INTEGER ) * - col0 * + col1 col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT - 18 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-282
SELECT DISTINCT * FROM tab2 WHERE 23 * + + ( - CAST( col0 AS SIGNED ) ) * 12 IS NULL
----

skipif mysql # not compatible
query III rowsort label-282
SELECT DISTINCT * FROM tab2 WHERE 23 * + + ( - CAST ( col0 AS INTEGER ) ) * 12 IS NULL
----

query I rowsort
SELECT DISTINCT - + 93 FROM tab1 WHERE NOT col0 / + col0 * col0 IS NOT NULL
----

query I rowsort
SELECT + + col0 * - 14 + + - 87 AS col0 FROM tab2 WHERE NOT NULL <> + + col0
----

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

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

query I rowsort
SELECT + 63 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

query I rowsort
SELECT + col0 * + ( + 1 ) + + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-290
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL IN ( + + col2 * + 74, col2, col0 * + 3 * + CAST( NULL AS SIGNED ), + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL IN ( + + col2 * + 74, col2, col0 * + 3 * + CAST ( NULL AS INTEGER ), + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT - col2 + - + 7 DIV 53 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-291
SELECT - col2 + - + 7 / 53 AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - - 76 + - COUNT( * ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-292
SELECT - - 76 + - COUNT ( * ) FROM tab1 AS cor0
----
73

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - COUNT( * ) * 39 col0 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-295
SELECT - COUNT ( * ) * 39 col0 FROM tab2 AS cor0
----
-117

query II rowsort
SELECT ALL - col0, ( - 80 ) + - - col1 AS col1 FROM tab0 cor0
----
-15
1
-87
-59
-97
-79

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

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

query I rowsort
SELECT - 30 * + col2 AS col1 FROM tab1
----
-1770
-2040
-2880

query I rowsort
SELECT ALL + col1 + + col2 * - - 67 * + 90 * - ( + + 53 ) AS col2 FROM tab0
----
-15020649
-31639409
-3195879

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

query I rowsort
SELECT ALL - 68 + col2 + - + col0 + 29 + + - col2 * col1 * - - col1 * col1 * + 23 - - ( + 19 ) AS col2 FROM tab2 AS cor0
----
-401217879
-420010404
-70172422

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

query I rowsort
SELECT DISTINCT - + col2 - - + 15 FROM tab0 AS cor0
----
-32
-84
5

query II rowsort
SELECT - col2 + + col1 AS col0, col1 FROM tab2 AS cor0
----
28
51
37
77
9
67

query I rowsort
SELECT 67 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-307
SELECT ALL CAST( NULL AS SIGNED ) * - col2 + + + col1, col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL OR - col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-307
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 + + + col1, col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL OR - col0 IS NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL - + ( - 20 ) FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT col1 * + col1 * - + 27 AS col2 FROM tab0
----
-11907
-177147
-27

query II rowsort
SELECT DISTINCT 59 AS col0, - ( + + 51 ) FROM tab0 WHERE col1 IS NULL
----

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

query I rowsort
SELECT ALL - col2 * - 20 * + 49 AS col2 FROM tab2
----
22540
39200
56840

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

query II rowsort
SELECT DISTINCT - + col1 AS col1, ( - + col2 ) * + col1 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT 67 * - col2 FROM tab2
----
-1541
-2680
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT 74 IS NULL
----
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT ALL ( - 79 ) DIV col2 + + 94 FROM tab0
----
87
93
94

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL ( - 79 ) / col2 + + 94 FROM tab0
----
87
93
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT DISTINCT CAST( - ( + + 58 ) AS SIGNED ) + + - 75 + + CAST( + col0 AS SIGNED ) * + 7 * col0 - col1 AS col1 FROM tab2
----
14628
28462
39175

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT CAST ( - ( + + 58 ) AS INTEGER ) + + - 75 + + CAST ( + col0 AS INTEGER ) * + 7 * col0 - col1 AS col1 FROM tab2
----
14628
28462
39175

query I rowsort
SELECT ALL + 24 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

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

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

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

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

query I rowsort
SELECT + col2 * + + col1 + + 49 FROM tab2 AS cor0
----
1222
3129
3935

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT DISTINCT - 60 * + COUNT( * ) * MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
-2700

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT - 60 * + COUNT ( * ) * MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT - 83 + - + COUNT( * ) col0 FROM tab1 AS cor0
----
-86

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

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

query I rowsort
SELECT DISTINCT + 91 * + col0 AS col1 FROM tab0 AS cor0
----
1365
7917
8827

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

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

query I rowsort
SELECT ALL 93 * - ( 4 ) AS col1 FROM tab2 AS cor0
----
-372
-372
-372

query I rowsort
SELECT ALL col0 * - + col0 + + col1 AS col2 FROM tab1 AS cor0
----
-2587
-7220
-8234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT 85 * + COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT 85 * + COUNT ( * ) FROM tab1
----
255

query I rowsort
SELECT DISTINCT + col2 + col0 + - col0 + 31 * - col0 * col0 AS col1 FROM tab0
----
-234629
-291580
-6928

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL ( + - MAX( ALL + col1 ) ) + 92 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL ( + - MAX ( ALL + col1 ) ) + 92 FROM tab1
----
45

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-344
SELECT DISTINCT - 96 + + - col0 + - CAST( - 94 AS SIGNED ) AS col0, col2 + col0 AS col1 FROM tab2 AS cor0
----
-48
69
-66
104
-77
133

skipif mysql # not compatible
query II rowsort label-344
SELECT DISTINCT - 96 + + - col0 + - CAST ( - 94 AS INTEGER ) AS col0, col2 + col0 AS col1 FROM tab2 AS cor0
----
-48
69
-66
104
-77
133

query I rowsort
SELECT - - col1 - + - col1 AS col0 FROM tab2 cor0
----
102
134
154

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-349
SELECT CAST ( - - col2 AS INTEGER ) AS col0, + col1 * - col1 AS col0 FROM tab2 AS cor0
----
23
-2601
40
-5929
58
-4489

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT ALL SUM( - - 62 ) AS col1 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL SUM ( - - 62 ) AS col1 FROM tab0
----
186

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

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

query I rowsort
SELECT 89 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT - 50 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-358
SELECT - 50 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-359
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( CAST( 60 AS SIGNED ) ) + 18 AS col2, 19 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( CAST ( 60 AS INTEGER ) ) + 18 AS col2, 19 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL
19

query I rowsort
SELECT 12 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + col2 + - col0 + + 95 * + col1 FROM tab1 AS cor0
----
1183
331
4306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-362
SELECT - col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - - col0 BETWEEN + col0 AND - col1
----

skipif mysql # not compatible
query I rowsort label-362
SELECT - col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - - col0 BETWEEN + col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT COUNT( * ) * + + 89 * 61 AS col1 FROM tab0 AS cor0
----
16287

skipif mysql # not compatible
query I rowsort label-363
SELECT COUNT ( * ) * + + 89 * 61 AS col1 FROM tab0 AS cor0
----
16287

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 + col0 col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + 80 AS col0 FROM tab2 AS cor0 WHERE col0 > + col1
----
80

query II rowsort
SELECT + col2 * 43 AS col1, 43 * + - col0 FROM tab1 AS cor0
----
2537
-3655
2924
-3913
4128
-2193

query II rowsort
SELECT ALL + col2, - 17 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
-17
68
-17
96
-17

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

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

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

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

query I rowsort
SELECT DISTINCT + 7 * - col1 AS col2 FROM tab0
----
-147
-567
-7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-373
SELECT DISTINCT ( + + CAST( + + col1 AS SIGNED ) ) + + col2 + col0 * - col2 + + + col0 AS col0 FROM tab2
----
-2379
-4150
-938

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT ( + + CAST ( + + col1 AS INTEGER ) ) + + col2 + col0 * - col2 + + + col0 AS col0 FROM tab2
----
-2379
-4150
-938

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT 27 DIV - + 74 - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-374
SELECT 27 / - + 74 - col2 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-375
SELECT ALL * FROM tab1 WHERE NOT + col1 + - col2 * - col2 <= NULL AND NULL >= col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-375
SELECT ALL * FROM tab1 WHERE NOT + col1 + - col2 * - col2 <= NULL AND NULL >= col0 + CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) - COUNT ( * ) - + COUNT ( * ) + + + ( - ( ( + COUNT ( * ) ) ) ) FROM tab2
----
-15

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

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

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

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

query I rowsort
SELECT DISTINCT - 83 - col1 AS col0 FROM tab1 AS cor0
----
-130
-88
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT col1 NOT BETWEEN NULL AND 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT + 21 * - - COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-382
SELECT + 21 * - - COUNT ( * ) FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT + ( + - 48 ) * - ( 2 ) + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-383
SELECT + ( + - 48 ) * - ( 2 ) + COUNT ( * ) FROM tab1
----
99

query I rowsort
SELECT ALL + col1 * + 10 AS col0 FROM tab0 AS cor0
----
10
210
810

onlyif mysql # DIV for integer division: 
query II rowsort label-385
SELECT DISTINCT - col1 AS col0, - col1 DIV + + col0 + - col1 AS col1 FROM tab2 cor0
----
-51
-52
-67
-67
-77
-78

skipif mysql # not compatible
query II rowsort label-385
SELECT DISTINCT - col1 AS col0, - col1 / + + col0 + - col1 AS col1 FROM tab2 cor0
----
-51
-52
-67
-67
-77
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-386
SELECT DISTINCT - 43, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-386
SELECT DISTINCT - 43, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-43
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 IN ( + ( + col1 ), col0, + - 82 / + - 29 * - 86 * - + col1 * - + 75, 23, - col2 - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - col2 / - col0 AND ( NULL )
----

query II rowsort
SELECT DISTINCT - - 73 AS col1, col0 AS col2 FROM tab1 AS cor0
----
73
51
73
85
73
91

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

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

query I rowsort
SELECT ALL - - 2 * + col2 * + - 4 + 19 * 56 FROM tab0 AS cor0 WHERE + col2 / - - 88 IS NOT NULL
----
272
688
984

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT ALL + - 37 DIV - col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + - 37 / - col2 FROM tab0 AS cor0
----
0
0
3

query II rowsort
SELECT col2, + col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

query III rowsort
SELECT * FROM tab2 WHERE + 70 * + col0 + + + 5 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT ALL MAX( CAST( + - 71 AS SIGNED ) ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL MAX ( CAST ( + - 71 AS INTEGER ) ) FROM tab2
----
-71

query I rowsort
SELECT - 55 + - - col0 * + col2 AS col0 FROM tab0 AS cor0
----
650
815
9548

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

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

query I rowsort
SELECT - + col2 + + + 93 FROM tab2 AS cor0
----
35
53
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 57 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT DISTINCT + ( - MAX( ALL 4 ) ) + - + 63 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + ( - MAX ( ALL 4 ) ) + - + 63 FROM tab1 AS cor0
----
-67

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-403
SELECT DISTINCT MIN ( - + ( - - col1 ) ) col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col0 * + 34 + - col1 - + col1 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT 82 DIV col0 + col0 + - + 8 + - col2 FROM tab2 AS cor0
----
10
16
17

skipif mysql # not compatible
query I rowsort label-405
SELECT 82 / col0 + col0 + - + 8 + - col2 FROM tab2 AS cor0
----
10
16
17

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - MAX( - 20 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-406
SELECT - MAX ( - 20 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
20

query I rowsort
SELECT + col1 + + 84 - + col1 AS col2 FROM tab1
----
84
84
84

query III rowsort
SELECT * FROM tab2 WHERE + - col0 NOT BETWEEN + col2 AND - col0 * col0 + - col1 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT ALL + + col2 AS col0 FROM tab1 WHERE NULL <= + - CAST( - col0 AS SIGNED ) * col1
----

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL + + col2 AS col0 FROM tab1 WHERE NULL <= + - CAST ( - col0 AS INTEGER ) * col1
----

query I rowsort
SELECT + 82 * - - col1 FROM tab0 WHERE NOT + ( col2 ) <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT + col1 FROM tab2 WHERE NOT + 9 * + + col1 + - CAST( NULL AS SIGNED ) + + 34 < + - col0
----

skipif mysql # not compatible
query I rowsort label-411
SELECT + col1 FROM tab2 WHERE NOT + 9 * + + col1 + - CAST ( NULL AS INTEGER ) + + 34 < + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT - 60 DIV + + col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-412
SELECT - 60 / + + col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + - 91 * + col1 FROM tab1 AS cor0
----
-1274
-4277
-455

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-415
SELECT ALL + 62, - COUNT( * ) * COUNT( * ) AS col0, MAX( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
62
-9
81

skipif mysql # not compatible
query III rowsort label-415
SELECT ALL + 62, - COUNT ( * ) * COUNT ( * ) AS col0, MAX ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
62
-9
81

query I rowsort
SELECT - - ( - 70 ) AS col1 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT + + col1 * - 36 FROM tab0 AS cor0
----
-2916
-36
-756

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

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT - 16 DIV - col1 * + col1 FROM tab0 AS cor0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-419
SELECT - 16 / - col1 * + col1 FROM tab0 AS cor0
----
0
0
16

query I rowsort
SELECT ALL + - 65 * - col1 * col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
27625
278005
46410

query II rowsort
SELECT ALL - 38 AS col2, col0 * col2 AS col2 FROM tab2
----
-38
1058
-38
2560
-38
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-422
SELECT + col0 AS col1, ( - col1 ) * col2 DIV col1 - - col1 FROM tab0
----
15
34
87
11
97
-98

skipif mysql # not compatible
query II rowsort label-422
SELECT + col0 AS col1, ( - col1 ) * col2 / col1 - - col1 FROM tab0
----
15
34
87
11
97
-98

query II rowsort
SELECT 20, col1 + + - col0 AS col2 FROM tab0 AS cor0
----
20
-66
20
-96
20
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT MAX( - CAST( + ( + 96 ) AS SIGNED ) ) * + + COUNT( * ) + - + 78 * + + 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7338

skipif mysql # not compatible
query I rowsort label-426
SELECT MAX ( - CAST ( + ( + 96 ) AS INTEGER ) ) * + + COUNT ( * ) + - + 78 * + + 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7338

query I rowsort
SELECT DISTINCT - col2 + + 88 + + 52 + - col0 AS col2 FROM tab0
----
-56
43
78

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

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * 15 - ( - + col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT ALL 89 + col0 * + CAST( NULL AS SIGNED ) * ( + - 71 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL 89 + col0 * + CAST ( NULL AS INTEGER ) * ( + - 71 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE - col2 * - - col0 + - col2 >= - 54
----

query I rowsort
SELECT - col2 + - - 93 AS col1 FROM tab2
----
35
53
70

query I rowsort
SELECT - + col0 AS col2 FROM tab0 AS cor0 WHERE 5 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + + 28 / - col2 AS col2 FROM tab2 AS cor0 WHERE NULL < + col2 + col1
----

query I rowsort
SELECT DISTINCT - + col0 * - - col2 - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

query I rowsort
SELECT + - col0 - + - 22 FROM tab0 AS cor0
----
-65
-75
7

query I rowsort
SELECT 54 * + - col2 AS col1 FROM tab1 WHERE + col0 > + + 4 / + 7 + col2 * + 62
----

query I rowsort
SELECT ALL + col2 - - 74 FROM tab2
----
114
132
97

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

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-440
SELECT - col2 - - CAST( NULL AS SIGNED ) * - col0, col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-440
SELECT - col2 - - CAST ( NULL AS INTEGER ) * - col0, col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT - 91 - + + 94 FROM tab2
----
-185
-185
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-442
SELECT - CAST( col0 AS SIGNED ) FROM tab0 WHERE 28 / col2 <= col0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-442
SELECT - CAST ( col0 AS INTEGER ) FROM tab0 WHERE 28 / col2 <= col0
----
-15
-87
-97

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

skipif mysql # not compatible
query I rowsort label-443
SELECT + 9 - COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT MAX( - 64 ) + COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
-61

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT MAX ( - 64 ) + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
-61

query I rowsort
SELECT 50 + + + col0 AS col2 FROM tab1
----
101
135
141

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT - col0 DIV - - 77 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-446
SELECT - col0 / - - 77 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - 34 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-34
-34
-34

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL MIN( - col0 ) + 34 AS col1 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL MIN ( - col0 ) + 34 AS col1 FROM tab0
----
-63

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

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

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT SUM ( DISTINCT - 38 ) AS col2 FROM tab2
----
-38

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) <= col1 / col0 + col2
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE - col2 + col1 * + col0 <> + 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT - COUNT( * ) DIV 39 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT - COUNT ( * ) / 39 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT + 52 + 66 AS col0 FROM tab1
----
118
118
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-457
SELECT DISTINCT 46 * + col2 + + col0 FROM tab1 WHERE NOT col0 BETWEEN - ( 3 ) + CAST( 82 AS SIGNED ) AND NULL
----
4467

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT 46 * + col2 + + col0 FROM tab1 WHERE NOT col0 BETWEEN - ( 3 ) + CAST ( 82 AS INTEGER ) AND NULL
----
4467

query I rowsort
SELECT ( - col0 ) / + 1 FROM tab0 WHERE NOT - col0 NOT BETWEEN col2 AND NULL
----

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

query I rowsort
SELECT DISTINCT + 66 - + col1 * ( col1 ) AS col1 FROM tab0
----
-375
-6495
65

query I rowsort
SELECT ( - col1 ) + + 88 FROM tab2
----
11
21
37

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL 71 - COUNT( * ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL 71 - COUNT ( * ) FROM tab0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT DISTINCT col2 + CAST( col0 AS SIGNED ) * - col0 col1 FROM tab2
----
-2093
-4056
-5567

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-463
SELECT DISTINCT col2 + CAST ( col0 AS INTEGER ) * - col0 col1 FROM tab2
----
-2093
-4056
-5567

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

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT MAX( - col1 ) + - ( ( + COUNT( * ) ) ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-465
SELECT MAX ( - col1 ) + - ( ( + COUNT ( * ) ) ) FROM tab1
----
-8

query I rowsort
SELECT col2 * + 24 AS col2 FROM tab0
----
1128
2376
240

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

query I rowsort
SELECT DISTINCT + 82 - col2 FROM tab1
----
-14
14
23

query I rowsort
SELECT + 88 AS col0 FROM tab0 WHERE ( + col2 ) NOT IN ( - col1 + - col1 * 55 )
----
88
88
88

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( + col1 / col2 ) IS NULL
----

query I rowsort
SELECT col0 - 33 AS col2 FROM tab2
----
13
31
42

query I rowsort
SELECT ALL + 6 - col1 AS col1 FROM tab0 cor0
----
-15
-75
5

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT - - col2 DIV - col2 + + 5 * col0 FROM tab0 AS cor0
----
434
484
74

skipif mysql # not compatible
query I rowsort label-473
SELECT - - col2 / - col2 + + 5 * col0 FROM tab0 AS cor0
----
434
484
74

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

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

query I rowsort
SELECT - - 66 + 59 AS col2 FROM tab1 AS cor0
----
125
125
125

query I rowsort
SELECT + 6 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-2110
-4090
-5619

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT DISTINCT - - col0 * 55 - col2 * + col2 AS col1 FROM tab2 AS cor0
----
1920
2001
761

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE col1 = - 28 + col1
----

query I rowsort
SELECT ALL - col1 * col0 - + col1 FROM tab1 AS cor0
----
-430
-4324
-728

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

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

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

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT ( - COUNT ( * ) ) * 10 FROM tab2
----
-30

query I rowsort
SELECT col2 / - 55 AS col2 FROM tab2 WHERE NOT NULL IN ( + col1 )
----

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

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

query I rowsort
SELECT ( 57 ) * col1 AS col1 FROM tab2 WHERE NOT col0 BETWEEN - col0 AND col1 + 85 / - col1
----
3819

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 + 39 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT - CAST( + 45 AS SIGNED ) FROM tab0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-487
SELECT - CAST ( + 45 AS INTEGER ) FROM tab0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT 19 * + + COUNT( ALL + col0 ) AS col1 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-488
SELECT 19 * + + COUNT ( ALL + col0 ) AS col1 FROM tab1
----
57

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 45 + + 30 AS col0 FROM tab0 WHERE ( + 21 IS NOT NULL )
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( 15 ) ) >= ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NULL > NULL
----

query II rowsort
SELECT DISTINCT + 98 AS col1, col0 + + 56 FROM tab2
----
98
102
98
120
98
131

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT ALL + 84 DIV 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL + 84 / 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 5 col1 FROM tab2 cor0
----
115
200
290

query II rowsort
SELECT - 10, col1 AS col1 FROM tab0 AS cor0
----
-10
1
-10
21
-10
81

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

query I rowsort
SELECT ALL - + 44 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 53 * 56 AS col1 FROM tab1 AS cor0
----
-2968

query I rowsort
SELECT ALL col2 * - 15 AS col1 FROM tab1 AS cor0
----
-1020
-1440
-885

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 13 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT - COUNT( * ) * + 75 AS col2 FROM tab0 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - COUNT ( * ) * + 75 AS col2 FROM tab0 cor0
----
-225

query I rowsort
SELECT DISTINCT - 21 + + col0 AS col2 FROM tab2
----
25
43
54

query I rowsort
SELECT - col2 * + + 44 AS col1 FROM tab0
----
-2068
-4356
-440

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

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

query I rowsort
SELECT ALL + 91 * + 81 FROM tab0 WHERE NULL < + 78
----

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

query I rowsort
SELECT ALL col2 + + col1 + + col2 FROM tab0
----
175
199
41

query III rowsort
SELECT * FROM tab1 WHERE - + ( 40 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT - COUNT( * ) FROM tab2 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-518
SELECT - COUNT ( * ) FROM tab2 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 + - col1 + + 96 * col1 * 2 FROM tab0
----
15424
4001
92

query I rowsort
SELECT DISTINCT - col1 * + - 10 + - col0 AS col1 FROM tab1 cor0
----
-35
379
89

query I rowsort
SELECT ALL - col0 * 2 + 27 AS col1 FROM tab1 AS cor0
----
-143
-155
-75

query I rowsort
SELECT - 48 * - 62 + + col0 + + - 14 * - col0 FROM tab1 AS cor0
----
3741
4251
4341

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col2 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL + SUM( + - ( - 99 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
891

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + SUM ( + - ( - 99 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
891

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-527
SELECT + 97 DIV - COUNT( * ) AS col2 FROM tab0
----
-32

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-528
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN - - CAST( CAST( col2 AS SIGNED ) AS SIGNED ) AND + 59 + 4
----
97
1
99

skipif mysql # not compatible
query III rowsort label-528
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN - - CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) AND + 59 + 4
----
97
1
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT + + 69 - + MIN( - - col0 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-531
SELECT + + 69 - + MIN ( - - col0 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + - col1 - 16 AS col0 FROM tab0 AS cor0
----
-17
-37
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 79 - - 3 * col1 col1, - 17 AS col1 FROM tab1 AS cor0
----
121
-17
220
-17
94
-17

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT CAST( - - 6 AS SIGNED ) FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-535
SELECT CAST ( - - 6 AS INTEGER ) FROM tab0
----
6
6
6

query II rowsort
SELECT 28, col1 * col2 AS col0 FROM tab2
----
28
1173
28
3080
28
3886

query II rowsort
SELECT + col2, col1 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----

query II rowsort
SELECT ALL col1, 1 + + + col0 AS col1 FROM tab2
----
51
47
67
76
77
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-539
SELECT 52, + 86 * + CAST( + col0 AS SIGNED ) * + - 99 + - + 82 DIV 2 col0 FROM tab0
----
52
-127751
52
-740759
52
-825899

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-539
SELECT 52, + 86 * + CAST ( + col0 AS INTEGER ) * + - 99 + - + 82 / 2 col0 FROM tab0
----
52
-127751
52
-740759
52
-825899

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

query I rowsort
SELECT ALL - ( 78 ) AS col0 FROM tab1 AS cor0
----
-78
-78
-78

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

query I rowsort
SELECT 8 * + - 24 * + 38 + + ( 68 ) AS col2 FROM tab0 AS cor0
----
-7228
-7228
-7228

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT - + 20 DIV - 49 col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-546
SELECT - + 20 / - 49 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL ( - 59 ) * - 25 AS col0 FROM tab0 AS cor0
----
1475
1475
1475

query II rowsort
SELECT DISTINCT - col0 * col1 AS col2, + col1 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) + 27 FROM tab0 AS cor0 WHERE NOT 57 >= + + col0
----
26
6

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) + 27 FROM tab0 AS cor0 WHERE NOT 57 >= + + col0
----
26
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL + + COUNT( * ) * ( + - 65 ) AS col2 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + + COUNT ( * ) * ( + - 65 ) AS col2 FROM tab0 AS cor0
----
-195

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

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

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

query I rowsort
SELECT col2 + + col2 - - 24 + - col2 FROM tab1
----
120
83
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 NOT BETWEEN col1 AND ( + + 32 * - col0 )
----

query I rowsort
SELECT ALL - col0 * + 3 AS col0 FROM tab2 WHERE + 73 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - 17 AS col2 FROM tab0
----
1479
1649
255

query I rowsort
SELECT DISTINCT 75 + col1 * - col0 FROM tab2
----
-2271
-4853
-4950

query I rowsort
SELECT DISTINCT - 65 + - 53 FROM tab0 AS cor0
----
-118

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

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT - - CAST ( - COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) * COUNT ( * ) + 68 FROM tab0 AS cor0
----
95

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

query I rowsort
SELECT DISTINCT + 52 + 77 * - 54 FROM tab0, tab2 cor0
----
-4106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT + COUNT( + - 56 ) DIV + 78 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + COUNT ( + - 56 ) / + 78 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE 42 < col1
----
23
40
58

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

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

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

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

query I rowsort
SELECT - 55 * - col2 * - col1 * - col0 AS col1 FROM tab1 AS cor0
----
1379125
15995980
3769920

onlyif mysql # DIV for integer division: 
query II rowsort label-569
SELECT DISTINCT + + col1 DIV 91 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-569
SELECT DISTINCT + + col1 / 91 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

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

query II rowsort
SELECT DISTINCT - col0, col1 + + - 24 + + + col2 - + col0 + - col1 * + col0 AS col1 FROM tab2
----
-46
-2342
-64
-4899
-75
-4999

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN + + 30 AND NULL
----
51
14
96
85
5
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) >= + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-574
SELECT - CAST( col2 AS SIGNED ) * + ( col0 ) FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-574
SELECT - CAST ( col2 AS INTEGER ) * + ( col0 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL - 7 * + 70 + - + COUNT( * ) * - 8 FROM tab1 AS cor0
----
-466

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL - 7 * + 70 + - + COUNT ( * ) * - 8 FROM tab1 AS cor0
----
-466

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL < NULL )
----

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

query I rowsort
SELECT ALL - 95 AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

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

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

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

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

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

query II rowsort
SELECT + 26, 75 * + col2 AS col1 FROM tab0 AS cor0
----
26
3525
26
7425
26
750

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 49 IS NULL
----

query I rowsort
SELECT DISTINCT + 15 + + - col2 AS col0 FROM tab2 AS cor0
----
-25
-43
-8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 17 col1 FROM tab2
----
1139
1309
867

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

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

query I rowsort
SELECT 69 * col1 AS col2 FROM tab0
----
1449
5589
69

query I rowsort
SELECT - 21 * col2 - + - col1 FROM tab0
----
-189
-2078
-906

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

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT - SUM( col2 ) - - SUM( DISTINCT col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-595
SELECT - SUM ( col2 ) - - SUM ( DISTINCT col2 ) FROM tab2
----
0

query II rowsort
SELECT 17 + - col2, col1 FROM tab1
----
-42
5
-51
47
-79
14

query II rowsort
SELECT ALL - col2 + col0 AS col2, - col2 * - col2 FROM tab2
----
17
3364
23
529
24
1600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT - COUNT( * ) - - COUNT( 64 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT - COUNT ( * ) - - COUNT ( 64 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-600
SELECT DISTINCT MIN ( ALL + col0 ) col0 FROM tab1 AS cor0
----
51

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

onlyif mysql # DIV for integer division: 
query II rowsort label-602
SELECT col0 DIV + 24 + - 76 AS col0, 15 * col1 * + col2 FROM tab0 AS cor0
----
-72
1485
-73
3150
-76
57105

skipif mysql # not compatible
query II rowsort label-602
SELECT col0 / + 24 + - 76 AS col0, 15 * col1 * + col2 FROM tab0 AS cor0
----
-72
1485
-73
3150
-76
57105

query I rowsort
SELECT ALL + + ( + + col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + + 99 * - COUNT( * ) FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + + 99 * - COUNT ( * ) FROM tab2 AS cor0
----
-297

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

query II rowsort
SELECT ALL col2 * + + ( + + col0 ) - + col2 + - col1 + col1 AS col1, - col2 + + + col1 AS col1 FROM tab0 AS cor0
----
658
34
860
11
9504
-98

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

query I rowsort
SELECT 59 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

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

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

query I rowsort
SELECT 83 * - col0 * + 72 FROM tab2
----
-274896
-382464
-448200

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT + COUNT( DISTINCT - 42 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-613
SELECT + COUNT ( DISTINCT - 42 ) FROM tab2
----
1

query I rowsort
SELECT - 80 * + + 32 FROM tab2 AS cor0
----
-2560
-2560
-2560

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

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

query I rowsort
SELECT - + 46 AS col1 FROM tab0 cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT 66 * + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-594

skipif mysql # not compatible
query I rowsort label-617
SELECT 66 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-594

query III rowsort
SELECT ALL * FROM tab2 WHERE - 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-619
SELECT - ( - - CAST( NULL AS SIGNED ) ), + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-619
SELECT - ( - - CAST ( NULL AS INTEGER ) ), + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-620
SELECT 69 + 10 DIV - - col2 AS col0, col2 FROM tab2 AS cor0
----
69
23
69
40
69
58

skipif mysql # not compatible
query II rowsort label-620
SELECT 69 + 10 / - - col2 AS col0, col2 FROM tab2 AS cor0
----
69
23
69
40
69
58

query I rowsort
SELECT - + 45 * + 6 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - - col1 + + col2 + - col0 * - col2 - 40 AS col2 FROM tab0 cor0
----
793
861
9663

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL MIN( ALL - 33 ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL MIN ( ALL - 33 ) AS col1 FROM tab1 AS cor0
----
-33

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

query I rowsort
SELECT 20 + + col2 FROM tab0 cor0
----
119
30
67

query I rowsort
SELECT - 9 + + 54 AS col0 FROM tab2
----
45
45
45

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL BETWEEN col0 AND + 54
----

query I rowsort
SELECT 89 + + - 3 + + - col1 FROM tab1
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL - MIN( DISTINCT - + col0 ) + + COUNT( * ) col0 FROM tab1
----
94

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-631
SELECT ALL col2 + + col2 + - CAST( NULL AS SIGNED ) / - + 38 - 8 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-631
SELECT ALL col2 + + col2 + - CAST ( NULL AS INTEGER ) / - + 38 - 8 col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT DISTINCT col0 DIV + 83 + - - 57 * - + col2 FROM tab1 AS cor0
----
-3362
-3875
-5472

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT col0 / + 83 + - - 57 * - + col2 FROM tab1 AS cor0
----
-3362
-3875
-5472

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

query I rowsort
SELECT 92 - + col0 * col0 FROM tab2 AS cor0
----
-2024
-4004
-5533

query I rowsort
SELECT ALL + + col0 - 28 FROM tab1 AS cor0
----
23
57
63

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

query I rowsort
SELECT DISTINCT + + 35 - col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-61
-63
-73

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT CAST( + col2 AS SIGNED ) * - ( + + col1 ) AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-641
SELECT CAST ( + col2 AS INTEGER ) * - ( + + col1 ) AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-642
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( + 37 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-642
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( + 37 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT - MAX( + col2 ) DIV + 84 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-643
SELECT - MAX ( + col2 ) / + 84 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col1 FROM tab0 AS cor0
----
-48
-48
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT - COUNT( - col0 ) * + 13 * 29 FROM tab2 cor0
----
-1131

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT - COUNT ( - col0 ) * + 13 * 29 FROM tab2 cor0
----
-1131

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-648
SELECT ALL COUNT( * ) AS col0, - MIN( ALL - CAST( + ( 74 ) AS SIGNED ) ) + + 68 AS col2 FROM tab1
----
3
142

skipif mysql # not compatible
query II rowsort label-648
SELECT ALL COUNT ( * ) AS col0, - MIN ( ALL - CAST ( + ( 74 ) AS INTEGER ) ) + + 68 AS col2 FROM tab1
----
3
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-649
SELECT DISTINCT + - 51 * + CAST( NULL AS SIGNED ) / + col2 AS col0, col0 AS col2 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-649
SELECT DISTINCT + - 51 * + CAST ( NULL AS INTEGER ) / + col2 AS col0, col0 AS col2 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE col1 = + col1
----
1
21
81

query I rowsort
SELECT 98 + - + col2 AS col2 FROM tab0
----
-1
51
88

query I rowsort
SELECT DISTINCT + 26 + + col0 AS col1 FROM tab1
----
111
117
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 - 78 col0, col0 FROM tab0 AS cor0
----
-31
15
-68
87
21
97

query I rowsort
SELECT DISTINCT - ( + col2 ) * 4 FROM tab2 cor0
----
-160
-232
-92

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

query I rowsort
SELECT - + 86 * col0 * - 66 FROM tab1 AS cor0
----
289476
482460
516516

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT + SUM( + 8 ) - + 1 col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-659
SELECT DISTINCT + SUM ( + 8 ) - + 1 col0 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN col0 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 26 - - col1 * - - col2 FROM tab1
----
1370
321
3222

query I rowsort
SELECT - 45 - - ( + ( + col1 ) ) FROM tab1
----
-31
-40
2

query I rowsort
SELECT DISTINCT + 30 * + 93 AS col0 FROM tab0
----
2790

query I rowsort
SELECT + col2 - + 48 AS col2 FROM tab2
----
-25
-8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL COUNT( * ) * + SUM( DISTINCT col1 ) + + COUNT( * ) AS col2 FROM tab2
----
588

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT col1 ) + + COUNT ( * ) AS col2 FROM tab2
----
588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-666
SELECT DISTINCT + COUNT( DISTINCT - col0 ) DIV + 60 + 85 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) / + 60 + 85 FROM tab2
----
85

query I rowsort
SELECT - col1 + - col1 + - col0 FROM tab2
----
-148
-209
-218

query I rowsort
SELECT + + col2 FROM tab0 WHERE col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL MAX( + 4 ) FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL MAX ( + 4 ) FROM tab2 cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col2 > + 39
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL - - 55 * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL - - 55 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, - 13 * + col1 col0 FROM tab2 AS cor0
----
23
-663
40
-1001
58
-871

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

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

query I rowsort
SELECT ALL - col1 + - - 5 + 3 * - - col2 FROM tab2
----
112
23
48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT ALL - col2 + + ( + 45 ) DIV ( + 53 ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - col2 + + ( + 45 ) / ( + 53 ) AS col0 FROM tab1
----
-59
-68
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT - col2 DIV - + 83 - - + 66 AS col2 FROM tab1 cor0
----
66
66
67

skipif mysql # not compatible
query I rowsort label-681
SELECT - col2 / - + 83 - - + 66 AS col2 FROM tab1 cor0
----
66
66
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + ( + + 71 ) col2, - col0 * + 23 AS col2 FROM tab0 cor0
----
71
-2001
71
-2231
71
-345

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

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

query I rowsort
SELECT col2 * - col1 * + + col1 FROM tab0
----
-308367
-4410
-99

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-686
SELECT + CAST( + - 8 AS SIGNED ) + col1 + + col1 FROM tab0 AS cor0
----
-6
154
34

skipif mysql # not compatible
query I rowsort label-686
SELECT + CAST ( + - 8 AS INTEGER ) + col1 + + col1 FROM tab0 AS cor0
----
-6
154
34

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT ALL 73 DIV + + col2 - - 91 col2 FROM tab1 AS cor0
----
91
92
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-687
SELECT ALL 73 / + + col2 - - 91 col2 FROM tab1 AS cor0
----
91
92
92

query I rowsort
SELECT DISTINCT 80 - - col0 AS col2 FROM tab1 AS cor0
----
131
165
171

query I rowsort
SELECT col2 + + 32 FROM tab1 AS cor0
----
100
128
91

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL + ( SUM( ALL + col0 ) ) * - MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
19303

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL + ( SUM ( ALL + col0 ) ) * - MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
19303

query I rowsort
SELECT + col1 * + + col2 + - col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-692
SELECT * FROM tab0 AS cor0 WHERE - 60 + col2 NOT BETWEEN CAST( NULL AS SIGNED ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-692
SELECT * FROM tab0 AS cor0 WHERE - 60 + col2 NOT BETWEEN CAST ( NULL AS INTEGER ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 5 * + + col0 * col0 FROM tab1
----
13005
36125
41405

query I rowsort
SELECT ALL - 69 - - + 83 + - 58 FROM tab2
----
-44
-44
-44

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

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

query I rowsort
SELECT DISTINCT + 14 + - 33 FROM tab0
----
-19

query I rowsort
SELECT DISTINCT col2 * + col2 + + ( 0 ) AS col1 FROM tab2
----
1600
3364
529

query I rowsort
SELECT 60 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col0
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * - 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT SUM( ALL - 62 ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-700
SELECT SUM ( ALL - 62 ) FROM tab2 AS cor0
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-701
SELECT DISTINCT 0, - CAST( + + col1 AS SIGNED ) AS col1 FROM tab2
----
0
-51
0
-67
0
-77

skipif mysql # not compatible
query II rowsort label-701
SELECT DISTINCT 0, - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2
----
0
-51
0
-67
0
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - 75 * + COUNT( * ) AS col1 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-702
SELECT - 75 * + COUNT ( * ) AS col1 FROM tab0
----
-225

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-704
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( CAST( NULL AS SIGNED ) + + - ( + col0 ) - + col2 * + col0 * - 74 ) )
----

skipif mysql # not compatible
query III rowsort label-704
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) + + - ( + col0 ) - + col2 * + col0 * - 74 ) )
----

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

query I rowsort
SELECT + 71 * 20 AS col1 FROM tab2 AS cor0
----
1420
1420
1420

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 26 <> ( - col0 * - 22 / col0 )
----

query I rowsort
SELECT DISTINCT 43 * - - 78 FROM tab0 AS cor0
----
3354

query I rowsort
SELECT ALL - - 38 * + 74 FROM tab0 AS cor0
----
2812
2812
2812

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT - SUM( 22 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND col1 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT - SUM ( 22 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND col1 + 8
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-713
SELECT + col0 AS col0, col0 * - + ( - col1 ) DIV col1 FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-713
SELECT + col0 AS col0, col0 * - + ( - col1 ) / col1 FROM tab0
----
15
15
87
87
97
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT SUM( ALL + + 31 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-715
SELECT SUM ( ALL + + 31 ) FROM tab0
----
93

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

query I rowsort
SELECT col1 + + + col1 AS col2 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT DISTINCT col2 + + + col2 AS col0 FROM tab2
----
116
46
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 + - col2 + - 63 col2 FROM tab1
----
-127
-90
-99

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

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

query I rowsort
SELECT col2 * ( - - ( + - ( + col0 ) ) ) AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-724
SELECT + MAX( - + CAST( + 36 AS SIGNED ) ) col1 FROM tab1
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-724
SELECT + MAX ( - + CAST ( + 36 AS INTEGER ) ) col1 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT COUNT( * ) * + + 34 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-725
SELECT COUNT ( * ) * + + 34 FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL + COUNT( * ) * + MAX( ( + col1 ) ) * - 98 FROM tab1
----
-13818

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + COUNT ( * ) * + MAX ( ( + col1 ) ) * - 98 FROM tab1
----
-13818

query I rowsort
SELECT col0 * - 23 FROM tab2
----
-1058
-1472
-1725

query II rowsort
SELECT ALL col1, 20 * + col2 AS col0 FROM tab0
----
1
1980
21
200
81
940

query I rowsort
SELECT col0 * + 29 FROM tab0
----
2523
2813
435

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL - 72 * COUNT( * ) AS col2 FROM tab2 WHERE col2 = + col0 + + + col1 + + col0 * + - col2
----
0

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - 72 * COUNT ( * ) AS col2 FROM tab2 WHERE col2 = + col0 + + + col1 + + col0 * + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL MIN( col2 ) * - + 41 FROM tab0
----
-410

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL MIN ( col2 ) * - + 41 FROM tab0
----
-410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - col2 * 18 AS col2 FROM tab2
----
-1044
-414
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL + 98 * + COUNT( + - col2 ) AS col1 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL + 98 * + COUNT ( + - col2 ) AS col1 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT DISTINCT + 4 + + COUNT( * ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT + 4 + + COUNT ( * ) AS col1 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT + CAST( - + 34 AS SIGNED ) * - - 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8fc1fceca4fb0cbc2e8cb2f5d6a37754

skipif mysql # not compatible
query I rowsort label-736
SELECT + CAST ( - + 34 AS INTEGER ) * - - 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8fc1fceca4fb0cbc2e8cb2f5d6a37754

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-739
SELECT DISTINCT col2 col1, - CAST ( + - 57 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
57
47
57
99
57

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

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

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

query I rowsort
SELECT ( - 41 ) + col2 FROM tab2 AS cor0
----
-1
-18
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT 82 DIV + + 79 + 78 + - + COUNT( * ) FROM tab1
----
76

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 45 - - col2, + col2 col1, - + col2 col2 FROM tab2 WHERE NOT + - 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + - ( col1 ) FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT ALL - - col2 DIV - 56 + - + col2 AS col0 FROM tab0 cor0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL - - col2 / - 56 + - + col2 AS col0 FROM tab0 cor0
----
-10
-100
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - COUNT( * ) * 2 AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-748
SELECT - COUNT ( * ) * 2 AS col2 FROM tab1 AS cor0
----
-6

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

query I rowsort
SELECT ALL - 60 AS col2 FROM tab1 WHERE NULL IS NULL AND NOT + + 74 IS NOT NULL
----

query I rowsort
SELECT + 15 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL - 37 + + col1 AS col2 FROM tab0 AS cor0
----
-16
-36
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 97 col2 FROM tab1 AS cor0
----
-12
-46
-6

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

skipif mysql # not compatible
query I rowsort label-754
SELECT - COUNT ( - CAST ( col1 AS INTEGER ) ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT - SUM( DISTINCT + + 51 ) + + 36 AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-755
SELECT - SUM ( DISTINCT + + 51 ) + + 36 AS col1 FROM tab2 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT + 31 * col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col2 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-756
SELECT + 31 * col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col2 / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 57 * + col2 AS col2 FROM tab2 AS cor0
----
1311
2280
3306

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col0 ) < - + 99
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 89 AND - col1
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT DISTINCT MAX( DISTINCT - col2 ) * - - COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT MAX ( DISTINCT - col2 ) * - - COUNT ( * ) FROM tab1
----
-177

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN - + 93 AND - col2
----

query I rowsort
SELECT 12 * + col1 AS col1 FROM tab1
----
168
564
60

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

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

query II rowsort
SELECT + col0 * + col0 AS col0, - col0 FROM tab1
----
2601
-51
7225
-85
8281
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT DISTINCT - SUM( DISTINCT - col1 ) * - - 90 DIV - COUNT( * ) FROM tab0 AS cor0
----
-3090

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT - SUM ( DISTINCT - col1 ) * - - 90 / - COUNT ( * ) FROM tab0 AS cor0
----
-3090

query I rowsort
SELECT DISTINCT col2 + + - 36 + + - col1 FROM tab0
----
-47
-70
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-771
SELECT CAST( MIN( ALL + 17 ) AS SIGNED ) * - - 31 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
527

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-771
SELECT CAST ( MIN ( ALL + 17 ) AS INTEGER ) * - - 31 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
527

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT - col1 DIV col2 DIV + - 36 * - + 38 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-772
SELECT - col1 / col2 / + - 36 * - + 38 AS col1 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-774
SELECT DISTINCT - + CAST( NULL AS SIGNED ), ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-774
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT + 2 * - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-775
SELECT + 2 * - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT ALL + + ( + col0 ) DIV + + 33 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + + ( + col0 ) / + + 33 FROM tab0 AS cor0
----
0
2
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + 54 - + 57 / + - ( 77 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT - - CAST( - MAX( DISTINCT 29 ) AS SIGNED ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-778
SELECT - - CAST ( - MAX ( DISTINCT 29 ) AS INTEGER ) FROM tab0 AS cor0
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL MIN( ALL col2 ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-780
SELECT ALL MIN ( ALL col2 ) col1 FROM tab1 AS cor0
----
59

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

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

query I rowsort
SELECT DISTINCT + col2 * ( col0 ) + + col2 - + + col2 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 91 col0 FROM tab0
----
10
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT - COUNT( * ) * + - 63 + + MAX( - 56 ) - + - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-785
SELECT - COUNT ( * ) * + - 63 + + MAX ( - 56 ) - + - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
136

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 40 * + col0 ) > NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-788
SELECT AVG ( ALL - + 48 ) * + + ( - 10 ) / + ( - MIN( + ( - CAST( NULL AS SIGNED ) ) ) ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT AVG ( ALL - + 48 ) * + + ( - 10 ) / + ( - MIN ( + ( - CAST ( NULL AS INTEGER ) ) ) ) + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 + - + 27 AS col0 FROM tab1
----
-32
-41
-74

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 57 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 < NULL
----

query I rowsort
SELECT ALL + 38 * - col1 * col1 AS col2 FROM tab2 AS cor0
----
-170582
-225302
-98838

query I rowsort
SELECT - 72 * col1 AS col1 FROM tab2
----
-3672
-4824
-5544

query II rowsort
SELECT 46 AS col1, - col2 AS col1 FROM tab0
----
46
-10
46
-47
46
-99

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT ( NULL <> + 13 * 6 * col2 )
----

query I rowsort
SELECT ALL 58 * - - col0 FROM tab0
----
5046
5626
870

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

skipif mysql # not compatible
query I rowsort label-799
SELECT CAST ( + 57 AS INTEGER ) FROM tab1
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-800
SELECT DISTINCT col1 col1, - CAST( NULL AS SIGNED ) - - - col0 + + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-800
SELECT DISTINCT col1 col1, - CAST ( NULL AS INTEGER ) - - - col0 + + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-802
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT - CAST( + - 58 AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - CAST ( + - 58 AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab2 cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-804
SELECT COUNT( * ) * + 66 + - 61 col0, 55 AS col1 FROM tab2 AS cor0
----
137
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-804
SELECT COUNT ( * ) * + 66 + - 61 col0, 55 AS col1 FROM tab2 AS cor0
----
137
55

query I rowsort
SELECT ALL + col2 * + 70 * 41 + - 20 * + + 32 + col0 FROM tab1 AS cor0
----
168775
194611
274931

query I rowsort
SELECT - + col1 * + col0 + 90 + + col1 - col2 * ( + 4 ) + col2 * col0 FROM tab2 AS cor0
----
-1239
-2361
-750

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

query I rowsort
SELECT + 80 + + col1 + + col0 AS col0 FROM tab0 AS cor0
----
176
178
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT - CAST( + col1 AS SIGNED ) + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
18
27
66

skipif mysql # not compatible
query I rowsort label-809
SELECT - CAST ( + col1 AS INTEGER ) + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
18
27
66

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

query I rowsort
SELECT ALL - 25 * - 21 AS col2 FROM tab1
----
525
525
525

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

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL SUM( DISTINCT + + 79 ) * 38 AS col2 FROM tab1
----
3002

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL SUM ( DISTINCT + + 79 ) * 38 AS col2 FROM tab1
----
3002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-814
SELECT ALL col1 + + + CAST( - col2 AS SIGNED ) * col1 FROM tab0
----
-189
-3726
-98

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL col1 + + + CAST ( - col2 AS INTEGER ) * col1 FROM tab0
----
-189
-3726
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL 76 + COUNT( * ) col2 FROM tab1
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-816
SELECT ALL 76 + COUNT ( * ) col2 FROM tab1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT ALL - ( col2 ) * - - 45 + col2 * - col0 - - col1 + + col0 * - col2 - - - col1 + - - CAST( NULL AS SIGNED ) * + 43 * 83 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - ( col2 ) * - - 45 + col2 * - col0 - - col1 + + col0 * - col2 - - - col1 + - - CAST ( NULL AS INTEGER ) * + 43 * 83 AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - 69 - - col1 AS col1 FROM tab1 AS cor0
----
-22
-55
-64

query I rowsort
SELECT 28 - - col1 FROM tab0 AS cor0
----
109
29
49

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

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

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

skipif mysql # not compatible
query I rowsort label-824
SELECT 66 / + col0 FROM tab2
----
0
1
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT + - SUM( + col1 ) DIV - 96 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT + - SUM ( + col1 ) / - 96 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 68 BETWEEN NULL AND + col0
----

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

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL COUNT ( + 6 ) AS col2 FROM tab2
----
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-830
SELECT + CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * col2 col0 FROM tab0
----
-2585
-5445
-550

query I rowsort
SELECT DISTINCT - + col2 * + 49 AS col0 FROM tab2 AS cor0
----
-1127
-1960
-2842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-833
SELECT DISTINCT + AVG ( + 90 ) + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT + AVG ( + 90 ) + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT - CAST( - col2 AS SIGNED ) + 23 FROM tab1
----
119
82
91

skipif mysql # not compatible
query I rowsort label-835
SELECT - CAST ( - col2 AS INTEGER ) + 23 FROM tab1
----
119
82
91

query I rowsort
SELECT ALL + col2 + 96 FROM tab1
----
155
164
192

query I rowsort
SELECT ALL + + 89 * 73 + 15 FROM tab1 AS cor0
----
6512
6512
6512

query I rowsort
SELECT ALL - 4 * + col1 AS col0 FROM tab0 AS cor0
----
-324
-4
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 70 col0, + col1 AS col1 FROM tab1 AS cor0
----
4130
5
4760
47
6720
14

query II rowsort
SELECT DISTINCT + col2 * + ( - - ( - + col0 ) ) AS col1, 42 * + + col2 FROM tab2 AS cor0
----
-1058
966
-2560
1680
-4350
2436

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-844
SELECT ALL - - col1 * 77 DIV - 15 AS col2 FROM tab0 cor0
----
-107
-415
-5

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - - col1 * 77 / - 15 AS col2 FROM tab0 cor0
----
-107
-415
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT - 60 - SUM( DISTINCT 23 ) AS col1 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-845
SELECT - 60 - SUM ( DISTINCT 23 ) AS col1 FROM tab0
----
-83

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

query I rowsort
SELECT 26 - + 31 AS col1 FROM tab1
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT DISTINCT COUNT( * ) DIV MIN( DISTINCT + col0 ) * - 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT COUNT ( * ) / MIN ( DISTINCT + col0 ) * - 78 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 12 ) + - col0 + + + col0 col2 FROM tab1 WHERE + col0 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + - ( col1 ) AS col2 FROM tab0
----
-108
-96
-98

query II rowsort
SELECT col1 - + 85 AS col1, 34 + col2 + + 1 + + col2 AS col2 FROM tab0
----
-4
129
-64
55
-84
233

query I rowsort
SELECT col2 * + - col2 + + - 15 - - + ( col1 ) - - col2 FROM tab0
----
-2096
-84
-9716

query I rowsort
SELECT col1 + + - 74 FROM tab2
----
-23
-7
3

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT col2 DIV - 35 FROM tab2 WHERE 2 <= + + col2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-854
SELECT col2 / - 35 FROM tab2 WHERE 2 <= + + col2
----
-1
-1
0

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

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

query I rowsort
SELECT col0 * + col1 + 0 AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + col0 * - + 18 + + - col1 FROM tab2
----
-1229
-1417
-879

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

query I rowsort
SELECT DISTINCT - col1 * + - col2 * col1 + + col0 + ( 95 ) FROM tab1 cor0
----
150398
1655
18962

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT MAX( - col2 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-861
SELECT MAX ( - col2 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-62

query II rowsort
SELECT DISTINCT + col0 - + 50, - col2 AS col2 FROM tab2 AS cor0
----
-4
-23
14
-40
25
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT ALL + col0 DIV col1 * col1 * + + 11 FROM tab2 AS cor0
----
0
0
737

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL + col0 / col1 * col1 * + + 11 FROM tab2 AS cor0
----
0
0
737

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 >= col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT ALL + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
1
3

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

query I rowsort
SELECT col2 * - 49 FROM tab2
----
-1127
-1960
-2842

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

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

query I rowsort
SELECT DISTINCT 51 + - + col0 + + col1 AS col0 FROM tab2
----
43
56
64

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

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

query I rowsort
SELECT DISTINCT - ( ( + - 39 ) ) FROM tab2
----
39

query II rowsort
SELECT ALL - ( ( + col1 ) ), + 22 AS col0 FROM tab1
----
-14
22
-47
22
-5
22

query I rowsort
SELECT - ( + ( col2 ) ) + 24 + + col0 FROM tab2
----
41
47
48

query I rowsort
SELECT DISTINCT col2 * + col1 * + + col2 + - 88 AS col1 FROM tab2 AS cor0
----
123112
225300
26891

query I rowsort
SELECT DISTINCT + col0 * + - col0 + - + 10 + - col0 FROM tab1 AS cor0
----
-2662
-7320
-8382

query I rowsort
SELECT ALL col1 * + col2 FROM tab0 cor0 WHERE NOT + ( col2 ) + + - 31 < + - col2
----
3807
99

query I rowsort
SELECT + col1 * + col1 * col0 + 79 FROM tab1 AS cor0
----
10075
201098
2204

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT + col0 DIV - col2 + - col2 col1 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-882
SELECT + col0 / - col2 + - col2 col1 FROM tab2 AS cor0
----
-25
-41
-59

query I rowsort
SELECT ALL 29 FROM tab0 WHERE NOT - + 85 NOT BETWEEN + col0 AND ( 22 )
----

query I rowsort
SELECT - col2 * - col2 * 8 AS col2 FROM tab1
----
27848
36992
73728

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

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

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

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

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab0 WHERE NOT + col2 BETWEEN NULL AND + - 25
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT ( + col1 ) DIV + - col0 - - 85 AS col1 FROM tab0
----
80
85
85

skipif mysql # not compatible
query I rowsort label-888
SELECT ( + col1 ) / + - col0 - - 85 AS col1 FROM tab0
----
80
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-889
SELECT DISTINCT ( + - 93 ) AS col2, col2 - - 10, - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
9 values hashing to d5cf68e572fd4a369074ec70b604d6c4

skipif mysql # not compatible
query III rowsort label-889
SELECT DISTINCT ( + - 93 ) AS col2, col2 - - 10, - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
9 values hashing to d5cf68e572fd4a369074ec70b604d6c4

query I rowsort
SELECT ALL 17 + - col2 AS col2 FROM tab0
----
-30
-82
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT ALL CAST( NULL AS SIGNED ) * - 20 - + - 44 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL CAST ( NULL AS INTEGER ) * - 20 - + - 44 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-892
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT + 20 NOT BETWEEN - - ( col1 ) / CAST( - 72 AS SIGNED ) AND - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-892
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT + 20 NOT BETWEEN - - ( col1 ) / CAST ( - 72 AS INTEGER ) AND - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + - - 8 AS col2 FROM tab0 cor0
----
-2
-39
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-894
SELECT + 44, - 3 + + - COUNT( DISTINCT 27 ) col0 FROM tab1 AS cor0
----
44
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-894
SELECT + 44, - 3 + + - COUNT ( DISTINCT 27 ) col0 FROM tab1 AS cor0
----
44
-4

query II rowsort
SELECT DISTINCT + - col1 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT DISTINCT + 56 AS col0, - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
56
-3

skipif mysql # not compatible
query II rowsort label-898
SELECT DISTINCT + 56 AS col0, - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
56
-3

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

query I rowsort
SELECT DISTINCT col1 * - 12 AS col2 FROM tab2
----
-612
-804
-924

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-901
SELECT * FROM tab1 WHERE NOT + col1 / - 60 * + col2 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + + ( col1 ) * + col2 >= 96
----

skipif mysql # not compatible
query III rowsort label-901
SELECT * FROM tab1 WHERE NOT + col1 / - 60 * + col2 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + + ( col1 ) * + col2 >= 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT MAX( ALL 55 ) AS col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-902
SELECT MAX ( ALL 55 ) AS col1 FROM tab1 AS cor0
----
55

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

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

query I rowsort
SELECT col0 * + 82 AS col1 FROM tab1 AS cor0
----
4182
6970
7462

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-906
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - CAST( NULL AS SIGNED ) + + col2 * + - CAST( - col2 AS SIGNED ) + - col0 + + 52 BETWEEN ( - + 17 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-906
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - CAST ( NULL AS INTEGER ) + + col2 * + - CAST ( - col2 AS INTEGER ) + - col0 + + 52 BETWEEN ( - + 17 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT ALL ( - col2 ) DIV + 53 + + col2 FROM tab2 cor0
----
23
40
57

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL ( - col2 ) / + 53 + + col2 FROM tab2 cor0
----
23
40
57

query I rowsort
SELECT ALL - col2 * - 31 AS col0 FROM tab1 AS cor0 WHERE 93 IS NULL
----

query I rowsort
SELECT - - 89 AS col1 FROM tab2 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT - MIN( - + ( - + col2 ) ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - MIN ( - + ( - + col2 ) ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT 35 * + col0 FROM tab0
----
3045
3395
525

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-912
SELECT DISTINCT CAST( - COUNT( ALL col0 ) AS DECIMAL ) * - + COUNT( * ) + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT CAST ( - COUNT ( ALL col0 ) AS REAL ) * - + COUNT ( * ) + + + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-913
SELECT DISTINCT - col1 AS col2, CAST( + 35 AS SIGNED ) + - 8 FROM tab0 AS cor0
----
-1
27
-21
27
-81
27

skipif mysql # not compatible
query II rowsort label-913
SELECT DISTINCT - col1 AS col2, CAST ( + 35 AS INTEGER ) + - 8 FROM tab0 AS cor0
----
-1
27
-21
27
-81
27

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

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

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

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

query I rowsort
SELECT ( - 28 ) * col2 FROM tab2
----
-1120
-1624
-644

query I rowsort
SELECT + col0 * ( ( 9 ) * col1 ) FROM tab0
----
10935
16443
873

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT CAST( CAST( col2 AS SIGNED ) AS SIGNED ) + - col1 * - 36 col2 FROM tab1
----
1760
239
600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-919
SELECT CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) + - col1 * - 36 col2 FROM tab1
----
1760
239
600

query I rowsort
SELECT col0 + col2 * - 78 AS col1 FROM tab2 WHERE NOT NULL >= + col2 - + 62
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col2 ) >= ( - col0 * 44 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT ALL 60 DIV 53 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL 60 / 53 AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT BETWEEN 2 + ( + col0 ) / col2 AND + col2
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT + col0 DIV 70 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-925
SELECT + col0 / 70 FROM tab0
----
0
1
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-927
SELECT 51 DIV 25 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-927
SELECT 51 / 25 FROM tab1
----
2
2
2

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 15 * + col0 NOT BETWEEN + 51 * + col1 AND NULL
----
91
47
68

query I rowsort
SELECT + 29 * + col2 AS col0 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT 63 FROM tab1 WHERE NOT NULL <= ( col0 )
----

query I rowsort
SELECT ALL + col2 * + col0 + col2 AS col0 FROM tab0
----
752
880
9702

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

query I rowsort
SELECT DISTINCT 3 + - 88 AS col1 FROM tab2
----
-85

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 36 = ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-938
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> CAST( NULL AS SIGNED ) * + 38 + 76
----

skipif mysql # not compatible
query III rowsort label-938
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> CAST ( NULL AS INTEGER ) * + 38 + 76
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT DISTINCT SUM( DISTINCT + 6 ) FROM tab1 cor0 CROSS JOIN tab0
----
6

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT SUM ( DISTINCT + 6 ) FROM tab1 cor0 CROSS JOIN tab0
----
6

query I rowsort
SELECT - 2 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

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

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT MIN ( DISTINCT + col2 ) / + ( + SUM ( - col1 ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col0 * col2 AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col2 FROM tab2 cor0 WHERE - 15 < ( + 77 )
----
76

query I rowsort
SELECT DISTINCT 85 * col2 FROM tab1 AS cor0
----
5015
5780
8160

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT col1 + - - CAST( + col1 AS SIGNED ) + ( - col0 ) FROM tab1
----
-23
-75
3

skipif mysql # not compatible
query I rowsort label-949
SELECT col1 + - - CAST ( + col1 AS INTEGER ) + ( - col0 ) FROM tab1
----
-23
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT + SUM( + col1 ) + - COUNT( * ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-950
SELECT + SUM ( + col1 ) + - COUNT ( * ) AS col2 FROM tab1
----
63

query I rowsort
SELECT + col1 * - - col2 * - col1 + - 6 FROM tab2
----
-237166
-260368
-59829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-952
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT ( + col0 ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT ( + col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab0 WHERE col0 BETWEEN 67 AND col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT COUNT( * ) + COUNT( * ) * 72 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-954
SELECT COUNT ( * ) + COUNT ( * ) * 72 FROM tab1
----
219

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE ( - col1 ) < 43
----
51
67
77

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

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

skipif mysql # not compatible
query I rowsort label-957
SELECT CAST ( NULL AS INTEGER ) + + - 10 / + COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + - col0 col2 FROM tab1
----
-12
-18
22

query I rowsort
SELECT + col1 FROM tab1 WHERE - 6 * 97 IS NOT NULL
----
14
47
5

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

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

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

query I rowsort
SELECT - 70 AS col1 FROM tab2 AS cor0 WHERE 45 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT ALL MIN( - 61 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL MIN ( - 61 ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT DISTINCT + col0 * 92 AS col2 FROM tab2 AS cor0
----
4232
5888
6900

query III rowsort
SELECT * FROM tab1 WHERE + 86 > ( - 81 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 42 AS col2, 59 AS col2 FROM tab2
----
42
59
42
59
42
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT + COUNT( * ) * 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-969
SELECT + COUNT ( * ) * 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
369

query I rowsort
SELECT DISTINCT + 34 FROM tab1 WHERE NULL BETWEEN NULL AND ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-971
SELECT DISTINCT col1 + CAST( - 86 AS SIGNED ) FROM tab2
----
-19
-35
-9

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT col1 + CAST ( - 86 AS INTEGER ) FROM tab2
----
-19
-35
-9

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

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

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

query I rowsort
SELECT ALL col2 * - ( + ( 73 ) ) - col2 FROM tab0 cor0
----
-3478
-7326
-740

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

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

query I rowsort
SELECT DISTINCT + + col1 * + col0 - + - col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # DIV for integer division: 
query II rowsort label-979
SELECT - col2 AS col0, + col2 DIV 82 AS col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
1

skipif mysql # not compatible
query II rowsort label-979
SELECT - col2 AS col0, + col2 / 82 AS col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL 81 - + ( - SUM( + 23 ) ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL 81 - + ( - SUM ( + 23 ) ) FROM tab2 AS cor0
----
150

query II rowsort
SELECT + - 57 AS col2, - 82 FROM tab0 AS cor0
----
-57
-82
-57
-82
-57
-82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT + 57 * - 62 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
10602

skipif mysql # not compatible
query I rowsort label-983
SELECT + 57 * - 62 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
10602

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

query II rowsort
SELECT col2, 47 AS col0 FROM tab1 AS cor0
----
59
47
68
47
96
47

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT + MAX( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT col2 > + 81 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT col2 > + 81 * 0
----
NULL

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - 40 )
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( - 54 )
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col1 ) BETWEEN ( col1 / + col0 ) AND 75 * - 40
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-997
SELECT + 81 FROM tab0 WHERE NOT NULL BETWEEN - + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - col1 AND ( + 94 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-997
SELECT + 81 FROM tab0 WHERE NOT NULL BETWEEN - + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - col1 AND ( + 94 * + col2 )
----

query I rowsort
SELECT ALL - col1 * col0 FROM tab2 WHERE ( col1 * + col1 ) IS NOT NULL
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 13 AS col2, + 22 col2 FROM tab0
----
13
22

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
32
32
32

query I rowsort
SELECT - - 95 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT - 67 * COUNT( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-1002
SELECT - 67 * COUNT ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + + SUM( - - 3 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1003
SELECT + + SUM ( - - 3 ) AS col2 FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * - 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - COUNT( DISTINCT + - 2 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1005
SELECT - COUNT ( DISTINCT + - 2 ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - - ( + col1 ) AS col2 FROM tab2 cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( - 10 ) col0 FROM tab2
----
-510
-670
-770

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 < - ( + ( + ( + col1 ) ) )
----

query I rowsort
SELECT DISTINCT col2 * - + 99 * - - 27 AS col1 FROM tab1
----
-157707
-181764
-256608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE ( + - 56 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT DISTINCT + 50 + COUNT( * ) AS col2 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT + 50 + COUNT ( * ) AS col2 FROM tab1
----
53

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE ( - + 82 ) IS NULL
----

query I rowsort
SELECT 12 * - col2 + - col1 FROM tab0
----
-1189
-141
-645

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT DISTINCT + ( + ( 57 ) ) * + 22 + + col0 DIV - col2 FROM tab0 AS cor0
----
1246
1254

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT + ( + ( 57 ) ) * + 22 + + col0 / - col2 FROM tab0 AS cor0
----
1246
1254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT + COUNT( * ) + + - CAST( + + 31 AS SIGNED ) FROM tab1 cor0 WHERE NULL IS NULL
----
-28

skipif mysql # not compatible
query I rowsort label-1016
SELECT + COUNT ( * ) + + - CAST ( + + 31 AS INTEGER ) FROM tab1 cor0 WHERE NULL IS NULL
----
-28

query I rowsort
SELECT + col2 + - + col1 - col0 AS col2 FROM tab2 cor0
----
-101
-74
-84

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - 53 IS NULL
----

query II rowsort
SELECT DISTINCT - + col0 + 71, col1 FROM tab2 AS cor0
----
-4
67
25
51
7
77

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

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

query I rowsort
SELECT DISTINCT + 91 + ( - 78 ) AS col0 FROM tab1 cor0
----
13

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 25 >= 66
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1025
SELECT ALL 7 AS col0, 38 DIV - 91 AS col0 FROM tab0
----
7
0
7
0
7
0

skipif mysql # not compatible
query II rowsort label-1025
SELECT ALL 7 AS col0, 38 / - 91 AS col0 FROM tab0
----
7
0
7
0
7
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1026
SELECT ( - - ( + CAST ( NULL AS INTEGER ) ) ) * 34 col2 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT COUNT( * ) * - SUM( + - 28 ) * COUNT( * ) AS col2, - COUNT( * ) + + ( - - MIN( ALL + 28 ) ) FROM tab2
----
756
25

skipif mysql # not compatible
query II rowsort label-1028
SELECT COUNT ( * ) * - SUM ( + - 28 ) * COUNT ( * ) AS col2, - COUNT ( * ) + + ( - - MIN ( ALL + 28 ) ) FROM tab2
----
756
25

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1029
SELECT - col1 / - + ( - - col1 ) col0 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1030
SELECT DISTINCT 63, COUNT( * ) AS col0 FROM tab1 WHERE NOT - - CAST( NULL AS DECIMAL ) = col1 + col2
----
63
0

skipif mysql # not compatible
query II rowsort label-1030
SELECT DISTINCT 63, COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - CAST ( NULL AS REAL ) = col1 + col2
----
63
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT + col0 DIV + 79 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1031
SELECT + col0 / + 79 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1032
SELECT DISTINCT - col1, col2 - + col1 DIV 34 * col2 col0 FROM tab0
----
-1
99
-21
10
-81
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1032
SELECT DISTINCT - col1, col2 - + col1 / 34 * col2 col0 FROM tab0
----
-1
99
-21
10
-81
-47

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 41 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( 33 ) FROM tab2 AS cor0 WHERE NOT 32 + - col1 NOT IN ( 16 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1035
SELECT DISTINCT - 90 DIV - MAX( + 24 ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - 90 / - MAX ( + 24 ) + + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1036
SELECT + 58 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( - CAST( + 31 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1036
SELECT + 58 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( - CAST ( + 31 AS INTEGER ) )
----

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

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

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

query I rowsort
SELECT - 41 + 33 AS col2 FROM tab2 AS cor0
----
-8
-8
-8

query II rowsort
SELECT - + col0 + - col1 AS col1, + col2 + col2 FROM tab1 AS cor0
----
-138
136
-65
192
-90
118

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 40 * 43 IS NOT NULL
----

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

query I rowsort
SELECT - col2 + + 61 + col1 * + 62 + - 25 FROM tab0 AS cor0
----
-1
1328
5011

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT COUNT( * ) * 49 AS col1 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT COUNT ( * ) * 49 AS col1 FROM tab0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1045
SELECT + 46 + + 38 DIV + CAST( + COUNT( * ) AS SIGNED ) - - COUNT( - col0 ) AS col1 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1045
SELECT + 46 + + 38 / + CAST ( + COUNT ( * ) AS INTEGER ) - - COUNT ( - col0 ) AS col1 FROM tab0
----
61

query I rowsort
SELECT + 59 + 59 AS col2 FROM tab2
----
118
118
118

query I rowsort
SELECT ALL + 84 + + col2 - + + col2 * + - col2 * + col0 FROM tab0
----
33266
8794
950880

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + + 25 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1048
SELECT + + 25 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
22

query I rowsort
SELECT + 72 - - col2 AS col2 FROM tab0 AS cor0
----
119
171
82

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= - col0 / col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1051
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) + CAST( + - 13 AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) + CAST ( + - 13 AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 + - 84 AS col0 FROM tab1
----
11

query II rowsort
SELECT DISTINCT - 63 AS col2, + 3 FROM tab1 AS cor0
----
-63
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1054
SELECT ALL col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT col0 + + - 19 + - 81 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL 18 * col2 AS col0 FROM tab1 AS cor0
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1057
SELECT * FROM tab2 AS cor0 WHERE NOT - 14 / - + CAST( NULL AS SIGNED ) + - - col0 NOT BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1057
SELECT * FROM tab2 AS cor0 WHERE NOT - 14 / - + CAST ( NULL AS INTEGER ) + - - col0 NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1058
SELECT + 85, COUNT( * ) AS col1 FROM tab0 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-1058
SELECT + 85, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
85
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT MIN( - + col2 ) * - - COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-1060
SELECT MIN ( - + col2 ) * - - COUNT ( * ) FROM tab0
----
-297

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

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

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

query I rowsort
SELECT ALL col2 * - - col0 * - 6 + - ( + col0 ) FROM tab1
----
-29427
-30175
-37219

query I rowsort
SELECT ALL - col2 + 59 AS col0 FROM tab1
----
-37
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1065
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) > - CAST( 32 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1065
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) > - CAST ( 32 AS INTEGER )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT COUNT( * ) col0, 92 AS col0 FROM tab0 AS cor0
----
3
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1068
SELECT COUNT ( * ) col0, 92 AS col0 FROM tab0 AS cor0
----
3
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT - + 65 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT - + 65 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT ALL + - SUM( DISTINCT - + 15 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL + - SUM ( DISTINCT - + 15 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * 29 / col1 - - col1 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - 82 + col1 FROM tab0 WHERE NOT + 11 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT DISTINCT - 88 + + SUM( ALL col2 ) col1 FROM tab1
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1075
SELECT DISTINCT - 88 + + SUM ( ALL col2 ) col1 FROM tab1
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT DISTINCT col2 - + + col2 DIV col2 * - col2 * + ( - - col1 ) FROM tab0
----
198
220
3854

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT col2 - + + col2 / col2 * - col2 * + ( - - col1 ) FROM tab0
----
198
220
3854

query I rowsort
SELECT + col2 + - ( + col1 ) AS col0 FROM tab1 cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 < ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 25 * + - col0 * 51 < - + 89
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT - 78 * + - COUNT( * ) * + ( COUNT( * ) ) AS col2 FROM tab0
----
702

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT - 78 * + - COUNT ( * ) * + ( COUNT ( * ) ) AS col2 FROM tab0
----
702

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

query I rowsort
SELECT ALL - 2 * 25 FROM tab1 AS cor0
----
-50
-50
-50

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

query I rowsort
SELECT DISTINCT + col2 * ( - - col0 ) + + + col1 + col1 * - - col1 AS col0 FROM tab0 AS cor0
----
1332
7347
9605

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT - COUNT( 10 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT - COUNT ( 10 ) FROM tab1 cor0
----
-3

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

query II rowsort
SELECT 60 AS col0, + col0 * - - 83 AS col2 FROM tab0
----
60
1245
60
7221
60
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL - 49 * COUNT( * ) AS col0 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL - 49 * COUNT ( * ) AS col0 FROM tab1
----
-147

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE col0 * + + col0 + 15 IS NOT NULL
----
51
67
77

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

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

query II rowsort
SELECT ALL col2 * + col0, col0 FROM tab1
----
4896
51
5015
85
6188
91

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

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL + 22 / + - COUNT ( * ) FROM tab0
----
-7

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

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

query II rowsort
SELECT ALL - col0 AS col2, 88 FROM tab1 AS cor0
----
-51
88
-85
88
-91
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND ( 0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42, + ( col2 ) * + col2 col0 FROM tab2 AS cor0
----
42
1600
42
3364
42
529

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1102
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE 94 * - col2 * CAST( NULL AS SIGNED ) - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE 94 * - col2 * CAST ( NULL AS INTEGER ) - + col1 IS NOT NULL
----

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

query I rowsort
SELECT col0 + + + col0 AS col2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL COUNT( * ) + - 71 * 80 + COUNT( * ) FROM tab2 AS cor0
----
-5674

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL COUNT ( * ) + - 71 * 80 + COUNT ( * ) FROM tab2 AS cor0
----
-5674

query I rowsort
SELECT - - ( + col1 ) + 68 AS col2 FROM tab0 AS cor0
----
149
69
89

query I rowsort
SELECT + - col2 * 26 + - col1 AS col0 FROM tab0 AS cor0
----
-1303
-2575
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - SUM( DISTINCT - 9 ) AS col0 FROM tab0 AS cor0 WHERE + 3 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT - SUM ( DISTINCT - 9 ) AS col0 FROM tab0 AS cor0 WHERE + 3 = NULL
----
NULL

query I rowsort
SELECT 30 * - - ( col0 ) FROM tab0
----
2610
2910
450

query I rowsort
SELECT col2 * + - 19 AS col0 FROM tab0
----
-1881
-190
-893

query I rowsort
SELECT 35 - 80 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT + 51 - COUNT( DISTINCT + 44 ) col1 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1112
SELECT + 51 - COUNT ( DISTINCT + 44 ) col1 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ( - MIN( - + col2 ) ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1113
SELECT ( - MIN ( - + col2 ) ) AS col0 FROM tab2
----
58

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL 1 * COUNT( * ) * 10 * + - COUNT( * ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL 1 * COUNT ( * ) * 10 * + - COUNT ( * ) FROM tab2 AS cor0
----
-90

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

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

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

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

query I rowsort
SELECT ALL + 14 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 73 AND + col0 * 6 + + col2 / + col2 - col0
----

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

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

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

query II rowsort
SELECT ALL ( - col2 ) * - col1, col1 FROM tab0
----
210
21
3807
81
99
1

query I rowsort
SELECT col2 * col0 * - 3 + + + col1 + + col2 AS col0 FROM tab1 WHERE NOT - + col0 >= - col0
----

query I rowsort
SELECT ALL + 94 * col0 AS col1 FROM tab0
----
1410
8178
9118

query I rowsort
SELECT ALL + col0 * - col0 + + + col2 + 39 FROM tab1
----
-2466
-7127
-8174

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

query I rowsort
SELECT DISTINCT - col1 * - - 89 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND - + 0
----

query I rowsort
SELECT 2 * col0 + + - col1 + col0 AS col2 FROM tab1 AS cor0
----
139
226
250

query I rowsort
SELECT DISTINCT + col2 * + ( col1 ) FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT + COUNT( * ) - - - SUM( + 6 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-45

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + COUNT ( * ) - - - SUM ( + 6 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-45

query I rowsort
SELECT - - col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - - col0 + + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 + - + 61 FROM tab0 AS cor0
----
-46
26
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 - + 61 + col0 + + 95 + col2 * col1 col2, - col2 - + 82 FROM tab2 cor0
----
1299
-105
3242
-122
4070
-140

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

query III rowsort
SELECT * FROM tab1 WHERE - col2 + + col0 > - 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - - 50 col2, - col1 col1 FROM tab2
----
108
-67
73
-51
90
-77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col1 AS col0, + col2 col1 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT DISTINCT + 79 + + - col1 FROM tab0
----
-2
58
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1146
SELECT DISTINCT - 10 * - CAST( col1 AS SIGNED ) + col1 * - + col0 + + col2 + + col2 AS col2 FROM tab0
----
-1597
-311
111

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT - 10 * - CAST ( col1 AS INTEGER ) + col1 * - + col0 + + col2 + + col2 AS col2 FROM tab0
----
-1597
-311
111

query I rowsort
SELECT - 67 AS col0 FROM tab1 cor0
----
-67
-67
-67

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= 17
----

query I rowsort
SELECT ALL ( + 26 ) FROM tab2 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL ( + - COUNT( * ) ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL OR NOT - + 54 >= - col0
----
-3

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL ( + - COUNT ( * ) ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL OR NOT - + 54 >= - col0
----
-3

query I rowsort
SELECT 54 * 44 * - col2 AS col0 FROM tab2
----
-137808
-54648
-95040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT - col1 * + CAST( - - 6 AS SIGNED ) AS col1 FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) * + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1152
SELECT - col1 * + CAST ( - - 6 AS INTEGER ) AS col1 FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) * + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 36 - 87 - - 29 + - 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1154
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( - + col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-1154
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - + col2 AS INTEGER ) = NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT MAX( - + col2 ) + + 99 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-1158
SELECT MAX ( - + col2 ) + + 99 FROM tab1
----
40

query I rowsort
SELECT DISTINCT + col0 + - 53 + - col1 AS col0 FROM tab1
----
-16
-9
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1160
SELECT - 87 + - CAST( COUNT( DISTINCT 70 ) AS SIGNED ) AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-1160
SELECT - 87 + - CAST ( COUNT ( DISTINCT 70 ) AS INTEGER ) AS col1 FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT + MAX( ALL col1 ) AS col2 FROM tab1 WHERE ( ( NOT ( ( - col0 >= + col1 - + 86 ) ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + MAX ( ALL col1 ) AS col2 FROM tab1 WHERE ( ( NOT ( ( - col0 >= + col1 - + 86 ) ) ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT - SUM( ALL col0 ) + + + 0 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-1162
SELECT - SUM ( ALL col0 ) + + + 0 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-185

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

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

query I rowsort
SELECT DISTINCT - + col1 * - ( + col2 ) AS col0 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT - ( 75 ) * - col1 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

query I rowsort
SELECT DISTINCT - 75 * 75 FROM tab1 AS cor0
----
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT COUNT( * ) - + 71 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-1168
SELECT COUNT ( * ) - + 71 FROM tab2
----
-68

query I rowsort
SELECT ALL + 50 + - col0 AS col1 FROM tab1
----
-1
-35
-41

query I rowsort
SELECT ALL - 23 + + + col1 FROM tab0
----
-2
-22
58

query I rowsort
SELECT ALL - 84 - 73 FROM tab1 AS cor0
----
-157
-157
-157

query II rowsort
SELECT DISTINCT - 35 + + + col1 + + + col1 AS col2, col1 FROM tab2 AS cor0
----
119
77
67
51
99
67

query I rowsort
SELECT - + col1 + - col1 + - + 19 AS col0 FROM tab2 AS cor0
----
-121
-153
-173

query I rowsort
SELECT + 17 + col0 FROM tab0 AS cor0
----
104
114
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT - 11 - + + SUM( ALL - 94 ) AS col1 FROM tab0 AS cor0
----
271

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - 11 - + + SUM ( ALL - 94 ) AS col1 FROM tab0 AS cor0
----
271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 27 * - - col2 * col0 AS col0, col1 col2 FROM tab2 AS cor0
----
-117450
67
-28566
51
-69120
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT + 25 * - - MAX( DISTINCT - - 46 ) FROM tab2
----
1150

skipif mysql # not compatible
query I rowsort label-1178
SELECT + 25 * - - MAX ( DISTINCT - - 46 ) FROM tab2
----
1150

query II rowsort
SELECT ALL 32, + col2 AS col1 FROM tab1
----
32
59
32
68
32
96

query I rowsort
SELECT + 99 * col2 FROM tab0
----
4653
9801
990

onlyif mysql # DIV for integer division: 
query II rowsort label-1181
SELECT DISTINCT col2 AS col2, col2 DIV - col2 FROM tab0 cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-1181
SELECT DISTINCT col2 AS col2, col2 / - col2 FROM tab0 cor0
----
10
-1
47
-1
99
-1

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT - MAX ( ALL - - 9 ) FROM tab0 AS cor0
----
-9

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT MAX ( + col2 ) FROM tab2 cor0
----
58

query II rowsort
SELECT + 84 AS col0, 50 AS col1 FROM tab1 AS cor0
----
84
50
84
50
84
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT ALL 27 col0, + 2 * + COUNT( * ) + + - 58 AS col0 FROM tab1 AS cor0
----
27
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1185
SELECT ALL 27 col0, + 2 * + COUNT ( * ) + + - 58 AS col0 FROM tab1 AS cor0
----
27
-52

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT + 25 DIV - COUNT( * ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1188
SELECT + 25 / - COUNT ( * ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT col2 * col0 * + col0 + + col0 AS col2 FROM tab0 cor0
----
10590
75777
931588

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

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

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT - - SUM ( - ( - ( - col2 ) ) ) FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT SUM( ALL 86 ) * - COUNT( * ) FROM tab0 AS cor0
----
-774

skipif mysql # not compatible
query I rowsort label-1192
SELECT SUM ( ALL 86 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-774

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL + 68 * - - COUNT( * ) * + + ( - 20 ) FROM tab0
----
-4080

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL + 68 * - - COUNT ( * ) * + + ( - 20 ) FROM tab0
----
-4080

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1195
SELECT + + col1 DIV + CAST( 76 AS SIGNED ) FROM tab0 WHERE + - col2 <> col0 DIV - col1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1195
SELECT + + col1 / + CAST ( 76 AS INTEGER ) FROM tab0 WHERE + - col2 <> col0 / - col1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT - COUNT( DISTINCT 70 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1196
SELECT - COUNT ( DISTINCT 70 ) AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT DISTINCT MAX( + col0 ) + - SUM( - - col1 ) AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT MAX ( + col0 ) + - SUM ( - - col1 ) AS col2 FROM tab1
----
25

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

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - ( + SUM ( ALL col0 ) ) FROM tab2
----
-185

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

query II rowsort
SELECT col1 * + 54 + - col2, + col2 * - ( - col0 ) AS col2 FROM tab1
----
211
5015
2470
6188
660
4896

query I rowsort
SELECT col0 + - col2 + - 3 FROM tab2 AS cor0
----
14
20
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT MIN( + 39 ) * + + COUNT( * ) * - 26 + - 85 AS col2 FROM tab1 AS cor0
----
-3127

skipif mysql # not compatible
query I rowsort label-1202
SELECT MIN ( + 39 ) * + + COUNT ( * ) * - 26 + - 85 AS col2 FROM tab1 AS cor0
----
-3127

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

query I rowsort
SELECT ALL - + 46 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

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

query I rowsort
SELECT ALL - 57 + - 69 FROM tab0 AS cor0
----
-126
-126
-126

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1208
SELECT ( ( COUNT( 31 ) ) ) col1, + COUNT( * ) AS col0 FROM tab2 cor0
----
3
3

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

query I rowsort
SELECT ALL - 54 - + + col0 FROM tab1 AS cor0
----
-105
-139
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * - col2 col2 FROM tab2
----
1680
2436
966

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

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

query I rowsort
SELECT - col2 * 47 AS col1 FROM tab0
----
-2209
-4653
-470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE NOT 76 IS NULL
----
51
67
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT + 22 * + COUNT( * ) * - + ( + 35 ) FROM tab2
----
-2310

skipif mysql # not compatible
query I rowsort label-1215
SELECT + 22 * + COUNT ( * ) * - + ( + 35 ) FROM tab2
----
-2310

query I rowsort
SELECT ALL + 83 * 67 AS col0 FROM tab2
----
5561
5561
5561

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT DISTINCT + + col0 DIV + col2 col0 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1218
SELECT DISTINCT + + col0 / + col2 col0 FROM tab0 AS cor0
----
0
8

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

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

query I rowsort
SELECT + col1 * + + ( - - 80 ) AS col0 FROM tab2
----
4080
5360
6160

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT DISTINCT - - 68 DIV + + col2 AS col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT - - 68 / + + col2 AS col1 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT - + COUNT( * ) * - 13 AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1224
SELECT - + COUNT ( * ) * - 13 AS col0 FROM tab2 AS cor0
----
39

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

query I rowsort
SELECT col0 * - - col2 * - col1 + - - 96 FROM tab0 cor0
----
-18174
-57009
-9507

query I rowsort
SELECT + col2 + + - 58 FROM tab2 AS cor0
----
-18
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT COUNT( * ) + + MIN( ALL + + ( - 69 ) ) * + 85 AS col2 FROM tab2
----
-5862

skipif mysql # not compatible
query I rowsort label-1228
SELECT COUNT ( * ) + + MIN ( ALL + + ( - 69 ) ) * + 85 AS col2 FROM tab2
----
-5862

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT col2 + - ( - col0 ) - col1 * - - ( - col1 ) DIV - - col1 FROM tab2
----
120
181
200

skipif mysql # not compatible
query I rowsort label-1229
SELECT col2 + - ( - col0 ) - col1 * - - ( - col1 ) / - - col1 FROM tab2
----
120
181
200

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1230
SELECT - COUNT ( * ) * 6 + + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT + 24 * + 70 + - COUNT( + col1 ) AS col2 FROM tab2
----
1677

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT + 24 * + 70 + - COUNT ( + col1 ) AS col2 FROM tab2
----
1677

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

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

query II rowsort
SELECT DISTINCT 47 - + col0, col2 FROM tab0 AS cor0
----
-40
10
-50
99
32
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - + col0 col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT + - MIN( + col0 ) - + COUNT( * ) FROM tab1 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1235
SELECT + - MIN ( + col0 ) - + COUNT ( * ) FROM tab1 cor0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT ALL + + COUNT( * ) * + 99 DIV - - 56 + + 39 AS col0 FROM tab0 WHERE NOT NULL > + col1 + + col2 + - - col2
----
39

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL + + COUNT ( * ) * + 99 / - - 56 + + 39 AS col0 FROM tab0 WHERE NOT NULL > + col1 + + col2 + - - col2
----
39

query III rowsort
SELECT * FROM tab0 WHERE ( ( col1 ) + + col1 + - col0 + 29 + 62 - + + col0 + 7 * + col2 * + + 18 * + 85 = - - 75 * - col0 + 85 )
----

query I rowsort
SELECT 24 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0, - col2 - - col2, + + col2 + - + col1, - 90 + + col1 )
----

query I rowsort
SELECT ALL col0 + - col2 + + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-4941
-4989
-6165

query I rowsort
SELECT + 97 + - 52 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT col1 * col1 + + col2 + + col2 FROM tab2 cor0
----
2647
4605
6009

query II rowsort
SELECT - 33 AS col1, - 58 * + col0 AS col0 FROM tab0 AS cor0
----
-33
-5046
-33
-5626
-33
-870

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1245
SELECT ALL - + CAST( NULL AS SIGNED ) * + SUM( + + CAST( NULL AS DECIMAL ) ), - CAST( NULL AS SIGNED ) / + AVG ( - col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1245
SELECT ALL - + CAST ( NULL AS INTEGER ) * + SUM ( + + CAST ( NULL AS REAL ) ), - CAST ( NULL AS INTEGER ) / + AVG ( - col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1246
SELECT + 53 AS col2, - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
53
0
53
0
53
0

skipif mysql # not compatible
query II rowsort label-1246
SELECT + 53 AS col2, - col1 / col2 AS col2 FROM tab1 AS cor0
----
53
0
53
0
53
0

query II rowsort
SELECT + col2 AS col2, col0 + - 36 AS col0 FROM tab0 AS cor0
----
10
51
47
-21
99
61

query I rowsort
SELECT + ( + col0 ) * + col1 * + 65 + - + 39 FROM tab2 cor0
----
152451
320281
326586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * - col0 col0 FROM tab2
----
102400
24334
252300

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

query I rowsort
SELECT col1 * - 66 AS col1 FROM tab2
----
-3366
-4422
-5082

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col0 <> + col2 * - 89 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1253
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST( + col0 AS SIGNED ) ) > + + 96
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-1253
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( + col0 AS INTEGER ) ) > + + 96
----
15
81
47
87
21
10

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1255
SELECT ALL 48 DIV CAST( + col2 AS SIGNED ) * CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-40
-47
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL 48 / CAST ( + col2 AS INTEGER ) * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-40
-47
0

query I rowsort
SELECT - - 58 AS col1 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT ALL col2 * - 59 + - + 70 * col1 * col0 * + col2 AS col0 FROM tab1 AS cor0
----
-1758731
-20362532
-4803744

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

query I rowsort
SELECT DISTINCT 59 * + 11 AS col0 FROM tab1
----
649

query I rowsort
SELECT DISTINCT - col0 + - + ( + - col0 ) - + 71 + - col2 * col2 * col1 * - col2 FROM tab1 AS cor0
----
1026824
12386233
14778233

query I rowsort
SELECT - 74 * + 97 AS col1 FROM tab0 AS cor0
----
-7178
-7178
-7178

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

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

query I rowsort
SELECT - - 81 * - + col2 FROM tab0 WHERE - ( col1 ) + 67 <> + - col0 * col1 + + - col1
----
-3807
-8019
-810

query I rowsort
SELECT - 88 FROM tab0 WHERE ( NULL IS NULL )
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT ALL + col0 + + - ( - + 33 ) DIV 72 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL + col0 + + - ( - + 33 ) / 72 AS col0 FROM tab0
----
15
87
97

query II rowsort
SELECT col0 + - + col2 AS col0, col2 AS col0 FROM tab1
----
-45
96
23
68
26
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1267
SELECT - col1 * + 0 DIV + col1 + + + 67 AS col2 FROM tab1
----
67
67
67

skipif mysql # not compatible
query I rowsort label-1267
SELECT - col1 * + 0 / + col1 + + + 67 AS col2 FROM tab1
----
67
67
67

query I rowsort
SELECT DISTINCT + ( + col1 ) + + + col2 AS col1 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 45 col0 FROM tab2
----
-13
22
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT DISTINCT - ( ( - COUNT( * ) ) ) * + 16 - COUNT( * ) + + COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - ( ( - COUNT ( * ) ) ) * + 16 - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT DISTINCT SUM( ALL + ( - col1 ) ) * + SUM( + + col2 ) + 96 FROM tab2
----
-23499

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT SUM ( ALL + ( - col1 ) ) * + SUM ( + + col2 ) + 96 FROM tab2
----
-23499

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

query I rowsort
SELECT + 99 * col0 + col2 * col2 + - + col2 FROM tab1 AS cor0
----
11837
13565
14169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT - col1 * 67 + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
-1320
-5412
30

skipif mysql # not compatible
query I rowsort label-1274
SELECT - col1 * 67 + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
-1320
-5412
30

query I rowsort
SELECT - + 6 * - col2 + + col0 * + - col0 AS col2 FROM tab0 AS cor0 WHERE - col1 - 14 >= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1276
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + - col2 col2 FROM tab2
----
NULL
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT + - col1 DIV + 63 * - + 95 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1279
SELECT + - col1 / + 63 * - + 95 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab1 cor0
----
87

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT 42 * - 8 * - CAST( + col2 AS SIGNED ) FROM tab0
----
15792
33264
3360

skipif mysql # not compatible
query I rowsort label-1283
SELECT 42 * - 8 * - CAST ( + col2 AS INTEGER ) FROM tab0
----
15792
33264
3360

query I rowsort
SELECT ALL 50 * + col1 AS col2 FROM tab0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT - SUM( DISTINCT - 59 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT - SUM ( DISTINCT - 59 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 * + ( - 4 ) * + - col1 * + col0 FROM tab0
----
228420
38412
73080

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

query I rowsort
SELECT + col1 + + + col2 + - 33 * col0 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-2753
-3004
-352

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

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

query II rowsort
SELECT - 81 * - + col0, col2 + + + 28 AS col0 FROM tab0
----
1215
75
7047
38
7857
127

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

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

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

query I rowsort
SELECT + 43 + 58 * - col2 FROM tab1 AS cor0
----
-3379
-3901
-5525

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

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

query I rowsort
SELECT ALL - col1 * + 51 FROM tab2 AS cor0
----
-2601
-3417
-3927

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1298
SELECT DISTINCT + 31 * + + 22 AS col1, col2 + - col1 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT ( - 33 - + ( - - 83 ) + + + col2 - + - 23 - - 71 + col0 + - 60 + + - col1 + - col1 * col0 + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1298
SELECT DISTINCT + 31 * + + 22 AS col1, col2 + - col1 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT ( - 33 - + ( - - 83 ) + + + col2 - + - 23 - - 71 + col0 + - 60 + + - col1 + - col1 * col0 + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 26 ) * 37 AS col1 FROM tab2 AS cor0
----
-962
-962
-962

onlyif mysql # DIV for integer division: 
query II rowsort label-1300
SELECT ALL - 90 DIV + col2 + + col2 + + + col0, + col1 AS col2 FROM tab1 AS cor0
----
143
5
147
14
158
47

skipif mysql # not compatible
query II rowsort label-1300
SELECT ALL - 90 / + col2 + + col2 + + + col0, + col1 AS col2 FROM tab1 AS cor0
----
143
5
147
14
158
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - 27 - - col0
----

query I rowsort
SELECT DISTINCT 87 * + ( - 7 ) FROM tab1
----
-609

query I rowsort
SELECT DISTINCT col1 + - - 43 AS col0 FROM tab0
----
124
44
64

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

query I rowsort
SELECT col0 + + 74 FROM tab0 WHERE - ( 22 ) < + col1
----
161
171
89

query I rowsort
SELECT ALL 41 + - col1 FROM tab2
----
-10
-26
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT ALL 68 + + - col2 DIV col2 + - - 92 + + - col0 AS col2 FROM tab1
----
108
68
74

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL 68 + + - col2 / col2 + - - 92 + + - col0 AS col2 FROM tab1
----
108
68
74

query I rowsort
SELECT ALL col2 * - - 38 + ( - col0 ) FROM tab2
----
1456
2129
828

query I rowsort
SELECT ALL col1 + + + col1 + + 82 FROM tab0
----
124
244
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1311
SELECT ALL CAST( NULL AS SIGNED ) - - MAX( DISTINCT + - 53 ) AS col1, - 62 FROM tab2 AS cor0
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-1311
SELECT ALL CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT + - 53 ) AS col1, - 62 FROM tab2 AS cor0
----
NULL
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 * + col2 col0 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT - col2 - + - col0 AS col2 FROM tab0 cor0
----
-2
-32
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1316
SELECT col0 DIV + ( 43 ) FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1316
SELECT col0 / + ( 43 ) FROM tab1 AS cor0
----
1
1
2

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT + - COUNT( ALL ( + 84 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1318
SELECT + - COUNT ( ALL ( + 84 ) ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col1 < + col1
----

query II rowsort
SELECT DISTINCT - 93 AS col2, 17 AS col1 FROM tab2 AS cor0
----
-93
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 68
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - col1 * 1 + - + col2 BETWEEN - col1 * - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1323
SELECT DISTINCT 78 + - - col0 col1, col1 - - col0 * - CAST( NULL AS SIGNED ) + + + 77 AS col1 FROM tab0
----
165
NULL
175
NULL
93
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1323
SELECT DISTINCT 78 + - - col0 col1, col1 - - col0 * - CAST ( NULL AS INTEGER ) + + + 77 AS col1 FROM tab0
----
165
NULL
175
NULL
93
NULL

query I rowsort
SELECT ( - col0 ) * + col2 * + col0 FROM tab0 cor0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query II rowsort label-1325
SELECT + col0 DIV + + 21 AS col1, + col2 * + - col2 * - 82 * + 66 FROM tab2 AS cor0
----
2
2862948
3
18205968
3
8659200

skipif mysql # not compatible
query II rowsort label-1325
SELECT + col0 / + + 21 AS col1, + col2 * + - col2 * - 82 * + 66 FROM tab2 AS cor0
----
2
2862948
3
18205968
3
8659200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1326
SELECT COUNT( * ) * CAST( NULL AS SIGNED ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1326
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 - + + 89 * + + 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL + MIN( ALL + col0 ) * - 72 AS col1 FROM tab2 AS cor0
----
-3312

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + MIN ( ALL + col0 ) * - 72 AS col1 FROM tab2 AS cor0
----
-3312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1329
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT ALL + - col1 + + + col0 + - + 31 AS col0 FROM tab0 AS cor0
----
-97
35
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT - col0 * 25 DIV + - 65 AS col1 FROM tab2 AS cor0
----
17
24
28

skipif mysql # not compatible
query I rowsort label-1331
SELECT - col0 * 25 / + - 65 AS col1 FROM tab2 AS cor0
----
17
24
28

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT - 73 * - ( - - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - 73 * - ( - - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
219

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

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

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

query I rowsort
SELECT DISTINCT - 4 * 84 FROM tab0 cor0
----
-336

query I rowsort
SELECT ( + col2 ) + + 31 FROM tab1 WHERE + + 78 * - col0 IS NOT NULL
----
127
90
99

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

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

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

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

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

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col2 * - col1 * - ( - 48 ) <= NULL
----

query I rowsort
SELECT DISTINCT - col0 * - ( - - col0 ) FROM tab1 AS cor0
----
2601
7225
8281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT - - COUNT( ALL 30 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT - - COUNT ( ALL 30 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1350
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + 14 ) + + CAST( NULL AS SIGNED ) + - col0 NOT IN ( - + col2 )
----

skipif mysql # not compatible
query III rowsort label-1350
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + 14 ) + + CAST ( NULL AS INTEGER ) + - col0 NOT IN ( - + col2 )
----

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

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

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

query II rowsort
SELECT 80 * + col1, col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1680
10
6480
47
80
99

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

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

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, 1 AS col2 FROM tab0
----
10
1
47
1
99
1

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

query I rowsort
SELECT - col1 * col0 + - + col0 * ( col1 ) * - 49 * + + col2 FROM tab1
----
1228250
14246687
3357942

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 * - col1 FROM tab1
----
51
1344
85
295
91
3196

query III rowsort
SELECT * FROM tab2 WHERE NOT 31 / - 68 > col2 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT + 5 AS col2, col1 FROM tab2 AS cor0
----
5
51
5
67
5
77

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

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

query I rowsort
SELECT ALL 37 + - - col1 FROM tab2 AS cor0
----
104
114
88

query I rowsort
SELECT ALL ( + 26 ) + + 42 FROM tab0
----
68
68
68

query I rowsort
SELECT ALL 90 + + 49 * + 10 * - col0 * 64 AS col0 FROM tab1
----
-1599270
-2665510
-2853670

query II rowsort
SELECT ALL col2 + - col1, col1 FROM tab1 AS cor0
----
21
47
54
5
82
14

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1370
SELECT - 21 + 64, ( - + CAST( + + ( ( - 94 ) ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
43
94
43
94
43
94

skipif mysql # not compatible
query II rowsort label-1370
SELECT - 21 + 64, ( - + CAST ( + + ( ( - 94 ) ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
43
94
43
94
43
94

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT DISTINCT 75 DIV + 59 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT 75 / + 59 FROM tab0
----
1

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

query II rowsort
SELECT - 54, + 35 AS col0 FROM tab0
----
-54
35
-54
35
-54
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1376
SELECT ALL - col2 * - - ( - col0 ) + - 53 AS col2, + col2 + - + CAST( NULL AS SIGNED ) * - 1 + 47 FROM tab1
----
4843
NULL
4962
NULL
6135
NULL

skipif mysql # not compatible
query II rowsort label-1376
SELECT ALL - col2 * - - ( - col0 ) + - 53 AS col2, + col2 + - + CAST ( NULL AS INTEGER ) * - 1 + 47 FROM tab1
----
4843
NULL
4962
NULL
6135
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL MIN( - 22 ) FROM tab1, tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL MIN ( - 22 ) FROM tab1, tab1 AS cor0
----
-22

query I rowsort
SELECT - 48 - 25 + - 40 FROM tab1
----
-113
-113
-113

query I rowsort
SELECT + 15 * + col0 FROM tab2
----
1125
690
960

query I rowsort
SELECT DISTINCT - - 29 * + col2 AS col2 FROM tab2 AS cor0
----
1160
1682
667

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT ALL - 77 DIV col2 + - col2 AS col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - 77 / col2 + - col2 AS col2 FROM tab1 AS cor0
----
-60
-69
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT 33 * SUM( ALL - 76 ) FROM tab0 AS cor0
----
-7524

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT 33 * SUM ( ALL - 76 ) FROM tab0 AS cor0
----
-7524

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

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

query I rowsort
SELECT 71 FROM tab2 WHERE NOT ( - col1 + - col2 ) IS NULL
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab1 WHERE NOT - col0 * + col0 NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab1 WHERE NOT - col0 * + col0 NOT IN ( col0 )
----

query I rowsort
SELECT ALL - col2 * 8 - 85 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT ALL - CAST( 20 AS SIGNED ) col0 FROM tab2
----
-20
-20
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1388
SELECT ALL - CAST ( 20 AS INTEGER ) col0 FROM tab2
----
-20
-20
-20

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

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

query I rowsort
SELECT ALL 23 - + col1 AS col0 FROM tab1
----
-24
18
9

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + 90 )
----

query I rowsort
SELECT col2 * - col1 + col2 AS col0 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT ALL - COUNT( * ) + COUNT( + 43 ) col2 FROM tab1
----
0

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

query III rowsort
SELECT * FROM tab2 WHERE - col0 / - col0 <= 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE col2 + col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - col1 + + 84 FROM tab0
----
3
63
83

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

query I rowsort
SELECT ALL - col1 + 2 * - col0 FROM tab0
----
-111
-195
-195

query I rowsort
SELECT + 26 + 37 AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT - col2 + 38 FROM tab1
----
-21
-30
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT MAX( ALL - 97 ) FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-1403
SELECT MAX ( ALL - 97 ) FROM tab1
----
-97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL 62 * + COUNT( * ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL 62 * + COUNT ( * ) FROM tab0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 30 col2 FROM tab2
----
1200
1740
690

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT MAX( DISTINCT 20 ) AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT MAX ( DISTINCT 20 ) AS col1 FROM tab1
----
20

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

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( ( 21 ) )
----
57

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

query I rowsort
SELECT ALL ( 12 ) + - col0 * 48 AS col1 FROM tab0 AS cor0
----
-4164
-4644
-708

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

query I rowsort
SELECT ALL + 6 * col2 + col2 FROM tab1
----
413
476
672

query I rowsort
SELECT DISTINCT - col1 + - 43 FROM tab1
----
-48
-57
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT ALL col1 DIV col0 + - 82 FROM tab0
----
-77
-82
-82

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL col1 / col0 + - 82 FROM tab0
----
-77
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ( MAX( ALL col2 ) ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1418
SELECT ( MAX ( ALL col2 ) ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT ALL - 39 DIV COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 7 * + col1 IS NOT NULL
----
-13

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL - 39 / COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 7 * + col1 IS NOT NULL
----
-13

query I rowsort
SELECT - ( 14 ) - col1 AS col1 FROM tab0 AS cor0
----
-15
-35
-95

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

query I rowsort
SELECT ALL col1 * + col1 + + ( col1 ) FROM tab1 AS cor0
----
210
2256
30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - col0 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT ALL - + col1 - - ( 7 ) DIV - col2 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - + col1 - - ( 7 ) / - col2 FROM tab2 cor0
----
-51
-67
-77

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

query I rowsort
SELECT + 14 * + col0 - col0 FROM tab1 AS cor0
----
1105
1183
663

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-2

query I rowsort
SELECT - 58 + + 51 AS col1 FROM tab1
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT MAX( - + col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT MAX ( - + col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT ALL - col2 + - + 19 AS col1 FROM tab0
----
-118
-29
-66

query I rowsort
SELECT col2 * col2 + - col0 AS col1 FROM tab0
----
13
2194
9704

query I rowsort
SELECT ALL 93 FROM tab1 WHERE NOT + 28 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT col2 * 49 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1434
SELECT CAST( - 50 AS SIGNED ) * - COUNT( * ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-1434
SELECT CAST ( - 50 AS INTEGER ) * - COUNT ( * ) FROM tab1
----
150

query I rowsort
SELECT DISTINCT col2 * + + 3 * + col0 FROM tab2
----
13050
3174
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT 81 * + - COUNT( * ) AS col2 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-1436
SELECT 81 * + - COUNT ( * ) AS col2 FROM tab2
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL COUNT( + col2 ) * MIN( + col0 * - 5 + - col2 * + col2 ) FROM tab1
----
-28413

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL COUNT ( + col2 ) * MIN ( + col0 * - 5 + - col2 * + col2 ) FROM tab1
----
-28413

query I rowsort
SELECT ALL - 4 + col0 * + 47 FROM tab1 WHERE NOT 27 IS NOT NULL
----

query I rowsort
SELECT ( - 6 ) AS col2 FROM tab0
----
-6
-6
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1441
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( - 47 AS SIGNED ) / - 25 ) NOT IN ( col1 + 47 / + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1441
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( - 47 AS INTEGER ) / - 25 ) NOT IN ( col1 + 47 / + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 10 AS col1 FROM tab0 cor0
----
-10

query I rowsort
SELECT 27 * - ( - 85 ) FROM tab1
----
2295
2295
2295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT DISTINCT - col2 FROM tab0 WHERE + 0 NOT BETWEEN CAST( 51 AS SIGNED ) AND NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT - col2 FROM tab0 WHERE + 0 NOT BETWEEN CAST ( 51 AS INTEGER ) AND NULL
----
-10
-47
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT ALL 71 DIV col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL 71 / col0 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 38 = + col0 / col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * 42 + + col0 NOT IN ( + 79 * col1 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT + - SUM( - col2 ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1451
SELECT + - SUM ( - col2 ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
220

query I rowsort
SELECT + 61 + + col0 AS col1 FROM tab0 AS cor0
----
148
158
76

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

skipif mysql # not compatible
query I rowsort label-1453
SELECT MIN ( ALL + col2 ) + - MIN ( + col2 ) FROM tab1
----
0

query II rowsort
SELECT ALL + col1 * + col2 AS col0, - col0 FROM tab0
----
210
-87
3807
-15
99
-97

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

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

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE + + 91 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT COUNT( * ) + + SUM( + col1 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1457
SELECT COUNT ( * ) + + SUM ( + col1 ) FROM tab1
----
69

query I rowsort
SELECT 95 + + 34 AS col1 FROM tab0
----
129
129
129

query I rowsort
SELECT ALL col1 * + 64 * col1 + + 4 FROM tab2
----
166468
287300
379460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * - 7 col0 FROM tab2 WHERE - + col0 IS NOT NULL
----
-334
-411
-499

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 45 )
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL 21 + + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( - col0 + + col1 ) > - 80 - col0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1466
SELECT ALL 21 + + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( - col0 + + col1 ) > - 80 - col0
----
21

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

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

query I rowsort
SELECT - col2 - - - 6 + - col2 + + 9 FROM tab2
----
-113
-43
-77

query I rowsort
SELECT col1 - ( + 69 ) + 28 * - + col2 FROM tab0
----
-1304
-2840
-328

query I rowsort
SELECT ALL - col0 + - ( col1 ) AS col0 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT DISTINCT + + 67 + + COUNT( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT + + 67 + + COUNT ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT + COUNT( * ) - + SUM( ALL col0 ) * - COUNT( * ) * COUNT( * ) * MIN( DISTINCT + 4 ) AS col2 FROM tab2 AS cor0
----
6663

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + COUNT ( * ) - + SUM ( ALL col0 ) * - COUNT ( * ) * COUNT ( * ) * MIN ( DISTINCT + 4 ) AS col2 FROM tab2 AS cor0
----
6663

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT 74 * 1 - + MIN( DISTINCT - col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT 74 * 1 - + MIN ( DISTINCT - col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
248

query II rowsort
SELECT + - 19, col1 FROM tab2 AS cor0
----
-19
51
-19
67
-19
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1476
SELECT DISTINCT 62 * - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL <> 88 * - + CAST( - - 5 AS SIGNED ) * + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1476
SELECT DISTINCT 62 * - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL <> 88 * - + CAST ( - - 5 AS INTEGER ) * + col1
----

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

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

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

query I rowsort
SELECT + 29 * + col2 AS col2 FROM tab1 AS cor0
----
1711
1972
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT - 89 * COUNT( * ) AS col0 FROM tab0 WHERE NOT ( ( 94 ) IS NULL )
----
-267

skipif mysql # not compatible
query I rowsort label-1481
SELECT - 89 * COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( ( 94 ) IS NULL )
----
-267

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1483
SELECT col0 AS col1, - col1 DIV 37 FROM tab0
----
15
-2
87
0
97
0

skipif mysql # not compatible
query II rowsort label-1483
SELECT col0 AS col1, - col1 / 37 FROM tab0
----
15
-2
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT COUNT( 79 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT COUNT ( 79 ) AS col2 FROM tab1
----
3

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

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

query I rowsort
SELECT ALL - 14 * - - 15 * - 41 FROM tab0
----
8610
8610
8610

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1488
SELECT DISTINCT + 81 DIV CAST( + 26 AS SIGNED ) * + + col2 AS col0 FROM tab2
----
120
174
69

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + 81 / CAST ( + 26 AS INTEGER ) * + + col2 AS col0 FROM tab2
----
120
174
69

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( - 43 ) IS NOT NULL
----
10
47
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT ALL CAST( - 31 AS SIGNED ) col1 FROM tab2 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1492
SELECT ALL CAST ( - 31 AS INTEGER ) col1 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1493
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1493
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1494
SELECT + + 78 DIV - col1 FROM tab1 cor0
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-1494
SELECT + + 78 / - col1 FROM tab1 cor0
----
-1
-15
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 9 BETWEEN - 50 * - 36 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 18 * - col1 ) <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 59 * - 30 FROM tab2
----
-1770
-1770
-1770

query I rowsort
SELECT ALL + 35 + col2 FROM tab0
----
134
45
82

query I rowsort
SELECT DISTINCT col2 * - 40 FROM tab1
----
-2360
-2720
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-1500
SELECT ALL + col2 DIV col1 col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1500
SELECT ALL + col2 / col1 col1 FROM tab0
----
0
0
99

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1503
SELECT ALL ( + + col1 ) + + CAST( NULL AS DECIMAL ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL ( + + col1 ) + + CAST ( NULL AS REAL ) * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 53 FROM tab1
----
100
58
67

query I rowsort
SELECT 92 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT COUNT( ALL col2 ) * - MIN( ALL + + col2 ) + + COUNT( * ) + - 14 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-1506
SELECT COUNT ( ALL col2 ) * - MIN ( ALL + + col2 ) + + COUNT ( * ) + - 14 FROM tab2
----
-80

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

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT 82 * COUNT ( * ) + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1508
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0 cor0 WHERE NOT - col0 > col1 + - 92 AND NOT - col1 * + 55 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col0 > col1 + - 92 AND NOT - col1 * + 55 <= ( NULL )
----
NULL

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

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

query I rowsort
SELECT + col2 * col1 + col2 + - + 47 AS col2 FROM tab2 AS cor0
----
1149
3073
3897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1511
SELECT ALL - - COUNT( + col2 ) DIV - + 9 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - - COUNT ( + col2 ) / - + 9 AS col1 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT ALL ( 36 ) AS col1 FROM tab0 AS cor0
----
36
36
36

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT 87 DIV + 51 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1515
SELECT 87 / + 51 FROM tab1
----
1
1
1

query II rowsort
SELECT + 12 * + col2, + ( - ( + - 75 ) ) AS col1 FROM tab0
----
1188
75
120
75
564
75

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - col1 ) + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - col2 * col2 + + col1 - - - col2, col2 AS col1 FROM tab1 cor0
----
-3535
59
-4645
68
-9298
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL COUNT( * ) * + - 27 col1 FROM tab0 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1520
SELECT ALL COUNT ( * ) * + - 27 col1 FROM tab0 cor0
----
-81

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

query II rowsort
SELECT col1, - 55 FROM tab1
----
14
-55
47
-55
5
-55

query I rowsort
SELECT DISTINCT - 81 * - col1 AS col2 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT + col0 * col1 * + + col1 AS col0 FROM tab1
----
201019
2125
9996

query II rowsort
SELECT DISTINCT col0 AS col0, + col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab0 WHERE NOT + 33 IS NULL
----
-67

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab0 cor0
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <= col2
----
85
5
59
91
47
68

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT - COUNT ( * ) * 59 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-531

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT + 83 col0, - COUNT( + + col0 ) - + 57 + - 76 FROM tab0 AS cor0
----
83
-136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1530
SELECT + 83 col0, - COUNT ( + + col0 ) - + 57 + - 76 FROM tab0 AS cor0
----
83
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IN ( 22, - 87, - 61 )
----

skipif mysql # not compatible
query I rowsort label-1531
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IN ( 22, - 87, - 61 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - 98 col1 FROM tab0 AS cor0
----
-119
-179
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 * ( - col2 ) col1 FROM tab0 AS cor0
----
-1782
-180
-846

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1535
SELECT DISTINCT 16 * + COUNT( * ) * + COUNT( * ), + 29 * + - MAX( DISTINCT + col1 ) AS col1 FROM tab0
----
144
-2349

skipif mysql # not compatible
query II rowsort label-1535
SELECT DISTINCT 16 * + COUNT ( * ) * + COUNT ( * ), + 29 * + - MAX ( DISTINCT + col1 ) AS col1 FROM tab0
----
144
-2349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1536
SELECT DISTINCT ( 47 ) + - 32 + - 29 + COUNT( * ) DIV + 96 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT ( 47 ) + - 32 + - 29 + COUNT ( * ) / + 96 FROM tab1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1537
SELECT DISTINCT * FROM tab0 WHERE NULL >= col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1537
SELECT DISTINCT * FROM tab0 WHERE NULL >= col1 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT + MIN( DISTINCT 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-1538
SELECT + MIN ( DISTINCT 81 ) FROM tab1
----
81

query II rowsort
SELECT ALL col2 + col1, col0 FROM tab1 cor0
----
110
51
115
91
64
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1540
SELECT DISTINCT + MAX( - 29 ) / - AVG ( CAST( NULL AS SIGNED ) ) * COUNT( - - CAST( - 11 AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT + MAX ( - 29 ) / - AVG ( CAST ( NULL AS INTEGER ) ) * COUNT ( - - CAST ( - 11 AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + 23 AS col1 FROM tab1 AS cor0
----
-1173
-1955
-2093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT ALL - 52 DIV - COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL - 52 / - COUNT ( * ) FROM tab0
----
17

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

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

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT MIN ( + + ( + col2 ) ) FROM tab2 AS cor0
----
23

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 + - 45 * col1 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 27 * 45 col1 FROM tab1 WHERE - col1 * col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT SUM( ( + 94 ) ) AS col2 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-1550
SELECT SUM ( ( + 94 ) ) AS col2 FROM tab0
----
282

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 19 = NULL
----

query I rowsort
SELECT - 94 * + 17 AS col2 FROM tab1
----
-1598
-1598
-1598

query I rowsort
SELECT - 83 * - 58 FROM tab1 AS cor0
----
4814
4814
4814

query I rowsort
SELECT ALL col0 * + col2 * - - ( + - col2 ) FROM tab2 AS cor0
----
-102400
-24334
-252300

query II rowsort
SELECT + - col1 * col2 AS col2, col0 - col1 FROM tab2 AS cor0
----
-1173
-5
-3080
-13
-3886
8

query I rowsort
SELECT + col1 + col2 * - 31 FROM tab1 AS cor0
----
-1824
-2061
-2962

query I rowsort
SELECT DISTINCT - col0 + ( col1 ) AS col1 FROM tab2
----
-8
13
5

query II rowsort
SELECT DISTINCT - col0 AS col2, 42 AS col1 FROM tab1 AS cor0
----
-51
42
-85
42
-91
42

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

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

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

query I rowsort
SELECT + - col0 * - + 43 FROM tab2 AS cor0
----
1978
2752
3225

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * - - col0 * + col1 col1 FROM tab1 WHERE + col2 / col0 / + col2 IS NOT NULL
----
14994
8925
89817

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

query III rowsort
SELECT * FROM tab0 WHERE + - 35 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * + + col1 + col1 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT ALL ( + col1 ) - + + col0 * - - col1 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT ALL - col0 * - + 89 + 87 - - - 2 + - col2 FROM tab2 AS cor0
----
4156
5741
6702

query I rowsort
SELECT DISTINCT + col2 - - 48 FROM tab2 AS cor0
----
106
71
88

query I rowsort
SELECT ALL col2 * col2 - - 38 AS col1 FROM tab1 cor0
----
3519
4662
9254

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7

query I rowsort
SELECT ( + ( + 47 ) ) * + + col0 + + ( col0 ) AS col0 FROM tab2
----
2208
3072
3600

query I rowsort
SELECT DISTINCT + ( 79 ) * + col1 AS col0 FROM tab1 cor0
----
1106
3713
395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) * - - 43 * - col2 AS col0 FROM tab0 AS cor0
----
30315
37410
412929

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) * - - 43 * - col2 AS col0 FROM tab0 AS cor0
----
30315
37410
412929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + - 77 + + + 81 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + 18 * - col2 col2, col2 * 9 FROM tab1
----
-165888
864
-62658
531
-83232
612

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT + SUM( DISTINCT 19 ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-1583
SELECT + SUM ( DISTINCT 19 ) AS col2 FROM tab1 AS cor0
----
19

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1584
SELECT DISTINCT + + MIN ( ALL + col0 ) col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT DISTINCT + SUM( ALL - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0 WHERE - - 50 - CAST( 40 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + SUM ( ALL - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0 WHERE - - 50 - CAST ( 40 AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 + - + 63 / 36 - col1 AS col2 FROM tab0 cor0 WHERE NOT NULL <> col2
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE 75 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1590
SELECT * FROM tab2 WHERE + CAST( - col1 AS DECIMAL ) + + 36 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1590
SELECT * FROM tab2 WHERE + CAST ( - col1 AS REAL ) + + 36 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 * - col0 + col2 * - 1 * + col0 FROM tab0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL - 7 - COUNT( * ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1592
SELECT ALL - 7 - COUNT ( * ) col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - 14 - - col2 FROM tab1 AS cor0
----
45
54
82

query I rowsort
SELECT ALL + 37 + 34 AS col0 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1595
SELECT + - 15 AS col1, COUNT( - col1 ) * - 66 * + + 31 AS col2 FROM tab0 AS cor0
----
-15
-6138

skipif mysql # not compatible
query II rowsort label-1595
SELECT + - 15 AS col1, COUNT ( - col1 ) * - 66 * + + 31 AS col2 FROM tab0 AS cor0
----
-15
-6138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1596
SELECT + 64 AS col2, CAST( MAX( - 67 ) AS SIGNED ) FROM tab0 AS cor0
----
64
-67

skipif mysql # not compatible
query II rowsort label-1596
SELECT + 64 AS col2, CAST ( MAX ( - 67 ) AS INTEGER ) FROM tab0 AS cor0
----
64
-67

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

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

query I rowsort
SELECT ALL 63 * - col0 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT ALL col0 * 42 FROM tab0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL + MAX( - 48 ) AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + MAX ( - 48 ) AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-48

query I rowsort
SELECT DISTINCT 97 * col1 FROM tab2
----
4947
6499
7469

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT - COUNT( + ( ( + - 4 ) ) ) AS col2 FROM tab1 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT - - MIN( + col2 ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-1605
SELECT - - MIN ( + col2 ) AS col0 FROM tab0 cor0
----
10

query II rowsort
SELECT - 2, - 63 AS col1 FROM tab1 AS cor0
----
-2
-63
-2
-63
-2
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1607
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + col1 * col1 * ( - 3 ) + + CAST( NULL AS SIGNED ), + col2 / + col2 * ( - - col0 ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-1607
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + col1 * col1 * ( - 3 ) + + CAST ( NULL AS INTEGER ), + col2 / + col2 * ( - - col0 ), + col1 )
----

query II rowsort
SELECT - - 88 AS col0, + 97 AS col0 FROM tab2 AS cor0
----
88
97
88
97
88
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 62 = - CAST( - col1 AS SIGNED ) * - col0
----
-3

skipif mysql # not compatible
query I rowsort label-1609
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 62 = - CAST ( - col1 AS INTEGER ) * - col0
----
-3

query I rowsort
SELECT ALL col1 * ( - 67 ) AS col2 FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT ALL 9 FROM tab0 WHERE - col0 + + - ( col0 ) / + + 38 NOT IN ( ( - + 8 ) )
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT SUM( ALL + 8 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-1612
SELECT SUM ( ALL + 8 ) FROM tab2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT DISTINCT CAST( - MIN( - CAST( - CAST( - - col1 AS SIGNED ) AS SIGNED ) ) AS SIGNED ) + 12 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT CAST ( - MIN ( - CAST ( - CAST ( - - col1 AS INTEGER ) AS INTEGER ) ) AS INTEGER ) + 12 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT ALL + COUNT( * ) * - - COUNT( * ), COUNT( * ) AS col0 FROM tab2
----
9
3

skipif mysql # not compatible
query II rowsort label-1614
SELECT ALL + COUNT ( * ) * - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab2
----
9
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT ALL ( 8 ) DIV 2 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL ( 8 ) / 2 FROM tab2
----
4
4
4

query I rowsort
SELECT DISTINCT - 19 * ( col1 ) * + 75 AS col2 FROM tab2
----
-109725
-72675
-95475

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT DISTINCT col2 DIV col0 * + 98 * - col1 FROM tab1
----
-1372
0

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT col2 / col0 * + 98 * - col1 FROM tab1
----
-1372
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL - 26 + - + COUNT( * ) * + 61 * + 48 + + + COUNT( * ) - - 61 AS col0 FROM tab2
----
-8746

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - 26 + - + COUNT ( * ) * + 61 * + 48 + + + COUNT ( * ) - - 61 AS col0 FROM tab2
----
-8746

query II rowsort
SELECT DISTINCT - col0 AS col2, + 27 FROM tab2
----
-46
27
-64
27
-75
27

query II rowsort
SELECT + 90, + 66 AS col0 FROM tab2
----
90
66
90
66
90
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL - ( + - COUNT( ( + 30 ) ) ) - + 25 AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - ( + - COUNT ( ( + 30 ) ) ) - + 25 AS col0 FROM tab0 AS cor0
----
-22

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT + 26 + - + MIN( - col1 ) AS col0 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-1625
SELECT + 26 + - + MIN ( - col1 ) AS col0 FROM tab2
----
103

query I rowsort
SELECT + col2 + + 38 * - 55 FROM tab2
----
-2032
-2050
-2067

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT DISTINCT + COUNT( + + 71 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1628
SELECT DISTINCT + COUNT ( + + 71 ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL 72 + + - col2 + + col1 AS col2 FROM tab0
----
-26
106
83

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

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

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

query I rowsort
SELECT + 26 * + col2 AS col1 FROM tab2
----
1040
1508
598

query I rowsort
SELECT ALL - col1 * - - col0 AS col0 FROM tab2
----
-2346
-4928
-5025

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

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

query I rowsort
SELECT + + 60 * - 89 AS col1 FROM tab0 AS cor0
----
-5340
-5340
-5340

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= 23
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL + + COUNT( * ) * + - 25 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL + + COUNT ( * ) * + - 25 FROM tab2 AS cor0
----
-75

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

query I rowsort
SELECT col2 + + 60 AS col0 FROM tab0 AS cor0
----
107
159
70

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

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

query I rowsort
SELECT ALL - col1 + 22 AS col1 FROM tab0
----
-59
1
21

query I rowsort
SELECT DISTINCT col2 * 41 FROM tab1
----
2419
2788
3936

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1646
SELECT DISTINCT MAX( + + 77 ) + + COUNT( - col0 ) DIV + 60 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT MAX ( + + 77 ) + + COUNT ( - col0 ) / + 60 FROM tab2
----
77

query I rowsort
SELECT + 92 * col2 * col2 AS col2 FROM tab0 AS cor0
----
203228
901692
9200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT ALL - COUNT( * ) * - 40 FROM tab1 cor0
----
120

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - COUNT ( * ) * - 40 FROM tab1 cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT - 48 * col0 DIV col0 col2 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1650
SELECT - 48 * col0 / col0 col2 FROM tab1 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 * - 34 col1 FROM tab0
----
442

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT DISTINCT + COUNT( * ) AS col1, 10 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9
10

skipif mysql # not compatible
query II rowsort label-1652
SELECT DISTINCT + COUNT ( * ) AS col1, 10 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9
10

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE ( NOT + col1 >= NULL )
----

query I rowsort
SELECT ALL + + col1 - + col0 * - 28 FROM tab1 AS cor0
----
1442
2385
2595

query I rowsort
SELECT DISTINCT + + col1 - - 73 FROM tab0 AS cor0
----
154
74
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT + COUNT( + col2 ) AS col1 FROM tab0 WHERE NOT + col1 NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + COUNT ( + col2 ) AS col1 FROM tab0 WHERE NOT + col1 NOT IN ( - col2 )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT ALL col1 DIV - ( col1 ) col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT ALL col1 / - ( col1 ) col2 FROM tab2
----
-1
-1
-1

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

query I rowsort
SELECT col1 * - - 70 FROM tab1
----
3290
350
980

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

skipif mysql # not compatible
query I rowsort label-1663
SELECT - - MIN ( + 83 ) FROM tab0 AS cor0
----
83

query II rowsort
SELECT ALL - col1 AS col2, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT + 51 AS col2, col0 * + 24 + + ( 49 ) AS col2 FROM tab2 AS cor0
----
51
1153
51
1585
51
1849

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 73 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT - 29 * - 33 AS col1 FROM tab2 AS cor0
----
957
957
957

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + - 84 * - + COUNT( * ) col2 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1669
SELECT + - 84 * - + COUNT ( * ) col2 FROM tab1 AS cor0
----
252

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

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT 76 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL - col0 * + 33 * - 74 FROM tab1 AS cor0
----
124542
207570
222222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT - CAST( + MAX( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1673
SELECT - CAST ( + MAX ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-91

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

query II rowsort
SELECT col2 AS col0, col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - 24 + - col0 FROM tab2
----
-70
-88
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL COUNT( * ) * 72 + SUM( ALL col2 ) FROM tab0
----
372

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL COUNT ( * ) * 72 + SUM ( ALL col2 ) FROM tab0
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT 36 * COUNT( * ) + + COUNT( * ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-1678
SELECT 36 * COUNT ( * ) + + COUNT ( * ) FROM tab0
----
111

query I rowsort
SELECT 99 + + col0 AS col1 FROM tab1
----
150
184
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT col0 AS col1 FROM tab2 WHERE + 28 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1680
SELECT col0 AS col1 FROM tab2 WHERE + 28 = - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT ALL - col1 * 65 AS col2 FROM tab2 AS cor0
----
-3315
-4355
-5005

query I rowsort
SELECT DISTINCT - - 21 * col0 FROM tab1 AS cor0
----
1071
1785
1911

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT ALL col0 + - - 57 + + col2 + + + col0 DIV - - col2 col1 FROM tab1 AS cor0
----
202
204
217

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1684
SELECT ALL col0 + - - 57 + + col2 + + + col0 / - - col2 col1 FROM tab1 AS cor0
----
202
204
217

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT DISTINCT COUNT( col2 ) col1 FROM tab2
----
3

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

query II rowsort
SELECT - 58 AS col2, col2 AS col2 FROM tab1 WHERE ( col0 ) * + 61 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * - + col1 col2 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT - + col0 * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL <> 72 + - 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL col1 + CAST( + + col1 AS SIGNED ) * + + col1 FROM tab0 AS cor0
----
2
462
6642

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL col1 + CAST ( + + col1 AS INTEGER ) * + + col1 FROM tab0 AS cor0
----
2
462
6642

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 96 - + - col0 / + 26 - + - 63 ) NOT BETWEEN + 29 AND - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1691
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE col2 * - ( + CAST( 93 AS SIGNED ) ) <> col1 + - 86
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE col2 * - ( + CAST ( 93 AS INTEGER ) ) <> col1 + - 86
----
-1
-21
-81

query I rowsort
SELECT + ( - ( + + col0 ) ) AS col1 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT col2 * + + col0 AS col0 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT ALL col0 AS col0, 86 AS col1 FROM tab2 WHERE NOT + col2 BETWEEN NULL AND + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1695
SELECT CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL > - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL SUM( DISTINCT - 3 ) * + CAST( + - AVG ( + 8 ) AS SIGNED ) * 30 FROM tab1
----
720

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL SUM ( DISTINCT - 3 ) * + CAST ( + - AVG ( + 8 ) AS INTEGER ) * 30 FROM tab1
----
720

query II rowsort
SELECT ALL + col0 AS col0, 28 FROM tab1
----
51
28
85
28
91
28

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

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT COUNT ( + - 63 ) FROM tab2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL - SUM( - + 22 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL - SUM ( - + 22 ) FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1702
SELECT 43 * 43 * COUNT( * ) AS col0, COUNT( * ) col1 FROM tab0
----
5547
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1702
SELECT 43 * 43 * COUNT ( * ) AS col0, COUNT ( * ) col1 FROM tab0
----
5547
3

query I rowsort
SELECT col0 * 23 FROM tab0
----
2001
2231
345

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - - 24 + col0 * + col2 col1, - col0 * - 60 col1 FROM tab1
----
4869
3060
4954
5100
6121
5460

query I rowsort
SELECT - col1 * + col1 + ( col2 ) FROM tab1
----
-100
-2141
34

query I rowsort
SELECT ALL - + 76 FROM tab0 WHERE 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT DISTINCT CAST( - col2 AS SIGNED ) + col0 + - col1 + - 94 * 9 col2 FROM tab2
----
-874
-896
-899

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + col0 + - col1 + - 94 * 9 col2 FROM tab2
----
-874
-896
-899

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1711
SELECT DISTINCT * FROM tab2 WHERE + CAST( + 98 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1711
SELECT DISTINCT * FROM tab2 WHERE + CAST ( + 98 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + 53 AS col2 FROM tab1
----
-32
-38
2

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( + 95 ) col2 FROM tab0 AS cor0
----
-4465
-9405
-950

query I rowsort
SELECT 23 - - col1 * - col2 + + ( ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-1127
-3017
-3805

query I rowsort
SELECT ALL - col0 - - 79 FROM tab1 AS cor0
----
-12
-6
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1717
SELECT - COUNT( * ) DIV - 25, MIN( ALL + - 27 ) + MIN( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 4 * - col2 AND NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1717
SELECT - COUNT ( * ) / - 25, MIN ( ALL + - 27 ) + MIN ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 4 * - col2 AND NULL
----
0
NULL

query I rowsort
SELECT ALL + 28 * col1 FROM tab1 cor0
----
1316
140
392

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

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

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

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

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE NULL <= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL + COUNT ( * ) / - ( + + 98 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - ( + 48 ) AS col2 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT DISTINCT - ( + + col2 ) DIV + - col1 + + col0 * + col1 + 62 col1 FROM tab2 AS cor0
----
2408
4990
5087

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1724
SELECT DISTINCT - ( + + col2 ) / + - col1 + + col0 * + col1 + 62 col1 FROM tab2 AS cor0
----
2408
4990
5087

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

query I rowsort
SELECT DISTINCT - - AVG ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * + - col2 AND - ( + 4 )
----
NULL

query I rowsort
SELECT - - col1 * + col0 - - 67 + + col1 FROM tab0 cor0
----
1363
165
1915

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

skipif mysql # not compatible
query II rowsort label-1728
SELECT ALL + COUNT ( * ) AS col0, + 71 AS col1 FROM tab1 AS cor0
----
3
71

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

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

query II rowsort
SELECT ALL col0, - col1 * - col2 FROM tab2
----
46
1173
64
3080
75
3886

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

query I rowsort
SELECT ALL + col1 + - 26 - + + col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col0 AND + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 43 * - col2 col2 FROM tab0
----
-421443
-4300
-94987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1734
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + - col1 ) / - col1 * + CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1734
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + - col1 ) / - col1 * + CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 72 * 36 FROM tab0 WHERE NOT - col0 NOT BETWEEN - + col2 + col1 - - 78 * col1 + col1 * col1 AND col2
----

query I rowsort
SELECT DISTINCT + col0 * + + 81 AS col0 FROM tab2 AS cor0
----
3726
5184
6075

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

skipif mysql # not compatible
query I rowsort label-1737
SELECT - MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
51

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

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

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

query II rowsort
SELECT ( + col2 ), + 49 FROM tab0 cor0
----
10
49
47
49
99
49

query I rowsort
SELECT - col0 * col2 * 61 AS col1 FROM tab1 cor0
----
-298656
-305915
-377468

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT - COUNT( ALL 19 ) AS col0, - 71 AS col1 FROM tab0 AS cor0
----
-3
-71

skipif mysql # not compatible
query II rowsort label-1742
SELECT - COUNT ( ALL 19 ) AS col0, - 71 AS col1 FROM tab0 AS cor0
----
-3
-71

query I rowsort
SELECT DISTINCT - 66 * col0 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 2 = col0
----
-3270
-5551
-5938

query I rowsort
SELECT ALL 69 + - col1 FROM tab1
----
22
55
64

query I rowsort
SELECT DISTINCT + col2 * - col1 + + col1 + - 29 FROM tab0
----
-127
-218
-3755

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT COUNT( * ) + - + 60 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT COUNT ( * ) + - + 60 FROM tab2
----
-57

query I rowsort
SELECT ALL - col2 - - + col1 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1748
SELECT + 1 + COUNT( * ) + + 78 * + - MAX( ALL ( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT + 1 + COUNT ( * ) + + 78 * + - MAX ( ALL ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ALL MIN( ALL + col1 ) FROM tab2 WHERE - col0 * col2 + + col1 + 26 * + 51 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL MIN ( ALL + col1 ) FROM tab2 WHERE - col0 * col2 + + col1 + 26 * + 51 IS NULL
----
NULL

query I rowsort
SELECT ( - + col1 ) + col2 AS col2 FROM tab1
----
21
54
82

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1751
SELECT + col1 + + col0 - + ( + CAST ( NULL AS INTEGER ) ) + + col2 * + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 + + col1 FROM tab1 cor0 WHERE ( - - col1 ) IS NOT NULL
----
10
28
94

query I rowsort
SELECT + col2 * - 2 + col0 AS col0 FROM tab2 AS cor0
----
-16
-41
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT MAX( ALL + - col2 ) - - 32 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-1755
SELECT MAX ( ALL + - col2 ) - - 32 FROM tab1
----
-27

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1757
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col2, + 28 AS col2 FROM tab1 AS cor0
----
-59
28
-68
28
-96
28

skipif mysql # not compatible
query II rowsort label-1757
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col2, + 28 AS col2 FROM tab1 AS cor0
----
-59
28
-68
28
-96
28

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col2 * + + col1 col0 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT ALL 87 DIV col2 AS col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL 87 / col2 AS col1 FROM tab2
----
1
2
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT - 74 * - MIN( col2 ) AS col1 FROM tab1
----
4366

skipif mysql # not compatible
query I rowsort label-1763
SELECT - 74 * - MIN ( col2 ) AS col1 FROM tab1
----
4366

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND - 40
----

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

query I rowsort
SELECT DISTINCT - - 10 FROM tab1 WHERE NOT 42 + - col2 IS NULL
----
10

query I rowsort
SELECT + 6 * + + col0 * 53 FROM tab0
----
27666
30846
4770

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1768
SELECT + col1 * - + CAST( col2 AS SIGNED ) AS col1, + 96 * col2 * - CAST( NULL AS SIGNED ) * + + 63 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-1768
SELECT + col1 * - + CAST ( col2 AS INTEGER ) AS col1, + 96 * col2 * - CAST ( NULL AS INTEGER ) * + + 63 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

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

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

query I rowsort
SELECT DISTINCT 60 + + - col0 FROM tab2
----
-15
-4
14

query I rowsort
SELECT ALL + col0 - col0 + - - 20 FROM tab0 cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT + col1 DIV + + col1 + + 37 + - 74 FROM tab2 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-1772
SELECT + col1 / + + col1 + + 37 + - 74 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT ALL + - 60 * + + col1 FROM tab1 AS cor0
----
-2820
-300
-840

query II rowsort
SELECT ALL - col1 + - col0 AS col1, - col1 FROM tab2
----
-141
-77
-142
-67
-97
-51

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

query I rowsort
SELECT DISTINCT - 21 FROM tab0 WHERE + col2 IS NOT NULL
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT DISTINCT 65 * col2 - + CAST( NULL AS SIGNED ) * - col0 * - 3 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT 65 * col2 - + CAST ( NULL AS INTEGER ) * - col0 * - 3 FROM tab2
----
NULL

query II rowsort
SELECT + + 54 - col1, + col1 AS col1 FROM tab1 AS cor0
----
40
14
49
5
7
47

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

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

query I rowsort
SELECT + 78 + - + col1 FROM tab0 AS cor0
----
-3
57
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1781
SELECT DISTINCT COUNT( + + col2 ), - CAST( NULL AS SIGNED ) + - 6 / COUNT( * ) col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1781
SELECT DISTINCT COUNT ( + + col2 ), - CAST ( NULL AS INTEGER ) + - 6 / COUNT ( * ) col1 FROM tab1 AS cor0
----
3
NULL

query II rowsort
SELECT ( - 59 ) * - 43, col0 FROM tab1
----
2537
51
2537
85
2537
91

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

query I rowsort
SELECT + 72 AS col2 FROM tab0 cor0
----
72
72
72

query II rowsort
SELECT - col0, + col2 * - 68 AS col0 FROM tab2 AS cor0
----
-46
-1564
-64
-2720
-75
-3944

query I rowsort
SELECT + col0 * + 35 AS col0 FROM tab1 AS cor0
----
1785
2975
3185

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

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

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

query II rowsort
SELECT DISTINCT - 7 AS col2, col1 + 5 AS col1 FROM tab1 AS cor0
----
-7
10
-7
19
-7
52

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

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 - + + col1 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT - + col1 * - 82 + 39 FROM tab1 AS cor0
----
1187
3893
449

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT COUNT( - - col0 ) AS col2, - 60 FROM tab2 AS cor0
----
3
-60

skipif mysql # not compatible
query II rowsort label-1794
SELECT COUNT ( - - col0 ) AS col2, - 60 FROM tab2 AS cor0
----
3
-60

query I rowsort
SELECT + + col0 + + col0 + 63 + 16 * + + col1 FROM tab1 AS cor0
----
313
389
997

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1796
SELECT CAST( - - ( 96 ) AS SIGNED ) + + col2 AS col0, + col2 * + col0 AS col1 FROM tab0 AS cor0
----
106
870
143
705
195
9603

skipif mysql # not compatible
query II rowsort label-1796
SELECT CAST ( - - ( 96 ) AS INTEGER ) + + col2 AS col0, + col2 * + col0 AS col1 FROM tab0 AS cor0
----
106
870
143
705
195
9603

query I rowsort
SELECT - 56 AS col0 FROM tab0 AS cor0 WHERE 19 * 25 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1798
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1798
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 * - col0 + 91 + + col1 col1, col0 AS col2 FROM tab1 AS cor0
----
5001
51
5111
85
6326
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 + + col2 * col2 - + col2 col2 FROM tab2 AS cor0
----
1485
3231
431

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

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

query I rowsort
SELECT DISTINCT + 36 * - 60 FROM tab1 cor0
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1804
SELECT DISTINCT + 6 * + + ( - 42 ) * + CAST( + 9 AS SIGNED ) AS col0, - col1 FROM tab0 AS cor0
----
-2268
-1
-2268
-21
-2268
-81

skipif mysql # not compatible
query II rowsort label-1804
SELECT DISTINCT + 6 * + + ( - 42 ) * + CAST ( + 9 AS INTEGER ) AS col0, - col1 FROM tab0 AS cor0
----
-2268
-1
-2268
-21
-2268
-81

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

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

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

query I rowsort
SELECT + - 2 - - - col0 FROM tab0 AS cor0
----
-17
-89
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1808
SELECT + COUNT( DISTINCT - + 49 ) AS col0, 52 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0
52

skipif mysql # not compatible
query II rowsort label-1808
SELECT + COUNT ( DISTINCT - + 49 ) AS col0, 52 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 * - col1 * col1 = - + 52 + + col1 - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT - MAX( - 78 ) + - 40 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-1810
SELECT - MAX ( - 78 ) + - 40 FROM tab0
----
38

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

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

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

query I rowsort
SELECT col1 * + - 21 + - + 47 AS col0 FROM tab0
----
-1748
-488
-68

query I rowsort
SELECT + 10 + - + 92 AS col1 FROM tab1
----
-82
-82
-82

query I rowsort
SELECT ALL 88 + + + col0 * + - col2 * 91 - - - ( 79 ) + + - col0 AS col0 FROM tab2
----
-233015
-395916
-96315

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1817
SELECT DISTINCT col0 DIV - col2, - col1 col2 FROM tab2 AS cor0 WHERE - col1 + + ( col1 ) IS NOT NULL
----
-1
-67
-1
-77
-2
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1817
SELECT DISTINCT col0 / - col2, - col1 col2 FROM tab2 AS cor0 WHERE - col1 + + ( col1 ) IS NOT NULL
----
-1
-67
-1
-77
-2
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 45 / + col1 * col1 * + ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1819
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + CAST( - col2 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1819
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + CAST ( - col2 AS INTEGER ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 / col1 <= NULL
----

query I rowsort
SELECT - 21 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 73 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - MIN( - 84 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT - MIN ( - 84 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - 33 + - COUNT( * ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-1825
SELECT - 33 + - COUNT ( * ) FROM tab2
----
-36

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

query I rowsort
SELECT col1 * - col0 FROM tab0 WHERE NOT + + col0 IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL - col0 + col0 + + 80 AS col0 FROM tab1
----
80
80
80

query I rowsort
SELECT ALL - + ( - - 30 ) * - col0 AS col1 FROM tab2 cor0
----
1380
1920
2250

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1833
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + + CAST ( - 89 AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + + - 91 FROM tab1 AS cor0
----
-40
-6
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT 0 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1836
SELECT * FROM tab0 WHERE NOT ( - col0 ) = CAST( 85 AS DECIMAL ) - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1836
SELECT * FROM tab0 WHERE NOT ( - col0 ) = CAST ( 85 AS REAL ) - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( 28 ) BETWEEN NULL AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * 23 = NULL
----

query I rowsort
SELECT ALL - 84 - 2 FROM tab0
----
-86
-86
-86

query I rowsort
SELECT - col2 + 82 AS col0 FROM tab1
----
-14
14
23

query I rowsort
SELECT ALL col2 FROM tab1 WHERE col2 NOT BETWEEN col2 * + col2 AND ( + col0 * + 72 )
----
59
68
96

query I rowsort
SELECT - 4 + - 15 AS col2 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT col1 * 47 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 59 / ( - 55 ) <> 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1847
SELECT DISTINCT col2 DIV + CAST( + col0 AS SIGNED ) FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT col2 / + CAST ( + col0 AS INTEGER ) FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL MIN( DISTINCT 87 ) - COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL MIN ( DISTINCT 87 ) - COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT col0 * - CAST( col1 * 71 AS SIGNED ) FROM tab0
----
-129717
-6887
-86265

skipif mysql # not compatible
query I rowsort label-1849
SELECT col0 * - CAST ( col1 * 71 AS INTEGER ) FROM tab0
----
-129717
-6887
-86265

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT DISTINCT col1 * + 4 + 15 DIV 55 AS col0 FROM tab0
----
324
4
84

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT col1 * + 4 + 15 / 55 AS col0 FROM tab0
----
324
4
84

query I rowsort
SELECT ALL + 98 FROM tab2 WHERE - ( 38 ) * + 73 IS NOT NULL
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT col2 + 78 DIV col0 AS col1 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-1852
SELECT col2 + 78 / col0 AS col1 FROM tab0
----
10
52
99

query I rowsort
SELECT 13 + + col1 AS col0 FROM tab1
----
18
27
60

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT ( 27 - 23 * - 16 ) BETWEEN ( NULL ) AND + 17
----
-14
-47
-5

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

query I rowsort
SELECT 42 * col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1932
2688
3150

query I rowsort
SELECT DISTINCT 69 * + col2 AS col0 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT DISTINCT col1 * 5 FROM tab1
----
235
25
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT + COUNT( DISTINCT 22 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1859
SELECT + COUNT ( DISTINCT 22 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT SUM( - 99 ) * + 8 FROM tab1
----
-2376

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT SUM ( - 99 ) * + 8 FROM tab1
----
-2376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 - - col1 * + 19 col2 FROM tab1
----
181
352
979

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT MAX( + 97 ) + 30 AS col1 FROM tab2
----
127

skipif mysql # not compatible
query I rowsort label-1862
SELECT MAX ( + 97 ) + 30 AS col1 FROM tab2
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT + 38 * col0 + ( + CAST( col1 AS SIGNED ) ) AS col2 FROM tab1
----
1952
3235
3505

skipif mysql # not compatible
query I rowsort label-1863
SELECT + 38 * col0 + ( + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1
----
1952
3235
3505

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 46 ) / + col1 <= ( 95 )
----

query I rowsort
SELECT + ( 55 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT ALL + CAST( col1 AS SIGNED ) + col0 * - col1 AS col0 FROM tab2 WHERE NOT + 64 IS NULL
----
-2295
-4851
-4958

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + CAST ( col1 AS INTEGER ) + col0 * - col1 AS col0 FROM tab2 WHERE NOT + 64 IS NULL
----
-2295
-4851
-4958

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT 99 * ( col0 ) + col0 BETWEEN - col2 - - 38 AND + col0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1870
SELECT 5 DIV 23 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1870
SELECT 5 / 23 col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT ALL col0 DIV col0 col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1871
SELECT ALL col0 / col0 col0 FROM tab2 AS cor0
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT - + SUM ( ALL ( col0 ) ) AS col0 FROM tab2 cor0
----
-185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL - + ( - MAX( ALL 86 ) ) AS col2 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - + ( - MAX ( ALL 86 ) ) AS col2 FROM tab1 AS cor0
----
86

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) = + col1 + - col1 * - col0
----

query I rowsort
SELECT ALL col0 / 4 + - col0 FROM tab0 AS cor0 WHERE 31 + - 60 BETWEEN ( NULL ) AND + 56
----

query I rowsort
SELECT col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1879
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col1 + - - col2 + 7 * 99 * - col1 FROM tab0
----
-14564
-56167
-595

query I rowsort
SELECT DISTINCT - col1 + - 88 FROM tab2 WHERE + 37 IS NOT NULL
----
-139
-155
-165

query I rowsort
SELECT + 69 FROM tab2 WHERE ( NULL ) NOT BETWEEN + col2 * 21 AND - 91 + 40
----

query I rowsort
SELECT ALL col0 * col0 + 76 * col2 AS col2 FROM tab2
----
10033
3864
7136

query I rowsort
SELECT col0 FROM tab2 WHERE + col2 IS NULL OR NOT NULL < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT AVG ( ALL - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT AVG ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 49 + - - col1 + - col2 * col0 AS col1 FROM tab2
----
-1056
-2532
-4332

query I rowsort
SELECT DISTINCT ( col1 ) * col2 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col0 + + + 30 * - col2 FROM tab1
----
-1685
-1949
-2829

query I rowsort
SELECT 11 / + 60 FROM tab1 AS cor0 WHERE NULL >= + 52
----

query I rowsort
SELECT + col0 * + 52 + - 1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN ( NULL ) AND ( - col0 * + col0 )
----
4523
5043
779

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT + ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT - - 61 + + 13 FROM tab1 AS cor0
----
74
74
74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 74 NOT IN ( 63 * 91 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + col2 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 33 + + col1 AS col0 FROM tab1
----
38
47
80

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 + + ( + col0 - + col2 * 21 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( col2 + - col1 * 74 <= - 97 )
----
-3

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( col2 + - col1 * 74 <= - 97 )
----
-3

query III rowsort
SELECT * FROM tab2 WHERE col1 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 9, col2 FROM tab2 cor0
----
9
23
9
40
9
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT + - CAST( COUNT( * ) AS SIGNED ) - COUNT( col1 ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1901
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) - COUNT ( col1 ) AS col2 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN + - col1 AND ( - 60 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 WHERE + col2 IN ( + CAST( col2 AS SIGNED ) / col0 - + col0 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 WHERE + col2 IN ( + CAST ( col2 AS INTEGER ) / col0 - + col0 * - col1 )
----

query I rowsort
SELECT col0 * col2 * + ( col1 ) + col2 - 82 * 67 FROM tab2 AS cor0
----
191666
286014
48487

query I rowsort
SELECT + 75 FROM tab0 AS cor0 WHERE - 49 IS NOT NULL
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 48 )
----

query I rowsort
SELECT + 50 - - ( col1 ) AS col0 FROM tab0 AS cor0
----
131
51
71

query I rowsort
SELECT ALL - 40 * - col2 + - 9 FROM tab2 AS cor0 WHERE NOT NULL > col1 - col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col0, - 2 * - ( 22 ) + + 2 FROM tab1 AS cor0
----
-59
46
-68
46
-96
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT DISTINCT - col0 DIV col1 - - - col2 - 86 FROM tab1 AS cor0
----
-155
-162
-185

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT - col0 / col1 - - - col2 - 86 FROM tab1 AS cor0
----
-155
-162
-185

query I rowsort
SELECT col0 * 36 FROM tab2 WHERE NOT ( 18 - - + col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT CAST( col0 AS SIGNED ) AS col0 FROM tab1 WHERE NOT + 54 = + - col0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1912
SELECT CAST ( col0 AS INTEGER ) AS col0 FROM tab1 WHERE NOT + 54 = + - col0
----
51
85
91

query II rowsort
SELECT DISTINCT - col0 * + - 46 AS col0, - 29 AS col0 FROM tab2
----
2116
-29
2944
-29
3450
-29

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + col1 + col1 + + col2 * col2 )
----

query I rowsort
SELECT DISTINCT - 60 * col2 AS col2 FROM tab1
----
-3540
-4080
-5760

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 69 * - - 45 * + 75 IS NOT NULL
----

query I rowsort
SELECT 32 AS col0 FROM tab0 WHERE NOT + ( - 62 ) > col1
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL - COUNT( * ) * + - MAX( + col0 ) FROM tab2 cor0
----
225

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - COUNT ( * ) * + - MAX ( + col0 ) FROM tab2 cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT - 5 * - COUNT( * ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT - 5 * - COUNT ( * ) AS col1 FROM tab2
----
15

query I rowsort
SELECT + 1 + 6 AS col1 FROM tab1 WHERE NOT ( 5 * + col2 - - 69 * col0 ) = + 93
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT + 61 DIV + - col1 AS col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 61 / + - col1 AS col0 FROM tab2 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * col0 NOT IN ( + - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 11 * - col2 + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + 33 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 15 * + col1 / + col1 * + + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT + - SUM( - col1 ) col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1926
SELECT + - SUM ( - col1 ) col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT col0 + col2 * - - col2 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL ( COUNT( - col2 ) ) + - MIN( DISTINCT col1 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL ( COUNT ( - col2 ) ) + - MIN ( DISTINCT col1 ) FROM tab2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT 21 DIV + + col2 + + 91 + - - col2 FROM tab2
----
114
131
149

skipif mysql # not compatible
query I rowsort label-1929
SELECT 21 / + + col2 + + 91 + - - col2 FROM tab2
----
114
131
149

query I rowsort
SELECT + 53 + col2 AS col1 FROM tab1
----
112
121
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30 col1, + col0 * + - col1 FROM tab1
----
30
-425
30
-4277
30
-714

query I rowsort
SELECT DISTINCT 40 + + 80 FROM tab1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT - 26 + col2 FROM tab2 WHERE NULL BETWEEN - ( + + col0 ) - + CAST( NULL AS SIGNED ) AND col1 * col1
----

skipif mysql # not compatible
query I rowsort label-1933
SELECT - 26 + col2 FROM tab2 WHERE NULL BETWEEN - ( + + col0 ) - + CAST ( NULL AS INTEGER ) AND col1 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col1 ) col0 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT ALL + 81 DIV + ( - 40 ) + - col0 AS col1 FROM tab1
----
-53
-87
-93

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL + 81 / + ( - 40 ) + - col0 AS col1 FROM tab1
----
-53
-87
-93

query I rowsort
SELECT ALL + col0 + + + 5 FROM tab0
----
102
20
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1937
SELECT CAST( CAST( - - COUNT( * ) AS DECIMAL ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1937
SELECT CAST ( CAST ( - - COUNT ( * ) AS REAL ) AS INTEGER ) FROM tab0
----
3

query II rowsort
SELECT 47, col2 FROM tab0
----
47
10
47
47
47
99

query I rowsort
SELECT ALL + + 33 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 19 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
19
-15
19
-87
19
-97

query II rowsort
SELECT DISTINCT + - 21 AS col2, col0 FROM tab1 AS cor0
----
-21
51
-21
85
-21
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT + COUNT( * ) + - + 56 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT + COUNT ( * ) + - + 56 FROM tab1 AS cor0
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - col0 + - - 33 col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT col2 * + col2 + col0 AS col0 FROM tab2
----
1664
3439
575

query I rowsort
SELECT 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT COUNT( * ) + ( 25 ) AS col2 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-1946
SELECT COUNT ( * ) + ( 25 ) AS col2 FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL - col1 - + + col2 - + 27 * - col1 FROM tab2 AS cor0
----
1303
1684
1962

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + COUNT( * ) + - 44 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-44

skipif mysql # not compatible
query I rowsort label-1948
SELECT + COUNT ( * ) + - 44 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT ALL + col0 - 35 DIV + 26 + ( - col2 ) + - 84 + - col0 * - 96 * - 73 AS col2 FROM tab1 AS cor0
----
-357538
-595739
-637790

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + col0 - 35 / + 26 + ( - col2 ) + - 84 + - col0 * - 96 * - 73 AS col2 FROM tab1 AS cor0
----
-357538
-595739
-637790

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL COUNT( DISTINCT + - 97 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL COUNT ( DISTINCT + - 97 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL - + CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - + CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 29 * ( col2 ) AS col0 FROM tab0 AS cor0
----
1363
2871
290

query I rowsort
SELECT + 25 + col0 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 93 * - + 97 AS col0 FROM tab1
----
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT MAX( ALL + 18 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1955
SELECT MAX ( ALL + 18 ) FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT SUM( - 75 ) col2 FROM tab0
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1956
SELECT SUM ( - 75 ) col2 FROM tab0
----
-225

query I rowsort
SELECT + - 3 FROM tab0 WHERE NOT NULL BETWEEN - col0 * - + col2 + + + col2 AND NULL
----

query I rowsort
SELECT ALL - 0 * col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT ( 69 ) AS col2 FROM tab2
----
69

query III rowsort
SELECT * FROM tab1 WHERE NOT - 99 * col2 * 10 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - ( col0 ) ) * 25 FROM tab1
----
-1275
-2125
-2275

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 14
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 53 - col0 - + - 28 > NULL
----

query I rowsort
SELECT DISTINCT - 75 + - 48 AS col1 FROM tab2 AS cor0
----
-123

query II rowsort
SELECT - + col0 * - + col2 AS col2, + 92 FROM tab1 AS cor0
----
4896
92
5015
92
6188
92

query II rowsort
SELECT - + ( + col2 ) AS col2, - col1 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT - 44 * + 77 + - + 13 FROM tab1 AS cor0
----
-3401
-3401
-3401

query I rowsort
SELECT + + ( ( + + col0 ) ) * + 45 AS col0 FROM tab2 cor0
----
2070
2880
3375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col0 col2 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 80 / + ( - col0 ) - - - col2 * + - col1 - + - ( + col0 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1971
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) * COUNT( * ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1971
SELECT ALL ( + CAST ( NULL AS REAL ) ) * COUNT ( * ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT COUNT( * ) AS col0 FROM tab1 WHERE - + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1972
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE - + col2 >= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col1 - + - col2 NOT IN ( - - col0 / col0 * col0 + + ( + col0 ) ) AND NOT - 59 IN ( + 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( col1 ) * + - 20 + + col2 AS col0 FROM tab2
----
-1282
-1500
-997

query I rowsort
SELECT col1 * + ( col0 ) + + - col2 FROM tab1
----
366
4209
618

query I rowsort
SELECT 74 / - + 84 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 86 AS col2 FROM tab1
----
-137
-171
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT DISTINCT - 98 + - + COUNT( * ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - 98 + - + COUNT ( * ) FROM tab1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - 60 * + + 62 + + COUNT( col1 ) AS col1 FROM tab0
----
-3717

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 60 * + + 62 + + COUNT ( col1 ) AS col1 FROM tab0
----
-3717

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT - col0 DIV - col0 + + + col2 * - 88 AS col2 FROM tab2 AS cor0
----
-2023
-3519
-5103

skipif mysql # not compatible
query I rowsort label-1980
SELECT - col0 / - col0 + + + col2 * - 88 AS col2 FROM tab2 AS cor0
----
-2023
-3519
-5103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + col0 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col0 * col2 * + + col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT MAX( ALL ( + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT MAX ( ALL ( + col0 ) ) FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1984
SELECT ALL MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0, - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-1984
SELECT ALL MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
-9

query II rowsort
SELECT col0, - col1 * - - col1 * 15 AS col1 FROM tab0
----
15
-98415
87
-6615
97
-15

query I rowsort
SELECT + 43 FROM tab1 WHERE - - 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL - 11 + - - MAX( DISTINCT + 9 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - 11 + - - MAX ( DISTINCT + 9 ) FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT + 31 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1988
SELECT + 31 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
93

query II rowsort
SELECT + 21 AS col0, + col2 * + + col0 FROM tab1 AS cor0
----
21
4896
21
5015
21
6188

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + ( - - 59 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1991
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE CAST( - col2 AS SIGNED ) NOT BETWEEN NULL AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( - col2 AS INTEGER ) NOT BETWEEN NULL AND - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / - - 69 IS NULL
----

query I rowsort
SELECT col1 + - + col2 + + 38 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * 26 AS col2 FROM tab1
----
1534
1768
2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) col1 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN NULL AND 13 * 62
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 + - - 8 + - col2 * + + ( + 83 ) * + col1 - + col0 - - col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT - ( MIN( - col0 ) ) FROM tab1 WHERE NOT ( NULL <> ( - 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT - ( MIN ( - col0 ) ) FROM tab1 WHERE NOT ( NULL <> ( - 42 ) )
----
NULL

query II rowsort
SELECT col2 * - 61 AS col2, - ( col0 ) FROM tab2
----
-1403
-46
-2440
-64
-3538
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT col1 * - CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-2000
SELECT col1 * - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL col1 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 18 IS NULL
----

query I rowsort
SELECT - col0 / + col1 + + ( col0 ) FROM tab0 AS cor0 WHERE NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT - 13 + COUNT( * ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2004
SELECT - 13 + COUNT ( * ) FROM tab2 AS cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2005
SELECT DISTINCT - - SUM( - - CAST( NULL AS SIGNED ) ) * - 5 * + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT - - SUM ( - - CAST ( NULL AS INTEGER ) ) * - 5 * + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 93 * col2 * - ( + + ( ( col0 ) ) ) >= col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 87 = + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + 22 * + 6, + col0 col1 FROM tab2 AS cor0
----
183
46
199
75
209
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT + col0 + - - 80 DIV 47 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-2009
SELECT + col0 + - - 80 / 47 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT ALL 93 DIV COUNT( * ) - + - MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL 93 / COUNT ( * ) - + - MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT + 27 * COUNT( * ) AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2011
SELECT + 27 * COUNT ( * ) AS col2 FROM tab1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL CAST( + + 54 AS SIGNED ) + - - COUNT( * ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL CAST ( + + 54 AS INTEGER ) + - - COUNT ( * ) AS col2 FROM tab0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT ALL - col2 * + 79 * - + col1 DIV + + col1 col2 FROM tab1
----
4661
5372
7584

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2013
SELECT ALL - col2 * + 79 * - + col1 / + + col1 col2 FROM tab1
----
4661
5372
7584

query I rowsort
SELECT DISTINCT - - 62 FROM tab0 WHERE NOT - col0 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - COUNT( * ) col1 FROM tab2 WHERE + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2015
SELECT - COUNT ( * ) col1 FROM tab2 WHERE + - col1 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE col1 > - col0 * + + col1 + - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT ALL + col1 - + col1 DIV - - col0 FROM tab0 AS cor0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + col1 - + col1 / - - col0 FROM tab0 AS cor0
----
1
21
76

query I rowsort
SELECT ALL 54 + - col0 - - - col0 * 56 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
12592
423821
526762

query I rowsort
SELECT - col0 - col2 + - - ( - + col0 ) FROM tab1 AS cor0
----
-198
-229
-250

query I rowsort
SELECT col2 - - - col0 - + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1299
-321
-3219

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT ALL + 77 DIV + + col1 col0 FROM tab0
----
0
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2022
SELECT ALL + 77 / + + col1 col0 FROM tab0
----
0
3
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2023
SELECT ALL * FROM tab1 WHERE NOT - 96 + + col0 IN ( - CAST( NULL AS SIGNED ) + - col2, ( + col0 ), 41 )
----

skipif mysql # not compatible
query III rowsort label-2023
SELECT ALL * FROM tab1 WHERE NOT - 96 + + col0 IN ( - CAST ( NULL AS INTEGER ) + - col2, ( + col0 ), 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * 37 + + 79 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * 37 + + 79 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 57 < - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT - - ( + - MIN( DISTINCT + 72 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-2026
SELECT - - ( + - MIN ( DISTINCT + 72 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

query I rowsort
SELECT ALL + col2 * 42 FROM tab2
----
1680
2436
966

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + col1 IS NULL
----

query I rowsort
SELECT ALL ( - col2 ) * - 47 AS col0 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT ( - ( - 69 ) ) FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT + ( col0 ) * - col1 + col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2032
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 12 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT COUNT( - 58 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2034
SELECT COUNT ( - 58 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + 73 ) AS col1 FROM tab0
----
73

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 64 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT ALL - col2 DIV + ( - - 43 ) AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - col2 / + ( - - 43 ) AS col0 FROM tab1
----
-1
-1
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + col1 + - col0, 97 )
----

query II rowsort
SELECT DISTINCT - col2 AS col0, 72 FROM tab1
----
-59
72
-68
72
-96
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2040
SELECT col2 * + CAST( NULL AS SIGNED ), col0 * + 77 * 92 AS col2 FROM tab0
----
NULL
106260
NULL
616308
NULL
687148

skipif mysql # not compatible
query II rowsort label-2040
SELECT col2 * + CAST ( NULL AS INTEGER ), col0 * + 77 * 92 AS col2 FROM tab0
----
NULL
106260
NULL
616308
NULL
687148

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2041
SELECT DISTINCT - MAX( ALL CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 23 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + ( - + col2 ) * - - col0 AS col2 FROM tab0 cor0
----
-705
-870
-9603

query II rowsort
SELECT 3, col1 AS col0 FROM tab0 AS cor0
----
3
1
3
21
3
81

query I rowsort
SELECT ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT ALL 18 + + COUNT( * ) * + COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL 18 + + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
27

query I rowsort
SELECT ALL - - 96 + + + col0 FROM tab1 AS cor0
----
147
181
187

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2049
SELECT CAST( col2 AS SIGNED ) AS col1, + col0 * - col0 + - ( col1 ) * - col2 AS col2 FROM tab1 cor0
----
59
-6930
68
-5085
96
-1257

skipif mysql # not compatible
query II rowsort label-2049
SELECT CAST ( col2 AS INTEGER ) AS col1, + col0 * - col0 + - ( col1 ) * - col2 AS col2 FROM tab1 cor0
----
59
-6930
68
-5085
96
-1257

query I rowsort
SELECT ALL + col2 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
100
231
3888

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + 51 NOT IN ( + col2, + col2, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col0 * 52 AS col0 FROM tab2 AS cor0
----
-2392
-3328
-3900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT + - COUNT( * ) DIV + 90 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT + - COUNT ( * ) / + 90 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE + 88 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - 71 + - col2 AS col2 FROM tab1
----
-130
-139
-167

query I rowsort
SELECT DISTINCT - + 87 * + col2 + + 7 + 94 * - + 99 * - col0 * 93 AS col0 FROM tab1 WHERE NULL < + col1
----

query I rowsort
SELECT 33 + col1 FROM tab2
----
100
110
84

query I rowsort
SELECT 40 + - 61 AS col0 FROM tab1
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT 74 + - COUNT( * ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-2059
SELECT 74 + - COUNT ( * ) FROM tab2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT DISTINCT + - 63 - - col0 DIV ( col2 ) col2 FROM tab1 cor0
----
-62
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2060
SELECT DISTINCT + - 63 - - col0 / ( col2 ) col2 FROM tab1 cor0
----
-62
-63

query II rowsort
SELECT col1, - 7 FROM tab0 cor0
----
1
-7
21
-7
81
-7

query I rowsort
SELECT - 84 FROM tab1 AS cor0 WHERE NOT - col1 + 4 * col2 IS NULL
----
-84
-84
-84

query I rowsort
SELECT + 43 * - 83 AS col1 FROM tab1
----
-3569
-3569
-3569

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT DISTINCT + COUNT( * ) * 70 FROM tab2 WHERE NOT 31 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT + COUNT ( * ) * 70 FROM tab2 WHERE NOT 31 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - ( - col0 ) AS col0, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - 76 * 56 AS col1 FROM tab2
----
-4256
-4256
-4256

query I rowsort
SELECT DISTINCT + 99 * + col1 * + - col2 AS col2 FROM tab1
----
-133056
-29205
-316404

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - COUNT( * ) - 13 AS col1 FROM tab0 WHERE NOT - + 95 > + col2
----
-16

skipif mysql # not compatible
query I rowsort label-2068
SELECT - COUNT ( * ) - 13 AS col1 FROM tab0 WHERE NOT - + 95 > + col2
----
-16

query I rowsort
SELECT + - col2 * col0 * + + col0 FROM tab0 cor0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL + col0 * + + col2 - - 30 * col1 AS col0 FROM tab0 AS cor0
----
1500
3135
9633

query I rowsort
SELECT - + col1 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col2 * 59 AS col1 FROM tab1 AS cor0
----
-3481
-4012
-5664

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab0 AS cor0 WHERE ( 56 * - 43 ) BETWEEN NULL AND + 96 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL + CAST( 2 AS SIGNED ) FROM tab0 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + CAST ( 2 AS INTEGER ) FROM tab0 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT + MAX( - + 18 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-2075
SELECT + MAX ( - + 18 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + 28 * - COUNT( * ) AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-2076
SELECT + 28 * - COUNT ( * ) AS col2 FROM tab1
----
-84

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 82 + ( - 17 ) * - 13 * - 74 FROM tab0
----
-16272

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2079
SELECT ALL CAST( - + CAST( + 51 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL CAST ( - + CAST ( + 51 AS REAL ) AS INTEGER ) AS col2 FROM tab0
----
-51
-51
-51

query II rowsort
SELECT col0, 30 + - 51 FROM tab0
----
15
-21
87
-21
97
-21

query I rowsort
SELECT DISTINCT + ( - ( - col2 ) ) * - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col0 + col2 / + + col0 AND + - 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2083
SELECT ALL - + col1 FROM tab2 WHERE + - 41 NOT IN ( 51, - col1, - ( + 28 ), CAST( + col1 AS DECIMAL ), + col2 )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - + col1 FROM tab2 WHERE + - 41 NOT IN ( 51, - col1, - ( + 28 ), CAST ( + col1 AS REAL ), + col2 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL - COUNT( * ) - + + 2 + + 24 col2 FROM tab1 cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2084
SELECT ALL - COUNT ( * ) - + + 2 + + 24 col2 FROM tab1 cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT - col0 + + 1 / + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + 63 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT - col0 + + 1 / + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + 63 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col2, + 87 AS col0 FROM tab0 AS cor0
----
15
87
87
87
97
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 14 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 14 > CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT - + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2088
SELECT - + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, 82 AS col1 FROM tab1 AS cor0
----
-14
82
-47
82
-5
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2090
SELECT + CAST( + col2 AS SIGNED ) DIV + col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2090
SELECT + CAST ( + col2 AS INTEGER ) / + col1 FROM tab1 AS cor0
----
1
11
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 AS col2 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2092
SELECT col2 DIV + + ( + - CAST( - col0 AS SIGNED ) ) col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2092
SELECT col2 / + + ( + - CAST ( - col0 AS INTEGER ) ) col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT COUNT( * ) * - - 4 AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2093
SELECT COUNT ( * ) * - - 4 AS col2 FROM tab0
----
12

query I rowsort
SELECT DISTINCT + - ( - 62 ) AS col1 FROM tab1 WHERE NOT - + 0 IS NOT NULL
----

query II rowsort
SELECT ALL 16 + - + col1, + col2 AS col0 FROM tab2
----
-35
23
-51
58
-61
40

query I rowsort
SELECT col2 * + - 14 FROM tab0
----
-1386
-140
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT - + COUNT( DISTINCT - 64 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2097
SELECT - + COUNT ( DISTINCT - 64 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col1 * + col1 + col1, col0 * - col1 * + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col1 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2100
SELECT DISTINCT 17 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT 17 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) <= NULL
----

query I rowsort
SELECT 91 * - - col1 AS col2 FROM tab0
----
1911
7371
91

query I rowsort
SELECT DISTINCT ( - 85 ) FROM tab1
----
-85

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 47 ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT col2 * + 93 * col2 + + col2 FROM tab0 AS cor0
----
205484
911592
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT + MIN( - ( - col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2105
SELECT + MIN ( - ( - col1 ) ) FROM tab1 AS cor0
----
5

query II rowsort
SELECT - + 86 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
-86
-46
-86
-64
-86
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + COUNT( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2107
SELECT + COUNT ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT MIN( DISTINCT ( 95 ) ) * 45 AS col2 FROM tab1 AS cor0
----
4275

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT MIN ( DISTINCT ( 95 ) ) * 45 AS col2 FROM tab1 AS cor0
----
4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 + - - 7 col0 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE - + 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE - + 27 IS NOT NULL
----
3

query II rowsort
SELECT + col0 AS col2, col2 FROM tab2 WHERE NOT NULL > col0
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE NOT ( + 13 + - col0 IS NULL )
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - 92 * - COUNT( * ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-2114
SELECT - 92 * - COUNT ( * ) FROM tab0
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2115
SELECT ALL - COUNT( * ) DIV + 41 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL - COUNT ( * ) / + 41 FROM tab2
----
0

query I rowsort
SELECT - 81 + col0 AS col1 FROM tab0 AS cor0
----
-66
16
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT - 85 + + 27 DIV - COUNT( * ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2117
SELECT - 85 + + 27 / - COUNT ( * ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL - + col1 - + 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT + - 5 FROM tab0 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT ALL 64 + + 59 FROM tab1
----
123
123
123

query I rowsort
SELECT + 60 + col1 FROM tab2 WHERE + 20 * col0 NOT IN ( col2 )
----
111
127
137

query I rowsort
SELECT + + 31 AS col0 FROM tab0 AS cor0 WHERE - col1 * - col1 * + col0 * - + col0 + 73 IS NULL
----

query II rowsort
SELECT + + col1 AS col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT col0 - col2 AS col0 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT ALL - 80 AS col1 FROM tab0 cor0
----
-80
-80
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 49 + + ( - - col0 ) + + + 90 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 6 col2, col0 FROM tab2
----
6
46
6
64
6
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 - ( - + 36 ) IS NOT NULL
----

query I rowsort
SELECT + col1 + + col0 * - - col1 FROM tab0
----
1296
1848
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT + col0 AS col2 FROM tab0 WHERE NOT + - col1 / + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2130
SELECT + col0 AS col2 FROM tab0 WHERE NOT + - col1 / + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL - MAX( + - 46 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - MAX ( + - 46 ) FROM tab2
----
46

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT + 10 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) * + 55 NOT IN ( + 99 / - - col1, - 86, - col2 * + + col2 + col2, + ( - col1 ) + col2, col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > - col1
----

query I rowsort
SELECT - 10 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 54 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT + COUNT( DISTINCT + - 38 ) + 15 + + 8 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2137
SELECT + COUNT ( DISTINCT + - 38 ) + 15 + + 8 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT - 20 * - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - 20 * - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT ALL - col0 * - 0 + col0 - + - 56 FROM tab2 cor0
----
102
120
131

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT 99 * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT 99 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-297

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2142
SELECT ALL * FROM tab0 WHERE - - col1 * + - CAST( NULL AS DECIMAL ) + + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-2142
SELECT ALL * FROM tab0 WHERE - - col1 * + - CAST ( NULL AS REAL ) + + col0 >= NULL
----

query I rowsort
SELECT + col1 + - - ( - col2 ) * + col2 FROM tab2
----
-1523
-3297
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - COUNT( DISTINCT + + 26 ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2144
SELECT - COUNT ( DISTINCT + + 26 ) col0 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 48 col1 FROM tab0 AS cor0
----
-4176
-4656
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT + 96 * - COUNT( * ) FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT + 96 * - COUNT ( * ) FROM tab0 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - COUNT( * ) - - 88 AS col1 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2147
SELECT - COUNT ( * ) - - 88 AS col1 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT 39 * + COUNT( * ) + 31 AS col1 FROM tab2 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT 39 * + COUNT ( * ) + 31 AS col1 FROM tab2 AS cor0
----
148

query I rowsort
SELECT DISTINCT - col2 + col1 * + - col0 FROM tab0
----
-1262
-1837
-196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) - + 81 + - + col1 * 79 / 91 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) - + 81 + - + col1 * 79 / 91 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - AVG ( + - col0 ) FROM tab2 AS cor0 WHERE NOT + 58 >= + - 96
----
NULL

query I rowsort
SELECT - - 51 * + - 33 + + + col0 * + col1 * + col2 + + col0 AS col1 FROM tab2 AS cor0
----
195501
289842
52321

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL + ( + - 30 ) - - 22 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + ( + - 30 ) - - 22 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT + 42 * - 37 * 28 * + COUNT( * ) col0 FROM tab0
----
-130536

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2154
SELECT + 42 * - 37 * 28 * + COUNT ( * ) col0 FROM tab0
----
-130536

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT ALL - 15 DIV - 40 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - 15 / - 40 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 64 NOT BETWEEN NULL AND col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT MAX( ALL ( col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT MAX ( ALL ( col0 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL - COUNT( * ) * + 31 FROM tab0, tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - COUNT ( * ) * + 31 FROM tab0, tab1 AS cor0
----
-279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2159
SELECT - 55 DIV COUNT( * ) col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2159
SELECT - 55 / COUNT ( * ) col0 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT DISTINCT - - CAST( + - col0 AS SIGNED ) * col0 - + 27 FROM tab1 AS cor0
----
-2628
-7252
-8308

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT - - CAST ( + - col0 AS INTEGER ) * col0 - + 27 FROM tab1 AS cor0
----
-2628
-7252
-8308

query I rowsort
SELECT DISTINCT ( + - 55 ) AS col1 FROM tab1
----
-55

query I rowsort
SELECT - 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query II rowsort
SELECT + col2, - col0 * - 89 FROM tab1 AS cor0
----
59
7565
68
8099
96
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT MAX( DISTINCT ( - + col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT MAX ( DISTINCT ( - + col0 ) ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - 48 AS col1 FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT ALL - + 2 * - - col0 FROM tab1 AS cor0
----
-102
-170
-182

query II rowsort
SELECT - - 61 AS col1, col2 AS col1 FROM tab0 AS cor0
----
61
10
61
47
61
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT DISTINCT CAST( + + col0 AS SIGNED ) + - 81 AS col0 FROM tab1
----
-30
10
4

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + - 81 AS col0 FROM tab1
----
-30
10
4

query II rowsort
SELECT ALL 66 + - 16, - col1 AS col1 FROM tab0
----
50
-1
50
-21
50
-81

query I rowsort
SELECT ALL + col1 + - - 35 AS col1 FROM tab0
----
116
36
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 IS NOT NULL OR ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT DISTINCT + COUNT( * ) + 61 AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT + COUNT ( * ) + 61 AS col0 FROM tab0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 - + 92 * + - col1 * - col0 col1 FROM tab1 AS cor0
----
-39020
-393440
-65651

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 31 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ( - COUNT( * ) ) * - - SUM( DISTINCT + + 30 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-2176
SELECT ( - COUNT ( * ) ) * - - SUM ( DISTINCT + + 30 ) FROM tab1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT + 20 DIV 14 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2177
SELECT + 20 / 14 FROM tab0
----
1
1
1

query I rowsort
SELECT + - ( + 67 ) + + col2 AS col1 FROM tab1 WHERE + - col1 = - col1
----
-8
1
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col0 col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - 5 - 65 AS col0 FROM tab2 AS cor0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 73 * col2 - col1 col0 FROM tab1 AS cor0
----
4302
4917
6994

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT ALL + col2 DIV - col0 + col1 * + col2 * + - 80 AS col1 FROM tab0 AS cor0
----
-16800
-304563
-7921

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + col2 / - col0 + col1 * + col2 * + - 80 AS col1 FROM tab0 AS cor0
----
-16800
-304563
-7921

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL COUNT( * ) * - COUNT( col2 ) + + + 2 AS col0 FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL COUNT ( * ) * - COUNT ( col2 ) + + + 2 AS col0 FROM tab0 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + - COUNT( * ) * - 4 AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2184
SELECT + - COUNT ( * ) * - 4 AS col1 FROM tab0 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 28 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2186
SELECT - MIN( ALL - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 WHERE NOT - + 67 + + 60 BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT - MIN ( ALL - - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 WHERE NOT - + 67 + + 60 BETWEEN ( NULL ) AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * col0 col1 FROM tab1
----
-4590
-7650
-8190

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - col0 / - ( col2 ) + + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL + CAST( - 8 AS SIGNED ) FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL + CAST ( - 8 AS INTEGER ) FROM tab1
----
-8
-8
-8

query I rowsort
SELECT + col0 * - col0 * + 99 FROM tab2
----
-209484
-405504
-556875

query I rowsort
SELECT + col0 + - col1 FROM tab0 WHERE NOT ( - - col0 ) >= col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2192
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 74 * - ( col1 ) FROM tab0 AS cor0
----
-1554
-5994
-74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 94 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 9 BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + - 17
----

query I rowsort
SELECT ALL 54 * 73 + + col0 + - 59 * + col1 - - 11 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col0 / - - col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, 36 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 26 * + 24 * 57 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT DISTINCT CAST( + 83 AS SIGNED ) FROM tab1 AS cor0 WHERE + 47 NOT BETWEEN col1 AND + 4 + - + col1
----
83

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT CAST ( + 83 AS INTEGER ) FROM tab1 AS cor0 WHERE + 47 NOT BETWEEN col1 AND + 4 + - + col1
----
83

query I rowsort
SELECT ALL - 52 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-52
-52
-52

query I rowsort
SELECT 34 + col2 AS col2 FROM tab1 AS cor0
----
102
130
93

query I rowsort
SELECT - - 3 * - - col1 * + - col2 + - + col2 FROM tab1 AS cor0
----
-4128
-944
-9656

query I rowsort
SELECT ALL col1 * 80 AS col0 FROM tab0 WHERE 91 * - col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT - SUM( ALL col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - SUM ( ALL col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT COUNT( * ) + - 32 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT COUNT ( * ) + - 32 FROM tab2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT SUM( ALL 59 ) * + - 55 * - 75 col1 FROM tab1
----
730125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2208
SELECT SUM ( ALL 59 ) * + - 55 * - 75 col1 FROM tab1
----
730125

query II rowsort
SELECT ( - + col2 ) AS col2, ( - + 41 ) - + 89 FROM tab2
----
-23
-130
-40
-130
-58
-130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 7 col1 FROM tab0
----
-15
7
-87
7
-97
7

query I rowsort
SELECT DISTINCT col1 - + + 84 - + + col2 FROM tab0
----
-182
-50
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL col1 * - + 15 + - col2 + - + col0 * CAST( NULL AS SIGNED ) * - 91 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL col1 * - + 15 + - col2 + - + col0 * CAST ( NULL AS INTEGER ) * - 91 * col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT - MIN( - 21 ) - - 63 AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT - MIN ( - 21 ) - - 63 AS col2 FROM tab1
----
84

query I rowsort
SELECT DISTINCT - 58 FROM tab1 WHERE - - col1 NOT BETWEEN - 42 - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 5 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT DISTINCT - col2 DIV - + 45 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - col2 / - + 45 AS col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL 40 * + col2 FROM tab0 AS cor0
----
1880
3960
400

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL 44 * + COUNT( * ) * 26 col0 FROM tab2 cor0
----
3432

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2219
SELECT ALL 44 * + COUNT ( * ) * 26 col0 FROM tab2 cor0
----
3432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + 60 col2, col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - col0, col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - MIN( 43 ) AS col1 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-2221
SELECT - MIN ( 43 ) AS col1 FROM tab2 AS cor0
----
-43

query II rowsort
SELECT ALL + col2, - 13 FROM tab1 AS cor0 WHERE NULL <> - col0 + + ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL + AVG ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + AVG ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2224
SELECT 28 * - MAX( + col1 ), - 24 AS col2 FROM tab2
----
-2156
-24

skipif mysql # not compatible
query II rowsort label-2224
SELECT 28 * - MAX ( + col1 ), - 24 AS col2 FROM tab2
----
-2156
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + MIN( - + 61 ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + MIN ( - + 61 ) FROM tab0
----
-61

query I rowsort
SELECT - 0 * 29 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ( - ( + - 75 ) ) * - ( + col0 ) + - + 15 AS col1 FROM tab0
----
-1140
-6540
-7290

query II rowsort
SELECT ALL 32 AS col1, + col2 * + + ( - ( - - col2 ) ) AS col1 FROM tab1
----
32
-3481
32
-4624
32
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT ALL + CAST( NULL AS SIGNED ) * - + SUM( - col2 ) FROM tab0 WHERE NOT + 77 <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + CAST ( NULL AS INTEGER ) * - + SUM ( - col2 ) FROM tab0 WHERE NOT + 77 <= + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 46 col0 FROM tab2
----
1058
1840
2668

query III rowsort
SELECT * FROM tab0 WHERE NOT - 54 <> NULL
----

query I rowsort
SELECT DISTINCT + + ( + col1 ) * - + 54 * - - 59 + col2 FROM tab1 AS cor0
----
-149674
-15871
-44508

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT ALL - col2 DIV 58 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL - col2 / 58 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT 20 * - COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT 20 * - COUNT ( * ) FROM tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2236
SELECT + col1 / - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 AS col0, 38 * - ( col0 ) FROM tab2 AS cor0
----
NULL
-1748
NULL
-2432
NULL
-2850

skipif mysql # not compatible
query II rowsort label-2236
SELECT + col1 / - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 AS col0, 38 * - ( col0 ) FROM tab2 AS cor0
----
NULL
-1748
NULL
-2432
NULL
-2850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT + 96 * col2 - - + CAST( NULL AS SIGNED ) + - + 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT + 96 * col2 - - + CAST ( NULL AS INTEGER ) + - + 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 23 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT - COUNT( * ) * - 96 + - COUNT( * ) FROM tab2 WHERE - col0 + + + 13 IS NOT NULL
----
285

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT - COUNT ( * ) * - 96 + - COUNT ( * ) FROM tab2 WHERE - col0 + + + 13 IS NOT NULL
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT DISTINCT 7 + + col2 AS col2 FROM tab1 WHERE NOT col0 NOT IN ( - col0 * - col1 * + col0 / CAST( NULL AS SIGNED ) + 10 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT 7 + + col2 AS col2 FROM tab1 WHERE NOT col0 NOT IN ( - col0 * - col1 * + col0 / CAST ( NULL AS INTEGER ) + 10 + - col1 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + - col2 * - col1 + - - col2 + - ( + col0 ) + col0 AS col2 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT + + 52 * - col0 * + ( - 9 ) AS col2 FROM tab2 AS cor0
----
21528
29952
35100

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - - MIN( ALL + 13 ) * - 13 AS col1 FROM tab1 cor0
----
-169

skipif mysql # not compatible
query I rowsort label-2244
SELECT - - MIN ( ALL + 13 ) * - 13 AS col1 FROM tab1 cor0
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT + SUM( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2245
SELECT + SUM ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2246
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL = + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL = + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 82 * - col0 IN ( + 80, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - - col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL 60 + + MIN( ALL - + 83 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL 60 + + MIN ( ALL - + 83 ) FROM tab1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT col2 + + + 38 * col0 DIV - + 46 FROM tab2
----
-12
-15
-3

skipif mysql # not compatible
query I rowsort label-2250
SELECT col2 + + + 38 * col0 / - + 46 FROM tab2
----
-12
-15
-3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 + 61 FROM tab2 WHERE NOT - + col1 IS NULL
----
101
119
84

query I rowsort
SELECT DISTINCT + + 12 + - + col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-2
-35
7

query I rowsort
SELECT - 73 + - - 35 AS col0 FROM tab2
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT DISTINCT + COUNT( * ) + + + MAX( - col2 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT + COUNT ( * ) + + + MAX ( - col2 ) FROM tab2
----
-20

query I rowsort
SELECT col1 * - - col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
10857
4947
9514

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + + col2 + - + col1 * + col0 + - 78 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2258
SELECT DISTINCT - 61 AS col0, col1 * col1 DIV - 14 AS col1 FROM tab2
----
-61
-185
-61
-320
-61
-423

skipif mysql # not compatible
query II rowsort label-2258
SELECT DISTINCT - 61 AS col0, col1 * col1 / - 14 AS col1 FROM tab2
----
-61
-185
-61
-320
-61
-423

query I rowsort
SELECT ALL 58 * ( - col0 ) - - 3 FROM tab0
----
-5043
-5623
-867

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 73 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT 59 DIV + 45 + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif mysql # not compatible
query I rowsort label-2261
SELECT 59 / + 45 + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - 64 * + - COUNT( * ) AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-2262
SELECT - 64 * + - COUNT ( * ) AS col0 FROM tab1
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2263
SELECT - COUNT( DISTINCT + - 83 ) DIV + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT - COUNT ( DISTINCT + - 83 ) / + - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT + COUNT( + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2264
SELECT + COUNT ( + col2 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col0 * + 68 * col2 * + col1, + col1 + - 86 AS col1 FROM tab0
----
1242360
-65
3883140
-5
653004
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT COUNT( DISTINCT - 70 ) col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2266
SELECT DISTINCT COUNT ( DISTINCT - 70 ) col1 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col1 >= NULL
----

query II rowsort
SELECT 57, + col2 FROM tab1 AS cor0
----
57
59
57
68
57
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2269
SELECT + MIN( ALL col0 ) * - CAST( COUNT( * ) AS SIGNED ) DIV - COUNT( DISTINCT + 93 ) + COUNT( * ) * - 39 AS col0 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2269
SELECT + MIN ( ALL col0 ) * - CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( DISTINCT + 93 ) + COUNT ( * ) * - 39 AS col0 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT ALL 78 DIV - - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL 78 / - - col0 FROM tab2
----
1
1
1

query I rowsort
SELECT 4 * + col0 FROM tab1
----
204
340
364

query I rowsort
SELECT ALL col2 * 72 AS col0 FROM tab1
----
4248
4896
6912

query I rowsort
SELECT DISTINCT 19 FROM tab1 WHERE NOT ( NOT + col0 <> + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * col2 + - + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + - + col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 56 / col2 + + - col1 + + 52 + + col2 IN ( - - 26 * - col0, - col2 * col1 )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 21 AS col0, - 75 AS col2 FROM tab0 cor0
----
21
-75

query I rowsort
SELECT DISTINCT - - 17 * + + 40 FROM tab1 AS cor0
----
680

query I rowsort
SELECT - 24 + + 1 AS col0 FROM tab2 cor0
----
-23
-23
-23

query II rowsort
SELECT ALL 87 AS col2, col2 * col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col1
----

query I rowsort
SELECT - + ( - 27 ) AS col0 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE NOT - ( + col2 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2285
SELECT + 17 DIV col0 AS col1, col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-2285
SELECT + 17 / col0 AS col1, col0 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2286
SELECT * FROM tab2 WHERE NULL >= + - CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2286
SELECT * FROM tab2 WHERE NULL >= + - CAST ( - col2 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT - col2 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT - col2 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT ALL - CAST( NULL AS SIGNED ) / + col1 * 56 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - CAST ( NULL AS INTEGER ) / + col1 * 56 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 * + - col1 + - ( - col1 ) AS col0, + col1 AS col2 FROM tab0
----
-1134
81
-1806
21
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT COUNT( * ) + - 71 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT COUNT ( * ) + - 71 FROM tab2 AS cor0
----
-68

query I rowsort
SELECT ALL + col0 + - - ( 92 ) AS col1 FROM tab2 AS cor0
----
138
156
167

query I rowsort
SELECT + + 2 + 5 * - - 74 * col2 - + 41 * + - col2 AS col1 FROM tab2 AS cor0
----
16442
23840
9455

query I rowsort
SELECT - + 48 * 13 AS col0 FROM tab2 AS cor0
----
-624
-624
-624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - col0, CAST( - col0 AS SIGNED ) * - + col1 / 36, + col2 )
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - col0, CAST ( - col0 AS INTEGER ) * - + col1 / 36, + col2 )
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2295
SELECT DISTINCT - COUNT( * ) * + ( + MIN( + CAST( + col2 AS DECIMAL ) ) ) FROM tab2 WHERE NOT - - col1 > 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - COUNT ( * ) * + ( + MIN ( + CAST ( + col2 AS REAL ) ) ) FROM tab2 WHERE NOT - - col1 > 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2296
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT - 6 DIV + 48 * + 19 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 6 / + 48 * + 19 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT COUNT( * ) * - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT ( col2 - ( col0 ) + 25 ) NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2299
SELECT COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT ( col2 - ( col0 ) + 25 ) NOT BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT - 21 + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL - MAX( ALL 84 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - MAX ( ALL 84 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN col1 AND NULL
----
NULL

query II rowsort
SELECT + ( col0 ), + 93 * + 50 * + + col0 AS col1 FROM tab0
----
15
69750
87
404550
97
451050

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + COUNT( * ) * + + 4 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2303
SELECT + COUNT ( * ) * + + 4 FROM tab2
----
12

query I rowsort
SELECT - 57 + + + col0 AS col0 FROM tab2 AS cor0
----
-11
18
7

query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab2
----
55

query I rowsort
SELECT - col2 * + col0 * 5 AS col0 FROM tab1 WHERE col2 + - 40 IS NOT NULL
----
-24480
-25075
-30940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT - col0 ) - + + COUNT( * ) * + COUNT( * ) + - - MIN( ALL + - ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT - col0 ) - + + COUNT ( * ) * + COUNT ( * ) + - - MIN ( ALL + - ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2308
SELECT + + 97 DIV 26 * - - 17 + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> - col2
----
51

skipif mysql # not compatible
query I rowsort label-2308
SELECT + + 97 / 26 * - - 17 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> - col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT MIN( 26 ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2309
SELECT MIN ( 26 ) AS col2 FROM tab1 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT col1 * - col2 / - + col0 + + + col2 + 52 * + ( col2 ) / + CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT col1 * - col2 / - + col0 + + + col2 + 52 * + ( col2 ) / + CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col0 * 61 FROM tab0 cor0
----
-43005
-53070
-585783

query I rowsort
SELECT col0 - 20 AS col0 FROM tab2 AS cor0
----
26
44
55

query I rowsort
SELECT DISTINCT + + col0 * - - col2 - + col0 AS col1 FROM tab2 cor0
----
1012
2496
4275

query I rowsort
SELECT col1 * - + col1 + - col1 AS col1 FROM tab2
----
-2652
-4556
-6006

query I rowsort
SELECT ALL 80 + + + col1 FROM tab2
----
131
147
157

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2317
SELECT DISTINCT col2 * + col1 - + + col1 + col0 + 84 DIV + + 48 AS col1 FROM tab0
----
196
277
3742

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT col2 * + col1 - + + col1 + col0 + 84 / + + 48 AS col1 FROM tab0
----
196
277
3742

query I rowsort
SELECT + + col0 + - - ( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 90 AND 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( col1 / col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( col1 / col1 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 / 59 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL 21 / col1 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE - col2 >= - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL 21 / col1 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - col2 >= - col1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE 15 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + col1 * col2 + 9 AS col2 FROM tab0
----
108
219
3816

query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab1 WHERE NOT 46 * col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab1 WHERE NOT ( 19 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT ALL ( + col1 ) AS col0 FROM tab1 WHERE NOT 4 NOT BETWEEN ( - col0 ) * - CAST( col2 + - col1 AS SIGNED ) AND 42
----

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL ( + col1 ) AS col0 FROM tab1 WHERE NOT 4 NOT BETWEEN ( - col0 ) * - CAST ( col2 + - col1 AS INTEGER ) AND 42
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 > ( NULL )
----

query I rowsort
SELECT + col2 * - 84 + - ( + col2 ) FROM tab1
----
-5015
-5780
-8160

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 > - 14 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 + col2 * + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) < NULL
----

query I rowsort
SELECT ALL + 36 * col2 + + 9 FROM tab0
----
1701
3573
369

query I rowsort
SELECT + 79 * + col0 + + 89 AS col1 FROM tab2
----
3723
5145
6014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2335
SELECT - ( - 29 ) + - MAX( + col0 + + 61 ) * - MAX( ALL col0 + 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-2335
SELECT - ( - 29 ) + - MAX ( + col0 + + 61 ) * - MAX ( ALL col0 + CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL - COUNT( ( col2 ) ) + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - COUNT ( ( col2 ) ) + COUNT ( * ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT IN ( 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( ( + 7 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 75 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + 17 col1 FROM tab2
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - 22 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 * col0 IN ( + col0 )
----
97
1
99

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL >= col2 + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 33 + + col1 IN ( - col0 * col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN - 33 AND NULL
----

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE col2 * - col1 + 27 = + 56 + - 84 * + 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT col1 DIV + 93 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2347
SELECT col1 / + 93 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT MAX( - col0 ) * + MAX( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-3450

skipif mysql # not compatible
query I rowsort label-2348
SELECT MAX ( - col0 ) * + MAX ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-3450

query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT 42 + 76 DIV - col0 FROM tab2 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-2350
SELECT 42 + 76 / - col0 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - 57 + + 1 FROM tab0
----
-56

query I rowsort
SELECT ALL col0 * + col2 + 93 * ( - col2 ) FROM tab0
----
-3666
-60
396

query I rowsort
SELECT DISTINCT - col0 + 49 AS col1 FROM tab2
----
-15
-26
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT 89 - COUNT( * ) DIV 95 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT 89 - COUNT ( * ) / 95 FROM tab0
----
89

query I rowsort
SELECT ALL 29 + - 90 * - col2 FROM tab1
----
5339
6149
8669

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2356
SELECT - ( 53 ) FROM tab0 AS cor0 WHERE - col1 - col1 * 7 BETWEEN NULL AND CAST( NULL AS DECIMAL ) * + col2
----

skipif mysql # not compatible
query I rowsort label-2356
SELECT - ( 53 ) FROM tab0 AS cor0 WHERE - col1 - col1 * 7 BETWEEN NULL AND CAST ( NULL AS REAL ) * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + - MIN( - 91 ) + 21 FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-2357
SELECT + - MIN ( - 91 ) + 21 FROM tab0 AS cor0
----
112

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + col1 * - col1 - col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT 69 - 71 * ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT 69 - 71 * ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-144

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( 18 ) + - ( + col1 ) ) >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 61 * - col1 AS col1 FROM tab2 cor0
----
-3111
-4087
-4697

query I rowsort
SELECT DISTINCT + + col2 - ( + 46 - col0 ) FROM tab2 cor0
----
23
58
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2363
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT 49 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-2364
SELECT 49 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
147

query I rowsort
SELECT DISTINCT + 53 + 38 FROM tab2 AS cor0 WHERE col0 >= ( + 57 + 4 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2366
SELECT * FROM tab0 AS cor0 WHERE 53 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2366
SELECT * FROM tab0 AS cor0 WHERE 53 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - + ( ( COUNT( + col2 ) ) ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2367
SELECT - + ( ( COUNT ( + col2 ) ) ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - col2 col0 FROM tab1
----
-5192
-5984
-8448

query I rowsort
SELECT ALL + col2 + col0 + + 36 AS col2 FROM tab1
----
180
183
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2370
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) <> - 50
----

skipif mysql # not compatible
query III rowsort label-2370
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) <> - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT + COUNT( * ) - - SUM( - 47 ) AS col2 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-2371
SELECT + COUNT ( * ) - - SUM ( - 47 ) AS col2 FROM tab0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL COUNT( 14 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL COUNT ( 14 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT - col2 * + + col2 * - col2 - 24 DIV + col2 col0 FROM tab1
----
205379
314432
884736

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2373
SELECT - col2 * + + col2 * - col2 - 24 / + col2 col0 FROM tab1
----
205379
314432
884736

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 13 NOT BETWEEN NULL AND ( + 86 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT COUNT( 98 ) AS col2 FROM tab0 WHERE NOT NULL >= col0 * 88 + - 57
----
0

skipif mysql # not compatible
query I rowsort label-2376
SELECT COUNT ( 98 ) AS col2 FROM tab0 WHERE NOT NULL >= col0 * 88 + - 57
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col0 FROM tab0 WHERE NOT + col2 + col1 < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT - 17 DIV - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2378
SELECT - 17 / - + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT ALL + 97 * - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL + 97 * - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 36 ) * 78 FROM tab0 AS cor0
----
-2808

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( + 1 + - col2 ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT + COUNT( * ) - - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2382
SELECT + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
18

query I rowsort
SELECT ALL 8 AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
8
8
8

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 89 + col1 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab0 WHERE NOT 35 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2386
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2386
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT - MIN( ALL 34 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-34

skipif mysql # not compatible
query I rowsort label-2387
SELECT - MIN ( ALL 34 ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT + - ( COUNT( * ) ) * + 0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2388
SELECT + - ( COUNT ( * ) ) * + 0 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT + ( - 41 ) DIV - + 17 AS col1 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2389
SELECT + ( - 41 ) / - + 17 AS col1 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT - - col0 DIV - col2 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT - - col0 / - col2 AS col1 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT - + SUM( - 64 ) DIV SUM( DISTINCT 76 ) col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2391
SELECT DISTINCT - + SUM ( - 64 ) / SUM ( DISTINCT 76 ) col1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2392
SELECT ALL - - 83 DIV 96 * - MAX( ALL + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - - 83 / 96 * - MAX ( ALL + col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT + col1 DIV + - 29 AS col0 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2393
SELECT + col1 / + - 29 AS col0 FROM tab2 AS cor0
----
-1
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 6 - - 15 < + col0
----
15
81
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + ( + - SUM( ALL - ( 52 ) ) ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-2397
SELECT + ( + - SUM ( ALL - ( 52 ) ) ) FROM tab2
----
156

query I rowsort
SELECT ALL + col0 + + ( ( + - 30 ) ) + col0 FROM tab0
----
0
144
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + - COUNT( * ) FROM tab0 WHERE ( NULL ) = - col0
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT + - COUNT ( * ) FROM tab0 WHERE ( NULL ) = - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT 27 DIV - - col1 + - 68 FROM tab2
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-2400
SELECT 27 / - - col1 + - 68 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT 66 + + 88 * + col2 * - 10 * col2 AS col0 FROM tab1
----
-3063214
-4069054
-8110014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NULL <= col1 + - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2402
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NULL <= col1 + - col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2403
SELECT ALL CAST( NULL AS DECIMAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL CAST ( NULL AS REAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE col2 / + col2 + + col1 NOT BETWEEN + 7 * + col0 AND NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT col1 + col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col0 * + col2 * - - col1 - - 49 * CAST( NULL AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-2406
SELECT col1 + col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col0 * + col2 * - - col1 - - 49 * CAST ( NULL AS INTEGER ) AND - col2
----

query II rowsort
SELECT DISTINCT - col1 + col0 * 29, col1 FROM tab2 AS cor0
----
1283
51
1779
77
2108
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + + 98 col0 FROM tab0 AS cor0
----
-17
-77
-97

query I rowsort
SELECT ALL - + 83 + + col1 AS col2 FROM tab1 AS cor0
----
-36
-69
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT ALL COUNT( * ) - - - COUNT( ALL col0 ) AS col2, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-2410
SELECT ALL COUNT ( * ) - - - COUNT ( ALL col0 ) AS col2, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT - COUNT( * ) - + - MIN( ALL + + col1 ) AS col2 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-2411
SELECT - COUNT ( * ) - + - MIN ( ALL + + col1 ) AS col2 FROM tab2 cor0
----
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - + col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT + - col0 + - + col0 DIV col2 * col1 col1 FROM tab0 AS cor0
----
-15
-255
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2413
SELECT + - col0 + - + col0 / col2 * col1 col1 FROM tab0 AS cor0
----
-15
-255
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT - 48 * 8 + MAX( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0
----
-435

skipif mysql # not compatible
query I rowsort label-2414
SELECT - 48 * 8 + MAX ( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0
----
-435

query I rowsort
SELECT ALL + col1 * + 63 - + col0 FROM tab1 AS cor0
----
230
2870
831

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) AS col0 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 74 col1 FROM tab2
----
3774
4958
5698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT - CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT - CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, ( col2 ) AS col0 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT col1 AS col2, col1 * - col1 AS col2 FROM tab0
----
1
-1
21
-441
81
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2422
SELECT ALL * FROM tab0 WHERE NOT - 24 + 96 + - + 52 * - CAST( NULL AS SIGNED ) * col1 + - col0 * - col1 NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-2422
SELECT ALL * FROM tab0 WHERE NOT - 24 + 96 + - + 52 * - CAST ( NULL AS INTEGER ) * col1 + - col0 * - col1 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT col0 + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 <= + col0
----

query I rowsort
SELECT DISTINCT - - 46 * - + 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-2346

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT DISTINCT 43 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT 43 / - col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT COUNT( * ) - 51 FROM tab1 AS cor0 WHERE ( - col1 / - col1 + + - 94 ) > ( + col2 * col0 )
----
-51

skipif mysql # not compatible
query I rowsort label-2428
SELECT COUNT ( * ) - 51 FROM tab1 AS cor0 WHERE ( - col1 / - col1 + + - 94 ) > ( + col2 * col0 )
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <> + col2 * - - 68
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 / - col2 + 41 * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - + col1 AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT + COUNT( * ) * - - 6 AS col2 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + COUNT ( * ) * - - 6 AS col2 FROM tab1 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT ALL - col2 * - col2 * col0 AS col2 FROM tab1
----
295885
420784
470016

query III rowsort
SELECT * FROM tab0 WHERE col1 * + 70 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2435
SELECT 51 col1, SUM( ALL col1 ) FROM tab1
----
51
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2435
SELECT 51 col1, SUM ( ALL col1 ) FROM tab1
----
51
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT - COUNT( * ) FROM tab1 WHERE NULL BETWEEN + - col2 * - col0 * - ( 32 ) * - + 19 * + col0 + + col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2436
SELECT - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN + - col2 * - col0 * - ( 32 ) * - + 19 * + col0 + + col0 AND ( NULL )
----
0

query I rowsort
SELECT + col2 * + col2 - 43 + + col2 AS col2 FROM tab1 AS cor0
----
3497
4649
9269

query II rowsort
SELECT ALL - col2 AS col1, 73 FROM tab1 AS cor0
----
-59
73
-68
73
-96
73

query I rowsort
SELECT col0 * + col2 + - 55 * 73 * col2 AS col0 FROM tab0 AS cor0
----
-188000
-387882
-39280

query I rowsort
SELECT + ( - 66 ) + - col2 AS col1 FROM tab1
----
-125
-134
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT + 63 + + + 44 * - - MIN( DISTINCT col1 ) + SUM( - 3 ) * COUNT( - + 37 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-2441
SELECT + 63 + + + 44 * - - MIN ( DISTINCT col1 ) + SUM ( - 3 ) * COUNT ( - + 37 ) FROM tab0
----
80

query I rowsort
SELECT DISTINCT - col0 + - col2 + col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + + 56 - 82 - + - col1 AS col2 FROM tab2 cor0
----
25
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT + + COUNT( ALL - + ( + + 35 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2444
SELECT + + COUNT ( ALL - + ( + + 35 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 3 NOT IN ( - + 92 * - col0 + 43, + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - ( - + 12 ) ) AS col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT col1 * - - 42 FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 WHERE NOT - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col0 >= NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 94 - + 80 * + col1
----

query II rowsort
SELECT col0 AS col2, - 65 + 73 + - 59 FROM tab1 AS cor0
----
51
-51
85
-51
91
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT DISTINCT - MAX( + col1 ) AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - MAX ( + col1 ) AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT DISTINCT - 29 * - - COUNT( * ) AS col1 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - 29 * - - COUNT ( * ) AS col1 FROM tab2
----
-87

query I rowsort
SELECT ALL - col1 + - - ( - col2 ) + - col2 FROM tab1
----
-123
-183
-206

query III rowsort
SELECT * FROM tab1 WHERE NOT - 7 + + 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab1
----
-46

query I rowsort
SELECT + 2 * - 85 AS col0 FROM tab2 AS cor0
----
-170
-170
-170

onlyif mysql # aggregate syntax: 
query III rowsort label-2457
SELECT ALL + + MAX( 93 ) AS col1, - MIN( DISTINCT + 53 ) AS col0, + 9 FROM tab0 AS cor0
----
93
-53
9

skipif mysql # not compatible
query III rowsort label-2457
SELECT ALL + + MAX ( 93 ) AS col1, - MIN ( DISTINCT + 53 ) AS col0, + 9 FROM tab0 AS cor0
----
93
-53
9

query I rowsort
SELECT - + col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT + SUM( + + col1 ) col0, COUNT( * ) FROM tab1 cor0
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2459
SELECT + SUM ( + + col1 ) col0, COUNT ( * ) FROM tab1 cor0
----
66
3

query I rowsort
SELECT ALL + 95 AS col2 FROM tab0 AS cor0 WHERE NOT 76 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - 55 AS col0 FROM tab2 AS cor0
----
2530
3520
4125

query II rowsort
SELECT ALL - + col0 AS col0, 0 AS col1 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query I rowsort
SELECT ( + 83 ) * - col1 FROM tab1 AS cor0
----
-1162
-3901
-415

query I rowsort
SELECT DISTINCT 28 + - col2 AS col1 FROM tab2
----
-12
-30
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT ALL - 50 + CAST( 22 AS SIGNED ) - - - 75 * + 92 AS col0, col1 * col1 FROM tab2
----
-6928
2601
-6928
4489
-6928
5929

skipif mysql # not compatible
query II rowsort label-2465
SELECT ALL - 50 + CAST ( 22 AS INTEGER ) - - - 75 * + 92 AS col0, col1 * col1 FROM tab2
----
-6928
2601
-6928
4489
-6928
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL + COUNT( * ) + + 57 col2 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2466
SELECT ALL + COUNT ( * ) + + 57 col2 FROM tab1
----
60

query I rowsort
SELECT DISTINCT 64 * + col2 AS col1 FROM tab0 WHERE + col0 IS NULL AND NULL IS NULL
----

query I rowsort
SELECT - 80 - ( + col2 ) FROM tab2
----
-103
-120
-138

query II rowsort
SELECT ALL + 12 AS col1, + 98 AS col1 FROM tab1 AS cor0
----
12
98
12
98
12
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2470
SELECT DISTINCT - col2, + col0 + 61 + + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-2470
SELECT DISTINCT - col2, + col0 + 61 + + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT + col1 AS col2, col2 * - 78 - + col0 AS col0 FROM tab2 AS cor0
----
51
-1840
67
-4599
77
-3184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 84 col0, col1 AS col1 FROM tab1 AS cor0
----
-84
14
-84
47
-84
5

query I rowsort
SELECT ALL 2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2
2
2

query I rowsort
SELECT ALL ( + + col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + col0 * + col1 * + col1 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT - ( COUNT( * ) ) * - - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2476
SELECT - ( COUNT ( * ) ) * - - COUNT ( * ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT + + ( - col0 ) * + 19 AS col0 FROM tab1 AS cor0
----
-1615
-1729
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT MIN( DISTINCT - 45 ) AS col0 FROM tab1, tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2478
SELECT MIN ( DISTINCT - 45 ) AS col0 FROM tab1, tab2 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + col2 + - + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * - 10 + - col2 + col0 AS col1 FROM tab1
----
-555
-824
-887

query I rowsort
SELECT DISTINCT - col0 + - ( + ( + + col0 ) ) AS col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT col0 AS col1, 48 AS col1 FROM tab0 AS cor0
----
15
48
87
48
97
48

query I rowsort
SELECT ALL + + ( - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ( - MIN( col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2485
SELECT ( - MIN ( col1 ) ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2486
SELECT col1, + CAST( + - 5 AS SIGNED ) AS col0 FROM tab0
----
1
-5
21
-5
81
-5

skipif mysql # not compatible
query II rowsort label-2486
SELECT col1, + CAST ( + - 5 AS INTEGER ) AS col0 FROM tab0
----
1
-5
21
-5
81
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT DISTINCT + 95 DIV - ( - col0 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + 95 / - ( - col0 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * 99 FROM tab0 WHERE NOT - - 42 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * 99 FROM tab0 WHERE NOT - - 42 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 62 + + 78 AS col1 FROM tab0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT COUNT( + col1 ) + + 73 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT COUNT ( + col1 ) + + 73 FROM tab2
----
76

query I rowsort
SELECT DISTINCT col1 + - col2 * - ( + col0 ) - + - 69 FROM tab2 WHERE NOT - - col0 > - + 25 * - 99
----
1178
2706
4486

query I rowsort
SELECT DISTINCT col1 + - - 88 AS col1 FROM tab1
----
102
135
93

query I rowsort
SELECT DISTINCT - col0 * 76 - col2 * col0 FROM tab0
----
-16975
-1845
-7482

query I rowsort
SELECT DISTINCT + col2 - - col0 AS col0 FROM tab2 cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 2 col0 FROM tab1 cor0
----
-53
-87
-93

query I rowsort
SELECT - 10 + - 78 AS col2 FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT ( COUNT( * ) ) * 57 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT ( COUNT ( * ) ) * 57 FROM tab0
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-2498
SELECT ALL + 2 AS col2, 13 - 98 + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2
-94

skipif mysql # not compatible
query II rowsort label-2498
SELECT ALL + 2 AS col2, 13 - 98 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 = + col1 - - 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col1 ) col1, col2 * col0 AS col0 FROM tab1 cor0
----
-14
4896
-47
6188
-5
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL SUM( col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT + - col1 DIV - - col1 + - 70 * + col0 FROM tab2 AS cor0
----
-3221
-4481
-5251

skipif mysql # not compatible
query I rowsort label-2502
SELECT + - col1 / - - col1 + - 70 * + col0 FROM tab2 AS cor0
----
-3221
-4481
-5251

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT DISTINCT 55 DIV + 25 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT 55 / + 25 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - ( - - 13 ) AS col0 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT - col2 - + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-198
-20
-94

query I rowsort
SELECT DISTINCT - ( + 50 ) AS col2 FROM tab2
----
-50

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT - 86 <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2509
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - + col1 + + + col2 = ( - + col0 * - 59 * - + col2 + ( - col1 ) / - + col1 )
----

skipif mysql # not compatible
query III rowsort label-2509
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - + col1 + + + col2 = ( - + col0 * - 59 * - + col2 + ( - col1 ) / - + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT + COUNT( DISTINCT + col0 ) + + + 23 AS col2, COUNT( * ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
26
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2510
SELECT + COUNT ( DISTINCT + col0 ) + + + 23 AS col2, COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
26
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2511
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2511
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT ALL - CAST( NULL AS SIGNED ) * + - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > ( ( col2 ) * + col1 )
----

query I rowsort
SELECT ALL + col0 * + 1 + - ( - ( - col2 ) ) FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 48 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT - 47 DIV + col2 - + 79 AS col0 FROM tab2 AS cor0
----
-79
-80
-81

skipif mysql # not compatible
query I rowsort label-2516
SELECT - 47 / + col2 - + 79 AS col0 FROM tab2 AS cor0
----
-79
-80
-81

query I rowsort
SELECT ALL 53 - + 3 AS col0 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT ALL + - 92 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 34 BETWEEN ( NULL ) AND + col2 + + col2
----

query I rowsort
SELECT + col2 / + + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2521
SELECT * FROM tab0 WHERE ( + CAST( - col1 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2521
SELECT * FROM tab0 WHERE ( + CAST ( - col1 AS REAL ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT + col0 DIV - col1 + + col1 FROM tab0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-2522
SELECT + col0 / - col1 + + col1 FROM tab0
----
-96
17
81

query I rowsort
SELECT col2 + + + col2 + - col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2524
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) - - col1, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2524
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) - - col1, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL 23 * - col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL 23 * - col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT ALL + 90 - - MIN( CAST( - 46 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + 90 - - MIN ( CAST ( - 46 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2527
SELECT - 64 AS col0, - ( CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
-64
-1
-64
-21
-64
-81

skipif mysql # not compatible
query II rowsort label-2527
SELECT - 64 AS col0, - ( CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
-64
-1
-64
-21
-64
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT SUM( + col1 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT SUM ( + col1 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT DISTINCT col1 DIV + 8 col2 FROM tab0 cor0
----
0
10
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2529
SELECT DISTINCT col1 / + 8 col2 FROM tab0 cor0
----
0
10
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ( - 67 ) * + COUNT( * ) AS col1 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-2530
SELECT ( - 67 ) * + COUNT ( * ) AS col1 FROM tab0
----
-201

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT 26 DIV col1 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2531
SELECT 26 / col1 / - col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL + - COUNT( * ) * 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + - COUNT ( * ) * 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

query I rowsort
SELECT + col2 + + col2 FROM tab0 AS cor0 WHERE NOT + 12 * - + col0 + + col2 NOT BETWEEN - col2 AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT DISTINCT + ( - col0 ) DIV - 95 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + ( - col0 ) / - 95 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT DISTINCT - + 94 DIV col0 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT - + 94 / col0 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2536
SELECT - - COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2536
SELECT - - COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) IN ( col2, - 0 + - col2 * col1 * - 28 + - col0 * - col0 * - + 92 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col1, - col2 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
10
-31
47
-128
99
-100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2539
SELECT * FROM tab2 WHERE NOT + 42 + + col0 * + col1 + col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2539
SELECT * FROM tab2 WHERE NOT + 42 + + col0 * + col1 + col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2540
SELECT DISTINCT + MAX( - col2 ) AS col1, - COUNT( * ) AS col0 FROM tab2
----
-23
-3

skipif mysql # not compatible
query II rowsort label-2540
SELECT DISTINCT + MAX ( - col2 ) AS col1, - COUNT ( * ) AS col0 FROM tab2
----
-23
-3

query I rowsort
SELECT ALL - AVG ( + - 28 ) FROM tab1 WHERE NOT 9 BETWEEN NULL AND 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT + ( - 25 ) + 27 * + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
-25

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT + ( - 25 ) + 27 * + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
-25

query II rowsort
SELECT col2 * ( + + col2 ) AS col2, - col1 FROM tab2
----
1600
-77
3364
-67
529
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 + - col2 col2 FROM tab2 WHERE NOT + - 15 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT DISTINCT + 95 * ( + - col2 ) DIV - 72 FROM tab2
----
30
52
76

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + 95 * ( + - col2 ) / - 72 FROM tab2
----
30
52
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT ALL col1 DIV + - col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL col1 / + - col1 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * 9 AS col0 FROM tab2
----
207
360
522

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col0 ) + - + col0 <> + - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN col1 AND + 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2550
SELECT ALL ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + col2 * - - col0 AS col1, + col0 * + col2 * + col1 FROM tab0 AS cor0
----
705
57105
870
18270
9603
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 + + ( + - 37 ) col2 FROM tab0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT ALL - 91 + 94 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL - 91 + 94 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + - col0 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 >= + 89
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT col2 + col2 * 2 AS col0 FROM tab1 cor0
----
177
204
288

query II rowsort
SELECT ALL + + col2, + 47 * + + col0 FROM tab2 AS cor0
----
23
2162
40
3008
58
3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, + 67 AS col2 FROM tab1 AS cor0
----
14
67
47
67
5
67

query II rowsort
SELECT ALL col0 AS col1, - ( + 59 ) * + 65 FROM tab2 AS cor0
----
46
-3835
64
-3835
75
-3835

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - - SUM( ALL + 5 ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2560
SELECT - - SUM ( ALL + 5 ) AS col0 FROM tab2 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT + COUNT( * ) * + + 12 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2562
SELECT + COUNT ( * ) * + + 12 FROM tab1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT DISTINCT COUNT( * ) DIV - MAX( ALL col1 ) + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT COUNT ( * ) / - MAX ( ALL col1 ) + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - SUM( col2 ) - - COUNT( * ) + + COUNT( * ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2564
SELECT - SUM ( col2 ) - - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
-150

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col1 NOT BETWEEN + 38 AND NULL
----
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - ( + col0 ) col0 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT - - CAST( col2 AS SIGNED ) * + 69 AS col0 FROM tab0 cor0
----
3243
6831
690

skipif mysql # not compatible
query I rowsort label-2567
SELECT - - CAST ( col2 AS INTEGER ) * + 69 AS col0 FROM tab0 cor0
----
3243
6831
690

query I rowsort
SELECT DISTINCT + + 75 AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT 62 * + COUNT( * ) AS col0 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT 62 * + COUNT ( * ) AS col0 FROM tab1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT - COUNT( * ) * - 41 AS col0 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-2570
SELECT - COUNT ( * ) * - 41 AS col0 FROM tab1
----
123

query III rowsort
SELECT * FROM tab0 WHERE NOT + 61 >= + - col2
----

query I rowsort
SELECT + 18 * + 42 AS col0 FROM tab1
----
756
756
756

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 13 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT SUM( DISTINCT - 78 ) AS col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT SUM ( DISTINCT - 78 ) AS col0 FROM tab0 AS cor0
----
-78

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + - MIN( DISTINCT + - 79 ) FROM tab2 AS cor0 WHERE NOT ( - 91 ) IS NULL
----
79

skipif mysql # not compatible
query I rowsort label-2576
SELECT + - MIN ( DISTINCT + - 79 ) FROM tab2 AS cor0 WHERE NOT ( - 91 ) IS NULL
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 * - col0 col0 FROM tab0 AS cor0
----
-3132
-3492
-540

query I rowsort
SELECT - col0 * - + 95 AS col0 FROM tab2 AS cor0
----
4370
6080
7125

query II rowsort
SELECT - col1, ( + col2 ) FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2580
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + CAST( NULL AS DECIMAL ) + - + col2, - 21 * + + col1, + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2580
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + CAST ( NULL AS REAL ) + - + col2, - 21 * + + col1, + + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 70 * - - col0 <> + ( - col2 )
----

query II rowsort
SELECT + col0 AS col0, - col2 + + + ( - col1 ) * - + col0 AS col1 FROM tab1 AS cor0
----
51
618
85
366
91
4209

query I rowsort
SELECT ALL ( + + 3 ) * - + col0 + + col0 * + 91 + - col0 AS col0 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL + 40 * COUNT( * ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + 40 * COUNT ( * ) FROM tab0 AS cor0
----
120

query II rowsort
SELECT ALL - 44 AS col2, + 12 FROM tab0 AS cor0
----
-44
12
-44
12
-44
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT DISTINCT COUNT( + CAST( 63 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT COUNT ( + CAST ( 63 AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT ALL + 34 + + col0 + - col2 * + col2 AS col1 FROM tab1
----
-3362
-4499
-9131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT CAST( NULL AS SIGNED ) * - + 29 / + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT CAST ( NULL AS INTEGER ) * - + 29 / + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT DISTINCT + 40 + COUNT( DISTINCT 32 ) AS col1 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT + 40 + COUNT ( DISTINCT 32 ) AS col1 FROM tab0
----
41

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col0 * + col2 + - 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT ALL - col0 DIV + col1 + - - 27 FROM tab0
----
-70
23
27

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL - col0 / + col1 + - - 27 FROM tab0
----
-70
23
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT ALL + MAX( ALL ( + 27 ) ) + - MIN( DISTINCT - 6 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL + MAX ( ALL ( + 27 ) ) + - MIN ( DISTINCT - 6 ) FROM tab2
----
33

query I rowsort
SELECT col2 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT COUNT( * ) * + COUNT( * ) + + ( 89 ) AS col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2594
SELECT COUNT ( * ) * + COUNT ( * ) + + ( 89 ) AS col0 FROM tab0 AS cor0
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-2595
SELECT DISTINCT - 34 col1, + 44 DIV 42 FROM tab2 AS cor0
----
-34
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2595
SELECT DISTINCT - 34 col1, + 44 / 42 FROM tab2 AS cor0
----
-34
1

query I rowsort
SELECT 11 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 21 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT MAX( + 49 ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2598
SELECT MAX ( + 49 ) FROM tab2
----
49

query I rowsort
SELECT DISTINCT - 45 * + col0 + col1 FROM tab0 AS cor0
----
-3894
-4364
-594

query I rowsort
SELECT col1 / + col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2601
SELECT 14 + col1 + + 25 + col0 * + CAST( NULL AS DECIMAL ) + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT 14 + col1 + + 25 + col0 * + CAST ( NULL AS REAL ) + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL = col1
----
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL = col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - col0 AND + + 48 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT 22 + - - COUNT( * ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2604
SELECT 22 + - - COUNT ( * ) FROM tab0
----
25

query II rowsort
SELECT ALL - col1 * + 71 + + 65, ( - col2 ) AS col2 FROM tab0
----
-1426
-10
-5686
-47
-6
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL MIN( DISTINCT - + 55 ) col2 FROM tab2
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2606
SELECT ALL MIN ( DISTINCT - + 55 ) col2 FROM tab2
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * + 52 col2 FROM tab0
----
3276
3276
3276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11 col2, - col2 col2 FROM tab1
----
11
-59
11
-68
11
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE + 41 BETWEEN - 34 AND + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT - MIN( 65 ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2610
SELECT - MIN ( 65 ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT - + ( + 39 ) AS col0 FROM tab0 AS cor0
----
-39
-39
-39

query II rowsort
SELECT + col0 * + col2, col0 AS col2 FROM tab1
----
4896
51
5015
85
6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL - SUM( - col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL - SUM ( - col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL + SUM( - ( - col2 ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + SUM ( - ( - col2 ) ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT + - MIN( - 87 ) AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + - MIN ( - 87 ) AS col2 FROM tab2 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2616
SELECT * FROM tab1 AS cor0 WHERE + CAST( + - CAST( 5 AS SIGNED ) AS DECIMAL ) > ( NULL ) AND NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2616
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + - CAST ( 5 AS INTEGER ) AS REAL ) > ( NULL ) AND NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT ALL col0 + + + 70 DIV + ( - col2 ) FROM tab0
----
14
80
97

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL col0 + + + 70 / + ( - col2 ) FROM tab0
----
14
80
97

query I rowsort
SELECT DISTINCT 48 * + ( + + col2 ) FROM tab1
----
2832
3264
4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT ALL + col2 * - + col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + col2 * - + col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * col2 + - col2 - - 18 + - - 86 + ( + col0 ) * + 48 col2 FROM tab0
----
14165
5230
5289

query III rowsort
SELECT * FROM tab0 WHERE + - 61 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 42 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1 + - 94
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2623
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col1 + - 94
----

query I rowsort
SELECT + + col1 + 60 AS col1 FROM tab2 cor0
----
111
127
137

query I rowsort
SELECT + col0 + + 74 AS col2 FROM tab2
----
120
138
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL MAX( DISTINCT col0 ) + - 20 col0 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2626
SELECT ALL MAX ( DISTINCT col0 ) + - 20 col0 FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2627
SELECT - - 54 AS col2, + CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 <= - col0 + - col1
----

skipif mysql # not compatible
query II rowsort label-2627
SELECT - - 54 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 <= - col0 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT - col2 + + col0 DIV 8 FROM tab0
----
-46
-87
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT - col2 + + col0 / 8 FROM tab0
----
-46
-87
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= - col1 / - 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT 74 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT 74 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT + COUNT( * ), MIN( ALL col1 ) AS col2 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-2631
SELECT + COUNT ( * ), MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
3
5

query I rowsort
SELECT 44 * + + col1 + col2 AS col2 FROM tab0 cor0
----
143
3611
934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT + - COUNT( * ) DIV - 1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2633
SELECT + - COUNT ( * ) / - 1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT + + COUNT( * ) + 19 FROM tab1 WHERE NOT - ( + col0 ) IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-2634
SELECT + + COUNT ( * ) + 19 FROM tab1 WHERE NOT - ( + col0 ) IS NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT - SUM( 90 ) AS col1 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-2635
SELECT - SUM ( 90 ) AS col1 FROM tab0
----
-270

query II rowsort
SELECT ALL - ( 90 ), - col2 AS col0 FROM tab2 AS cor0
----
-90
-23
-90
-40
-90
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL MIN( - 37 ) AS col0 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL MIN ( - 37 ) AS col0 FROM tab2 AS cor0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - + CAST( - 15 AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-135

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - + CAST ( - 15 AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-135

query I rowsort
SELECT DISTINCT + - 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2640
SELECT * FROM tab1 WHERE NOT - - 68 IN ( col1, CAST( NULL AS SIGNED ), col0 + 72, + - 73, + col1 )
----

skipif mysql # not compatible
query III rowsort label-2640
SELECT * FROM tab1 WHERE NOT - - 68 IN ( col1, CAST ( NULL AS INTEGER ), col0 + 72, + - 73, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2641
SELECT ALL col1, ( 5 ) / + + 73 + + + col0 * - col2 + - + col2 + + + 12 + - col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL col1, ( 5 ) / + + 73 + + + col0 * - col2 + - + col2 + + + 12 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT + - col2 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT 18 * - col1 AS col1 FROM tab2 AS cor0
----
-1206
-1386
-918

query I rowsort
SELECT DISTINCT + + 59 * col2 AS col1 FROM tab1 AS cor0
----
3481
4012
5664

query I rowsort
SELECT + - col2 * + - col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - + 15 * - 47 AS col2 FROM tab2 AS cor0
----
705
705
705

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = + col1 + 59
----

query II rowsort
SELECT col1, + col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL - MAX( 26 ) FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - MAX ( 26 ) FROM tab1 cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2650
SELECT * FROM tab1 WHERE + CAST( - - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2650
SELECT * FROM tab1 WHERE + CAST ( - - col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL ( + 3 ) * + - col2 * - col0 * + - col0 FROM tab1
----
-1278825
-1689324
-749088

query I rowsort
SELECT ALL 75 + + col1 FROM tab0
----
156
76
96

query I rowsort
SELECT DISTINCT 19 * + 66 + - col0 * col0 + 39 AS col2 FROM tab1
----
-1308
-5932
-6988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2654
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + + + col2 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + + + col2 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL - COUNT( ALL - + col2 ) * + 89 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - COUNT ( ALL - + col2 ) * + 89 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * - - col1 AS col1 FROM tab2
----
-2601
-4489
-5929

query II rowsort
SELECT col0 + - + col1 AS col1, - 21 FROM tab2
----
-13
-21
-5
-21
8
-21

query I rowsort
SELECT ALL - - col0 * + - col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + - col1 + 56 col0 FROM tab0 AS cor0
----
218
58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL + - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL + - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT DISTINCT - 21 DIV - 10 + + 56 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - 21 / - 10 + + 56 FROM tab1 AS cor0
----
58

query I rowsort
SELECT + col2 * + 68 * - col0 * - 21 FROM tab2
----
1510824
3655680
6211800

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2664
SELECT ALL - 79 * + 4 + - col2 DIV - col1 + - col0 AS col2, col0 AS col1 FROM tab1
----
-361
51
-390
85
-406
91

skipif mysql # not compatible
query II rowsort label-2664
SELECT ALL - 79 * + 4 + - col2 / - col1 + - col0 AS col2, col0 AS col1 FROM tab1
----
-361
51
-390
85
-406
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2665
SELECT + col2 - + 81 * col1 + CAST( NULL AS DECIMAL ) + + 23 / + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT + col2 - + 81 * col1 + CAST ( NULL AS REAL ) + + 23 / + col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 94 - - - col0 + - + col2, + col2 FROM tab2
----
-10
40
-39
58
25
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT 13 DIV - col2 - - col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2667
SELECT 13 / - col2 - - col1 AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT DISTINCT + COUNT( * ) - ( 47 ) col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2668
SELECT DISTINCT + COUNT ( * ) - ( 47 ) col0 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2670
SELECT ALL - COUNT( * ) DIV - + 24 * - 99 + + - 95 AS col2 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL - COUNT ( * ) / - + 24 * - 99 + + - 95 AS col2 FROM tab2 AS cor0
----
-95

query III rowsort
SELECT ALL + col0 AS col0, + col2, + col2 FROM tab1
----
9 values hashing to efe8b1ba49a3a9b053a965d06d59b703

query I rowsort
SELECT 22 * - + ( col2 ) AS col0 FROM tab2
----
-1276
-506
-880

query II rowsort
SELECT ALL + col2 AS col2, col0 * + 3 * col1 + col0 AS col2 FROM tab2
----
23
7084
40
14848
58
15150

query II rowsort
SELECT DISTINCT - ( - + col2 ) AS col2, col0 + + - 33 AS col0 FROM tab0 AS cor0
----
10
54
47
-18
99
64

query II rowsort
SELECT - col0, col1 * col0 AS col2 FROM tab0 AS cor0
----
-15
1215
-87
1827
-97
97

query II rowsort
SELECT DISTINCT - col2 AS col2, ( - - 82 ) FROM tab1 cor0
----
-59
82
-68
82
-96
82

query II rowsort
SELECT ALL 7, - col0 * - 21 * col1 AS col2 FROM tab2 AS cor0
----
7
103488
7
105525
7
49266

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2679
SELECT + ( 49 ) AS col1, col2 * + - col0 / - CAST( NULL AS SIGNED ) FROM tab0
----
49
NULL
49
NULL
49
NULL

skipif mysql # not compatible
query II rowsort label-2679
SELECT + ( 49 ) AS col1, col2 * + - col0 / - CAST ( NULL AS INTEGER ) FROM tab0
----
49
NULL
49
NULL
49
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( - + 78 ) ) col2 FROM tab1
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - col0 * + ( 39 ) FROM tab0 AS cor0
----
-3393
-3783
-585

onlyif mysql # aggregate syntax: 
query II rowsort label-2682
SELECT COUNT( ALL + 62 ) + + 44, 91 AS col0 FROM tab1 AS cor0
----
47
91

skipif mysql # not compatible
query II rowsort label-2682
SELECT COUNT ( ALL + 62 ) + + 44, 91 AS col0 FROM tab1 AS cor0
----
47
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 * col0 / ( - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 * + col2 * col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT + MIN( DISTINCT + ( + - col0 ) ) + + 22 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT + MIN ( DISTINCT + ( + - col0 ) ) + + 22 FROM tab0 AS cor0
----
-75

query II rowsort
SELECT col2 AS col1, + 60 FROM tab2
----
23
60
40
60
58
60

onlyif mysql # DIV for integer division: 
query III rowsort label-2687
SELECT DISTINCT + 23 + + col1 DIV - col0 * + col1 AS col0, + col0 + + col1, + col2 * - + 44 - + col2 AS col1 FROM tab1
----
9 values hashing to f2d62bbe3683fd659511575c639364b4

skipif mysql # not compatible
query III rowsort label-2687
SELECT DISTINCT + 23 + + col1 / - col0 * + col1 AS col0, + col0 + + col1, + col2 * - + 44 - + col2 AS col1 FROM tab1
----
9 values hashing to f2d62bbe3683fd659511575c639364b4

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT COUNT( * ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT COUNT ( * ) FROM tab2 WHERE NULL <> NULL
----
0

query II rowsort
SELECT 85 AS col0, + col2 AS col1 FROM tab1 WHERE 49 * col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + col2 + - col1 + col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + - 4 + CAST( NULL AS SIGNED ) + - + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + - 4 + CAST ( NULL AS INTEGER ) + - + col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + 46 FROM tab2 cor0
----
-21
-31
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL + COUNT( * ) - ( 30 ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + COUNT ( * ) - ( 30 ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - - col2 + - - 73 AS col2 FROM tab0 AS cor0
----
120
172
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT ( + + CAST( NULL AS SIGNED ) ) / col2 + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT ( + + CAST ( NULL AS INTEGER ) ) / col2 + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT - MIN( + + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2696
SELECT - MIN ( + + col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - col0 * + col2 + col0 AS col2 FROM tab2 cor0
----
-1012
-2496
-4275

query I rowsort
SELECT - ( - - col2 ) * col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - col1 * 50 FROM tab1 AS cor0
----
-2350
-250
-700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2700
SELECT * FROM tab2 cor0 WHERE NOT ( CAST( + col0 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2700
SELECT * FROM tab2 cor0 WHERE NOT ( CAST ( + col0 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - MAX( + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2701
SELECT - MAX ( + col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT + 40 * - col2 FROM tab1
----
-2360
-2720
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT ALL + 90 * col2 DIV + + col0 FROM tab0
----
10
282
91

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + 90 * col2 / + + col0 FROM tab0
----
10
282
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - - 32 * + - 44 AS col1, + col2 col0 FROM tab2
----
-108416
40
-71808
23
-94336
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( NOT CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----

query II rowsort
SELECT ALL + + 86 AS col0, col0 + + + col1 AS col0 FROM tab1 cor0
----
86
138
86
65
86
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ( SUM( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2707
SELECT ( SUM ( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-2708
SELECT DISTINCT - + COUNT( * ) - + + 71 AS col1, + 15 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-74
15

skipif mysql # not compatible
query II rowsort label-2708
SELECT DISTINCT - + COUNT ( * ) - + + 71 AS col1, + 15 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-74
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT ALL - col2 DIV - 68 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - col2 / - 68 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + + - 18 AS col1 FROM tab2 AS cor0
----
-64
-82
-93

query I rowsort
SELECT col2 * 92 AS col0 FROM tab0
----
4324
9108
920

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT DISTINCT ( - col2 ) DIV col0 * - - col1 * - 26 + + col1 FROM tab0
----
21
27
6399

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT ( - col2 ) / col0 * - - col1 * - 26 + + col1 FROM tab0
----
21
27
6399

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT MAX( ALL + 18 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2713
SELECT MAX ( ALL + 18 ) FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT ALL + col1 * col0 + - col1 + CAST( + col2 AS SIGNED ) + col2 + - 50 FROM tab2 AS cor0
----
2291
4881
5024

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + col1 * col0 + - col1 + CAST ( + col2 AS INTEGER ) + col2 + - 50 FROM tab2 AS cor0
----
2291
4881
5024

query II rowsort
SELECT ALL - col0, - 48 AS col2 FROM tab0 AS cor0
----
-15
-48
-87
-48
-97
-48

query II rowsort
SELECT ALL + 16 AS col1, col2 * + col0 AS col0 FROM tab2 AS cor0
----
16
1058
16
2560
16
4350

query I rowsort
SELECT - col2 + ( col1 ) * col0 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT DISTINCT + col2 + - + 86 * 26 FROM tab0
----
-2137
-2189
-2226

query III rowsort
SELECT * FROM tab1 WHERE - col2 + + col2 = NULL
----

query I rowsort
SELECT DISTINCT - 56 + - col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT col2 + + + col1 DIV - col2 - + + col0 + + col1 + - + col0 + - + col2 + - col1 col0 FROM tab1
----
-102
-170
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2721
SELECT DISTINCT col2 + + + col1 / - col2 - + + col0 + + col1 + - + col0 + - + col2 + - col1 col0 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT - COUNT( DISTINCT - + 21 ) + + 68 + + COUNT( * ) + + 46 + COUNT( * ) FROM tab2
----
119

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - COUNT ( DISTINCT - + 21 ) + + 68 + + COUNT ( * ) + + 46 + COUNT ( * ) FROM tab2
----
119

query II rowsort
SELECT ALL col2 + col0 + + col1 * + + col0 + - col2 AS col0, col2 AS col2 FROM tab0
----
1230
47
1914
10
194
99

query I rowsort
SELECT ALL ( + col0 ) / - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL 70 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL 70 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT - SUM( DISTINCT col2 ) DIV 17 AS col2 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-2726
SELECT - SUM ( DISTINCT col2 ) / 17 AS col2 FROM tab2
----
-7

query I rowsort
SELECT DISTINCT + 91 * ( col2 ) FROM tab2 AS cor0
----
2093
3640
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col2 col0 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + - ( - ( - col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL 41 * + ( - - col1 ) FROM tab2
----
2091
2747
3157

query III rowsort
SELECT * FROM tab2 WHERE NOT - 47 <> NULL
----

query I rowsort
SELECT ALL + col2 * 87 AS col2 FROM tab2
----
2001
3480
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL + 19 * - + COUNT( * ) AS col1 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + 19 * - + COUNT ( * ) AS col1 FROM tab1
----
-57

query I rowsort
SELECT - 74 * col1 AS col2 FROM tab2
----
-3774
-4958
-5698

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT DISTINCT - col2 DIV 62 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - col2 / 62 FROM tab0
----
-1
0

query I rowsort
SELECT + 22 * - + col1 * + 37 FROM tab0
----
-17094
-65934
-814

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT ALL ( - col1 ) DIV + col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL ( - col1 ) / + col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - ( 2 ) * - + col2 + - col1 BETWEEN ( - ( + 49 ) ) AND - + 19
----
-46
-64
-75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT + 77 IN ( 63, 90 ) )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL + 47 + + col0 * + col1 * - col1 AS col1 FROM tab1 cor0
----
-200972
-2078
-9949

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2741
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( + 48 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2741
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( + 48 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT DISTINCT - 14 DIV ( + + 51 ) + - 79 + + col2 FROM tab0 AS cor0
----
-32
-69
20

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - 14 / ( + + 51 ) + - 79 + + col2 FROM tab0 AS cor0
----
-32
-69
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 22 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
22
22
22

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2744
SELECT ALL CAST( NULL AS DECIMAL ), col1 AS col2 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2744
SELECT ALL CAST ( NULL AS REAL ), col1 AS col2 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 94 col0 FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT + - SUM( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT + - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 97 * - + col0 * - - col0 + + ( + - 85 ) IS NULL
----

query I rowsort
SELECT DISTINCT - AVG ( - - col1 ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - col0 AS col1, 90 * col2 AS col0 FROM tab2 AS cor0
----
-46
2070
-64
3600
-75
5220

query II rowsort
SELECT + 7 AS col0, col0 FROM tab1 AS cor0
----
7
51
7
85
7
91

query I rowsort
SELECT 73 * 88 FROM tab2 cor0
----
6424
6424
6424

query I rowsort
SELECT DISTINCT - 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - + col2 * col1 - - col1 IS NOT NULL AND NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL + MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + MIN ( - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + col2 * + - 75 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT col1 * + ( - col0 ) AS col2 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + col1 col2 FROM tab0
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * + - 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + 22 AS col2 FROM tab1
----
1034
110
308

query I rowsort
SELECT col1 + - col2 + col1 * + col1 AS col2 FROM tab1
----
-29
114
2188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT ALL MAX( - - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL MAX ( - - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - col2 + + 43 + ( + - col1 ) + - - col0 * + 16 * 77 AS col1 FROM tab2 AS cor0
----
56641
78774
92318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 + col0 col0 FROM tab1 AS cor0
----
137
171
177

query I rowsort
SELECT + col1 + - 97 FROM tab2 cor0
----
-20
-30
-46

query I rowsort
SELECT ALL + col1 + 95 FROM tab2
----
146
162
172

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT 41 * - col0 >= NULL
----

query I rowsort
SELECT ALL + 60 * col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3540
4080
5760

query I rowsort
SELECT ALL + 67 / col0 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 90 * + 21 <= col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - 82 AS col0 FROM tab0
----
-129
-181
-92

query I rowsort
SELECT + col1 FROM tab0 WHERE - col0 * - ( 82 ) <= NULL
----

query I rowsort
SELECT + col2 + col2 * 21 FROM tab0
----
1034
2178
220

query I rowsort
SELECT - ( 23 ) AS col1 FROM tab1
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT ALL ( + 48 ) DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL ( + 48 ) / - col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT DISTINCT col2 * ( - 16 DIV col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT col2 * ( - 16 / col2 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT - 18 DIV + col1 col0 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2777
SELECT - 18 / + col1 col0 FROM tab1
----
-1
-3
0

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col1 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col0 * - 56 AS col0 FROM tab0 WHERE col0 * + col1 > NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 26 - col2 * 64 AS col2 FROM tab2
----
-2070
-3600
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL SUM( 19 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL SUM ( 19 ) FROM tab1
----
57

query I rowsort
SELECT col2 + col2 * 14 AS col0 FROM tab1
----
1020
1440
885

query I rowsort
SELECT 97 * 91 FROM tab0
----
8827
8827
8827

query III rowsort
SELECT ALL * FROM tab1 WHERE - 25 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT + 2 DIV 74 + + 37 DIV + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT + 2 / 74 + + 37 / + COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT col1 * ( + 13 ) FROM tab1
----
182
611
65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT + COUNT( * ) * 43 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT + COUNT ( * ) * 43 FROM tab1
----
129

query I rowsort
SELECT ALL col0 * 82 AS col2 FROM tab2
----
3772
5248
6150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2790
SELECT * FROM tab2 WHERE ( CAST( + 52 AS SIGNED ) ) NOT BETWEEN ( + 89 ) AND ( + 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2790
SELECT * FROM tab2 WHERE ( CAST ( + 52 AS INTEGER ) ) NOT BETWEEN ( + 89 ) AND ( + 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT + ( COUNT( DISTINCT col2 ) ) col2 FROM tab1 AS cor0 WHERE - 41 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2791
SELECT DISTINCT + ( COUNT ( DISTINCT col2 ) ) col2 FROM tab1 AS cor0 WHERE - 41 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2793
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 / col2 AS col2 FROM tab0 AS cor0 WHERE 79 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL CAST ( NULL AS REAL ) + - col0 / col2 AS col2 FROM tab0 AS cor0 WHERE 79 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT MAX( col1 ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2794
SELECT MAX ( col1 ) col1 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT ALL - col0 DIV 94 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL - col0 / 94 FROM tab1
----
0
0
0

query I rowsort
SELECT - 62 * 97 FROM tab2
----
-6014
-6014
-6014

query I rowsort
SELECT + ( ( col2 ) ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT 91 DIV + 50 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2798
SELECT 91 / + 50 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT col0 DIV col2 col0 FROM tab0 cor0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2800
SELECT col0 / col2 col0 FROM tab0 cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL = 9 / - ( - col2 )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( col1 + col1 ) > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) / col0 = ( 52 ) + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col1 * col0 + - 11 * - col0 ) NOT IN ( col0 * + 99 )
----

query I rowsort
SELECT 4 + 36 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab0 AS cor0 WHERE ( 54 * + col2 ) IS NOT NULL
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2807
SELECT 10 FROM tab2 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2807
SELECT 10 FROM tab2 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 44 * col2 FROM tab1 WHERE NULL IN ( col0 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + + col0 col2 FROM tab1
----
116
175
229

query I rowsort
SELECT DISTINCT - col2 + + 52 * 71 AS col1 FROM tab1
----
3596
3624
3633

query I rowsort
SELECT DISTINCT col2 * - col2 + ( + col0 ) FROM tab0
----
-13
-2194
-9704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT DISTINCT - CAST( 11 AS SIGNED ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - CAST ( 11 AS INTEGER ) AS col2 FROM tab2
----
-11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 / - 91 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE 89 - 94 * 40 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + 1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 14 + + ( + col0 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 9 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE - 20 BETWEEN ( col1 - col2 ) AND - col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + 86 + 3 + COUNT( * ) FROM tab2 cor0
----
92

skipif mysql # not compatible
query I rowsort label-2822
SELECT + 86 + 3 + COUNT ( * ) FROM tab2 cor0
----
92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL IN ( col0 / - col2 + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL > NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + + col0 * col2 < + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 25 ) = NULL
----

query I rowsort
SELECT DISTINCT col1 + + 92 + - + ( col0 ) AS col1 FROM tab0 cor0
----
-4
158
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT COUNT( * ) - + COUNT( * ) - ( COUNT( col1 ) ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) - ( COUNT ( col1 ) ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 71 + + col0 FROM tab2 AS cor0
----
117
135
146

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( 48 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > + 19
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( - col0 / col0 ) AND - 0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) >= NULL
----
0

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab2 cor0 WHERE NOT - 55 NOT BETWEEN - col0 AND + col1
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 55, + col1 - + col0 - col2 col2 FROM tab2 AS cor0
----
55
-18
55
-27
55
-66

query I rowsort
SELECT DISTINCT + col2 - - - 16 * - 60 FROM tab0 AS cor0
----
1007
1059
970

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2838
SELECT ALL 36 / - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL 36 / - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 35 col1 FROM tab0
----
-46
14
34

query III rowsort
SELECT * FROM tab1 WHERE col1 IS NULL AND + col1 IS NOT NULL
----

query I rowsort
SELECT ( - col0 ) * - - col1 + - col0 - - 56 AS col1 FROM tab1
----
-4312
-454
-709

query I rowsort
SELECT ALL col0 * - col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - col0 + - - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT IN ( - col1 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 + + col2 < + 25 * + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col0 * col0 ) > 57
----

query I rowsort
SELECT DISTINCT col1 * + ( - col1 ) AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2847
SELECT ALL + ( - 69 ), - 5 + - + COUNT( * ) * - 13 col1 FROM tab1
----
-69
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2847
SELECT ALL + ( - 69 ), - 5 + - + COUNT ( * ) * - 13 col1 FROM tab1
----
-69
34

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab1 AS cor0 WHERE NOT 85 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * col2 * + 68 * col2 col0 FROM tab0 AS cor0
----
1428000
571857084
65980332

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT MIN( ALL col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2850
SELECT MIN ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ( SUM( col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2851
SELECT ( SUM ( col0 ) ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT MIN( + 8 ) AS col2 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2852
SELECT MIN ( + 8 ) AS col2 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL ( + COUNT( - + 66 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL ( + COUNT ( - + 66 ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 65 - + + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 31 * + col2 AS col0 FROM tab1
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL COUNT( ALL + col2 ) FROM tab2 WHERE NULL NOT BETWEEN - 76 AND ( col1 * - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL COUNT ( ALL + col2 ) FROM tab2 WHERE NULL NOT BETWEEN - 76 AND ( col1 * - + col1 )
----
0

query I rowsort
SELECT + col1 + + + 41 AS col0 FROM tab2 AS cor0
----
108
118
92

query I rowsort
SELECT ALL - - col1 + + - 40 * - col1 AS col0 FROM tab0 AS cor0
----
3321
41
861

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + 34 ) >= ( 91 ) OR ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 + - 49 + + - col2 * - col0 FROM tab1 AS cor0
----
4943
5025
6207

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT DISTINCT + col1 + + col0 DIV + 84 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + col1 + + col0 / + 84 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + 37 + col1 col2 FROM tab2
----
111
154
162

query I rowsort
SELECT ( 12 ) - + col1 FROM tab1
----
-2
-35
7

query I rowsort
SELECT col2 - 48 AS col0 FROM tab1 AS cor0
----
11
20
48

query I rowsort
SELECT + col2 - - 79 - col0 * - col0 * + + col2 - col0 AS col1 FROM tab2 cor0
----
163895
326312
48724

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - - ( + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT col0 + + col0 DIV 64 AS col0 FROM tab2 AS cor0
----
46
65
76

skipif mysql # not compatible
query I rowsort label-2867
SELECT col0 + + col0 / 64 AS col0 FROM tab2 AS cor0
----
46
65
76

query I rowsort
SELECT - ( 91 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 AND ( - + col2 + col1 )
----

query I rowsort
SELECT + ( + col2 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 55 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 27 col2, col1 FROM tab2
----
27
51
27
67
27
77

query II rowsort
SELECT - 56, col2 AS col1 FROM tab1
----
-56
59
-56
68
-56
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + ( 63 ), 7 col1 FROM tab2
----
-1449
7
-2520
7
-3654
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL + 75 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + 75 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 97 * - - col1 AS col2 FROM tab2
----
-4947
-6499
-7469

query I rowsort
SELECT + col1 * + 96 AS col1 FROM tab0
----
2016
7776
96

query I rowsort
SELECT DISTINCT + 31 * - + 60 AS col2 FROM tab0
----
-1860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2878
SELECT ALL - - CAST( NULL AS DECIMAL ) / + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - - CAST ( NULL AS REAL ) / + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2879
SELECT DISTINCT + 42 DIV 82 - - MAX( col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + 42 / 82 - - MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
96

query II rowsort
SELECT ALL + 72, + 81 AS col1 FROM tab2 AS cor0
----
72
81
72
81
72
81

query II rowsort
SELECT ALL col2 AS col2, col2 + - col2 - - col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT COUNT( * ) + + 45 - 70 col0 FROM tab1 WHERE NOT 43 + + col2 * col1 - 92 < - col2
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2883
SELECT COUNT ( * ) + + 45 - 70 col0 FROM tab1 WHERE NOT 43 + + col2 * col1 - 92 < - col2
----
-22

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 0 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL col0 / + + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL col0 / + + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2886
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - CAST( - + 25 AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + CAST ( NULL AS REAL ) * - CAST ( - + 25 AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 75 IN ( col0 )
----
-2

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 75 IN ( col0 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT DISTINCT COUNT( * ) DIV 26 * - MIN( ALL + col1 ) * ( - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT COUNT ( * ) / 26 * - MIN ( ALL + col1 ) * ( - COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2889
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + - 9 - + col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2889
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + - 9 - + col2 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> 31
----

query I rowsort
SELECT ALL + + ( + 93 ) AS col0 FROM tab1 AS cor0
----
93
93
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 63 IS NULL
----

query I rowsort
SELECT - + 46 * + col1 + - 60 AS col2 FROM tab2 cor0
----
-2406
-3142
-3602

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL COUNT( - 18 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL COUNT ( - 18 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 + - 81 AS col0 FROM tab1
----
-140
-149
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT DISTINCT col2 DIV + col0 * - col1 DIV col2 + - - 40 + col1 * + ( col2 ) col2 FROM tab2
----
1213
3120
3926

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2896
SELECT DISTINCT col2 / + col0 * - col1 / col2 + - - 40 + col1 * + ( col2 ) col2 FROM tab2
----
1213
3120
3926

query I rowsort
SELECT ALL col1 + 23 * col1 AS col2 FROM tab0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - MIN( ALL - + col0 ) col1 FROM tab2 WHERE + 5 + ( col2 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2898
SELECT - MIN ( ALL - + col0 ) col1 FROM tab2 WHERE + 5 + ( col2 ) BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT - CAST( + + COUNT( DISTINCT - col2 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2899
SELECT - CAST ( + + COUNT ( DISTINCT - col2 ) AS INTEGER ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + + col2 - + 17 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE - col0 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT + + col1 + - + col2 + + col1 * col1 * - col2 AS col2, - col1 FROM tab1 AS cor0
----
-150233
-47
-1529
-5
-18898
-14

query II rowsort
SELECT ALL - + col0 * - col0, col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN col1 AND - col1
----

query I rowsort
SELECT DISTINCT - 84 + + - col1 AS col2 FROM tab2 AS cor0
----
-135
-151
-161

query I rowsort
SELECT - 75 + + + 88 FROM tab0 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL + SUM( ALL - - ( - + col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + SUM ( ALL - - ( - + col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1, col0, - col2, 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( - col1 + - 60 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2910
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( - col1 + - 60 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - + col2 AS col1, - ( - + col0 ) + - col0 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

query I rowsort
SELECT 2 * + - col1 + - + col2 FROM tab2 cor0
----
-125
-192
-194

query I rowsort
SELECT - + ( + 43 ) FROM tab2 AS cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - - ( ( col0 ) ) ) col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL ( + SUM( ALL ( 13 ) ) ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL ( + SUM ( ALL ( 13 ) ) ) AS col1 FROM tab0
----
39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT COUNT( * ) * - 31 FROM tab0 WHERE NOT - + col2 IN ( col0 )
----
-93

skipif mysql # not compatible
query I rowsort label-2918
SELECT COUNT ( * ) * - 31 FROM tab0 WHERE NOT - + col2 IN ( col0 )
----
-93

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + 53
----

query I rowsort
SELECT ALL - + col2 * + - 17 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT 3 + - + 16 * + - 88 AS col2 FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NULL IS NOT NULL
----
1411
1411
1411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 25 + col2 col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE 79 / 39 / - + 73 IS NULL
----

query I rowsort
SELECT + 2 * + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT - col0 * + - 14 FROM tab1 AS cor0
----
1190
1274
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + + COUNT( * ) * - MIN( ALL - ( 16 ) ) AS col0 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2927
SELECT + + COUNT ( * ) * - MIN ( ALL - ( 16 ) ) AS col0 FROM tab2 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT - + 98 DIV + + col1 FROM tab1 AS cor0
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-2928
SELECT - + 98 / + + col1 FROM tab1 AS cor0
----
-19
-2
-7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col1 <> NULL
----

query I rowsort
SELECT 12 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + 1 + - ( ( + 98 ) ) AND + col0
----

query I rowsort
SELECT DISTINCT col2 + + + col0 + + 0 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL col2 * - ( - 95 ) AS col1 FROM tab2 WHERE NOT NULL <= - - col1 - + col2
----

query II rowsort
SELECT ALL - 48 + + - col1 AS col2, 90 FROM tab0
----
-129
90
-49
90
-69
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT 98 + - + 94 + + COUNT( * ) + - - COUNT( ALL + ( - col0 ) ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2934
SELECT 98 + - + 94 + + COUNT ( * ) + - - COUNT ( ALL + ( - col0 ) ) col1 FROM tab0
----
10

query I rowsort
SELECT ALL - col2 + 64 AS col2 FROM tab0
----
-35
17
54

query I rowsort
SELECT + 85 + - - col2 + 71 FROM tab0
----
166
203
255

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL + SUM( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + SUM ( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE 69 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT col1 DIV - - 73 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2939
SELECT col1 / - - 73 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col1 * + - col2 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + 52 - + col2 FROM tab0
----
-47
42
5

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT - 84 FROM tab2 WHERE NOT + + 30 IS NULL
----
-84
-84
-84

query I rowsort
SELECT ALL + 14 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2945
SELECT ( MAX( ALL + - col0 ) ) FROM tab0 AS cor0 WHERE NOT 19 > ( + - 62 * - CAST( - col0 AS SIGNED ) + - + 38 * - col2 * + - 69 * 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ( MAX ( ALL + - col0 ) ) FROM tab0 AS cor0 WHERE NOT 19 > ( + - 62 * - CAST ( - col0 AS INTEGER ) + - + 38 * - col2 * + - 69 * 25 )
----
NULL

query I rowsort
SELECT ( 73 ) FROM tab2
----
73
73
73

query II rowsort
SELECT col2, 83 FROM tab2
----
23
83
40
83
58
83

query I rowsort
SELECT DISTINCT col2 * + 52 * col2 FROM tab0
----
114868
509652
5200

query I rowsort
SELECT col2 * 58 * 26 FROM tab2
----
34684
60320
87464

query I rowsort
SELECT 4 * - 79 FROM tab0
----
-316
-316
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ALL COUNT( - - 33 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL COUNT ( - - 33 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT col2 AS col1, + 69 AS col1 FROM tab1
----
59
69
68
69
96
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT CAST( + + 3 AS SIGNED ) * - col2 FROM tab2 cor0
----
-120
-174
-69

skipif mysql # not compatible
query I rowsort label-2953
SELECT CAST ( + + 3 AS INTEGER ) * - col2 FROM tab2 cor0
----
-120
-174
-69

query I rowsort
SELECT + ( 97 ) AS col2 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT ALL - ( + ( + - col0 ) ) * 92 FROM tab1 AS cor0
----
4692
7820
8372

query II rowsort
SELECT col0 AS col2, - 97 FROM tab0 AS cor0
----
15
-97
87
-97
97
-97

query I rowsort
SELECT + col1 FROM tab2 WHERE + + col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE + 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT + + col0 * - + 87 * - + ( + col1 ) + - 59 + CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT + + col0 * - + 87 * - + ( + col1 ) + - 59 + CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT ALL - + col0 + - CAST( + + col0 AS SIGNED ) * - 45 * col0 - + + col2 FROM tab2 AS cor0
----
184216
252992
95151

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - + col0 + - CAST ( + + col0 AS INTEGER ) * - 45 * col0 - + + col2 FROM tab2 AS cor0
----
184216
252992
95151

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT + MIN( DISTINCT - 25 ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT + MIN ( DISTINCT - 25 ) FROM tab1 AS cor0
----
-25

query I rowsort
SELECT 1 * + col0 + - col2 * + col1 + - 82 - + 20 AS col0 FROM tab0 AS cor0
----
-104
-225
-3894

query I rowsort
SELECT ALL - ( - col2 ) + - 12 + col0 AS col1 FROM tab1 AS cor0
----
132
135
147

query I rowsort
SELECT DISTINCT + 53 * - 30 FROM tab1
----
-1590

query I rowsort
SELECT ALL - 20 + col2 - - col2 * col0 AS col1 FROM tab0
----
732
860
9682

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT + col0 DIV col1 * col0 AS col2 FROM tab2
----
0
0
75

skipif mysql # not compatible
query I rowsort label-2966
SELECT + col0 / col1 * col0 AS col2 FROM tab2
----
0
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT 95 DIV - col1 FROM tab0
----
-1
-4
-95

skipif mysql # not compatible
query I rowsort label-2967
SELECT 95 / - col1 FROM tab0
----
-1
-4
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL + MAX( + col2 ) * + ( + COUNT( * ) ) + - 85 + + + COUNT( * ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL + MAX ( + col2 ) * + ( + COUNT ( * ) ) + - 85 + + + COUNT ( * ) FROM tab2
----
92

query II rowsort
SELECT + 96 AS col1, - 22 AS col2 FROM tab2
----
96
-22
96
-22
96
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT DISTINCT col1 DIV col2 + 29 DIV + 47 * + + col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT col1 / col2 + 29 / + 47 * + + col2 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT + - col0 * + + col1 + ( + - col0 ) DIV + ( - + col0 ) FROM tab0 WHERE + + col2 IS NOT NULL
----
-1214
-1826
-96

skipif mysql # not compatible
query I rowsort label-2971
SELECT + - col0 * + + col1 + ( + - col0 ) / + ( - + col0 ) FROM tab0 WHERE + + col2 IS NOT NULL
----
-1214
-1826
-96

query I rowsort
SELECT 36 - - 87 FROM tab0
----
123
123
123

query I rowsort
SELECT + - ( - col0 ) FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + 49
----

query I rowsort
SELECT col1 + + col1 + - + 73 FROM tab0 AS cor0
----
-31
-71
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col2 * + 55 AS col0 FROM tab0 WHERE NOT - - col0 + col0 IS NULL
----
2585
5445
550

query I rowsort
SELECT + 61 * + 55 * 18 FROM tab1
----
60390
60390
60390

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT + COUNT( * ) * + MIN( ALL col2 ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-2979
SELECT + COUNT ( * ) * + MIN ( ALL col2 ) AS col0 FROM tab1
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col2 FROM tab1 cor0
----
80
80
80

query I rowsort
SELECT + col2 * + + 4 FROM tab1 cor0
----
236
272
384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT 11 DIV + + SUM( ALL - col0 ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2982
SELECT 11 / + + SUM ( ALL - col0 ) AS col2 FROM tab0 cor0
----
0

query II rowsort
SELECT ALL + ( + col0 ) AS col1, col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ( COUNT( * ) ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT ( COUNT ( * ) ) col2 FROM tab1 cor0
----
3

query I rowsort
SELECT + 6 + + ( 15 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 21 + - ( + 0 ) col0 FROM tab0
----
1827
2037
315

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL + + SUM( + - col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2987
SELECT ALL + + SUM ( + - col1 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT + 61 FROM tab1 AS cor0 WHERE NOT - col0 * - - col1 IS NULL
----
61

query I rowsort
SELECT 2 + + - col1 + + 9 AS col0 FROM tab0 AS cor0
----
-10
-70
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT - - col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT - - col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - + col1 ) + ( - - 80 ) FROM tab2 AS cor0
----
131
147
157

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN + col0 * col1 + - 99 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON ( NULL ) IS NULL
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT - 51 - 36 + + + 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-2994
SELECT - 51 - 36 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT - COUNT( - col0 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2995
SELECT - COUNT ( - col0 ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT - + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2996
SELECT - + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - - 35 + col0 + + + col1 AS col2 FROM tab0 AS cor0
----
131
133
143

query II rowsort
SELECT ALL + 36 AS col1, col1 AS col1 FROM tab2 AS cor0
----
36
51
36
67
36
77

query I rowsort
SELECT DISTINCT - + col0 * - 31 AS col0 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT ALL 24 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL 24 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3001
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT col1 DIV + col2 + + + col2 - + col1 AS col0 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-3002
SELECT col1 / + col2 + + + col2 - + col1 AS col0 FROM tab1
----
21
54
82

query I rowsort
SELECT col2 FROM tab1 WHERE NULL IN ( + ( col1 ) * + 6, col0, + col1, - + 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT ALL - 86 + - CAST( - col2 AS SIGNED ) FROM tab0
----
-39
-76
13

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - 86 + - CAST ( - col2 AS INTEGER ) FROM tab0
----
-39
-76
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3005
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + col1 + + + col2 + - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + col1 + + + col2 + - + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) - + + ( - 70 ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) - + + ( - 70 ) AS col0 FROM tab2
----
73

query I rowsort
SELECT DISTINCT - col2 + - 57 FROM tab2
----
-115
-80
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT - CAST( + + col1 AS SIGNED ) * + col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-3008
SELECT - CAST ( + + col1 AS INTEGER ) * + col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3009
SELECT * FROM tab2 WHERE ( + col2 * col0 ) BETWEEN NULL AND + CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3009
SELECT * FROM tab2 WHERE ( + col2 * col0 ) BETWEEN NULL AND + CAST ( + - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT + 85 * + - 7 + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-496
-548
-585

skipif mysql # not compatible
query I rowsort label-3010
SELECT + 85 * + - 7 + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-496
-548
-585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 90 + - col0 + - 55 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 90 + - col0 + - 55 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 48 * + col0 - + col2 * + col1 FROM tab2 AS cor0
----
-3381
-6152
-7486

query I rowsort
SELECT DISTINCT ( - 12 ) * 24 AS col2 FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + MIN( - + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3014
SELECT + MIN ( - + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT ALL + 89 DIV - + col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + 89 / - + col1 FROM tab1 AS cor0
----
-1
-17
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT DISTINCT - + ( ( + ( + - col2 ) ) ) DIV - - ( + col2 ) + col1 col0 FROM tab0 cor0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3016
SELECT DISTINCT - + ( ( + ( + - col2 ) ) ) / - - ( + col2 ) + col1 col0 FROM tab0 cor0
----
2
22
82

query I rowsort
SELECT DISTINCT + - 25 AS col0 FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT - - MAX( ALL col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT - - MAX ( ALL col2 ) FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3019
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + - col0 + + col0 * - + col2 * - + col1 < col2 + CAST( + 60 AS SIGNED ) + - ( + - 47 )
----

skipif mysql # not compatible
query III rowsort label-3019
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + - col0 + + col0 * - + col2 * - + col1 < col2 + CAST ( + 60 AS INTEGER ) + - ( + - 47 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3020
SELECT DISTINCT - 37 AS col1, - 18 * + 37 - - COUNT( * ) AS col1 FROM tab1 cor0
----
-37
-663

skipif mysql # not compatible
query II rowsort label-3020
SELECT DISTINCT - 37 AS col1, - 18 * + 37 - - COUNT ( * ) AS col1 FROM tab1 cor0
----
-37
-663

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 82 + col0 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT + 43 * + - col2 FROM tab2
----
-1720
-2494
-989

query I rowsort
SELECT ALL col1 + - 65 * - 69 FROM tab1
----
4490
4499
4532

query I rowsort
SELECT + 84 * - - col1 AS col1 FROM tab2 AS cor0
----
4284
5628
6468

query I rowsort
SELECT + + 81 * - col2 * + col0 * - col0 - + - col1 - 22 FROM tab2 AS cor0
----
13271095
26426295
3942137

query II rowsort
SELECT DISTINCT ( col0 ), - col2 FROM tab0 cor0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 + col0 col1 FROM tab2
----
117
128
99

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 WHERE NOT col1 * col0 / col2 >= + col0
----
59
68
96

query I rowsort
SELECT DISTINCT - 84 + + 66 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ALL 14 * + col1 - ( - + col2 ) AS col1 FROM tab1 cor0
----
129
292
726

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT + 45 * COUNT( * ) + 76 col2 FROM tab0 AS cor0
----
211

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT DISTINCT + 45 * COUNT ( * ) + 76 col2 FROM tab0 AS cor0
----
211

onlyif mysql # aggregate syntax: 
query II rowsort label-3032
SELECT DISTINCT + - 22 AS col0, - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> 67
----
-22
0

skipif mysql # not compatible
query II rowsort label-3032
SELECT DISTINCT + - 22 AS col0, - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> 67
----
-22
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3033
SELECT ALL col2 AS col0, - 61 DIV col2 * - col1 FROM tab2 AS cor0
----
23
102
40
77
58
67

skipif mysql # not compatible
query II rowsort label-3033
SELECT ALL col2 AS col0, - 61 / col2 * - col1 FROM tab2 AS cor0
----
23
102
40
77
58
67

query I rowsort
SELECT - ( + - ( + col0 ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - 30 * - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3035
SELECT - 30 * - COUNT ( * ) FROM tab2 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-3036
SELECT - - col1, + col1 DIV + col0 * + col0 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-3036
SELECT - - col1, + col1 / + col0 * + col0 AS col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT DISTINCT col2 + + col2 - - ( 40 ) DIV - + col0 AS col1 FROM tab0
----
198
20
92

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT col2 + + col2 - - ( 40 ) / - + col0 AS col1 FROM tab0
----
198
20
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3038
SELECT + COUNT( * ) DIV + COUNT( * ) - - COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-3038
SELECT + COUNT ( * ) / + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3039
SELECT ALL - COUNT( * ) AS col1, CAST( - COUNT( * ) AS SIGNED ) + SUM( col1 ) AS col1 FROM tab2
----
-3
192

skipif mysql # not compatible
query II rowsort label-3039
SELECT ALL - COUNT ( * ) AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + SUM ( col1 ) AS col1 FROM tab2
----
-3
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 49 col0, 98 AS col2 FROM tab0
----
-1029
98
-3969
98
-49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT + - COUNT( DISTINCT - - 43 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + - COUNT ( DISTINCT - - 43 ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col1 * - - 28 * + col2 FROM tab1 cor0
----
59
8260
68
89488
96
37632

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 99 * - 39 FROM tab2 AS cor0 WHERE NOT ( + - col0 ) IS NULL
----
3861

query I rowsort
SELECT 46 * - - col1 AS col1 FROM tab0
----
3726
46
966

query I rowsort
SELECT DISTINCT col1 * - ( + 84 ) AS col2 FROM tab0
----
-1764
-6804
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

query II rowsort
SELECT DISTINCT - col0, col1 AS col2 FROM tab0 WHERE + col1 + + + 92 + - 70 NOT IN ( + 4 )
----
-15
81
-87
21
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL col1 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL col1 / + - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col1 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT - CAST( + 8 AS SIGNED ) col1 FROM tab1 cor0
----
-8
-8
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3051
SELECT - CAST ( + 8 AS INTEGER ) col1 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT + + 12 * + 31 FROM tab2 WHERE - - 20 NOT BETWEEN 36 AND NULL
----
372

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL - col2 + + - col2 + - 56 DIV + col0 FROM tab1
----
-118
-136
-193

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - col2 + + - col2 + - 56 / + col0 FROM tab1
----
-118
-136
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT DISTINCT + COUNT( * ) + - 92 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT + COUNT ( * ) + - 92 FROM tab2
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col0 FROM tab2 AS cor0 WHERE - col0 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ( - - col2 ) + 54 FROM tab1 AS cor0
----
113
122
150

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + ( 90 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - + col1 col1 FROM tab0 cor0
----
-11
-34
98

query II rowsort
SELECT DISTINCT col1 + + 79 + ( 17 ), + col0 FROM tab0 AS cor0
----
117
87
177
15
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT - ( + MAX( DISTINCT + + 66 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - ( + MAX ( DISTINCT + + 66 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT DISTINCT MIN( + - ( + col0 ) ) col2 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3061
SELECT DISTINCT MIN ( + - ( + col0 ) ) col2 FROM tab0
----
-97

query I rowsort
SELECT ( ( 51 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3063
SELECT ALL - CAST( NULL AS SIGNED ) + MAX( col2 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - CAST ( NULL AS INTEGER ) + MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL + + MIN( + - 48 ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + + MIN ( + - 48 ) AS col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT - col1 - 64 AS col2 FROM tab2 AS cor0
----
-115
-131
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT DISTINCT 4 - + + 94 + + 27 - + 88 * - SUM( + + col1 ) FROM tab2 AS cor0
----
17097

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT 4 - + + 94 + + 27 - + 88 * - SUM ( + + col1 ) FROM tab2 AS cor0
----
17097

query I rowsort
SELECT ALL - col2 - + 64 + - 15 * + col0 + - - col1 FROM tab1 AS cor0
----
-1393
-1450
-911

query I rowsort
SELECT + col0 - - - col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
37
44
80

query I rowsort
SELECT ALL - 18 - + + col1 FROM tab1 cor0
----
-23
-32
-65

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab2 cor0
----
99

query I rowsort
SELECT - col0 + + - col0 * col2 + + - 78 FROM tab0 AS cor0 WHERE NULL < col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 - - col1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL - COUNT( ALL col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL - COUNT ( ALL col2 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3074
SELECT + CAST( NULL AS DECIMAL ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT + CAST ( NULL AS REAL ) * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT + 0 * + col1 DIV - - 8 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 0 * + col1 / - - 8 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, 0 * 59 col0 FROM tab1
----
59
0
68
0
96
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, + col1 - - + 95 FROM tab2 AS cor0
----
51
146
67
162
77
172

query I rowsort
SELECT DISTINCT + - 22 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3081
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) - + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3081
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) - + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL + + SUM( ALL - 60 ) + - 92 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-632

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + + SUM ( ALL - 60 ) + - 92 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-632

query I rowsort
SELECT ALL 52 * 69 * - - col1 AS col2 FROM tab0
----
290628
3588
75348

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + COUNT( * ) * + - MAX( + + col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-3084
SELECT + COUNT ( * ) * + - MAX ( + + col0 ) FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT COUNT( * ) * - + MAX( - col2 ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT COUNT ( * ) * - + MAX ( - col2 ) AS col2 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT MIN( ALL - 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT MIN ( ALL - 67 ) FROM tab1
----
-67

query I rowsort
SELECT 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query II rowsort
SELECT ALL col0 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL >= - - ( 70 ) )
----

query II rowsort
SELECT DISTINCT + + col0 AS col2, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col1 = 70 + - 38 / + 24 + + col2
----

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col1 = 70 + - 38 / + 24 + + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <> + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT DISTINCT - MAX( + 93 ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - MAX ( + 93 ) FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + - SUM( col0 ) + 49 FROM tab1 AS cor0
----
-178

skipif mysql # not compatible
query I rowsort label-3094
SELECT + - SUM ( col0 ) + 49 FROM tab1 AS cor0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT 94 * - MIN( DISTINCT - col0 ) + + ( - 28 ) FROM tab1
----
8526

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT 94 * - MIN ( DISTINCT - col0 ) + + ( - 28 ) FROM tab1
----
8526

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT COUNT( * ) + + ( 92 ) + 37 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT COUNT ( * ) + + ( 92 ) + 37 FROM tab0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + + MIN( ALL col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + + MIN ( ALL col2 ) FROM tab1 cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - 40 * + + col0 col0 FROM tab2 AS cor0
----
-1790
-2510
-2950

query I rowsort
SELECT 77 FROM tab0 WHERE ( NOT col2 NOT BETWEEN + + col2 * - + col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - 45 + - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-36

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 45 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab0 WHERE + 84 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-3101
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 WHERE + 84 IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT ALL + + 22, COUNT( * ) * 17 + - 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
22
70

skipif mysql # not compatible
query II rowsort label-3102
SELECT ALL + + 22, COUNT ( * ) * 17 + - 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
22
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT DISTINCT 50 * - - 40 * + 19 + - ( + - ( - col2 ) ) DIV - - col0 AS col0 FROM tab0
----
37997
37999
38000

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT 50 * - - 40 * + 19 + - ( + - ( - col2 ) ) / - - col0 AS col0 FROM tab0
----
37997
37999
38000

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 8 * - 97 IS NULL
----

query I rowsort
SELECT ALL - col0 - - 92 FROM tab0 cor0
----
-5
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT + - MAX( ALL + 36 ) FROM tab2 AS cor0 WHERE - 54 + + + col2 BETWEEN - 80 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + - MAX ( ALL + 36 ) FROM tab2 AS cor0 WHERE - 54 + + + col2 BETWEEN - 80 AND NULL
----
NULL

query I rowsort
SELECT ALL col2 - - 68 FROM tab2 AS cor0
----
108
126
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - ( + col2 ) ) * - ( - col2 ) col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - - col2 * - col1 + - + ( + 99 ) + + col2 AS col1 FROM tab1 AS cor0
----
-1347
-3227
-335

query II rowsort
SELECT - 53 AS col0, 86 FROM tab2 AS cor0
----
-53
86
-53
86
-53
86

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 14 * + col1 * - col2 * + col2 IS NULL
----

query I rowsort
SELECT - 71 * + col0 * + 98 FROM tab2 AS cor0
----
-320068
-445312
-521850

query I rowsort
SELECT - col2 * + - ( - col1 ) AS col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 42 + + col0 BETWEEN + col0 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ALL MAX( DISTINCT + ( - + col0 ) ) * 87 - COUNT( * ) FROM tab1
----
-4440

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL MAX ( DISTINCT + ( - + col0 ) ) * 87 - COUNT ( * ) FROM tab1
----
-4440

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT DISTINCT + MIN( ALL 37 ) AS col0, 35 + - COUNT( * ) FROM tab2
----
37
32

skipif mysql # not compatible
query II rowsort label-3116
SELECT DISTINCT + MIN ( ALL 37 ) AS col0, 35 + - COUNT ( * ) FROM tab2
----
37
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 * - col1 col2 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT 16 * + 23 FROM tab2 AS cor0
----
368
368
368

query II rowsort
SELECT - col1, col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL - MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT DISTINCT 84 + col0, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col2 * + + col2 + col2 AS col1, + 77 * + 17 FROM tab1 AS cor0
----
-3422
1309
-4556
1309
-9120
1309

query I rowsort
SELECT ALL col2 * + 55 + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
1316
2277
3257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3124
SELECT DISTINCT + + ( + col1 ) * col2 * - + 99 * + - col2 AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
17713971
NULL
207900
NULL
970299
NULL

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT + + ( + col1 ) * col2 * - + 99 * + - col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
17713971
NULL
207900
NULL
970299
NULL

query I rowsort
SELECT - 37 AS col0 FROM tab0 AS cor0 WHERE NULL > 82 * + - col2 * - + col1 + col2
----

query I rowsort
SELECT ALL 67 + + col1 AS col0 FROM tab1
----
114
72
81

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + + col1 ) + + + 57 - + 26 + - + 91 * col1 AS col0 FROM tab1
----
-1229
-419
-4199

query I rowsort
SELECT - 53 + - + ( - col0 ) AS col0 FROM tab0
----
-38
34
44

onlyif mysql # DIV for integer division: 
query II rowsort label-3130
SELECT DISTINCT col1 AS col2, col1 - + col1 DIV - - ( - col1 ) FROM tab1
----
14
15
47
48
5
6

skipif mysql # not compatible
query II rowsort label-3130
SELECT DISTINCT col1 AS col2, col1 - + col1 / - - ( - col1 ) FROM tab1
----
14
15
47
48
5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL + COUNT( * ) + - + 95 AS col1 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL + COUNT ( * ) + - + 95 AS col1 FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - COUNT( * ) FROM tab2 WHERE 42 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3132
SELECT - COUNT ( * ) FROM tab2 WHERE 42 IS NOT NULL
----
-3

query I rowsort
SELECT - ( + col2 ) + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT + + COUNT( * ) + + 36 + + 5 DIV COUNT( * ) * + 72 AS col1 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-3134
SELECT + + COUNT ( * ) + + 36 + + 5 / COUNT ( * ) * + 72 AS col1 FROM tab2 AS cor0
----
111

query II rowsort
SELECT - + 54 AS col2, col0 + + + col0 * - - 93 FROM tab2 AS cor0
----
-54
4324
-54
6016
-54
7050

query II rowsort
SELECT DISTINCT ( + col1 ) / 6, + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 24 + - 69 FROM tab0 AS cor0 WHERE - col2 + - 53 * + col0 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL + 90 * + COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + 90 * + COUNT ( * ) FROM tab1 AS cor0
----
270

query I rowsort
SELECT DISTINCT 86 * - + col1 FROM tab0
----
-1806
-6966
-86

query I rowsort
SELECT + col1 - - 14 AS col1 FROM tab0
----
15
35
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT COUNT( * ) + ( + - 1 ) AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3142
SELECT COUNT ( * ) + ( + - 1 ) AS col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL + ( + col0 ) FROM tab0 cor0 WHERE ( ( ( NULL ) <= - col2 * + col1 ) )
----

query I rowsort
SELECT ALL + 72 AS col1 FROM tab2 AS cor0 WHERE - col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT MAX( ALL + col2 ) * + MIN( ALL 91 ) * COUNT( - + 93 ) - - 90 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT MAX ( ALL + col2 ) * + MIN ( ALL 91 ) * COUNT ( - + 93 ) - - 90 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - - 75 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT MAX( col2 ) * - + ( 50 ) col1 FROM tab1
----
-4800

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3147
SELECT MAX ( col2 ) * - + ( 50 ) col1 FROM tab1
----
-4800

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 76 AS col1 FROM tab1
----
-1064
-3572
-380

query I rowsort
SELECT ALL - - 83 AS col2 FROM tab2 WHERE NOT NULL <> + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 58 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - 58 * - + COUNT( * ) AS col0 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-3152
SELECT - 58 * - + COUNT ( * ) AS col0 FROM tab1
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-3153
SELECT 37 AS col2, + COUNT( ALL + col1 ) AS col2 FROM tab0
----
37
3

skipif mysql # not compatible
query II rowsort label-3153
SELECT 37 AS col2, + COUNT ( ALL + col1 ) AS col2 FROM tab0
----
37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + MIN( ALL + + ( + + ( - col2 ) ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + MIN ( ALL + + ( + + ( - col2 ) ) ) FROM tab0
----
-99

query II rowsort
SELECT ALL + + col0 AS col0, col1 * col2 + - 6 FROM tab2 AS cor0
----
46
1167
64
3074
75
3880

query I rowsort
SELECT DISTINCT - 2 * ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
162
2
42

query I rowsort
SELECT DISTINCT + col0 + + + ( + col0 ) + + col0 * - 45 * + + col0 FROM tab2 AS cor0 WHERE ( NULL ) <= - 51
----

query I rowsort
SELECT + + 49 + - 60 - + + col2 AS col1 FROM tab2 AS cor0
----
-34
-51
-69

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * 29 BETWEEN - ( + 65 ) AND NULL
----

query I rowsort
SELECT + 30 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3161
SELECT DISTINCT - - 16 + - col1 col1, 20 + col1 * col1 + - CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
-5
440
-65
6500
15
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3161
SELECT DISTINCT - - 16 + - col1 col1, 20 + col1 * col1 + - CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
-5
440
-65
6500
15
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT MIN( col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT MIN ( col2 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT ALL - CAST( - ( col0 ) AS SIGNED ) + + - col1 - - col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - CAST ( - ( col0 ) AS INTEGER ) + + - col1 - - col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT + CAST( COUNT( ALL col2 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3164
SELECT + CAST ( COUNT ( ALL col2 ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL col2 + - - col1 AS col0 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3166
SELECT 1 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3166
SELECT 1 / + col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col0 * - - 23 * col1 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - col2 + + - col0 * col0 * + 97 + col1 AS col1 FROM tab0 AS cor0
----
-21791
-734182
-912771

query I rowsort
SELECT DISTINCT - col0 * + + col0 - - col0 - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + + col2 + + col1 AND NULL
----

query I rowsort
SELECT ALL + col2 + + 52 FROM tab2
----
110
75
92

query II rowsort
SELECT col2 AS col0, + 93 AS col2 FROM tab2
----
23
93
40
93
58
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col2 + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - + col1 * col1 AS col0 FROM tab2 cor0
----
-2601
-4489
-5929

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 45 * + 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 12 * - col0 + + + col0 AS col1 FROM tab2 AS cor0
----
-506
-704
-825

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT ALL - - col2 DIV - + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - - col2 / - + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + 37 + 60 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
97
97
97

query II rowsort
SELECT + col0 AS col2, col1 * - + col0 * - col0 AS col1 FROM tab2 AS cor0
----
46
107916
64
315392
75
376875

query II rowsort
SELECT col2 * - col2, + ( + col1 ) + - ( + ( - 76 ) ) + + - 62 AS col2 FROM tab2
----
-1600
91
-3364
81
-529
65

query II rowsort
SELECT 0 * col0 * col2, col1 + + 37 + - col2 + col1 + + + 53 AS col1 FROM tab0
----
0
-7
0
122
0
205

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 45 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 + + col0 <= NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL + - SUM( ALL + col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3187
SELECT ALL + - SUM ( ALL + col2 ) col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-3188
SELECT - + 18 + + 2 AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-16
3

skipif mysql # not compatible
query II rowsort label-3188
SELECT - + 18 + + 2 AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-16
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL MIN( ALL + + col2 ) + - MAX( ( - 3 ) ) + + COUNT( * ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL MIN ( ALL + + col2 ) + - MAX ( ( - 3 ) ) + + COUNT ( * ) FROM tab2
----
29

query I rowsort
SELECT ALL + + 54 + + + 30 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE ( NOT - col0 * col0 * - 77 IS NOT NULL )
----

query I rowsort
SELECT + + col1 * - - 63 FROM tab2 cor0
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT - 17 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3193
SELECT - 17 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT + - col1 * - col1 + col0 + - 38 FROM tab0 AS cor0
----
490
60
6538

query I rowsort
SELECT ALL col0 * - 88 AS col0 FROM tab0 AS cor0
----
-1320
-7656
-8536

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 56 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT + COUNT( - 35 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + COUNT ( - 35 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - ( + col0 ) AS col1 FROM tab1 cor0
----
-51
-85
-91

query II rowsort
SELECT + col2 * - + col2 + + 47 + - + 70 * + + col1, + 96 AS col0 FROM tab0
----
-1523
96
-7832
96
-9824
96

query I rowsort
SELECT 30 + + 61 AS col0 FROM tab0
----
91
91
91

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE + 3 > + - 71 / col2
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT - 75 + 64 DIV - col2 AS col0 FROM tab1
----
-75
-75
-76

skipif mysql # not compatible
query I rowsort label-3202
SELECT - 75 + 64 / - col2 AS col0 FROM tab1
----
-75
-75
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT DISTINCT + col0 DIV - col1 + + col0 AS col2 FROM tab1
----
48
68
90

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT + col0 / - col1 + + col0 AS col2 FROM tab1
----
48
68
90

query I rowsort
SELECT + col2 * - + col1 + + col0 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT ALL - 69 * - col0 + + col2 AS col2 FROM tab0 AS cor0
----
1082
6013
6792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - + col0 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + ( - - col2 ) * - ( + - col1 ) < NULL
----

query I rowsort
SELECT - 99 * col1 + - + col2 FROM tab0 AS cor0
----
-198
-2089
-8066

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col2 FROM tab2 cor0
----
19

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 IN ( + - col1, + col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + COUNT( 23 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + COUNT ( 23 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col1 * - col2 * col1 AS col0 FROM tab0 AS cor0
----
-308367
-4410
-99

query II rowsort
SELECT DISTINCT col1, + 54 FROM tab0
----
1
54
21
54
81
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT ALL - COUNT( * ) * - CAST( + AVG ( - col2 ) AS SIGNED ) AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - COUNT ( * ) * - CAST ( + AVG ( - col2 ) AS INTEGER ) AS col2 FROM tab2
----
-120

onlyif mysql # DIV for integer division: 
query II rowsort label-3215
SELECT 86 AS col1, col1 DIV col1 col2 FROM tab0
----
86
1
86
1
86
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3215
SELECT 86 AS col1, col1 / col1 col2 FROM tab0
----
86
1
86
1
86
1

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT col2 + - col0 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - 39 * + col0 AS col2 FROM tab2 AS cor0
----
-1794
-2496
-2925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 90 * 48 * 85 * - + 62 + - 21 - + 82 + - col2 * - 7 * - - col0 * 37 col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3219
SELECT ALL - 58, 38 + + - col2 + - CAST( 52 AS SIGNED ) + + col2 * - col2 AS col2 FROM tab2 cor0
----
-58
-1654
-58
-3436
-58
-566

skipif mysql # not compatible
query II rowsort label-3219
SELECT ALL - 58, 38 + + - col2 + - CAST ( 52 AS INTEGER ) + + col2 * - col2 AS col2 FROM tab2 cor0
----
-58
-1654
-58
-3436
-58
-566

query I rowsort
SELECT DISTINCT - col1 + - + ( + + col0 ) FROM tab0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + + col1 - - col2 FROM tab2 WHERE + 79 + - 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT + COUNT( * ) + 76 AS col2 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-3222
SELECT + COUNT ( * ) + 76 AS col2 FROM tab0
----
79

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - + 52 + - + col1 AS col1 FROM tab2 AS cor0
----
-103
-119
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + MAX( + col2 ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-3225
SELECT + MAX ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT + - CAST( NULL AS SIGNED ) / + + COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT + - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT CAST( - AVG ( ALL - 42 ) AS SIGNED ) * - + 14 FROM tab2 cor0
----
-588

skipif mysql # not compatible
query I rowsort label-3227
SELECT CAST ( - AVG ( ALL - 42 ) AS INTEGER ) * - + 14 FROM tab2 cor0
----
-588

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN NULL AND + 2 * - col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + 65 * + 85 * COUNT( * ) * - + 86 FROM tab0
----
-1425450

skipif mysql # not compatible
query I rowsort label-3229
SELECT + 65 * + 85 * COUNT ( * ) * - + 86 FROM tab0
----
-1425450

query III rowsort
SELECT * FROM tab0 WHERE - + 72 * - col2 / 12 * col1 <= NULL
----

query I rowsort
SELECT + 50 - + col0 AS col0 FROM tab0
----
-37
-47
35

query I rowsort
SELECT ALL + 17 + + 52 FROM tab2
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 57 <= + col2 )
----
46
51
23
64
77
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 96 AND - 71
----

query II rowsort
SELECT ALL - col0 * - - col1 + + col2 AS col2, col2 AS col1 FROM tab1 AS cor0
----
-366
59
-4209
68
-618
96

query I rowsort
SELECT DISTINCT - 26 + - col0 AS col1 FROM tab0 cor0
----
-113
-123
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3237
SELECT - 94 col0, col1 DIV - CAST( + col0 AS SIGNED ) * - - ( - - col1 ) DIV - + ( + col1 ) + - + 41 + col1 AS col2 FROM tab1 AS cor0
----
-94
-27
-94
-36
-94
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3237
SELECT - 94 col0, col1 / - CAST ( + col0 AS INTEGER ) * - - ( - - col1 ) / - + ( + col1 ) + - + 41 + col1 AS col2 FROM tab1 AS cor0
----
-94
-27
-94
-36
-94
6

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( col0 / col1 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ( - 6 ) FROM tab1 WHERE col2 / 52 IS NOT NULL
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) <= NULL
----

query I rowsort
SELECT + col0 - 22 FROM tab0
----
-7
65
75

query I rowsort
SELECT - 5 - - 77 FROM tab2
----
72
72
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 4 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT + ( CAST( col1 AS SIGNED ) ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3245
SELECT + ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 * col2 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col2 FROM tab1
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT + CAST( + col1 AS SIGNED ) FROM tab1 WHERE - col0 * + col0 NOT IN ( + col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3248
SELECT + CAST ( + col1 AS INTEGER ) FROM tab1 WHERE - col0 * + col0 NOT IN ( + col2 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL COUNT( DISTINCT 68 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL COUNT ( DISTINCT 68 ) AS col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 WHERE NOT ( col1 ) BETWEEN + col0 AND NULL
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL COUNT( * ) * SUM( col1 ) AS col2 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL COUNT ( * ) * SUM ( col1 ) AS col2 FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT + COUNT( * ) * 94 + - COUNT( * ) * COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3252
SELECT + COUNT ( * ) * 94 + - COUNT ( * ) * COUNT ( * ) FROM tab1
----
273

query I rowsort
SELECT col1 + + 6 AS col1 FROM tab1
----
11
20
53

query I rowsort
SELECT ALL + 56 - + col2 FROM tab0
----
-43
46
9

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL <= ( - col2 + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3256
SELECT 18 * + CAST( + COUNT( * ) AS SIGNED ) + 23 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-3256
SELECT 18 * + CAST ( + COUNT ( * ) AS INTEGER ) + 23 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
77

query I rowsort
SELECT ALL ( 74 ) AS col0 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) = col0 * col1 + + 49
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( 85 * ( - ( 29 ) ) ) AND NULL
----

query I rowsort
SELECT - 77 AS col1 FROM tab1 WHERE - col0 * - 86 IS NOT NULL
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + 88 + + col1 * + col1 FROM tab0
----
529
6649
89

query I rowsort
SELECT 35 * 84 AS col1 FROM tab1
----
2940
2940
2940

query I rowsort
SELECT ALL + 73 + 64 FROM tab1 AS cor0
----
137
137
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND - 35
----
-9

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND - 35
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT DISTINCT - SUM( DISTINCT col0 ) - COUNT( * ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT - SUM ( DISTINCT col0 ) - COUNT ( * ) FROM tab0 AS cor0
----
-202

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) <> ( col2 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 - 0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 28 ) NOT IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 49 / - 19 NOT BETWEEN NULL AND ( - 40 * 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + - COUNT( * ) + - 77 * COUNT( * ) col1 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3271
SELECT + - COUNT ( * ) + - 77 * COUNT ( * ) col1 FROM tab2 AS cor0
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT DISTINCT - 27 DIV + col1 - + 44 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - 27 / + col1 - + 44 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT + 54 + 52 FROM tab1 AS cor0
----
106
106
106

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 + 82 NOT BETWEEN 12 AND col2
----
85
5
59
91
47
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT DISTINCT CAST( - ( col1 ) AS SIGNED ) - - col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT CAST ( - ( col1 ) AS INTEGER ) - - col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - col2 FROM tab0 WHERE ( NULL ) IN ( + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE 54 <> ( 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN - 34 AND NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE + 78 * col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3281
SELECT - CAST( NULL AS SIGNED ) / - + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT - 67 DIV col1 * + col1 FROM tab0
----
-63
-67
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT - 67 / col1 * + col1 FROM tab0
----
-63
-67
0

query I rowsort
SELECT DISTINCT ( 6 ) AS col2 FROM tab0
----
6

query I rowsort
SELECT ALL col1 * - col2 AS col2 FROM tab2 WHERE 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT 63 * ( + MAX( DISTINCT col0 ) ) FROM tab2
----
4725

skipif mysql # not compatible
query I rowsort label-3285
SELECT 63 * ( + MAX ( DISTINCT col0 ) ) FROM tab2
----
4725

query I rowsort
SELECT DISTINCT + + 96 AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3287
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS DECIMAL ) BETWEEN ( - 0 ) AND 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3287
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS REAL ) BETWEEN ( - 0 ) AND 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT - 28 * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
252

skipif mysql # not compatible
query I rowsort label-3288
SELECT - 28 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
252

query II rowsort
SELECT ALL + col1 AS col0, col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3290
SELECT ALL - CAST( col1 AS DECIMAL ) col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) - + ( col0 ) >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3290
SELECT ALL - CAST ( col1 AS REAL ) col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) - + ( col0 ) >= NULL
----

query II rowsort
SELECT + - 28 AS col1, - col2 AS col2 FROM tab0 cor0
----
-28
-10
-28
-47
-28
-99

query II rowsort
SELECT ALL + col1 AS col2, col0 * - + 63 AS col2 FROM tab0 cor0
----
1
-6111
21
-5481
81
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT + SUM( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( + col0 ) < col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT + SUM ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( + col0 ) < col2 + + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3295
SELECT ALL ( + col1 ) FROM tab0 AS cor0 WHERE 9 * + CAST( + ( - col0 ) AS SIGNED ) * col2 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL ( + col1 ) FROM tab0 AS cor0 WHERE 9 * + CAST ( + ( - col0 ) AS INTEGER ) * col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + 50 * - - ( - col0 ) FROM tab2
----
-2300
-3200
-3750

query I rowsort
SELECT - col1 - 45 * col0 FROM tab2 WHERE NOT ( col0 - + + ( 12 ) * + col2 ) NOT BETWEEN + 37 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) / 92 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT SUM( ALL + 66 ) AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-3299
SELECT SUM ( ALL + 66 ) AS col1 FROM tab0
----
198

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3300
SELECT * FROM tab1 WHERE NOT ( - CAST( + col1 AS DECIMAL ) ) NOT IN ( col0 / + 14 + col0 )
----

skipif mysql # not compatible
query III rowsort label-3300
SELECT * FROM tab1 WHERE NOT ( - CAST ( + col1 AS REAL ) ) NOT IN ( col0 / + 14 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT 71 DIV - 15 + + + col2 + + - col1 FROM tab0
----
-15
-38
94

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT 71 / - 15 + + + col2 + + - col1 FROM tab0
----
-15
-38
94

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 > + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 + 12 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 90 + - col2 - + col2 FROM tab1 AS cor0
----
-102
-28
-46

query I rowsort
SELECT ALL 19 * + 69 FROM tab0 AS cor0
----
1311
1311
1311

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 75 * + col2 > ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 + + - col1 - + - col1 * - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - 47 FROM tab2
----
-114
-124
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT DISTINCT - 45 + ( + 62 ) + + - col0 + + CAST( NULL AS SIGNED ) * col2 / col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - 45 + ( + 62 ) + + - col0 + + CAST ( NULL AS INTEGER ) * col2 / col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL + COUNT( * ) * - 68 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-612

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + COUNT ( * ) * - 68 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-612

query I rowsort
SELECT DISTINCT 24 FROM tab2 WHERE ( col2 / + col0 + - col0 ) > - 85
----
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + col1 / - - 82 - - - ( col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT + + col1 * + col0 DIV col0 AS col2 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3313
SELECT + + col1 * + col0 / col0 AS col2 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT col1 * + + col0 + - 82 AS col1 FROM tab0 AS cor0
----
1133
15
1745

query I rowsort
SELECT + ( + 19 ) FROM tab1 cor0
----
19
19
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 17 + 75 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT ALL - 42 DIV - - col1 AS col2 FROM tab0 AS cor0
----
-2
-42
0

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - 42 / - - col1 AS col2 FROM tab0 AS cor0
----
-2
-42
0

query I rowsort
SELECT + 19 * + 20 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
-161500
-1625260
-271320

query I rowsort
SELECT - 31 - - col2 FROM tab1 AS cor0
----
28
37
65

query I rowsort
SELECT + col0 * - ( + - ( + - 98 ) ) - + - 48 * col0 - + col0 AS col2 FROM tab1 AS cor0
----
-2601
-4335
-4641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 49 col0 FROM tab1
----
-2891
-3332
-4704

query I rowsort
SELECT col2 * 40 * + 20 AS col2 FROM tab2
----
18400
32000
46400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT 35 DIV - COUNT( * ) AS col2 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-3323
SELECT 35 / - COUNT ( * ) AS col2 FROM tab2
----
-11

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col2 FROM tab2 WHERE NOT - col0 * 61 * + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + COUNT( ALL 7 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3325
SELECT + COUNT ( ALL 7 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3326
SELECT col0 DIV ( + 33 ) DIV + 30 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3326
SELECT col0 / ( + 33 ) / + 30 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3327
SELECT ALL col0, + CAST( + 61 AS SIGNED ) AS col1 FROM tab2
----
46
61
64
61
75
61

skipif mysql # not compatible
query II rowsort label-3327
SELECT ALL col0, + CAST ( + 61 AS INTEGER ) AS col1 FROM tab2
----
46
61
64
61
75
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) * col2 / - col2 + + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) * col2 / - col2 + + col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col1 col0 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT ALL + col2, 26 AS col0 FROM tab2 AS cor0
----
23
26
40
26
58
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * - col2 col1 FROM tab1 AS cor0
----
-4071
-4692
-6624

query II rowsort
SELECT - col0, - 30 AS col2 FROM tab0 AS cor0
----
-15
-30
-87
-30
-97
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3333
SELECT DISTINCT ( + SUM( - CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT ( + SUM ( - CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 39 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT col1 * + col0 + ( + col0 ) - - col1 FROM tab0 cor0
----
1311
1935
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + + SUM( + col0 ) * - 45 FROM tab2 AS cor0
----
-8325

skipif mysql # not compatible
query I rowsort label-3336
SELECT + + SUM ( + col0 ) * - 45 FROM tab2 AS cor0
----
-8325

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NOT NULL >= - col1 * + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT - col2 DIV 19 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3338
SELECT - col2 / 19 FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3339
SELECT + + ( - CAST( NULL AS SIGNED ) ), CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3339
SELECT + + ( - CAST ( NULL AS INTEGER ) ), CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL - 29 * - 11 AS col1 FROM tab1 AS cor0
----
319
319
319

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab1 cor0
----
-67

query I rowsort
SELECT ALL - + 55 FROM tab2 AS cor0 WHERE NOT + 26 IN ( 15, col0 )
----
-55
-55
-55

query II rowsort
SELECT ( col1 ), col0 AS col2 FROM tab1 cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL + col2 + - col0 + - + 43 AS col1 FROM tab1
----
-66
-69
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + col2 + - + ( + - col2 ) OR - col1 NOT IN ( + + 39 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3346
SELECT 13 + SUM( - col0 ), COUNT( - - CAST( NULL AS SIGNED ) ) * 30 + - 76 AS col0 FROM tab2
----
-172
-76

skipif mysql # not compatible
query II rowsort label-3346
SELECT 13 + SUM ( - col0 ), COUNT ( - - CAST ( NULL AS INTEGER ) ) * 30 + - 76 AS col0 FROM tab2
----
-172
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT + 39 * - + COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + 39 * - + COUNT ( * ) FROM tab2
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 + 40 FROM tab0
----
139
50
87

onlyif mysql # DIV for integer division: 
query II rowsort label-3350
SELECT DISTINCT + col2 DIV col1 + - + col2, 54 AS col1 FROM tab2 AS cor0
----
-23
54
-40
54
-58
54

skipif mysql # not compatible
query II rowsort label-3350
SELECT DISTINCT + col2 / col1 + - + col2, 54 AS col1 FROM tab2 AS cor0
----
-23
54
-40
54
-58
54

query II rowsort
SELECT DISTINCT - + col0 AS col2, col0 * - + 60 * - + 0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 55 * + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 74 col2 FROM tab0 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT + col0 DIV 72 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3354
SELECT + col0 / 72 AS col2 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT 68 + + 82 - - + col0 AS col2 FROM tab1
----
201
235
241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - 1, + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - 1, + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + ( + 81 ) - - col0 AS col2 FROM tab2 AS cor0
----
127
145
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col2 - + col2 BETWEEN 30 AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3359
SELECT ALL col0 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL col0 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 82 / - ( - + col0 ) - col2 + + + col0 / + col0 AND ( + 87 )
----

query II rowsort
SELECT - 5 AS col0, - col2 + col2 - + col0 + - + 8 + + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-5
-104
-5
-74
-5
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3362
SELECT ALL - + 87 DIV - - COUNT( * ) FROM tab1 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - + 87 / - - COUNT ( * ) FROM tab1 cor0
----
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 31 * col2 + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3364
SELECT DISTINCT + 16 DIV + col0 AS col0, - 83 AS col2 FROM tab0 AS cor0
----
0
-83
1
-83

skipif mysql # not compatible
query II rowsort label-3364
SELECT DISTINCT + 16 / + col0 AS col0, - 83 AS col2 FROM tab0 AS cor0
----
0
-83
1
-83

query I rowsort
SELECT ALL - 63 AS col2 FROM tab2 cor0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 92 col0 FROM tab0
----
-1932
-7452
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT ALL + col0 DIV - - 50 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + col0 / - - 50 AS col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * - col0 - col2 * + col2 col0 FROM tab2 AS cor0
----
-3059
-5120
-7489

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT DISTINCT - COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3369
SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0 cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT ALL + col2 + CAST( + col1 AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + col2 + CAST ( + col1 AS INTEGER ) FROM tab2
----
117
125
74

query I rowsort
SELECT ( - 17 ) * + 28 AS col1 FROM tab2
----
-476
-476
-476

query I rowsort
SELECT + ( col2 ) + col0 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL - + ( + col1 ) FROM tab2 AS cor0 WHERE NOT col2 * - 76 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) - 30 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - 30 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 51 FROM tab2 AS cor0 WHERE NOT ( - 13 ) IS NOT NULL
----

query I rowsort
SELECT - col1 * - col2 FROM tab2 AS cor0 WHERE NOT + + col0 * + - ( - 74 ) IS NULL AND - 10 NOT BETWEEN - - col0 AND + 13 - - 96
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col2 + - 73 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - 1 * + - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3378
SELECT - 1 * + - COUNT ( * ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col0 + + - 95 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 69 + - 45 FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + ( 67 ), ( + + 56 ) AS col2 FROM tab1 WHERE + col1 / - col2 - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col0
----

query I rowsort
SELECT DISTINCT + ( + + col2 ) - + col0 - - 98 FROM tab0
----
100
130
21

query I rowsort
SELECT + + col2 + 63 + + col0 * - col1 + col0 FROM tab2 AS cor0
----
-2214
-4761
-4829

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT DISTINCT SUM( 45 ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT SUM ( 45 ) FROM tab0 AS cor0
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( ( + col0 ) ) col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3389
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2, - col1 - ( CAST( NULL AS SIGNED ) ) - + col2 )
----

skipif mysql # not compatible
query III rowsort label-3389
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2, - col1 - ( CAST ( NULL AS INTEGER ) ) - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 42, + col2, - col0 + - 27, - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT DISTINCT - 66, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-66
3

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT - 66, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-66
3

query I rowsort
SELECT - - ( + 76 ) FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 39 * - col0 * + col1 AS col0 FROM tab2
----
-192192
-195975
-91494

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3396
SELECT 91 DIV + 73 AS col2, + COUNT( * ) FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-3396
SELECT 91 / + 73 AS col2, + COUNT ( * ) FROM tab1
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3397
SELECT - - CAST( col1 AS SIGNED ), col0 AS col2 FROM tab1 cor0
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-3397
SELECT - - CAST ( col1 AS INTEGER ), col0 AS col2 FROM tab1 cor0
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * 50 + - 57
----

query I rowsort
SELECT ALL + 74 * 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 23f53365d117c4459e3a18f0036c184c

query I rowsort
SELECT + 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL - 16 + + + 26 AS col1 FROM tab2
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 47 ) col0 FROM tab0 AS cor0
----
47

query II rowsort
SELECT col2 AS col2, 89 FROM tab2 cor0
----
23
89
40
89
58
89

query I rowsort
SELECT + col0 * 84 AS col2 FROM tab0 AS cor0
----
1260
7308
8148

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT 95 DIV - col1 + col2 + col1 AS col2 FROM tab1 AS cor0
----
104
113
45

skipif mysql # not compatible
query I rowsort label-3406
SELECT 95 / - col1 + col2 + col1 AS col2 FROM tab1 AS cor0
----
104
113
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT COUNT( * ) * + ( + - MIN( col0 ) ) + - 95 FROM tab0 cor0
----
-140

skipif mysql # not compatible
query I rowsort label-3407
SELECT COUNT ( * ) * + ( + - MIN ( col0 ) ) + - 95 FROM tab0 cor0
----
-140

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 83 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 46 - col0 < NULL
----

query I rowsort
SELECT + 9 + - 56 FROM tab2
----
-47
-47
-47

query I rowsort
SELECT ALL col1 - + - col2 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT 12 * col1 DIV 55 AS col2 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-3412
SELECT 12 * col1 / 55 AS col2 FROM tab1
----
1
10
3

query I rowsort
SELECT DISTINCT + 19 - - 12 FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL 38 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT DISTINCT - col1 DIV + 16 + - - col0 AS col0 FROM tab0 AS cor0
----
10
86
97

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT - col1 / + 16 + - - col0 AS col0 FROM tab0 AS cor0
----
10
86
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3416
SELECT ALL + col0 + + col1 + + col0 DIV + col1 AS col2 FROM tab0
----
112
195
96

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + col0 + + col1 + + col0 / + col1 AS col2 FROM tab0
----
112
195
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3417
SELECT + SUM( CAST( - col2 AS SIGNED ) ) AS col1, 58 AS col1 FROM tab0
----
-156
58

skipif mysql # not compatible
query II rowsort label-3417
SELECT + SUM ( CAST ( - col2 AS INTEGER ) ) AS col1, 58 AS col1 FROM tab0
----
-156
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 99 + - col1 - + - 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 29 FROM tab1 cor0 WHERE 66 IS NULL
----

query II rowsort
SELECT DISTINCT - - ( - col0 ) AS col2, 26 * + - col0 FROM tab0 AS cor0
----
-15
-390
-87
-2262
-97
-2522

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3421
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + 9 - - col2 + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3421
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + 9 - - col2 + - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> 71 - - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col0 * - + ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL SUM( + ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL SUM ( + ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 86 * + - ( - - col1 ) - - - 83 AND + col0 * 22 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT SUM( ALL - - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3426
SELECT SUM ( ALL - - col1 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + 62 * + COUNT( * ) FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-3427
SELECT + 62 * + COUNT ( * ) FROM tab1
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT 11 DIV 37 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT 11 / 37 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 80 * - col0 FROM tab0
----
1200
6960
7760

query I rowsort
SELECT DISTINCT col2 + - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT COUNT( + + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3431
SELECT COUNT ( + + col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT - SUM( ALL + 38 ) + 32 AS col2 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-3432
SELECT - SUM ( ALL + 38 ) + 32 AS col2 FROM tab1
----
-82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 5 + + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT COUNT( * ) * + 11 AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3434
SELECT COUNT ( * ) * + 11 AS col0 FROM tab0 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3435
SELECT 80 * CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT 80 * CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT - col1 DIV + 80 + + - col1 * - 37 FROM tab0 AS cor0
----
2996
37
777

skipif mysql # not compatible
query I rowsort label-3436
SELECT - col1 / + 80 + + - col1 * - 37 FROM tab0 AS cor0
----
2996
37
777

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3437
SELECT * FROM tab2 WHERE - 5 IN ( + CAST( NULL AS SIGNED ), + 9 + + ( - + ( - col2 ) ), - + col1 * + - 47 + + + col0, + col1 + - col2 * - col0 * - + col2 )
----

skipif mysql # not compatible
query III rowsort label-3437
SELECT * FROM tab2 WHERE - 5 IN ( + CAST ( NULL AS INTEGER ), + 9 + + ( - + ( - col2 ) ), - + col1 * + - 47 + + + col0, + col1 + - col2 * - col0 * - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT SUM( DISTINCT 64 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3438
SELECT SUM ( DISTINCT 64 ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT MAX( - 35 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT MAX ( - 35 ) FROM tab0
----
-35

query I rowsort
SELECT col0 - - - col1 AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT + col1 - - col0 - + - col2 - - col1 * - ( CAST( NULL AS SIGNED ) ) * CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT + col1 - - col0 - + - col2 - - col1 * - ( CAST ( NULL AS INTEGER ) ) * CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + col2 * + col0 * col1 FROM tab1
----
24990
290745
68493

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT - ( + col1 ) * + col0 * + - col1 - + 60 DIV - + col0 + col2 col2 FROM tab1
----
10093
201087
2184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3443
SELECT - ( + col1 ) * + col0 * + - col1 - + 60 / - + col0 + col2 col2 FROM tab1
----
10093
201087
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT + 83 + + MIN( + + 91 ) AS col2 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + 83 + + MIN ( + + 91 ) AS col2 FROM tab1
----
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 + - col1 col1 FROM tab0
----
-27
33
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT - + 69 DIV + 79 * + - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3446
SELECT - + 69 / + 79 * + - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - SUM( + ( + - col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3447
SELECT - SUM ( + ( + - col0 ) ) FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67 col0, + col0 AS col1 FROM tab1 AS cor0
----
67
51
67
85
67
91

query II rowsort
SELECT 80 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
80
-51
80
-85
80
-91

query I rowsort
SELECT col1 * + - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( ( + - col0 ) ) AND - col0 + - + col1
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE 50 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - ( 22 ) AS col2 FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - COUNT( DISTINCT - 6 ) * - 17 AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-3454
SELECT - COUNT ( DISTINCT - 6 ) * - 17 AS col2 FROM tab1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT ALL - + 31 DIV + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - + 31 / + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT COUNT( * ) + + - 34 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3456
SELECT COUNT ( * ) + + - 34 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT + 96 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL 63 + + - ( - COUNT( * ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL 63 + + - ( - COUNT ( * ) ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT + 74 * + col2 AS col1 FROM tab1 AS cor0
----
4366
5032
7104

query I rowsort
SELECT - 15 + + - col1 FROM tab0 cor0
----
-16
-36
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT + - 55 + + MAX( + + col2 ) * + 82 + + + ( - 41 ) AS col1 FROM tab2 cor0
----
4660

skipif mysql # not compatible
query I rowsort label-3462
SELECT + - 55 + + MAX ( + + col2 ) * + 82 + + + ( - 41 ) AS col1 FROM tab2 cor0
----
4660

query I rowsort
SELECT + col1 + + + 16 FROM tab0 AS cor0
----
17
37
97

query I rowsort
SELECT ALL - 16 * + col0 FROM tab0 AS cor0
----
-1392
-1552
-240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3465
SELECT ALL CAST( NULL AS DECIMAL ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL CAST ( NULL AS REAL ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 17 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col0 + col0 + col2 * + 59
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL SUM( ALL - col1 ) + 97 col2 FROM tab2 WHERE NOT col2 - + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3467
SELECT ALL SUM ( ALL - col1 ) + 97 col2 FROM tab2 WHERE NOT col2 - + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT + col2 FROM tab2 WHERE + + col0 - col1 + 94 + - col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 * + col2 + - - 54 AS col2 FROM tab0
----
-156
-3753
-45

query I rowsort
SELECT DISTINCT - col1 + + - col0 AS col0 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) + + MIN( 49 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) + + MIN ( 49 ) FROM tab2
----
52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN + + 17 * col2 * + col2 AND + - ( + 65 ) * 9 + + - 79
----

query II rowsort
SELECT ALL 66 * - 16 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-1056
51
-1056
67
-1056
77

query II rowsort
SELECT - col1, 80 AS col2 FROM tab2
----
-51
80
-67
80
-77
80

query III rowsort
SELECT * FROM tab2 WHERE NOT 98 * 37 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 + + col0 * + - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col0 IS NULL
----

query I rowsort
SELECT ( + 3 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
3
3
3

query II rowsort
SELECT ALL col2 AS col0, 66 - - col0 FROM tab1
----
59
151
68
157
96
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT DISTINCT - COUNT( * ) + + + COUNT( ALL - 70 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( ALL - 70 ) AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - col0 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT COUNT( ALL + - 1 ) * + 5 + + COUNT( + 35 ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT COUNT ( ALL + - 1 ) * + 5 + + COUNT ( + 35 ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT 96 * COUNT( * ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-3483
SELECT 96 * COUNT ( * ) FROM tab0
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col2 FROM tab2 cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col1 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT DISTINCT + - col2 * + - col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT + - col2 * + - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 93 * + ( + 1 ) AS col0 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + - 99 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - 83 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3490
SELECT - col1 - col1 AS col0, + col1 + + 41 * - - col0 * + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-162
NULL
-2
NULL
-42
NULL

skipif mysql # not compatible
query II rowsort label-3490
SELECT - col1 - col1 AS col0, + col1 + + 41 * - - col0 * + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-162
NULL
-2
NULL
-42
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN - + col1 + + - col2 AND - col0 AND NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT 73 + + 15 FROM tab1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT DISTINCT + ( CAST( + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * + col1 col1 FROM tab1
----
329
35
98

query II rowsort
SELECT col0 AS col1, 46 + + - col2 * ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
15
2255
87
146
97
9847

query I rowsort
SELECT DISTINCT + col1 * - - col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT ALL - col0 AS col1, 26 AS col0 FROM tab1 AS cor0
----
-51
26
-85
26
-91
26

query II rowsort
SELECT ALL col2 * col1, col0 AS col1 FROM tab2
----
1173
46
3080
64
3886
75

query I rowsort
SELECT ALL - 78 * - - col0 AS col1 FROM tab2
----
-3588
-4992
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT DISTINCT 64 * - COUNT( * ) AS col0 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT 64 * - COUNT ( * ) AS col0 FROM tab1
----
-192

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT ALL - col1 DIV 10 AS col2 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - col1 / 10 AS col2 FROM tab1 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT - SUM( col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3504
SELECT DISTINCT - SUM ( col2 ) col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3505
SELECT + COUNT( * ) DIV + SUM( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT + COUNT ( * ) / + SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT col1, + 4 FROM tab0
----
1
4
21
4
81
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT ALL + col0 DIV + 67 + ( + col0 ) * - - 74 AS col2 FROM tab0
----
1110
6439
7179

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + col0 / + 67 + ( + col0 ) * - - 74 AS col2 FROM tab0
----
1110
6439
7179

query I rowsort
SELECT DISTINCT - - 31 * - + col2 * col1 FROM tab0 WHERE NULL BETWEEN NULL AND + + 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( 45 ) + col1 col2 FROM tab0
----
145
173
76

query I rowsort
SELECT col0 + - - 57 AS col0 FROM tab1
----
108
142
148

query I rowsort
SELECT ALL - - 12 * 39 + - col2 + - col1 FROM tab1 AS cor0
----
353
358
404

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - col1 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT DISTINCT + 19 DIV COUNT( * ) + - 71 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + 19 / COUNT ( * ) + - 71 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT - + ( 75 ) FROM tab1 cor0
----
-75
-75
-75

query I rowsort
SELECT ALL - + 25 + + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
200
7544
9384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT + + 20 + - - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3516
SELECT + + 20 + - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
17

query I rowsort
SELECT + - col1 + 78 FROM tab2 AS cor0
----
1
11
27

query I rowsort
SELECT DISTINCT + col2 - 12 FROM tab1 AS cor0
----
47
56
84

query II rowsort
SELECT - col1 + col2 AS col1, + col2 FROM tab0 AS cor0
----
-11
10
-34
47
98
99

query I rowsort
SELECT DISTINCT + 76 - col1 FROM tab2 AS cor0
----
-1
25
9

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL >= 69
----

query II rowsort
SELECT ALL + col2 * - 57 AS col1, col0 AS col0 FROM tab2
----
-1311
46
-2280
64
-3306
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3523
SELECT - 3 DIV col2, col1 * - - col1 * - + 3 AS col0 FROM tab0
----
0
-1323
0
-19683
0
-3

skipif mysql # not compatible
query II rowsort label-3523
SELECT - 3 / col2, col1 * - - col1 * - + 3 AS col0 FROM tab0
----
0
-1323
0
-19683
0
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3524
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT MIN( ALL + 54 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-3525
SELECT MIN ( ALL + 54 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 60 ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT - 75 * - - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT - 75 * - - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - - COUNT( * ) col0 FROM tab0 cor0 WHERE NOT col0 IN ( - - col2, 60 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3528
SELECT - - COUNT ( * ) col0 FROM tab0 cor0 WHERE NOT col0 IN ( - - col2, 60 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT + + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT + + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
0

query I rowsort
SELECT ALL col1 * + col1 + - - col2 FROM tab0
----
100
451
6608

query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 + - 48 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 61 + col1, col0 FROM tab2
----
112
46
128
75
138
64

query I rowsort
SELECT ALL + col2 * col2 + - 30 FROM tab1
----
3451
4594
9186

query III rowsort
SELECT * FROM tab0 WHERE - + ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT + COUNT( * ) * - 28 FROM tab0 WHERE ( - col0 / + 89 ) IS NOT NULL
----
-84

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + COUNT ( * ) * - 28 FROM tab0 WHERE ( - col0 / + 89 ) IS NOT NULL
----
-84

query II rowsort
SELECT DISTINCT + ( + + col1 ), - 17 AS col2 FROM tab1 cor0
----
14
-17
47
-17
5
-17

query I rowsort
SELECT ALL 2 AS col2 FROM tab2 cor0
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3538
SELECT + MIN( DISTINCT + CAST( - 39 AS SIGNED ) ) + MAX( ALL + col0 ) AS col2, MIN( - - col2 ) * - 9 AS col0 FROM tab2
----
36
-207

skipif mysql # not compatible
query II rowsort label-3538
SELECT + MIN ( DISTINCT + CAST ( - 39 AS INTEGER ) ) + MAX ( ALL + col0 ) AS col2, MIN ( - - col2 ) * - 9 AS col0 FROM tab2
----
36
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT COUNT( * ) FROM tab2 WHERE - 39 = - + 5 + - + ( ( - ( + 30 ) ) ) * + col1 - + CAST( 27 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT COUNT ( * ) FROM tab2 WHERE - 39 = - + 5 + - + ( ( - ( + 30 ) ) ) * + col1 - + CAST ( 27 AS INTEGER )
----
0

query II rowsort
SELECT DISTINCT ( - + col2 ) - col1, col2 FROM tab2
----
-117
40
-125
58
-74
23

query I rowsort
SELECT ALL - + 69 * ( 94 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-6486
-6486
-6486

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - MIN( + col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3542
SELECT - MIN ( + col1 ) FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT + 29 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3543
SELECT + 29 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT - 34 * + + 0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3545
SELECT DISTINCT - 19 DIV + ( + + 27 ) * + 78 + - 69 FROM tab0 WHERE + 98 IS NOT NULL
----
-69

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - 19 / + ( + + 27 ) * + 78 + - 69 FROM tab0 WHERE + 98 IS NOT NULL
----
-69

query II rowsort
SELECT col1, + col0 * - col2 FROM tab2
----
51
-1058
67
-4350
77
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3547
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL + MIN( + + 19 ) * - 55 * MAX( DISTINCT col1 ) AS col2 FROM tab1 WHERE - col1 / - 43 * + - ( + - col0 ) + col1 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL + MIN ( + + 19 ) * - 55 * MAX ( DISTINCT col1 ) AS col2 FROM tab1 WHERE - col1 / - 43 * + - ( + - col0 ) + col1 * - col1 IS NULL
----
NULL

query II rowsort
SELECT ALL - 69 AS col0, - 13 FROM tab0 AS cor0
----
-69
-13
-69
-13
-69
-13

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN 10 - + - 74 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( + 10 )
----

query I rowsort
SELECT 60 * - 76 + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-4469
-4475
-4509

query I rowsort
SELECT - ( - + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + 54 + col2 AS col2 FROM tab2 AS cor0
----
112
77
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT - COUNT( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3556
SELECT - COUNT ( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL col1 * + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT col0 * 25 FROM tab2 cor0
----
1150
1600
1875

query I rowsort
SELECT - - 66 + col2 AS col2 FROM tab2 AS cor0
----
106
124
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT - 86 + + col0 DIV col0 * col1 FROM tab0
----
-5
-65
-85

skipif mysql # not compatible
query I rowsort label-3560
SELECT - 86 + + col0 / col0 * col1 FROM tab0
----
-5
-65
-85

query I rowsort
SELECT DISTINCT 5 + + - col2 * + col0 FROM tab0
----
-700
-865
-9598

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + 11 + 95 * SUM( - col1 ) col1 FROM tab2
----
-18514

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3562
SELECT + 11 + 95 * SUM ( - col1 ) col1 FROM tab2
----
-18514

query I rowsort
SELECT 88 + - col1 * + 6 FROM tab2
----
-218
-314
-374

query I rowsort
SELECT ALL + col1 + - 98 FROM tab1 AS cor0
----
-51
-84
-93

query I rowsort
SELECT ALL + col0 + ( - col2 ) + 90 FROM tab0 AS cor0
----
167
58
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - + MIN( 1 ) * 88 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3566
SELECT - + MIN ( 1 ) * 88 FROM tab1 AS cor0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT ALL - + 10 * - AVG ( ALL CAST( NULL AS SIGNED ) ) * + - MAX( ALL + ( col1 ) ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - + 10 * - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + - MAX ( ALL + ( col1 ) ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 * col0 col1 FROM tab2 cor0
----
1344
1575
966

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3569
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * + + col1 * col0 * + 44 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * + + col1 * col0 * + 44 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - + 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT - col1 * - + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT - col1 * - + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 1 >= 70
----

query I rowsort
SELECT DISTINCT ( + col2 ) * + ( - col1 ) AS col0 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND col2
----

query I rowsort
SELECT ALL ( - col2 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND + + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT MIN( DISTINCT - 59 ) AS col1 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3578
SELECT MIN ( DISTINCT - 59 ) AS col1 FROM tab0 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT ALL - + CAST( ( + - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - + CAST ( ( + - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col1 FROM tab2
----
23
40
58

query I rowsort
SELECT + col0 * + - 38 AS col2 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3582
SELECT DISTINCT col2 DIV CAST( - 28 AS SIGNED ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT col2 / CAST ( - 28 AS INTEGER ) FROM tab0
----
-1
-3
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + 30
----

query II rowsort
SELECT - 49 * col2 * - - 85, col1 FROM tab2
----
-166600
77
-241570
67
-95795
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT + 98 * - COUNT( * ) FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-3585
SELECT + 98 * - COUNT ( * ) FROM tab0
----
-294

query I rowsort
SELECT + 16 * + - col2 FROM tab0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3587
SELECT COUNT( * ) DIV + + 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT COUNT ( * ) / + + 95 FROM tab0
----
0

query I rowsort
SELECT col0 + + 81 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 34 * - col1 * - 45
----

query II rowsort
SELECT 6 AS col2, col1 FROM tab1
----
6
14
6
47
6
5

query II rowsort
SELECT DISTINCT 28 AS col0, - col1 + + + col2 + - + 26 * - 6 AS col2 FROM tab1
----
28
177
28
210
28
238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + 48 * - col2 + col0 + 59 * + col0 AS col2 FROM tab2 cor0
----
1656
1716
1920

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - col1 + + 29 + 71 / + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT - 82 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - CAST( 31 AS SIGNED ) AND + - 32
----

skipif mysql # not compatible
query I rowsort label-3594
SELECT - 82 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - CAST ( 31 AS INTEGER ) AND + - 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT DISTINCT - col2 + - col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT - col2 + - col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT DISTINCT COUNT( * ), SUM( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
3
-199

skipif mysql # not compatible
query II rowsort label-3596
SELECT DISTINCT COUNT ( * ), SUM ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
3
-199

query I rowsort
SELECT DISTINCT - - 41 + + - 58 - + - col1 FROM tab2 AS cor0
----
34
50
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL - col1 * + ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE ( col1 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - col1 * + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE ( col1 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 - + col2 / 73 - col2 IS NULL
----

query I rowsort
SELECT 78 * 7 * 98 AS col1 FROM tab1
----
53508
53508
53508

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT - col1 DIV 14 * + col2 * + col2 AS col0 FROM tab0
----
-100
-11045
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT - col1 / 14 * + col2 * + col2 AS col0 FROM tab0
----
-100
-11045
0

query I rowsort
SELECT DISTINCT col2 * - ( + - col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col2 + 33 AS col2 FROM tab2
----
56
73
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + + + CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3604
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + + + CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT - - 45 + SUM( + col0 ) * + - COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND - 14
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3605
SELECT - - 45 + SUM ( + col0 ) * + - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3606
SELECT ALL + - COUNT( * ) - - CAST( + 19 AS SIGNED ) FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL + - COUNT ( * ) - - CAST ( + 19 AS INTEGER ) FROM tab1 cor0
----
16

query I rowsort
SELECT + col2 * - col2 - col1 AS col1 FROM tab1 AS cor0 WHERE col2 * + + col0 * + ( - 53 ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3608
SELECT ALL - COUNT( * ) DIV COUNT( * ) * 3 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - COUNT ( * ) / COUNT ( * ) * 3 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT col2, + 37 AS col0 FROM tab1 AS cor0
----
59
37
68
37
96
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT ALL ( - + CAST( + col1 AS SIGNED ) ) * - col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL ( - + CAST ( + col1 AS INTEGER ) ) * - col1 FROM tab0 AS cor0
----
1
441
6561

query II rowsort
SELECT DISTINCT + col2 AS col0, - 85 AS col2 FROM tab2 AS cor0
----
23
-85
40
-85
58
-85

query I rowsort
SELECT - col2 * + ( + 14 ) FROM tab0
----
-1386
-140
-658

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - ( SUM( DISTINCT + - 34 ) ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3614
SELECT - ( SUM ( DISTINCT + - 34 ) ) FROM tab1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3615
SELECT + MAX( DISTINCT col0 ) * - + CAST( + + 2 AS SIGNED ) * - 22 FROM tab1
----
4004

skipif mysql # not compatible
query I rowsort label-3615
SELECT + MAX ( DISTINCT col0 ) * - + CAST ( + + 2 AS INTEGER ) * - 22 FROM tab1
----
4004

query I rowsort
SELECT ALL 2 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL + - col1 + col2 FROM tab2 WHERE NOT + + col0 IS NULL
----
-28
-37
-9

query I rowsort
SELECT + 95 * + + 56 * - col2 + - col1 FROM tab2 WHERE NOT + col1 / + 52 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT + + MAX( ALL col1 ) AS col1 FROM tab2 WHERE NOT NULL <= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT + + MAX ( ALL col1 ) AS col1 FROM tab2 WHERE NOT NULL <= - col2
----
NULL

query I rowsort
SELECT DISTINCT 61 * - + col2 FROM tab1
----
-3599
-4148
-5856

query I rowsort
SELECT - + 82 * col0 - + col1 + 73 + + col2 * - + col2 FROM tab2 AS cor0
----
-4279
-6852
-9508

query I rowsort
SELECT - + col2 + + col0 - + 12 + - col0 * + 22 * + col0 AS col1 FROM tab0 AS cor0
----
-166453
-207012
-4994

query II rowsort
SELECT - 39 + + - col2 * col0 * col1, - 97 AS col2 FROM tab2 cor0
----
-197159
-97
-291489
-97
-53997
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT + - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3624
SELECT + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - 9 + - + col2 FROM tab0 cor0
----
-108
-19
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL - COUNT( * ) - + 90 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL - COUNT ( * ) - + 90 FROM tab0 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3628
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) / - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3628
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / - + col2 IS NOT NULL
----

query I rowsort
SELECT col1 * + 16 + + - col1 + + - col0 FROM tab1 AS cor0
----
-10
159
614

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND - + 88
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + + col0 * - col2 + - 77 * - + 44 IS NOT NULL
----

query I rowsort
SELECT + 84 + - col0 + col2 AS col0 FROM tab1
----
129
58
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3633
SELECT * FROM tab0 WHERE 7 < - 59 * - - 28 + - 14 * CAST( NULL AS SIGNED ) + col0 * - col2 - + - 30
----

skipif mysql # not compatible
query III rowsort label-3633
SELECT * FROM tab0 WHERE 7 < - 59 * - - 28 + - 14 * CAST ( NULL AS INTEGER ) + col0 * - col2 - + - 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT + 41 + AVG ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + 41 + AVG ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 52 + + - col2 FROM tab0
----
-47
42
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> 59
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3637
SELECT col0 * - + col0 + col2 DIV - 89 AS col0, - col1 FROM tab1 AS cor0
----
-2602
-14
-7225
-5
-8281
-47

skipif mysql # not compatible
query II rowsort label-3637
SELECT col0 * - + col0 + col2 / - 89 AS col0, - col1 FROM tab1 AS cor0
----
-2602
-14
-7225
-5
-8281
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + - ( - + ( - 41 ) ) <> - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( ( NULL IS NOT NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col0 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT col2 * 7 * - ( col0 ) AS col1 FROM tab1
----
-34272
-35105
-43316

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL MIN( DISTINCT - col1 ) * - COUNT( * ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL MIN ( DISTINCT - col1 ) * - COUNT ( * ) AS col0 FROM tab1
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3643
SELECT ALL + COUNT( * ) DIV - + COUNT( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL + COUNT ( * ) / - + COUNT ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT + + 76 DIV + 99 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT + + 76 / + 99 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( 40 ) FROM tab1 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 27 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 27 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT MAX( + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3648
SELECT MAX ( + col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT ALL col2 * - + 64 AS col2 FROM tab2
----
-1472
-2560
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT 61 * + MIN( + + col0 ) * - - 35 * - + COUNT( * ) col1 FROM tab0
----
-96075

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3650
SELECT 61 * + MIN ( + + col0 ) * - - 35 * - + COUNT ( * ) col1 FROM tab0
----
-96075

query I rowsort
SELECT DISTINCT - col1 * + - col2 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ( col2 ) * - - 48 FROM tab0
----
2256
4752
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3653
SELECT DISTINCT 70 DIV + MIN( + - 73 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT 70 / + MIN ( + - 73 ) FROM tab1
----
0

query I rowsort
SELECT col2 + - 37 AS col1 FROM tab0 AS cor0
----
-27
10
62

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( col2 + col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( col1 ) - col0 * 47 AS col2 FROM tab2
----
-2111
-2931
-3458

query I rowsort
SELECT 85 * - col0 AS col2 FROM tab1
----
-4335
-7225
-7735

query I rowsort
SELECT 22 * col2 AS col2 FROM tab2
----
1276
506
880

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + 41 * COUNT( * ) AS col2 FROM tab1 WHERE 33 + - col1 <> ( + 65 / col2 + col0 )
----
123

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + 41 * COUNT ( * ) AS col2 FROM tab1 WHERE 33 + - col1 <> ( + 65 / col2 + col0 )
----
123

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 / + col0 + col2 ) >= - col1 + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * 20 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT CAST( NULL AS SIGNED ) * + 86 AS col2 FROM tab0 WHERE 79 IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-3662
SELECT CAST ( NULL AS INTEGER ) * + 86 AS col2 FROM tab0 WHERE 79 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT ( + 54 ) * col2 FROM tab1
----
3186
3672
5184

query I rowsort
SELECT col0 * - col2 FROM tab0 WHERE col0 NOT BETWEEN col2 AND ( - 39 * col0 - + col1 )
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT SUM( col2 ) + - COUNT( * ) AS col1 FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-3666
SELECT SUM ( col2 ) + - COUNT ( * ) AS col1 FROM tab1
----
220

query I rowsort
SELECT col2 + - 5 FROM tab0
----
42
5
94

query I rowsort
SELECT ALL col2 / col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3669
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT col0 * - col1 - + col2 * CAST( + 12 AS DECIMAL ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT col0 * - col1 - + col2 * CAST ( + 12 AS REAL ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT DISTINCT COUNT( * ) DIV - 37 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT COUNT ( * ) / - 37 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - 14 FROM tab0 WHERE NOT col2 <= ( + 16 )
----
-14
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT DISTINCT MAX( 17 ) DIV 47 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT MAX ( 17 ) / 47 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab0 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col1 FROM tab2 WHERE NOT ( + col2 ) BETWEEN + col2 AND ( col0 )
----

query I rowsort
SELECT 19 * - 92 + + col0 * - ( + col2 ) AS col0 FROM tab2
----
-2806
-4308
-6098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3676
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) + - MIN( DISTINCT col2 ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT col2 ) * - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 * + col1 + + 99 AS col2 FROM tab1
----
124
2308
295

query I rowsort
SELECT DISTINCT - col1 * col2 + + col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3679
SELECT ALL + COUNT( * ) * COUNT( * ) + 77 * - ( - MAX( ALL col0 ) DIV + COUNT( * ) ) AS col1 FROM tab1
----
2319

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + COUNT ( * ) * COUNT ( * ) + 77 * - ( - MAX ( ALL col0 ) / + COUNT ( * ) ) AS col1 FROM tab1
----
2319

query I rowsort
SELECT ALL col0 - + 1 * 30 AS col2 FROM tab1
----
21
55
61

query I rowsort
SELECT DISTINCT 62 * ( - col0 ) AS col1 FROM tab0
----
-5394
-6014
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT ALL - CAST( NULL AS SIGNED ) + 98 * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - CAST ( NULL AS INTEGER ) + 98 * COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT + MAX( DISTINCT - 10 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT + MAX ( DISTINCT - 10 ) FROM tab2
----
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * 29 BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 <= - ( - col1 ) * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL COUNT( * ) * 6 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( + col0 ) * - 43 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL COUNT ( * ) * 6 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( + col0 ) * - 43 AND col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT ALL + 74 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + 74 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3689
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 13 * - 97 FROM tab1 AS cor0
----
-1261
-1261
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT DISTINCT - 96 * + 98 AS col2 FROM tab0
----
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3693
SELECT ALL * FROM tab2 WHERE - col2 * CAST( + ( + 36 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3693
SELECT ALL * FROM tab2 WHERE - col2 * CAST ( + ( + 36 ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 94 * col2 AS col1 FROM tab2
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - + COUNT( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3695
SELECT - + COUNT ( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT + + col0 DIV - 21 AS col1 FROM tab1 AS cor0
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-3696
SELECT + + col0 / - 21 AS col1 FROM tab1 AS cor0
----
-2
-4
-4

query I rowsort
SELECT DISTINCT col0 * 72 FROM tab1 AS cor0
----
3672
6120
6552

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 27 - 46 ) BETWEEN ( col2 ) AND ( NULL )
----

query I rowsort
SELECT ALL 32 * 23 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT - - 25 AS col2 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT 34 * MAX( DISTINCT - col1 + - col0 * col1 ) AS col1 FROM tab1 AS cor0
----
-14620

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT 34 * MAX ( DISTINCT - col1 + - col0 * col1 ) AS col1 FROM tab1 AS cor0
----
-14620

query I rowsort
SELECT ALL - col1 * 60 + 54 FROM tab0 AS cor0
----
-1206
-4806
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT DISTINCT + 36 DIV + 73 * + col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + 36 / + 73 * + col0 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT ALL col2 + + - CAST( + 18 AS SIGNED ) col0 FROM tab0
----
-8
29
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3704
SELECT ALL col2 + + - CAST ( + 18 AS INTEGER ) col0 FROM tab0
----
-8
29
81

query I rowsort
SELECT - col0 + col2 FROM tab2 WHERE NOT NULL >= - ( 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT MIN( DISTINCT - col1 ) + - COUNT( * ) AS col2 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT MIN ( DISTINCT - col1 ) + - COUNT ( * ) AS col2 FROM tab1
----
-50

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( 97 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 56 * + 85 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( + col2 * - col2 )
----

query I rowsort
SELECT DISTINCT + col0 * 7 + - col0 FROM tab0 AS cor0
----
522
582
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * col0 + col1 * 32 ) IS NOT NULL
----

query I rowsort
SELECT + 79 * - 88 FROM tab2 cor0
----
-6952
-6952
-6952

query I rowsort
SELECT - col2 - - 59 * col0 FROM tab0 AS cor0 WHERE col2 * col1 <> NULL
----

query I rowsort
SELECT 49 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 43 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - - - col0 * + col0 FROM tab0 AS cor0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT ALL + COUNT( * ) * - + COUNT( * ) DIV + MIN( - col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) / + MIN ( - col2 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 29 * + col0 + + 85 * 26 FROM tab0 AS cor0 WHERE ( - 54 / + - col1 * col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT 77 + + col2 / + CAST( CAST( NULL AS SIGNED ) + 80 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT 77 + + col2 / + CAST ( CAST ( NULL AS INTEGER ) + 80 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + - 56 <> 83 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT ALL - + 17 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - + 17 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 36 FROM tab1 AS cor0 WHERE NOT col1 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col2 col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT + col1 + + col1 - - + col0 AS col0 FROM tab1 AS cor0
----
185
79
95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) <> NULL
----

query I rowsort
SELECT - + 94 + col1 FROM tab2 cor0 WHERE + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 65 < ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 65 < ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 / - - 36 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 / - - 36 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 73 * + - col0 AS col1 FROM tab2
----
3358
4672
5475

query I rowsort
SELECT ALL col2 + + - 96 + col2 * + col2 * - col1 AS col1 FROM tab1
----
-129024
-17442
-217356

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT col1 DIV + + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3733
SELECT col1 / + + col1 FROM tab1
----
1
1
1

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE - - 31 + + + 5 IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT DISTINCT + CAST( + 94 AS SIGNED ) - 79 * 58 FROM tab0 WHERE NOT + + col1 IS NULL
----
-4488

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + CAST ( + 94 AS INTEGER ) - 79 * 58 FROM tab0 WHERE NOT + + col1 IS NULL
----
-4488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE NOT ( + - col0 ) IN ( - col1 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT + SUM( col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3737
SELECT + SUM ( col0 ) AS col1 FROM tab0
----
199

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 IN ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + + MIN( ALL + col0 ) * + - COUNT( col1 ) FROM tab1 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3740
SELECT + + MIN ( ALL + col0 ) * + - COUNT ( col1 ) FROM tab1 cor0
----
-153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 23 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 22 col1 FROM tab0
----
-1034
-2178
-220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3743
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, 39 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL
39

skipif mysql # not compatible
query II rowsort label-3743
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, 39 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL
39

query I rowsort
SELECT - - col2 * + - 65 + - 13 * - 86 + - col1 AS col1 FROM tab0 AS cor0
----
-2018
-5318
447

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT - + col1 DIV 44 - - - 62 + col1 + + 0 - + ( + col0 ) + 66 DIV col0 AS col2 FROM tab2 AS cor0
----
-49
-57
-71

skipif mysql # not compatible
query I rowsort label-3745
SELECT - + col1 / 44 - - - 62 + col1 + + 0 - + ( + col0 ) + 66 / col0 AS col2 FROM tab2 AS cor0
----
-49
-57
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT - 45 * - - MIN( 74 ) * COUNT( * ) + 74 FROM tab2 AS cor0 WHERE NOT - col0 + + col0 IS NULL
----
-9916

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - 45 * - - MIN ( 74 ) * COUNT ( * ) + 74 FROM tab2 AS cor0 WHERE NOT - col0 + + col0 IS NULL
----
-9916

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT 8 + - SUM( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3747
SELECT 8 + - SUM ( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, col0 col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + MIN( DISTINCT + col2 ) / - ( + 63 * 93 ) FROM tab1 cor0 WHERE NOT - ( col2 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT + MIN ( DISTINCT + col2 ) / - ( + 63 * 93 ) FROM tab1 cor0 WHERE NOT - ( col2 ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT + - MAX( ALL - + col1 ) col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3750
SELECT DISTINCT + - MAX ( ALL - + col1 ) col0 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT - SUM( ALL + col1 ) * + + COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - SUM ( ALL + col1 ) * + + COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
-309

query I rowsort
SELECT + AVG ( - 10 ) AS col2 FROM tab1 AS cor0 WHERE - col1 * - + 93 BETWEEN NULL AND ( NULL ) AND col0 * + 7 BETWEEN 18 AND col2
----
NULL

query I rowsort
SELECT ALL - col2 + 27 AS col1 FROM tab2 AS cor0
----
-13
-31
4

query II rowsort
SELECT 69 AS col2, col2 AS col2 FROM tab1
----
69
59
69
68
69
96

query I rowsort
SELECT 20 * + ( - - ( - - 37 ) ) FROM tab1
----
740
740
740

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT + 28 col2, SUM( ALL col2 ) AS col0 FROM tab0
----
28
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3756
SELECT + 28 col2, SUM ( ALL col2 ) AS col0 FROM tab0
----
28
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL col1 + - - 60 * - - CAST( - + 69 AS SIGNED ) + + col0 AS col0 FROM tab0
----
-4032
-4042
-4044

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL col1 + - - 60 * - - CAST ( - + 69 AS INTEGER ) + + col0 AS col0 FROM tab0
----
-4032
-4042
-4044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT - CAST( - AVG ( - ( - 47 ) ) AS SIGNED ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3758
SELECT - CAST ( - AVG ( - ( - 47 ) ) AS INTEGER ) FROM tab1
----
47

query I rowsort
SELECT + 83 AS col0 FROM tab0 WHERE NULL IS NULL
----
83
83
83

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 AS col0 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT DISTINCT + - col0 * + col1 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) IS NOT NULL
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT + - col0 * + col1 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT + col0 FROM tab2 WHERE + + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3762
SELECT + col0 FROM tab2 WHERE + + CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 34 + + - col0 FROM tab0
----
-121
-131
-49

query I rowsort
SELECT - 32 * - col1 AS col2 FROM tab0 AS cor0
----
2592
32
672

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + - SUM( - 48 ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3766
SELECT + - SUM ( - 48 ) FROM tab2 AS cor0
----
144

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> + col1 - + - col2 - - + col1 * col2 * - col0
----

query I rowsort
SELECT DISTINCT - col1 * col0 + + + col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT - MAX( + col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3769
SELECT - MAX ( + col0 ) AS col2 FROM tab0 cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 66 ) - - col1 col1 FROM tab0 AS cor0
----
147
67
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT - + 34 - + COUNT( * ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - + 34 - + COUNT ( * ) FROM tab0 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT - + col1 - + col0 - + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-143
-205
-217

skipif mysql # not compatible
query I rowsort label-3772
SELECT - + col1 - + col0 - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-143
-205
-217

query I rowsort
SELECT - col1 - + col0 + + + 81 * - + col1 AS col2 FROM tab0 AS cor0
----
-179
-1809
-6657

query I rowsort
SELECT - 14 * 50 AS col2 FROM tab1
----
-700
-700
-700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT + COUNT( * ) DIV + 42 * - 42 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT + COUNT ( * ) / + 42 * - 42 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT - COUNT( - - 14 ) * - COUNT( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT - COUNT ( - - 14 ) * - COUNT ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3777
SELECT COUNT( * ) DIV + + 6 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT COUNT ( * ) / + + 6 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT ALL 68 DIV - 16 AS col0 FROM tab0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL 68 / - 16 AS col0 FROM tab0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT DISTINCT CAST( - 98 AS SIGNED ) AS col0 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT CAST ( - 98 AS INTEGER ) AS col0 FROM tab1
----
-98

query II rowsort
SELECT DISTINCT 33 AS col2, - 43 AS col0 FROM tab2 AS cor0
----
33
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3781
SELECT + 76 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
76
NULL
76
NULL
76
NULL

skipif mysql # not compatible
query II rowsort label-3781
SELECT + 76 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
76
NULL
76
NULL
76
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3782
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( - col0 AS SIGNED ) * 53 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3782
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( - col0 AS INTEGER ) * 53 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3783
SELECT - 34 * - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 34 * - - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 5 col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT ALL - 87 + - col0 FROM tab0 AS cor0
----
-102
-174
-184

query I rowsort
SELECT ALL - col1 + 99 FROM tab1 AS cor0 WHERE NOT col1 * + + col0 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT - - ( + + 66 ) FROM tab0 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL AVG ( DISTINCT - + ( - + CAST( NULL AS SIGNED ) ) ) + + 73 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL AVG ( DISTINCT - + ( - + CAST ( NULL AS INTEGER ) ) ) + + 73 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + col2 + + col1 FROM tab2
----
157
183
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - 70 + + + COUNT( * ) AS col0 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - 70 + + + COUNT ( * ) AS col0 FROM tab0
----
-67

query I rowsort
SELECT ALL + col2 + col0 - - col0 FROM tab2
----
115
168
208

query I rowsort
SELECT DISTINCT - - col1 * - - col0 * - + col0 AS col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT + MIN( + - 48 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + MIN ( + - 48 ) FROM tab0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT + COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT + COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + 35 - - col2 * col0 * - 75 AS col2 FROM tab0
----
-52840
-65215
-720190

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) NOT BETWEEN col1 / + - 81 AND + col2
----
87
21
10

query I rowsort
SELECT 51 + + 28 AS col2 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT ALL + - 41 - + col0 AS col0 FROM tab2 AS cor0
----
-105
-116
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT + COUNT( * ) - COUNT( * ) + + - 69 * + ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) + + - 69 * + ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT 57 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0 * - + ( + ( - + col2 ) ) * + - 44 * 3 * - 36 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3801
SELECT 57 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0 * - + ( + ( - + col2 ) ) * + - 44 * 3 * - 36 * + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + 81 AS col0 FROM tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT - col0 * + col0 * + + col2 AS col1 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3804
SELECT + - 2 AS col1, - col1 * - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2
2346
-2
4928
-2
5025

skipif mysql # not compatible
query II rowsort label-3804
SELECT + - 2 AS col1, - col1 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2
2346
-2
4928
-2
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3805
SELECT DISTINCT + - 16 DIV + - ( MAX( ALL - - col1 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT + - 16 / + - ( MAX ( ALL - - col1 ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT DISTINCT col2 * col1 DIV col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT col2 * col1 / col1 FROM tab0
----
10
47
99

query I rowsort
SELECT col1 * - + 90 FROM tab0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT - col2 * - - CAST( - 90 AS SIGNED ) col0 FROM tab2
----
2070
3600
5220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3809
SELECT - col2 * - - CAST ( - 90 AS INTEGER ) col0 FROM tab2
----
2070
3600
5220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 29 col1 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT ALL + col1 + + - col0 AS col0 FROM tab0 cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 51 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT 51 + COUNT( * ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 51 + COUNT ( * ) AS col0 FROM tab0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 + + - 3 col2 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL MIN( - 36 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL MIN ( - 36 ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NULL = + col0 - col2 ) )
----

query I rowsort
SELECT DISTINCT + 62 FROM tab1 AS cor0 WHERE - col1 / - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 52 IS NULL
----

query I rowsort
SELECT ALL col2 + - + col1 * + col2 AS col0 FROM tab2
----
-1150
-3040
-3828

query II rowsort
SELECT - 70 * + 89 AS col1, + col2 + col1 + + 55 FROM tab2
----
-6230
129
-6230
172
-6230
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT MAX( ALL - 9 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT MAX ( ALL - 9 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT ( col2 ) DIV - + 83 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3822
SELECT ( col2 ) / - + 83 AS col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 / - ( col1 ) BETWEEN + - 68 AND NULL
----

query I rowsort
SELECT + col2 * col2 - col2 FROM tab2 AS cor0
----
1560
3306
506

query I rowsort
SELECT ALL 25 AS col0 FROM tab1 cor0
----
25
25
25

query II rowsort
SELECT ALL - col1 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 72 BETWEEN ( - col2 ) AND + 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3828
SELECT - 82, - col2 + + ( + CAST( 41 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-82
-17
-82
1
-82
18

skipif mysql # not compatible
query II rowsort label-3828
SELECT - 82, - col2 + + ( + CAST ( 41 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-82
-17
-82
1
-82
18

query I rowsort
SELECT ALL - - ( 57 ) FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT ( - ( + - COUNT( col1 ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT ( - ( + - COUNT ( col1 ) ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT - + CAST( - - 41 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-3831
SELECT - + CAST ( - - 41 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-41
-41
-41

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 34 > + 82 - + col0
----
46
51
23

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - 37 ) NOT BETWEEN ( NULL ) AND - - col1
----

query I rowsort
SELECT DISTINCT + col1 * - 83 AS col0 FROM tab2
----
-4233
-5561
-6391

query I rowsort
SELECT ALL + + col0 + - col2 AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT + 35 * MAX( 85 ) AS col0 FROM tab0
----
2975

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + 35 * MAX ( 85 ) AS col0 FROM tab0
----
2975

query I rowsort
SELECT col2 * - col2 * - + 63 AS col0 FROM tab0
----
139167
617463
6300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 AS col0, - col1 * - + col1 col1 FROM tab0 AS cor0
----
-10
441
-47
6561
-99
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 59 * - col0 BETWEEN + ( - - 13 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3840
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) + - + ( + COUNT( ALL 98 ) ) AS col2, 58 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-90
58

skipif mysql # not compatible
query II rowsort label-3840
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) + - + ( + COUNT ( ALL 98 ) ) AS col2, 58 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-90
58

query I rowsort
SELECT ALL - ( 67 ) FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + col2 * 82 - + + col0 FROM tab1 AS cor0
----
4753
5485
7821

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT COUNT( * ) * + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3843
SELECT COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT - CAST( col0 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-3844
SELECT - CAST ( col0 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + - 68 + + COUNT( ALL - col0 ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3845
SELECT + - 68 + + COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - - SUM( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - - SUM ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
227

query II rowsort
SELECT col0, 72 AS col1 FROM tab2
----
46
72
64
72
75
72

query II rowsort
SELECT + 77 AS col1, - col0 FROM tab1 AS cor0
----
77
-51
77
-85
77
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 12 col2, col2 + 49 - + + col2 * - 6 * - col2 AS col1 FROM tab2 AS cor0
----
12
-20077
12
-3102
12
-9511

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3850
SELECT DISTINCT col1 + + + CAST( NULL AS DECIMAL ) + + - col1 + + col0 + col2 * col2 * - 11 AS col2 FROM tab2 cor0 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT col1 + + + CAST ( NULL AS REAL ) + + - col1 + + col0 + col2 * col2 * - 11 AS col2 FROM tab2 cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 94 * + col0 + col1 AS col2 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT MAX( - 27 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3853
SELECT MAX ( - 27 ) FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - 46 * + - COUNT( col0 ) FROM tab1 cor0
----
138

skipif mysql # not compatible
query I rowsort label-3854
SELECT - 46 * + - COUNT ( col0 ) FROM tab1 cor0
----
138

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL col2 * + - col1 AS col0 FROM tab1 cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT COUNT( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3858
SELECT COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3859
SELECT * FROM tab2 WHERE NOT + col0 >= - 77 - col2 * + + CAST( + 36 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3859
SELECT * FROM tab2 WHERE NOT + col0 >= - 77 - col2 * + + CAST ( + 36 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + 18 * - COUNT( * ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3860
SELECT + 18 * - COUNT ( * ) FROM tab0
----
-54

query I rowsort
SELECT ALL col2 * 14 AS col0 FROM tab1
----
1344
826
952

query I rowsort
SELECT + 51 * - col1 AS col1 FROM tab1
----
-2397
-255
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL + MAX( ( - col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + MAX ( ( - col1 ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT MIN( - col0 ) * - + 97 * SUM( + + col1 ) AS col0 FROM tab0 AS cor0
----
969127

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT MIN ( - col0 ) * - + 97 * SUM ( + + col1 ) AS col0 FROM tab0 AS cor0
----
969127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT - 58 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT - 58 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 14 * + + col2 FROM tab2
----
322
560
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3868
SELECT DISTINCT 47 DIV + COUNT( DISTINCT - 62 ) + ( - - 40 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT 47 / + COUNT ( DISTINCT - 62 ) + ( - - 40 ) FROM tab0
----
87

query I rowsort
SELECT ALL - - 23 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) + + 0 col0 FROM tab0
----
15
87
97

query I rowsort
SELECT 57 * - col1 + col1 FROM tab1
----
-2632
-280
-784

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col2 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + SUM( ALL col0 ) * - + COUNT( + + ( col1 ) ) FROM tab0 cor0
----
-597

skipif mysql # not compatible
query I rowsort label-3874
SELECT + SUM ( ALL col0 ) * - + COUNT ( + + ( col1 ) ) FROM tab0 cor0
----
-597

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT 77 + + 34 - col0 DIV + col0 AS col0 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT 77 + + 34 - col0 / + col0 AS col0 FROM tab2
----
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * 7 * + 24 col2 FROM tab0
----
11424
11424
11424

query I rowsort
SELECT col1 * + 14 * - + 43 AS col0 FROM tab0
----
-12642
-48762
-602

query I rowsort
SELECT col1 - - - 85 AS col1 FROM tab1
----
-38
-71
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT + col2 DIV - col2 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + col2 / - col2 AS col2 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 - + 37 + - col1 col2 FROM tab0
----
-68
-8
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 + - + ( - - col0 ) col2 FROM tab1
----
-126
-132
-92

query II rowsort
SELECT DISTINCT - - col2 * + col2 + + col1, col1 FROM tab2 AS cor0
----
1677
77
3431
67
580
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL - CAST( + col0 AS SIGNED ) - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL - CAST ( + col0 AS INTEGER ) - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT ALL - col2 * + 43 AS col2 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL AND NULL <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL AND NULL <= - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT SUM( 43 ) AS col0 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-3887
SELECT SUM ( 43 ) AS col0 FROM tab0 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT DISTINCT MIN( col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT MIN ( col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT - - col2 * + 55 AS col2 FROM tab1 AS cor0
----
3245
3740
5280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + SUM( - 39 ) AS col2 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-3891
SELECT + SUM ( - 39 ) AS col2 FROM tab2
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT - col2 + + - CAST( CAST( col1 AS SIGNED ) AS SIGNED ) + + 51 AS col0 FROM tab2 cor0
----
-23
-66
-74

skipif mysql # not compatible
query I rowsort label-3892
SELECT - col2 + + - CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) + + 51 AS col0 FROM tab2 cor0
----
-23
-66
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL + - MIN( + - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL + - MIN ( + - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col0, - col2 col0 FROM tab1 AS cor0
----
144
-59
147
-96
159
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT DISTINCT - + ( - - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - + ( - - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 86 * col0 = NULL
----

query I rowsort
SELECT DISTINCT + 96 + + - col1 FROM tab0
----
15
75
95

query I rowsort
SELECT DISTINCT - col1 + + 91 FROM tab0
----
10
70
90

query I rowsort
SELECT DISTINCT col1 * + 62 FROM tab1 AS cor0
----
2914
310
868

query I rowsort
SELECT + 10 + + - 33 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL - 97 * - col0 AS col0 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT + 29 / - col2 * + 53 + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT + 29 / - col2 * + 53 + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 83 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 83 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 39 * - - col2 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + MIN( - 10 ) + 83 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3905
SELECT + MIN ( - 10 ) + 83 FROM tab2 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + - 1 + 42 col0 FROM tab1 cor0
----
-4855
-4974
-6147

query I rowsort
SELECT ALL col1 * - 20 FROM tab1
----
-100
-280
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT DISTINCT col2 DIV - 30 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT col2 / - 30 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - col2 + + + ( 90 ) FROM tab2
----
32
50
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT + + COUNT( * ) + 94 AS col0 FROM tab1 WHERE + + 48 * 29 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-3910
SELECT + + COUNT ( * ) + 94 AS col0 FROM tab1 WHERE + + 48 * 29 IS NOT NULL
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT - 93, + COUNT( * ) AS col2 FROM tab0
----
-93
3

skipif mysql # not compatible
query II rowsort label-3911
SELECT - 93, + COUNT ( * ) AS col2 FROM tab0
----
-93
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 29 ) col1 FROM tab1
----
29
29
29

query I rowsort
SELECT DISTINCT col2 + 71 FROM tab2
----
111
129
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3914
SELECT ALL + MAX( DISTINCT - + col2 ) DIV 92 - + MAX( - col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + MAX ( DISTINCT - + col2 ) / 92 - + MAX ( - col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3915
SELECT - 83 AS col2, - COUNT( + + col1 ) FROM tab2
----
-83
-3

skipif mysql # not compatible
query II rowsort label-3915
SELECT - 83 AS col2, - COUNT ( + + col1 ) FROM tab2
----
-83
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - - MAX( DISTINCT - - 63 ) FROM tab1 WHERE - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT - - MAX ( DISTINCT - - 63 ) FROM tab1 WHERE - col0 = NULL
----
NULL

query II rowsort
SELECT + col1 AS col1, 17 FROM tab0
----
1
17
21
17
81
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT - - 85 * - COUNT( 49 ) col2 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3918
SELECT DISTINCT - - 85 * - COUNT ( 49 ) col2 FROM tab2 AS cor0
----
-255

query I rowsort
SELECT ALL + 73 * + + col1 AS col1 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT - SUM( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3920
SELECT - SUM ( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col0 FROM tab1
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + SUM( DISTINCT - - 36 ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) > + col0 + + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT + SUM ( DISTINCT - - 36 ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) > + col0 + + - 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3925
SELECT ALL + - MIN( col0 ) DIV + 31 col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3925
SELECT ALL + - MIN ( col0 ) / + 31 col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + - - 20 * - - 72 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - 32 AS col1 FROM tab2
----
-9
26
8

query II rowsort
SELECT ALL col1 AS col1, - col1 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT COUNT( * ) + - 12 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT COUNT ( * ) + - 12 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT DISTINCT - AVG ( ALL - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) + - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - AVG ( ALL - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT + MAX( DISTINCT ( + 20 ) ) AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-3932
SELECT + MAX ( DISTINCT ( + 20 ) ) AS col1 FROM tab2
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7 col0, + col2 + + col2 AS col1 FROM tab1
----
7
118
7
136
7
192

query I rowsort
SELECT DISTINCT col1 + 95 AS col0 FROM tab0
----
116
176
96

query I rowsort
SELECT DISTINCT ( - - 44 ) FROM tab0 AS cor0 WHERE col2 * - + col1 IS NOT NULL
----
44

query I rowsort
SELECT + - col1 * + 11 + 16 + - - 34 - 14 FROM tab1 AS cor0
----
-118
-19
-481

query II rowsort
SELECT ALL 81 AS col2, col0 FROM tab1 AS cor0
----
81
51
81
85
81
91

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - + 42 + col0 + + col2
----

query II rowsort
SELECT col0 + + + col0 AS col0, - 45 AS col0 FROM tab2
----
128
-45
150
-45
92
-45

query II rowsort
SELECT - + col1 AS col2, - col2 * + 6 AS col2 FROM tab1 WHERE + - 66 <> - - col1
----
-14
-576
-47
-408
-5
-354

query I rowsort
SELECT DISTINCT + col2 * - col2 - col0 FROM tab2 AS cor0
----
-1664
-3439
-575

query II rowsort
SELECT ALL + + col2 * - - col0 - - col1 - - col1 AS col2, col0 + + col2 * col1 AS col2 FROM tab2 cor0
----
1160
1219
2714
3144
4484
3961

query I rowsort
SELECT AVG ( ALL - + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT col2 DIV + 9 - - 7 AS col0 FROM tab2 AS cor0
----
11
13
9

skipif mysql # not compatible
query I rowsort label-3944
SELECT col2 / + 9 - - 7 AS col0 FROM tab2 AS cor0
----
11
13
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT col2 - - ( + 17 ) DIV - col1 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3945
SELECT col2 - - ( + 17 ) / - col1 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL ( 68 ) AS col1 FROM tab0 WHERE NOT col2 + - + 27 * col1 IS NULL
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT - MAX( + - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT - MAX ( + - col1 ) FROM tab0
----
1

query I rowsort
SELECT ALL + 45 * + 44 * 13 + - col2 FROM tab2 WHERE ( NULL ) = col1
----

query I rowsort
SELECT - 77 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT + ( COUNT( ALL col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT + ( COUNT ( ALL col1 ) ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 74 col0 FROM tab2 cor0
----
-74
-74
-74

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 85 IS NULL
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 * + 95 FROM tab1 AS cor0
----
330695
439280
875520

query I rowsort
SELECT DISTINCT 56 + - + 11 FROM tab1
----
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 78 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT - ( - + ( - CAST( NULL AS SIGNED ) ) ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT - ( - + ( - CAST ( NULL AS INTEGER ) ) ) + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 25 * col0 AS col0 FROM tab0 AS cor0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT + 33 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT + 33 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT ALL - col0 * col2 + + + 48 - col1 AS col2 FROM tab2 AS cor0
----
-1061
-2589
-4369

query I rowsort
SELECT + 28 + + 14 + + + 29 AS col1 FROM tab2
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT ALL + CAST( NULL AS SIGNED ) + + 76 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + CAST ( NULL AS INTEGER ) + + 76 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT + - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col2 + + 33 AS col1 FROM tab2 AS cor0
----
56
73
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT ALL + CAST( NULL AS SIGNED ) - - 56 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + CAST ( NULL AS INTEGER ) - - 56 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - - col1 + - col1 * col1 AS col2, + col2 col2, ( - - 95 ) - - + 25 FROM tab1 AS cor0
----
9 values hashing to 33bff8bd5087be48db3d60923a88475d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3969
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 71 * + + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) - 60 * COUNT( - col0 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 71 * + + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) - 60 * COUNT ( - col0 ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT + - COUNT( * ) + + + 75 FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-3970
SELECT + - COUNT ( * ) + + + 75 FROM tab0 cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE NOT NULL <= - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT - MIN( + col0 ) * + 75 FROM tab0
----
-1125

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT - MIN ( + col0 ) * + 75 FROM tab0
----
-1125

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + + 46
----

query I rowsort
SELECT ALL - col2 * - 37 FROM tab2 AS cor0
----
1480
2146
851

onlyif mysql # DIV for integer division: 
query II rowsort label-3975
SELECT DISTINCT + - col1 DIV + 43 col2, col2 FROM tab1 AS cor0
----
-1
68
0
59
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3975
SELECT DISTINCT + - col1 / + 43 col2, col2 FROM tab1 AS cor0
----
-1
68
0
59
0
96

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= - 66
----

query I rowsort
SELECT + col1 + 7 FROM tab2
----
58
74
84

query I rowsort
SELECT DISTINCT + 84 * + - col1 AS col1 FROM tab0 AS cor0
----
-1764
-6804
-84

query I rowsort
SELECT - - col0 + + ( + ( - col1 ) ) FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - + 19 + - 51 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + col0 * + 0 FROM tab2 AS cor0 WHERE NOT 81 BETWEEN + 21 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + COUNT( * ) + + 51 AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3982
SELECT + COUNT ( * ) + + 51 AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL COUNT( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL COUNT ( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 52 * 95 FROM tab1 AS cor0
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL + COUNT( ALL - + 58 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + COUNT ( ALL - + 58 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 / + col0 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT + COUNT( * ) DIV + - COUNT( * ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3987
SELECT + COUNT ( * ) / + - COUNT ( * ) col0 FROM tab0
----
-1

query I rowsort
SELECT + 1 FROM tab0 WHERE + + 89 * + col1 NOT IN ( - col1 * ( 87 ), col1 + - col2 - - col1 * - col0 * col0 )
----
1
1
1

query I rowsort
SELECT ( + - 52 ) * col1 FROM tab2
----
-2652
-3484
-4004

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT DISTINCT - 7 DIV 17 + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT - 7 / 17 + col0 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE + 9 * + + 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1
----
0

query II rowsort
SELECT 2 * + + 59, + col2 FROM tab2
----
118
23
118
40
118
58

query I rowsort
SELECT - - col2 / + col2 * + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT - COUNT( DISTINCT - - 46 ) - + SUM( DISTINCT - col2 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
120
3

skipif mysql # not compatible
query II rowsort label-3995
SELECT - COUNT ( DISTINCT - - 46 ) - + SUM ( DISTINCT - col2 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
120
3

query I rowsort
SELECT DISTINCT + col2 * + + 32 + + 82 AS col0 FROM tab2 AS cor0
----
1362
1938
818

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - COUNT( * ) + 17 AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3997
SELECT - COUNT ( * ) + 17 AS col0 FROM tab0 AS cor0
----
14

query I rowsort
SELECT - col0 + + - 44 FROM tab2 AS cor0
----
-108
-119
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT COUNT( * ) + 26 AS col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3999
SELECT COUNT ( * ) + 26 AS col1 FROM tab2 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT + 52 DIV 29 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 52 / 29 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + 37 * + - 40 * 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c9256a1653aa6b47656287141de75bfe

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL + CAST( - + col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - + col1 - - ( + + col0 ) FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT ALL - col2 + col0 DIV - 82 FROM tab1 AS cor0 WHERE + ( + 8 ) * - + col2 * - 62 IS NOT NULL
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - col2 + col0 / - 82 FROM tab1 AS cor0 WHERE + ( + 8 ) * - + col2 * - 62 IS NOT NULL
----
-60
-69
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 48 NOT BETWEEN - 58 - - + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT - + CAST( + col0 AS SIGNED ) * - + 26 FROM tab1 AS cor0
----
1326
2210
2366

skipif mysql # not compatible
query I rowsort label-4006
SELECT - + CAST ( + col0 AS INTEGER ) * - + 26 FROM tab1 AS cor0
----
1326
2210
2366

query I rowsort
SELECT + + col0 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT ALL - col1 * - + col2 + + 25 DIV - ( 70 ) FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - col1 * - + col2 + + 25 / - ( 70 ) FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 49 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4011
SELECT DISTINCT - col0 AS col1, + col1 + + - col1 + - CAST( + 20 AS SIGNED ) FROM tab2
----
-46
-20
-64
-20
-75
-20

skipif mysql # not compatible
query II rowsort label-4011
SELECT DISTINCT - col0 AS col1, + col1 + + - col1 + - CAST ( + 20 AS INTEGER ) FROM tab2
----
-46
-20
-64
-20
-75
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col0 FROM tab1
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 5 AS col0, col0 + - - col2 * - col2 col1 FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT DISTINCT + COUNT( * ) DIV - - 38 col2 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - + 64 AND ( - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4014
SELECT DISTINCT + COUNT ( * ) / - - 38 col2 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - + 64 AND ( - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT ALL + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT ALL + 66 DIV + 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + 66 / + 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT + col1 * - 45 AS col0, - 83 FROM tab0 cor0
----
-3645
-83
-45
-83
-945
-83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - COUNT( + + 53 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4019
SELECT - COUNT ( + + 53 ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT - + ( col0 ) * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT + - COUNT( + ( col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4021
SELECT + - COUNT ( + ( col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col2 * col0 * 56 AS col1 FROM tab0 cor0
----
-39480
-48720
-537768

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 5 ) > NULL
----

query II rowsort
SELECT ALL + ( - + 81 ), col2 AS col0 FROM tab0 AS cor0
----
-81
10
-81
47
-81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + + MAX( DISTINCT - - 99 ) + + 49 FROM tab0 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-4025
SELECT + + MAX ( DISTINCT - - 99 ) + + 49 FROM tab0 AS cor0
----
148

query I rowsort
SELECT ALL + 89 * col1 + + 60 FROM tab2 AS cor0
----
4599
6023
6913

query I rowsort
SELECT DISTINCT col2 + - + 54 FROM tab2
----
-14
-31
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL ( + 79 ) + - col1 FROM tab1
----
32
65
74

query I rowsort
SELECT DISTINCT 69 + + 79 AS col2 FROM tab1
----
148

query I rowsort
SELECT ALL ( col1 ) - - col0 * - col0 FROM tab0
----
-144
-7548
-9408

query II rowsort
SELECT - 71 AS col1, col0 * - col0 FROM tab0
----
-71
-225
-71
-7569
-71
-9409

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE 68 IS NULL
----

query I rowsort
SELECT - col0 * + 59 - - 52 FROM tab1 AS cor0
----
-2957
-4963
-5317

query I rowsort
SELECT ALL - + col2 + - + 90 AS col1 FROM tab2 AS cor0
----
-113
-130
-148

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4037
SELECT ALL + col2, 7 / + col1 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4037
SELECT ALL + col2, 7 / + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + MAX( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4038
SELECT + MAX ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT DISTINCT + 14, col1 AS col2 FROM tab2 AS cor0
----
14
51
14
67
14
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - - COUNT( DISTINCT + - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4040
SELECT - - COUNT ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4041
SELECT ALL + 30 DIV MAX( + col2 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + 30 / MAX ( + col2 ) FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT + ( - 43 ) * - 57 FROM tab1 AS cor0
----
2451

query II rowsort
SELECT DISTINCT col2 AS col1, 47 FROM tab0 AS cor0
----
10
47
47
47
99
47

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
15
87
97

query I rowsort
SELECT 37 * col1 FROM tab0
----
2997
37
777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT ( + col2 ) * + - CAST( - + col1 AS SIGNED ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4046
SELECT ( + col2 ) * + - CAST ( - + col1 AS INTEGER ) FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT ALL 56 AS col1 FROM tab1 WHERE ( + CAST( - + col1 AS SIGNED ) * + col1 NOT IN ( + col1 ) )
----
56
56
56

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 56 AS col1 FROM tab1 WHERE ( + CAST ( - + col1 AS INTEGER ) * + col1 NOT IN ( + col1 ) )
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4048
SELECT DISTINCT + 95 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4048
SELECT DISTINCT + 95 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
95
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL + SUM( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ( - + col1 ) * - - col1 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 + + 94 * + 89 + + 51 * - col0 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 97 - - + col2 AS col2 FROM tab1 cor0
----
5043
8304
8895

query I rowsort
SELECT - - 62 * + col0 - + - col1 AS col1 FROM tab2 AS cor0
----
2903
4045
4717

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT - col1 DIV + col2 + 88 col2 FROM tab0 AS cor0
----
86
87
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4054
SELECT - col1 / + col2 + 88 col2 FROM tab0 AS cor0
----
86
87
88

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - col1 <> + col1
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 + + + 42 AS col2 FROM tab1
----
4319
467
756

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT 77 - - + COUNT( * ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-4058
SELECT 77 - - + COUNT ( * ) FROM tab1
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-4059
SELECT 84 - col0 + + + 10 DIV - - col0 AS col0, + 15 FROM tab0
----
-13
15
-3
15
69
15

skipif mysql # not compatible
query II rowsort label-4059
SELECT 84 - col0 + + + 10 / - - col0 AS col0, + 15 FROM tab0
----
-13
15
-3
15
69
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - + 57 AND NULL
----

query I rowsort
SELECT + + 27 + + col2 AS col1 FROM tab2 AS cor0
----
50
67
85

onlyif mysql # DIV for integer division: 
query II rowsort label-4062
SELECT DISTINCT + col0 DIV + col0 AS col1, - 0 AS col1 FROM tab1 AS cor0
----
1
0

skipif mysql # not compatible
query II rowsort label-4062
SELECT DISTINCT + col0 / + col0 AS col1, - 0 AS col1 FROM tab1 AS cor0
----
1
0

query I rowsort
SELECT ALL 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT col2 DIV 12 FROM tab0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-4064
SELECT col2 / 12 FROM tab0
----
0
3
8

query II rowsort
SELECT DISTINCT + col2 AS col1, 48 * - col2 * - col2 AS col0 FROM tab0
----
10
4800
47
106032
99
470448

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL SUM( - - 63 ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL SUM ( - - 63 ) FROM tab1 AS cor0
----
189

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL - COUNT( * ) * + - 64 AS col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - COUNT ( * ) * + - 64 AS col1 FROM tab0 AS cor0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT ALL + 62 DIV - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + 62 / - col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4070
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4071
SELECT + col1 AS col1, + ( + 69 ) * - + CAST( - - col2 AS SIGNED ) - + 18 AS col0 FROM tab2 AS cor0
----
51
-1605
67
-4020
77
-2778

skipif mysql # not compatible
query II rowsort label-4071
SELECT + col1 AS col1, + ( + 69 ) * - + CAST ( - - col2 AS INTEGER ) - + 18 AS col0 FROM tab2 AS cor0
----
51
-1605
67
-4020
77
-2778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 col1 FROM tab2 AS cor0
----
2116
4096
5625

query II rowsort
SELECT col2 AS col2, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT ( - col2 ), 73 - - - col2 AS col1 FROM tab1
----
-59
14
-68
5
-96
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4075
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( 11, col2, + CAST( NULL AS SIGNED ), + + col0 )
----

skipif mysql # not compatible
query III rowsort label-4075
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( 11, col2, + CAST ( NULL AS INTEGER ), + + col0 )
----

query I rowsort
SELECT DISTINCT + - 50 * + 20 AS col2 FROM tab1 WHERE NOT NULL = + 34
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT ALL ( - + COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL ( - + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 71 * 43 AS col0 FROM tab1
----
3053

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, + col0 col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col2 ) BETWEEN + col1 AND + col0 * - + col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, + 0 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT - 44 DIV - 17 + - col1 AS col0 FROM tab0 AS cor0
----
-19
-79
1

skipif mysql # not compatible
query I rowsort label-4082
SELECT - 44 / - 17 + - col1 AS col0 FROM tab0 AS cor0
----
-19
-79
1

query I rowsort
SELECT ALL 15 * col1 AS col1 FROM tab0 AS cor0
----
1215
15
315

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4084
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * - + 29 BETWEEN + col1 AND - col0 * ( - ( - CAST( col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4084
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * - + 29 BETWEEN + col1 AND - col0 * ( - ( - CAST ( col0 AS INTEGER ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 + - - 19 + - 77 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4086
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT ALL 71 + + + col2 FROM tab0
----
118
170
81

query I rowsort
SELECT ALL + col2 + col0 + + col1 AS col2 FROM tab0
----
118
143
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT - COUNT( * ) + - CAST( - 49 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-4089
SELECT - COUNT ( * ) + - CAST ( - 49 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - - + col1 + + + col1 AS col1, - 78 + + col1 col0 FROM tab0 AS cor0
----
243
3
3
-77
63
-57

query I rowsort
SELECT col2 + + 40 * - + col0 * col0 FROM tab2 AS cor0
----
-163800
-224942
-84617

query I rowsort
SELECT + col0 + + - 99 + 73 AS col1 FROM tab0 AS cor0
----
-11
61
71

query I rowsort
SELECT 94 + - col1 FROM tab2 AS cor0
----
17
27
43

query I rowsort
SELECT ALL col0 * - 67 - + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1037
-5752
-6501

query I rowsort
SELECT ALL - - col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col2 + - col1 + - col1 col0 FROM tab0 cor0
----
-142
-2371
-9803

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4097
SELECT ALL * FROM tab0 WHERE + - CAST( ( 68 ) AS SIGNED ) / + - 19 + - - 86 >= - ( ( + - ( + - ( + - col0 ) ) ) ) * + col0
----

skipif mysql # not compatible
query III rowsort label-4097
SELECT ALL * FROM tab0 WHERE + - CAST ( ( 68 ) AS INTEGER ) / + - 19 + - - 86 >= - ( ( + - ( + - ( + - col0 ) ) ) ) * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT 41 + + COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4098
SELECT 41 + + COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
50

query I rowsort
SELECT DISTINCT 87 FROM tab0, tab0 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 - + col0 col1 FROM tab1 cor0
----
-49
-83
-89

query I rowsort
SELECT DISTINCT + 2 * 64 - - 11 FROM tab1 AS cor0
----
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 - col1 col2 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT DISTINCT - col2 + 95 FROM tab0
----
-4
48
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - ( 19 ) FROM tab1
----
-19
-19
-19

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <= + 37
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN col0 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE 0 BETWEEN ( + 82 * col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT - COUNT( * ) - 93 * 54 AS col2 FROM tab0
----
-5025

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - COUNT ( * ) - 93 * 54 AS col2 FROM tab0
----
-5025

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 / + 62 + col1 ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE 46 * + 61 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT - CAST( + col2 AS SIGNED ) col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4114
SELECT - CAST ( + col2 AS INTEGER ) col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4115
SELECT + COUNT( * ) + COUNT( * ) DIV 62 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4115
SELECT + COUNT ( * ) + COUNT ( * ) / 62 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 42 + ( + 37 + - 13 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE col0 = + col1 / - col0
----

query I rowsort
SELECT DISTINCT col1 + - col0 AS col1 FROM tab0 WHERE NULL <> ( 76 * - 87 + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4119
SELECT * FROM tab0 WHERE NOT CAST( - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4119
SELECT * FROM tab0 WHERE NOT CAST ( - col0 AS REAL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col0 AND 30 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - col1 BETWEEN 87 AND ( 84 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 58 BETWEEN - 5 AND NULL
----

query I rowsort
SELECT ( - col2 ) + 30 AS col1 FROM tab1
----
-29
-38
-66

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT col1 + + col0 IN ( + col0 )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ( MIN( ALL 6 ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4126
SELECT ( MIN ( ALL 6 ) ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT 1 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 AS cor0 WHERE NULL <> + 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT 58 DIV + 22 + col0 * 65 FROM tab1 AS cor0
----
3317
5527
5917

skipif mysql # not compatible
query I rowsort label-4129
SELECT 58 / + 22 + col0 * 65 FROM tab1 AS cor0
----
3317
5527
5917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT + ( 48 ) * 3 + - CAST( - col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1317
3224
4030

skipif mysql # not compatible
query I rowsort label-4130
SELECT + ( 48 ) * 3 + - CAST ( - col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1317
3224
4030

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - col2 / ( 43 )
----

query I rowsort
SELECT + 45 + + 17 FROM tab2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT MIN( 95 ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 )
----
95

skipif mysql # not compatible
query I rowsort label-4133
SELECT MIN ( 95 ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - COUNT( * ) + - ( 18 ) AS col1 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-4134
SELECT - COUNT ( * ) + - ( 18 ) AS col1 FROM tab2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4135
SELECT ALL col1 * CAST( col2 + col1 * 52 AS SIGNED ) - + col2 * ( col0 ) AS col0 FROM tab1 cor0
----
-3420
111876
6640

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL col1 * CAST ( col2 + col1 * 52 AS INTEGER ) - + col2 * ( col0 ) AS col0 FROM tab1 cor0
----
-3420
111876
6640

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col0 ) NOT IN ( - 64 )
----

query I rowsort
SELECT DISTINCT - - ( + col2 ) AS col0 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col0 + 73 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IN ( col0 * col0 )
----
23
40
58

query I rowsort
SELECT 14 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT - COUNT( * ) - - ( 93 - COUNT( * ) ) col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4141
SELECT - COUNT ( * ) - - ( 93 - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
87

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NOT NULL OR NULL = ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + ( - 28 ) - COUNT( * ) AS col2 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-4143
SELECT + ( - 28 ) - COUNT ( * ) AS col2 FROM tab1
----
-31

query I rowsort
SELECT + col1 - - + col2 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT COUNT( * ) - COUNT( + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT COUNT ( * ) - COUNT ( + col2 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 + + - col1 AS col0 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 FROM tab2 WHERE + col0 NOT BETWEEN - 66 * - col2 - ( col0 ) * col0 AND + 11
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4149
SELECT ALL col0 + col0 DIV + col2 FROM tab2 WHERE NOT ( 91 ) BETWEEN NULL AND ( 84 * - col2 )
----
48
65
76

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL col0 + col0 / + col2 FROM tab2 WHERE NOT ( 91 ) BETWEEN NULL AND ( 84 * - col2 )
----
48
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + 32 + SUM( DISTINCT col0 ) AS col1 FROM tab1
----
259

skipif mysql # not compatible
query I rowsort label-4150
SELECT + 32 + SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
259

query I rowsort
SELECT ALL col0 + col0 * + 89 AS col0 FROM tab1
----
4590
7650
8190

query I rowsort
SELECT DISTINCT - 32 + col1 AS col0 FROM tab1
----
-18
-27
15

query I rowsort
SELECT DISTINCT 28 + - col1 AS col0 FROM tab2 AS cor0 WHERE ( + col0 * col2 ) <= - col2
----

query I rowsort
SELECT col2 / ( 18 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT MAX( DISTINCT - - 35 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4155
SELECT MAX ( DISTINCT - - 35 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
105

query I rowsort
SELECT 11 * + ( 92 * + 23 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
23276
23276
23276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4157
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4158
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif mysql # not compatible
query IIIIII rowsort label-4158
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4159
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = CAST( NULL AS DECIMAL ) * col0
----

skipif mysql # not compatible
query III rowsort label-4159
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = CAST ( NULL AS REAL ) * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT DISTINCT + 21 DIV + col1 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4160
SELECT DISTINCT + 21 / + col1 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT - - SUM( DISTINCT 49 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-4161
SELECT - - SUM ( DISTINCT 49 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT COUNT( + - col1 ) DIV - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4162
SELECT COUNT ( + - col1 ) / - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

query I rowsort
SELECT + - 8 * col1 FROM tab0 AS cor0
----
-168
-648
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - - 61 > col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4165
SELECT - - SUM( ALL - CAST( - - 61 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-4165
SELECT - - SUM ( ALL - CAST ( - - 61 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-183

query II rowsort
SELECT ALL col0 AS col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL + + 18 + + COUNT( * ) * COUNT( - col2 ) * - 85 FROM tab0 AS cor0
----
-747

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + + 18 + + COUNT ( * ) * COUNT ( - col2 ) * - 85 FROM tab0 AS cor0
----
-747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) * + 91 * 58 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 91 * 58 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE col2 > - 32
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT COUNT( DISTINCT - + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4170
SELECT COUNT ( DISTINCT - + col0 ) FROM tab2
----
3

query I rowsort
SELECT + col1 + - col2 * - col0 AS col1 FROM tab0 WHERE NOT - - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 23 < + col1 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN NULL AND 35
----
64
77
40
75
67
58

query I rowsort
SELECT ALL + ( col0 ) + 5 FROM tab1 WHERE NOT - - 17 * - 10 * col2 IS NULL
----
56
90
96

query I rowsort
SELECT ( + 66 ) + + col1 AS col0 FROM tab0
----
147
67
87

query I rowsort
SELECT ALL 77 + - col0 FROM tab2
----
13
2
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 91 * - CAST( - - ( col0 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 91 * - CAST ( - - ( col0 ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - col2 * + + 67 FROM tab0 AS cor0
----
-3149
-6633
-670

query I rowsort
SELECT ALL col2 + - - 26 AS col1 FROM tab0
----
125
36
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - 78 - 0 + + MIN( ALL + 3 ) AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-4180
SELECT - 78 - 0 + + MIN ( ALL + 3 ) AS col0 FROM tab0
----
-75

query I rowsort
SELECT + 44 + + - col0 FROM tab0
----
-43
-53
29

query I rowsort
SELECT - col1 * col2 + - col1 + ( col0 ) * - col2 FROM tab2 AS cor0
----
-2282
-5717
-8303

query I rowsort
SELECT DISTINCT - + col2 + - - 79 + - col0 * ( col2 ) + - col1 FROM tab0 AS cor0
----
-754
-822
-9624

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 * 29 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 / ( - col1 ) IS NULL
----
-94

query I rowsort
SELECT - - 42 * col0 + - col0 + col1 AS col1 FROM tab2 cor0
----
1937
2701
3142

query I rowsort
SELECT + 34 + - col2 AS col2 FROM tab0 AS cor0
----
-13
-65
24

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL IN ( + col2, - col1 )
----

query I rowsort
SELECT + + AVG ( DISTINCT + col2 ) AS col2 FROM tab1 WHERE ( - col0 ) >= ( - 49 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0 / + col0 )
----

query I rowsort
SELECT col2 * - + 90 FROM tab0
----
-4230
-8910
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4192
SELECT ALL - ( - + CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4192
SELECT ALL - ( - + CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) ) col0 FROM tab0
----
3

query II rowsort
SELECT + col2 AS col2, - col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT COUNT( - - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT COUNT ( - - col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * 95 AS col2 FROM tab0 AS cor0
----
-1995
-7695
-95

query II rowsort
SELECT ALL - 61 * - 23 AS col1, + 22 AS col2 FROM tab2
----
1403
22
1403
22
1403
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT IN ( + col1 * + 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4198
SELECT * FROM tab2 WHERE NOT CAST( - 92 AS SIGNED ) * + - 77 IN ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4198
SELECT * FROM tab2 WHERE NOT CAST ( - 92 AS INTEGER ) * + - 77 IN ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT ALL + COUNT( * ) + + 41 DIV 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL + COUNT ( * ) + + 41 / 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL - 55 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-55
-55
-55

query I rowsort
SELECT - - col1 + 41 FROM tab0 AS cor0
----
122
42
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4202
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col1, + 88 AS col2 FROM tab2 AS cor0
----
-51
88
-67
88
-77
88

skipif mysql # not compatible
query II rowsort label-4202
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col1, + 88 AS col2 FROM tab2 AS cor0
----
-51
88
-67
88
-77
88

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 91 * - col2 - + + ( - 4 ) - - - col1 * + col2
----

query I rowsort
SELECT DISTINCT - col0 * + col2 + - 7 + + col1 * 37 AS col1 FROM tab0 AS cor0
----
-100
-9573
2285

query I rowsort
SELECT DISTINCT - 65 + - - col1 FROM tab1
----
-18
-51
-60

query II rowsort
SELECT - col2 AS col0, + col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL col0 * + col1 + + col2 * 67 AS col2 FROM tab0
----
2497
4364
6730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col1 col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT - 23, - COUNT( * ) AS col1 FROM tab0
----
-23
-3

skipif mysql # not compatible
query II rowsort label-4209
SELECT - 23, - COUNT ( * ) AS col1 FROM tab0
----
-23
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < ( col1 + - col0 / + - 41 ) AND ( + - 70 ) > - col2 * - col1
----

query I rowsort
SELECT ALL - 57 * + - col2 FROM tab0 AS cor0
----
2679
5643
570

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - + col0 BETWEEN NULL AND + 81 * - - col2 AND ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 18 + col2 col0 FROM tab1 AS cor0
----
41
50
78

query I rowsort
SELECT col1 * col2 + + 46 AS col1 FROM tab0 AS cor0
----
145
256
3853

query I rowsort
SELECT + - col2 - col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - 75 * - col0 + + - col2 AS col2 FROM tab2
----
3427
4760
5567

query I rowsort
SELECT + 75 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + 53 + + col0 * col2 AS col1 FROM tab0
----
758
923
9656

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
60

query I rowsort
SELECT DISTINCT 49 * + - col1 - + + 59 FROM tab2
----
-2558
-3342
-3832

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT + + MAX( ALL col0 ) * 34 AS col0 FROM tab0 cor0
----
3298

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + + MAX ( ALL col0 ) * 34 AS col0 FROM tab0 cor0
----
3298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT ALL col1 * + - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) + - col1 )
----

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL col1 * + - col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4223
SELECT ALL - - col2 - col2 col0, 69 / - col0 * + + CAST( NULL AS SIGNED ) / col0 col2 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4223
SELECT ALL - - col2 - col2 col0, 69 / - col0 * + + CAST ( NULL AS INTEGER ) / col0 col2 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT DISTINCT - col2 - - col1 + col0 + - col1 FROM tab0 cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 - - col2 col0 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL COUNT( ALL + col2 ) - + + 64 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL COUNT ( ALL + col2 ) - + + 64 FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT - + COUNT( * ) * - COUNT( * ) + + MIN( DISTINCT - 96 ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4227
SELECT - + COUNT ( * ) * - COUNT ( * ) + + MIN ( DISTINCT - 96 ) FROM tab1 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT - 3 DIV + col0 * - - col2 + + col2 * - 93 + + col1 AS col0 FROM tab1 AS cor0
----
-5482
-6277
-8914

skipif mysql # not compatible
query I rowsort label-4228
SELECT - 3 / + col0 * - - col2 + + col2 * - 93 + + col1 AS col0 FROM tab1 AS cor0
----
-5482
-6277
-8914

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT DISTINCT - col0 DIV - 84 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT - col0 / - 84 AS col1 FROM tab0
----
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 17 BETWEEN + 96 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT col1 * + col1 = 62
----
-3

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT col1 * + col1 = 62
----
-3

query I rowsort
SELECT col0 * 47 * - col2 FROM tab0
----
-33135
-40890
-451341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, - col0 * - 63 * col0 col2 FROM tab0
----
15
14175
87
476847
97
592767

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT SUM( ALL + col1 ) * + + COUNT( * ) AS col0 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT SUM ( ALL + col1 ) * + + COUNT ( * ) AS col0 FROM tab2
----
585

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( NULL ) IN ( 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT 78 + - COUNT( * ) * - COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT 78 + - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
87

query II rowsort
SELECT + col1, - 15 * - + col2 FROM tab1 AS cor0
----
14
1440
47
1020
5
885

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL - - SUM( col2 ) * 9 * - 93 col1 FROM tab2 AS cor0
----
-101277

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4238
SELECT ALL - - SUM ( col2 ) * 9 * - 93 col1 FROM tab2 AS cor0
----
-101277

query I rowsort
SELECT col0 * 40 + + col1 * + - 43 + + col2 FROM tab0 AS cor0
----
-2836
2587
3936

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - 27 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT + col2 DIV + + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4241
SELECT + col2 / + + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col2 + - 22 * - + 98 * - - col1 AS col0 FROM tab1 AS cor0
----
101400
10839
30280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT DISTINCT + col0 * CAST( - col2 AS SIGNED ) + 4 AS col2 FROM tab2 AS cor0
----
-1054
-2556
-4346

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + col0 * CAST ( - col2 AS INTEGER ) + 4 AS col2 FROM tab2 AS cor0
----
-1054
-2556
-4346

query I rowsort
SELECT - col0 * - + col2 + - col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT - + col2 FROM tab1 WHERE + col0 * + col0 NOT IN ( - col1, + col2, 82 * - - col0 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT ALL 17 * + CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL 17 * + CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL + 36 + 40 + SUM( - + col1 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + 36 + 40 + SUM ( - + col1 ) FROM tab0
----
-27

query I rowsort
SELECT + col1 + - 81 + col0 AS col0 FROM tab0
----
15
17
27

query I rowsort
SELECT DISTINCT - col0 + + col2 * - col2 + - 93 + - col1 * col2 + - col0 AS col1 FROM tab2
----
-1887
-4901
-7493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col0 FROM tab2 WHERE ( NULL IN ( + 25, - 48, - + col0 + - col2, - col0 * + - col2 + + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + MAX( + + 8 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4251
SELECT + MAX ( + + 8 ) FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL - 79 - - col1 AS col2 FROM tab1 AS cor0
----
-32
-65
-74

query I rowsort
SELECT DISTINCT - col1 * + + col0 + col1 AS col1 FROM tab1 AS cor0
----
-420
-4230
-700

query I rowsort
SELECT ALL + - 51 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT + 22 + - col2 * + 73 * + + ( 20 ) + + col1 AS col2 FROM tab0
----
-144517
-14557
-68517

query I rowsort
SELECT 74 + - - col0 FROM tab2
----
120
138
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT CAST( MIN( DISTINCT + 33 ) AS SIGNED ) + - - 31 AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4257
SELECT CAST ( MIN ( DISTINCT + 33 ) AS INTEGER ) + - - 31 AS col1 FROM tab0 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 72 col1 FROM tab2 AS cor0
----
-72
-72
-72

query II rowsort
SELECT col0 AS col2, + 68 AS col2 FROM tab0 AS cor0
----
15
68
87
68
97
68

query I rowsort
SELECT - + col2 * - + col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL col0 * + - 39 FROM tab0 AS cor0
----
-3393
-3783
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + col2 * + 60 * ( - 37 ) FROM tab0 AS cor0
----
104340
219780
22200

query II rowsort
SELECT DISTINCT col1, ( - 60 ) + + col0 FROM tab2 AS cor0 WHERE 77 * + 6 * ( 46 ) IS NOT NULL
----
51
-14
67
15
77
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT DISTINCT ( MAX( + - 56 ) ) * - COUNT( * ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT ( MAX ( + - 56 ) ) * - COUNT ( * ) FROM tab1
----
168

query I rowsort
SELECT ALL 3 * - + 12 FROM tab1
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL MAX( + - ( - col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL MAX ( + - ( - col1 ) ) AS col0 FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT ALL + 85 DIV - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + 85 / - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT ALL 88 DIV + MIN( + - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL 88 / + MIN ( + - col0 ) FROM tab0
----
0

query I rowsort
SELECT + 85 * - - 6 + - col2 AS col2 FROM tab1
----
414
442
451

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col1 ) NOT BETWEEN NULL AND - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT DISTINCT - 87 * - col1 * + ( - col0 ) + + col1 DIV col1 * 60 AS col0 FROM tab2
----
-204042
-428676
-437115

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - 87 * - col1 * + ( - col0 ) + + col1 / col1 * 60 AS col0 FROM tab2
----
-204042
-428676
-437115

query I rowsort
SELECT ALL - col0 * - 46 FROM tab0 AS cor0 WHERE NOT 24 IN ( + 69 + + - col0, col2 )
----
4002
4462
690

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 97 + + + 36 ) NOT IN ( + 36, - col0 - + 37 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 3 col2 FROM tab2 AS cor0
----
120
174
69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 69 * - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + 93 col1, + col0, + + col0 FROM tab1
----
9 values hashing to 9b17d0d762fe6198a55eb68d52b0049d

onlyif mysql # aggregate syntax: 
query II rowsort label-4278
SELECT + COUNT( * ), 72 + MAX( + 55 ) + + - 84 AS col2 FROM tab0
----
3
43

skipif mysql # not compatible
query II rowsort label-4278
SELECT + COUNT ( * ), 72 + MAX ( + 55 ) + + - 84 AS col2 FROM tab0
----
3
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT DISTINCT - 20 + - COUNT( * ) AS col2, - COUNT( * ) + COUNT( * ) FROM tab2
----
-23
0

skipif mysql # not compatible
query II rowsort label-4279
SELECT DISTINCT - 20 + - COUNT ( * ) AS col2, - COUNT ( * ) + COUNT ( * ) FROM tab2
----
-23
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT + 28 AS col1, COUNT( col0 ) AS col1 FROM tab0
----
28
3

skipif mysql # not compatible
query II rowsort label-4280
SELECT + 28 AS col1, COUNT ( col0 ) AS col1 FROM tab0
----
28
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT DISTINCT 19 - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT 19 - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 22 - + col2 - + col2 * - 38 * + col2 FROM tab2 AS cor0
----
127796
20101
60782

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT - MIN( ALL col2 ) FROM tab2 cor0 WHERE - col0 / - 75 * 94 + - 21 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-4283
SELECT - MIN ( ALL col2 ) FROM tab2 cor0 WHERE - col0 / - 75 * 94 + - 21 IS NOT NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL + COUNT( * ) - 39 FROM tab1 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + COUNT ( * ) - 39 FROM tab1 cor0
----
-36

query II rowsort
SELECT ALL + col0 + + - col0, 82 + + - col0 AS col0 FROM tab1 AS cor0
----
0
-3
0
-9
0
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 66 - - - col1 / - 79 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT DISTINCT - col2 DIV - ( col2 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - col2 / - ( col2 ) FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT - 99 * - col1 FROM tab2 AS cor0
----
5049
6633
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - MAX( ( - - col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4289
SELECT - MAX ( ( - - col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4290
SELECT - 22 AS col0, COUNT( * ) * - CAST( NULL AS SIGNED ) * + 34 + - 59 FROM tab1
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-4290
SELECT - 22 AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 34 + - 59 FROM tab1
----
-22
NULL

query I rowsort
SELECT - col2 * - col0 + col0 FROM tab1 WHERE NOT ( ( - + 19 ) / + 46 + - ( + col1 ) <= + 12 )
----

query II rowsort
SELECT + 30, + col2 AS col0 FROM tab2
----
30
23
30
40
30
58

query I rowsort
SELECT - 1 AS col1 FROM tab1 WHERE NOT ( + + col1 ) * col0 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT DISTINCT 52 DIV + col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT 52 / + col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + ( + COUNT( * ) ) * + MIN( ALL + col0 ) * + 80 * - 60 AS col2 FROM tab1
----
-734400

skipif mysql # not compatible
query I rowsort label-4295
SELECT + ( + COUNT ( * ) ) * + MIN ( ALL + col0 ) * + 80 * - 60 AS col2 FROM tab1
----
-734400

query I rowsort
SELECT + 96 * - + col1 FROM tab0 cor0
----
-2016
-7776
-96

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE col2 * + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT DISTINCT + COUNT( * ) AS col0, 95 + + 90 AS col1 FROM tab1 AS cor0
----
3
185

skipif mysql # not compatible
query II rowsort label-4298
SELECT DISTINCT + COUNT ( * ) AS col0, 95 + + 90 AS col1 FROM tab1 AS cor0
----
3
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 - + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 - + col1 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4300
SELECT ALL 80 * - MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) + - 4 + - 92 * - AVG ( DISTINCT + + 81 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 80 * - MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) + - 4 + - 92 * - AVG ( DISTINCT + + 81 ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4301
SELECT * FROM tab1 WHERE + CAST( - col2 AS SIGNED ) - - + 90 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4301
SELECT * FROM tab1 WHERE + CAST ( - col2 AS INTEGER ) - - + 90 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT - - CAST( 85 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif mysql # not compatible
query I rowsort label-4302
SELECT - - CAST ( 85 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT + - col0 * + + 40 + - + CAST( + - col2 AS SIGNED ) * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
-3020
-353
-645

skipif mysql # not compatible
query I rowsort label-4303
SELECT + - col0 * + + 40 + - + CAST ( + - col2 AS INTEGER ) * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
-3020
-353
-645

query I rowsort
SELECT - - 99 + + col2 AS col1 FROM tab0 cor0
----
109
146
198

query I rowsort
SELECT 34 + - + ( - 56 ) * col1 FROM tab1 AS cor0
----
2666
314
818

query I rowsort
SELECT 26 * + + ( + col1 ) * + col2 * - col1 - + col0 + + 60 AS col2 FROM tab2 AS cor0
----
-1555384
-6166164
-6769427

query I rowsort
SELECT DISTINCT col2 + - + 18 AS col0 FROM tab0
----
-8
29
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4308
SELECT col0, - 59 DIV - col2 AS col0 FROM tab1
----
51
0
85
1
91
0

skipif mysql # not compatible
query II rowsort label-4308
SELECT col0, - 59 / - col2 AS col0 FROM tab1
----
51
0
85
1
91
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT ALL + 32 + - ( + COUNT( * ) ) AS col0, 74 FROM tab0
----
29
74

skipif mysql # not compatible
query II rowsort label-4309
SELECT ALL + 32 + - ( + COUNT ( * ) ) AS col0, 74 FROM tab0
----
29
74

query I rowsort
SELECT ALL + 27 + col1 FROM tab1
----
32
41
74

query II rowsort
SELECT ALL 91 + 71 - + - 80, - 63 * 24 + col1 - col0 + + ( + 21 ) * + col0 * col1 AS col1 FROM tab1
----
242
13445
242
7333
242
88261

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT DISTINCT + col1 - + col1 DIV + + col2 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + col1 - + col1 / + + col2 AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT - MAX( - col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - MAX ( - col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - 74 FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 27 * + col2 + 48 + + col2 FROM tab2 WHERE NOT - 54 IS NULL
----
1168
1672
692

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT DISTINCT - 24 AS col1, SUM( DISTINCT - + 53 ) col1 FROM tab0 AS cor0
----
-24
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4316
SELECT DISTINCT - 24 AS col1, SUM ( DISTINCT - + 53 ) col1 FROM tab0 AS cor0
----
-24
-53

query I rowsort
SELECT DISTINCT ( - + 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL - ( - COUNT( + + CAST( NULL AS SIGNED ) ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - ( - COUNT ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 3 + + col1 * + + col1 + - + 48 * - col0 <> + + col2
----

query II rowsort
SELECT DISTINCT + + col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT 62 * + COUNT( * ) * - - 30 AS col2 FROM tab0
----
5580

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT 62 * + COUNT ( * ) * - - 30 AS col2 FROM tab0
----
5580

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4322
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4322
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 20 * - col0 AS col2 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL + MIN( + col1 ) + + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + MIN ( + col1 ) + + COUNT ( * ) FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT - ( + col2 ) - + - CAST( col0 AS SIGNED ) FROM tab1 WHERE NOT - - col2 BETWEEN NULL AND - col1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-4325
SELECT - ( + col2 ) - + - CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT - - col2 BETWEEN NULL AND - col1
----
-45
23
26

query I rowsort
SELECT - ( + col1 ) FROM tab2 WHERE NOT + + 96 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4327
SELECT DISTINCT 82 DIV col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT 82 / col0 FROM tab0
----
0
5

query I rowsort
SELECT DISTINCT + + 71 AS col2 FROM tab0 WHERE NOT + ( - 66 ) * - ( - + col1 ) * + col0 + col0 - ( + 13 ) * - - ( - col0 ) <> 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT + col0 DIV col0 * - col2 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4329
SELECT + col0 / col0 * - col2 AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4330
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - CAST( + + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4330
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - CAST ( + + col0 AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 27 AND NULL
----

query I rowsort
SELECT DISTINCT + + col2 * - + col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab2 WHERE - col0 >= col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT ALL 42 DIV COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL 42 / COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
11

query I rowsort
SELECT DISTINCT + 21 + - col0 FROM tab2
----
-25
-43
-54

query I rowsort
SELECT + + col0 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - - col1 * + col2 AS col1, - col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 47 * - - 96 + - - col1 + - col2 + - 34 * col1 FROM tab2 cor0
----
-6218
-6781
-7093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col1 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT + - MIN( DISTINCT - - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + - MIN ( DISTINCT - - col1 ) AS col2 FROM tab1 cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 8 * - 32 = + + col1
----

query I rowsort
SELECT DISTINCT 0 + + 42 - + ( - 89 ) AS col1 FROM tab0 AS cor0
----
131

query I rowsort
SELECT ALL + + 45 * + - col0 FROM tab0 AS cor0
----
-3915
-4365
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT - - col2 * col0 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT - - col2 * col0 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 93 * col2 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT DISTINCT - col0 * - - ( + col0 ) * - 27 FROM tab2
----
110592
151875
57132

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + MAX( DISTINCT 43 ) FROM tab0, tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4347
SELECT + MAX ( DISTINCT 43 ) FROM tab0, tab0 AS cor0
----
43

query I rowsort
SELECT 52 + + ( - col2 ) AS col2 FROM tab1
----
-16
-44
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 - + + col1 col0 FROM tab2
----
16
32
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 48 col2 FROM tab0
----
-1
-38
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT col0 * 31 DIV + 48 + + - col1 FROM tab2
----
-19
-22
-36

skipif mysql # not compatible
query I rowsort label-4351
SELECT col0 * 31 / + 48 + + - col1 FROM tab2
----
-19
-22
-36

query I rowsort
SELECT DISTINCT - col0 + 64 FROM tab2 cor0
----
-11
0
18

query I rowsort
SELECT ALL + 13 + 83 AS col1 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT + 98 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT + + COUNT( ALL + 18 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4355
SELECT + + COUNT ( ALL + 18 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - 51 col0 FROM tab0
----
1071
4131
51

query I rowsort
SELECT ALL - 95 * + col1 * - 65 AS col0 FROM tab0 WHERE NOT - + 66 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT SUM( DISTINCT - col2 ) * CAST( MIN( DISTINCT col0 ) AS SIGNED ) FROM tab2
----
-5566

skipif mysql # not compatible
query I rowsort label-4358
SELECT SUM ( DISTINCT - col2 ) * CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) FROM tab2
----
-5566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT + col2 * + 9 + - CAST( NULL AS SIGNED ) * - col1 * 81 * - ( 12 ) + - - col0 * + col1 FROM tab2 AS cor0 WHERE NOT 36 > NULL
----

skipif mysql # not compatible
query I rowsort label-4359
SELECT + col2 * + 9 + - CAST ( NULL AS INTEGER ) * - col1 * 81 * - ( 12 ) + - - col0 * + col1 FROM tab2 AS cor0 WHERE NOT 36 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT MIN( - + 73 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4360
SELECT MIN ( - + 73 ) FROM tab2 AS cor0
----
-73

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab1 cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT - 48 AS col0, - col1 FROM tab0 AS cor0
----
-48
-1
-48
-21
-48
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT - - col1 NOT IN ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT - - col1 NOT IN ( + col2 ) )
----
0

query I rowsort
SELECT col0 * - col2 * - - col1 * - ( 14 ) - - - 45 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 30 + col2 + + + 90 * ( - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4365
SELECT MAX( + + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT MAX ( + + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 + - col1 >= - col2 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 60 ) AS col0 FROM tab1
----
60
60
60

query I rowsort
SELECT 64 + - col1 AS col2 FROM tab2 cor0
----
-13
-3
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT + 37 * - CAST( - - 98 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3626
-3626
-3626

skipif mysql # not compatible
query I rowsort label-4369
SELECT + 37 * - CAST ( - - 98 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3626
-3626
-3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT ALL + col0 * - CAST( - 80 AS SIGNED ) FROM tab1 AS cor0
----
4080
6800
7280

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL + col0 * - CAST ( - 80 AS INTEGER ) FROM tab1 AS cor0
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT + 87 AS col1, MAX( ALL - - col0 ) * + 65 AS col1 FROM tab1 AS cor0
----
87
5915

skipif mysql # not compatible
query II rowsort label-4371
SELECT + 87 AS col1, MAX ( ALL - - col0 ) * + 65 AS col1 FROM tab1 AS cor0
----
87
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + COUNT( DISTINCT - + 54 ) AS col0 FROM tab1 WHERE + 35 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + COUNT ( DISTINCT - + 54 ) AS col0 FROM tab1 WHERE + 35 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL + CAST( 24 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + CAST ( 24 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT - 27 * + - 49 - + + col0 - - col0 * + 98 - - 58 FROM tab2
----
5843
7589
8656

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + MAX( DISTINCT col2 ) + + COUNT( + 82 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4375
SELECT + MAX ( DISTINCT col2 ) + + COUNT ( + 82 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT - + 99 + + + col1 FROM tab1 AS cor0
----
-52
-85
-94

query I rowsort
SELECT - - col0 + - - col2 FROM tab2 cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - 86 + + MIN( - - col1 ) * + 8 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4378
SELECT - 86 + + MIN ( - - col1 ) * + 8 FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - + COUNT( * ) * - COUNT( * ) + - 59 col2 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4379
SELECT - + COUNT ( * ) * - COUNT ( * ) + - 59 col2 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT DISTINCT + 80 + + col1 + - + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT - + 86 + + - ( - CAST( NULL AS SIGNED ) ) * - 47 * col2 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT - + 86 + + - ( - CAST ( NULL AS INTEGER ) ) * - 47 * col2 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col1 + - + 2 - + col2 FROM tab2 AS cor0
----
-2371
-4970
-5085

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT DISTINCT ( + + col1 ) DIV - col0 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT ( + + col1 ) / - col0 AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4385
SELECT * FROM tab0 WHERE - CAST( - - col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4385
SELECT * FROM tab0 WHERE - CAST ( - - col1 AS REAL ) IS NULL
----

query II rowsort
SELECT DISTINCT + 54 AS col0, - 7 AS col0 FROM tab2
----
54
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT 87, - COUNT( - 24 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
87
0

skipif mysql # not compatible
query II rowsort label-4387
SELECT 87, - COUNT ( - 24 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
87
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + ( - ( + - 17 ) ) * - col0 col2 FROM tab2
----
-46
-782
-64
-1088
-75
-1275

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4389
SELECT col0 AS col0, col2 DIV - - CAST( col0 AS SIGNED ) + col1 AS col1 FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-4389
SELECT col0 AS col0, col2 / - - CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab2
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + ( - col1 ) AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT DISTINCT col2 * + 32 * - 57 FROM tab2 AS cor0
----
-105792
-41952
-72960

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 94 - + 69 / 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + + COUNT( * ) * - 64 + - COUNT( * ) FROM tab2 cor0 WHERE NOT - col0 = col0
----
-195

skipif mysql # not compatible
query I rowsort label-4393
SELECT + + COUNT ( * ) * - 64 + - COUNT ( * ) FROM tab2 cor0 WHERE NOT - col0 = col0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT CAST( NULL AS SIGNED ) * - - col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4394
SELECT CAST ( NULL AS INTEGER ) * - - col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * - - col1 col1 FROM tab0 AS cor0
----
1470
5670
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4396
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col1 * - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4396
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col1 * - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT - 78 * MAX( ALL col2 ) AS col0 FROM tab2 cor0
----
-4524

skipif mysql # not compatible
query I rowsort label-4397
SELECT - 78 * MAX ( ALL col2 ) AS col0 FROM tab2 cor0
----
-4524

query I rowsort
SELECT ALL - + 64 AS col1 FROM tab1 cor0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 + + col2 * - 78 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 89 * 31 FROM tab0
----
-2759
-2759
-2759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4402
SELECT - COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4402
SELECT - COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3

query I rowsort
SELECT ( + + 82 ) * - - 92 + + + col0 AS col1 FROM tab1
----
7595
7629
7635

query I rowsort
SELECT DISTINCT + 83 * 79 * col2 AS col1 FROM tab0 cor0
----
308179
649143
65570

query I rowsort
SELECT + 22 + col2 FROM tab1
----
118
81
90

query I rowsort
SELECT DISTINCT + ( + col0 ) - 21 FROM tab2 cor0
----
25
43
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / + col0 = - col0
----

query I rowsort
SELECT DISTINCT ( - 7 ) - col2 FROM tab2 AS cor0
----
-30
-47
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4409
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - 30 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4409
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - 30 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL - col2, + 83 AS col1 FROM tab2 cor0
----
-23
83
-40
83
-58
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT + - col0 * + col2 - - col1 DIV - + 61 FROM tab0 AS cor0
----
-706
-870
-9603

skipif mysql # not compatible
query I rowsort label-4411
SELECT + - col0 * + col2 - - col1 / - + 61 FROM tab0 AS cor0
----
-706
-870
-9603

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 32 BETWEEN NULL AND + 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT CAST( NULL AS SIGNED ) * col1 + + CAST( NULL AS SIGNED ) + + col1 * + ( 43 ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT CAST ( NULL AS INTEGER ) * col1 + + CAST ( NULL AS INTEGER ) + + col1 * + ( 43 ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT ALL + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * + 41 FROM tab2
----
-2091
-2747
-3157

query I rowsort
SELECT DISTINCT - - col1 * col2 AS col1 FROM tab2 WHERE NOT + 58 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL 75 * - + MAX( + ( - + 57 ) ) AS col2 FROM tab1
----
4275

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL 75 * - + MAX ( + ( - + 57 ) ) AS col2 FROM tab1
----
4275

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 / col1 BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) * + + ( + 29 ) AS col2 FROM tab0 AS cor0
----
-2523
-2813
-435

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) * + + ( + 29 ) AS col2 FROM tab0 AS cor0
----
-2523
-2813
-435

query I rowsort
SELECT ALL + - 15 AS col1 FROM tab0 AS cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4421
SELECT + CAST( - + COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4421
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT COUNT( ALL - + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT COUNT ( ALL - + col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4423
SELECT DISTINCT + col1 AS col0, 37 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4423
SELECT DISTINCT + col1 AS col0, 37 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 8 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-8

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN + 5 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - ( 73 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ALL - 83 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT - 47 * + 62 + col0 AS col1 FROM tab0 AS cor0
----
-2817
-2827
-2899

query I rowsort
SELECT DISTINCT + + ( + + 26 ) AS col1 FROM tab0 cor0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT COUNT( * ) AS col0, + 15 col0 FROM tab1 AS cor0
----
3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4430
SELECT COUNT ( * ) AS col0, + 15 col0 FROM tab1 AS cor0
----
3
15

query I rowsort
SELECT ALL - ( - 7 ) AS col1 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4432
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + - col1 IN ( + col0 * CAST( NULL AS SIGNED ), col0, col0 + 56, col0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-4432
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + - col1 IN ( + col0 * CAST ( NULL AS INTEGER ), col0, col0 + 56, col0 * + col2 )
----

query II rowsort
SELECT + 35, + col0 AS col2 FROM tab2 AS cor0
----
35
46
35
64
35
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4434
SELECT 88 DIV 61 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT 88 / 61 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE - - ( - col2 ) <= col0 * + 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( + - col0 ) * + ( - col2 ) * + 47 / - 88 * + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + col2 - - col2 FROM tab0
----
107
109
295

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) col0 FROM tab1 WHERE + 13 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4438
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) col0 FROM tab1 WHERE + 13 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 73 IS NULL
----

query I rowsort
SELECT + 97 * - 51 FROM tab2 cor0
----
-4947
-4947
-4947

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4441
SELECT DISTINCT - + MAX( ( - + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT - + MAX ( ( - + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 77 FROM tab0 WHERE - - col2 < col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 44 AND col1
----

query I rowsort
SELECT ALL col2 + + + 94 AS col0 FROM tab0
----
104
141
193

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - col1 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT COUNT( * ) - 67 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT COUNT ( * ) - 67 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT ALL - - col2 - + 95 AS col2 FROM tab1 cor0
----
-27
-36
1

query I rowsort
SELECT 16 + + 17 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE + col2 - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - - col1 AS col2 FROM tab0 AS cor0 WHERE 7 IS NOT NULL
----
1
21
81

query II rowsort
SELECT - + 21, + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 10 + col0 + - 43 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 32 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2, col1 * + ( - col0 ) AS col0 FROM tab2
----
23
-2346
40
-4928
58
-5025

query II rowsort
SELECT DISTINCT - col2 * - - col1, col0 AS col2 FROM tab1
----
-1344
51
-295
85
-3196
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT 80 * + COUNT( * ) AS col0, COUNT( * ) FROM tab0
----
240
3

skipif mysql # not compatible
query II rowsort label-4455
SELECT 80 * + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0
----
240
3

query I rowsort
SELECT - 78 + + col0 FROM tab2
----
-14
-3
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 96 + - - ( - col1 ) * - + 4 * col1, col2 col2 FROM tab0 AS cor0
----
-92
99
1668
10
26148
47

query I rowsort
SELECT - ( - col1 ) * + 15 AS col0 FROM tab1 AS cor0
----
210
705
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT ALL - + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL - + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 25 AS col2 FROM tab0 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - SUM( - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
195

skipif mysql # not compatible
query I rowsort label-4461
SELECT - SUM ( - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 33 >= col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + COUNT( + 62 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4463
SELECT + COUNT ( + 62 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT + col0 DIV - 20 AS col2 FROM tab1
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-4465
SELECT + col0 / - 20 AS col2 FROM tab1
----
-2
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4466
SELECT 79, - CAST( 76 AS SIGNED ) * - col0 AS col2 FROM tab2
----
79
3496
79
4864
79
5700

skipif mysql # not compatible
query II rowsort label-4466
SELECT 79, - CAST ( 76 AS INTEGER ) * - col0 AS col2 FROM tab2
----
79
3496
79
4864
79
5700

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT ALL 61 DIV col0 + - col2 - - 78 AS col0 FROM tab1
----
-17
10
19

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL 61 / col0 + - col2 - - 78 AS col0 FROM tab1
----
-17
10
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 87 AS col1, col1 col0 FROM tab0
----
-87
1
-87
21
-87
81

query II rowsort
SELECT DISTINCT 69 * + col1 + - col1, col1 AS col2 FROM tab1
----
3196
47
340
5
952
14

query I rowsort
SELECT DISTINCT + col0 + - 32 AS col2 FROM tab2
----
14
32
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - + col0 * - col0 * + col1, + col0 col2 FROM tab0
----
158959
87
18272
15
9508
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT SUM( 44 ) AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-4472
SELECT SUM ( 44 ) AS col1 FROM tab1
----
132

query I rowsort
SELECT - 77 * - - col1 + col2 AS col1 FROM tab2
----
-3904
-5101
-5889

query I rowsort
SELECT ALL + col0 - + - col0 + - - col1 FROM tab2
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - + COUNT( * ) + 60 * ( 4 ) FROM tab2 WHERE NULL > + 73
----
240

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - + COUNT ( * ) + 60 * ( 4 ) FROM tab2 WHERE NULL > + 73
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT ALL + 67 AS col2, - COUNT( * ) AS col2 FROM tab0 cor0
----
67
-3

skipif mysql # not compatible
query II rowsort label-4476
SELECT ALL + 67 AS col2, - COUNT ( * ) AS col2 FROM tab0 cor0
----
67
-3

query I rowsort
SELECT + col1 + + 96 + col0 * - col2 FROM tab1 AS cor0
----
-4786
-4914
-6045

query I rowsort
SELECT + ( ( 5 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT - + col1 DIV + 89 + 55 FROM tab2 WHERE NULL IS NULL
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4479
SELECT - + col1 / + 89 + 55 FROM tab2 WHERE NULL IS NULL
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT ALL col1 * col2 * + col0 * - 62 + + col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - 21 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL col1 * col2 * + col0 * - 62 + + col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - 21 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 + - 95 AS col2 FROM tab2 AS cor0
----
-20
-31
-49

query I rowsort
SELECT ALL - - 21 AS col2 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT - 75 * SUM( col0 ) col1 FROM tab2 AS cor0
----
-13875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4483
SELECT DISTINCT - 75 * SUM ( col0 ) col1 FROM tab2 AS cor0
----
-13875

query I rowsort
SELECT DISTINCT col0 + + + 79 AS col0 FROM tab2 AS cor0 WHERE col1 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - 1 * - - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 1 * - - COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT ALL - 41 col0, COUNT( * ) FROM tab1
----
-41
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4486
SELECT ALL - 41 col0, COUNT ( * ) FROM tab1
----
-41
3

query I rowsort
SELECT 31 * - + col2 * ( 65 ) FROM tab1
----
-118885
-137020
-193440

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT COUNT( DISTINCT - - 70 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4488
SELECT COUNT ( DISTINCT - - 70 ) FROM tab0
----
1

query I rowsort
SELECT ALL - col0 * - - col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT COUNT( * ) * - 60 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-4490
SELECT COUNT ( * ) * - 60 FROM tab1
----
-180

query I rowsort
SELECT ALL col2 * + 32 FROM tab2
----
1280
1856
736

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4492
SELECT + col1 * + col0 / - CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4492
SELECT + col1 * + col0 / - CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 54 * - - col0 * - 86 AS col0 FROM tab1
----
-236844
-394740
-422604

query I rowsort
SELECT - ( 59 ) AS col0 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL 53 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT - MAX( - 85 ) + + 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
92

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - MAX ( - 85 ) + + 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4498
SELECT - col1 FROM tab2 WHERE - CAST( + 41 AS DECIMAL ) * - - col0 BETWEEN + 77 + ( - ( - col1 ) ) * - col1 - + - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4498
SELECT - col1 FROM tab2 WHERE - CAST ( + 41 AS REAL ) * - - col0 BETWEEN + 77 + ( - ( - col1 ) ) * - col1 - + - col1 AND NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) = NULL
----

query II rowsort
SELECT ALL - + 16, col2 FROM tab0 AS cor0
----
-16
10
-16
47
-16
99

query I rowsort
SELECT + col1 + - + 68 AS col0 FROM tab1 AS cor0
----
-21
-54
-63

query II rowsort
SELECT DISTINCT + - col0 AS col0, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL - col2 * + 55 * - col0 FROM tab1 AS cor0
----
269280
275825
340340

query II rowsort
SELECT + col1 + + 78, 15 AS col0 FROM tab2
----
129
15
145
15
155
15

query I rowsort
SELECT ALL + col2 + + - col1 + + col1 AS col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT + col2 + + + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT + col2 + + + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT DISTINCT + 51 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT + 51 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - - 89 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 3 * - 41 + + col0 * + 42 + + 28 FROM tab2 AS cor0
----
1837
2593
3055

query I rowsort
SELECT ALL - 6 - - + 6 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 - - - col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT col0 * + 1 + + - col0 AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 40 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT - + 32 * 25 - - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT - + 32 * 25 - - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - + ( MIN( ALL - col2 ) ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4516
SELECT - + ( MIN ( ALL - col2 ) ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT ( + MIN( DISTINCT + 86 ) ) AS col0, - COUNT( * ) AS col1 FROM tab2 cor0
----
86
-3

skipif mysql # not compatible
query II rowsort label-4517
SELECT ( + MIN ( DISTINCT + 86 ) ) AS col0, - COUNT ( * ) AS col1 FROM tab2 cor0
----
86
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT + COUNT( * ) * - + AVG ( DISTINCT - col2 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT + COUNT ( * ) * - + AVG ( DISTINCT - col2 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 99 * + - col2 FROM tab2
----
-2277
-3960
-5742

query II rowsort
SELECT + 97 * col0, 74 AS col0 FROM tab1
----
4947
74
8245
74
8827
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + COUNT( * ) * - ( - + 34 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4521
SELECT + COUNT ( * ) * - ( - + 34 ) FROM tab0
----
102

query I rowsort
SELECT DISTINCT ( - - 14 ) AS col1 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT - COUNT( + + 59 ) AS col1, 30 AS col2 FROM tab1
----
-3
30

skipif mysql # not compatible
query II rowsort label-4523
SELECT - COUNT ( + + 59 ) AS col1, 30 AS col2 FROM tab1
----
-3
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4524
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) / + col0 <> - - col1
----

skipif mysql # not compatible
query III rowsort label-4524
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) / + col0 <> - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + - 45 AS col2 FROM tab2
----
-22
-5
13

query I rowsort
SELECT 48 + - 78 FROM tab1
----
-30
-30
-30

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL > NULL
----

query I rowsort
SELECT - ( + - 52 ) * + 94 * + + 3 + + ( col2 ) FROM tab2
----
14687
14704
14722

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL + 64 * - COUNT( * ) + + COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + 64 * - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT - 86 * + MAX( 54 ) FROM tab1, tab2 AS cor0
----
-4644

skipif mysql # not compatible
query I rowsort label-4531
SELECT - 86 * + MAX ( 54 ) FROM tab1, tab2 AS cor0
----
-4644

query I rowsort
SELECT - col0 * - + col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE + col0 < - col2 * ( col1 ) / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT DISTINCT - MIN( 54 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT - MIN ( 54 ) FROM tab1 AS cor0
----
-54

query II rowsort
SELECT DISTINCT - - col2, col2 * - col1 AS col0 FROM tab0 cor0
----
10
-210
47
-3807
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - SUM( DISTINCT 93 ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4536
SELECT - SUM ( DISTINCT 93 ) AS col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL + col0 * + + 54 - 99 FROM tab0 AS cor0
----
4599
5139
711

query I rowsort
SELECT DISTINCT col2 * + 49 FROM tab2 AS cor0
----
1127
1960
2842

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 + + col2 * col0 col2 FROM tab0
----
787
952
9685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT + COUNT( * ) - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT + COUNT ( * ) - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 24 - col2 FROM tab2
----
-16
-34
1

query III rowsort
SELECT * FROM tab0 WHERE NULL = - 90
----

query III rowsort
SELECT * FROM tab0 WHERE - 87 < NULL
----

query I rowsort
SELECT DISTINCT - 78 + col2 + - - 10 + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
227
39
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - + col2 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 75 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - - 76 * - MIN( DISTINCT + col0 ) + - COUNT( ALL + 80 ) FROM tab0 AS cor0
----
-1143

skipif mysql # not compatible
query I rowsort label-4548
SELECT - - 76 * - MIN ( DISTINCT + col0 ) + - COUNT ( ALL + 80 ) FROM tab0 AS cor0
----
-1143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT ALL - COUNT( * ) DIV COUNT( DISTINCT + - 54 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - COUNT ( * ) / COUNT ( DISTINCT + - 54 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL - MAX( ALL + + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - MAX ( ALL + + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT MAX( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * col1 + - col2 + - - col1 * col1 col1 FROM tab1 AS cor0
----
211
4444
786

query II rowsort
SELECT col0 AS col0, 40 AS col2 FROM tab2
----
46
40
64
40
75
40

query I rowsort
SELECT - ( + 60 ) * + 18 FROM tab1
----
-1080
-1080
-1080

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - col0 ) + - - 66 * + col2 + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 15 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT - SUM( DISTINCT ( - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - SUM ( DISTINCT ( - col1 ) ) FROM tab1
----
66

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 55 / + col0 IS NULL )
----

query II rowsort
SELECT ALL col2, + col1 - 65 AS col1 FROM tab1 AS cor0
----
59
-60
68
-18
96
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4560
SELECT 20 DIV + - COUNT( * ) col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4560
SELECT 20 / + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - 76 * col1 FROM tab0 AS cor0
----
-1596
-6156
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL - SUM( col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL - SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 82 col0, col2 FROM tab0 AS cor0
----
-82
10
-82
47
-82
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col0 NOT IN ( 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ( COUNT( * ) ) col2 FROM tab2 WHERE NOT NULL < - col2 * + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4565
SELECT ( COUNT ( * ) ) col2 FROM tab2 WHERE NOT NULL < - col2 * + col2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 99
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 + col0 ) <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * 85 AS col1 FROM tab2
----
3910
5440
6375

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( NULL ) <> + col2 - + col0
----

query I rowsort
SELECT - col2 - 9 AS col0 FROM tab0 WHERE ( NULL ) >= ( 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT COUNT( * ) - 96 col2 FROM tab1
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4571
SELECT COUNT ( * ) - 96 col2 FROM tab1
----
-93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL + MAX( 47 ) * - 99 col0 FROM tab2
----
-4653

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4573
SELECT ALL + MAX ( 47 ) * - 99 col0 FROM tab2
----
-4653

query I rowsort
SELECT col1 * + col1 AS col0 FROM tab0 WHERE NULL BETWEEN 19 * + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ( MIN( col1 ) ) AS col0 FROM tab2 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ( MIN ( col1 ) ) AS col0 FROM tab2 WHERE - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT + col2 FROM tab1 WHERE NOT + ( CAST( NULL AS SIGNED ) ) NOT IN ( - 77 * + col0 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-4577
SELECT + col2 FROM tab1 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) NOT IN ( - 77 * + col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT - 77 * - COUNT( * ) AS col1 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-4578
SELECT - 77 * - COUNT ( * ) AS col1 FROM tab1
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * - col0 col2 FROM tab1
----
-3774
-6290
-6734

query III rowsort
SELECT ALL * FROM tab0 WHERE + 86 * - col1 + 89 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col0 FROM tab1
----
30

query I rowsort
SELECT ALL - 20 AS col1 FROM tab0 WHERE + col0 * col2 IS NOT NULL
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT + 1 + - COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4583
SELECT + 1 + - COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT - COUNT( * ) * + 0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT - COUNT ( * ) * + 0 FROM tab1
----
0

query I rowsort
SELECT - 90 + + col1 FROM tab2
----
-13
-23
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT 45 / CAST( NULL AS SIGNED ) + CAST( 12 AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT 45 / CAST ( NULL AS INTEGER ) + CAST ( 12 AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col2 / col1 - col2 * + col2 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - col2 IN ( col1 )
----
1
21
81

query I rowsort
SELECT 78 AS col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 3 + col1 * - 68 AS col0 FROM tab1
----
-3193
-337
-949

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT - SUM( + 57 ) AS col0 FROM tab2 WHERE NULL > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT - SUM ( + 57 ) AS col0 FROM tab2 WHERE NULL > col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NULL = col0
----
0

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab1 WHERE NOT ( 50 ) IS NOT NULL
----

query I rowsort
SELECT col0 + + 64 FROM tab1
----
115
149
155

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4596
SELECT * FROM tab1 AS cor0 WHERE + col0 * col1 NOT IN ( - CAST( + 28 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4596
SELECT * FROM tab1 AS cor0 WHERE + col0 * col1 NOT IN ( - CAST ( + 28 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 18 - col1 FROM tab2 AS cor0
----
-33
-49
-59

query I rowsort
SELECT ALL col0 * ( col1 ) + - col2 * + 67 AS col0 FROM tab1 AS cor0 WHERE ( col0 * - 67 + + 32 ) < col1
----
-279
-3528
-5718

query I rowsort
SELECT DISTINCT col1 * - ( + 75 ) AS col2 FROM tab0 AS cor0
----
-1575
-6075
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * 11 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 12 / - col0 + + col1 ) NOT IN ( 1 )
----

query I rowsort
SELECT DISTINCT 69 * - 48 FROM tab2 AS cor0
----
-3312

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 < + 78
----
15
81
47

query I rowsort
SELECT 19 * + col1 FROM tab2 AS cor0
----
1273
1463
969

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( ( 33 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT COUNT( * ) * 3 AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4606
SELECT COUNT ( * ) * 3 AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL + CAST( - col0 AS SIGNED ) * + col0 + + col2 AS col2 FROM tab0
----
-178
-7559
-9310

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + CAST ( - col0 AS INTEGER ) * + col0 + + col2 AS col2 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT ALL col1 * + + 27 * 29 FROM tab2
----
39933
52461
60291

query III rowsort
SELECT * FROM tab0 WHERE NOT + 23 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT col1 * CAST( col0 AS SIGNED ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-4610
SELECT col1 * CAST ( col0 AS INTEGER ) FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND ( ( - col0 ) + - ( col2 ) / + 32 )
----

query I rowsort
SELECT col0 * - + col1 + - col0 AS col0 FROM tab0
----
-1230
-1914
-194

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 13 + + 35 + + - col0 FROM tab1
----
-29
-63
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT + col1 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT + col1 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - 86 + col1 AS col2 FROM tab2
----
-86

query I rowsort
SELECT DISTINCT - 51 FROM tab2 WHERE ( NOT ( - col1 ) NOT BETWEEN col2 AND NULL )
----

query I rowsort
SELECT 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - - COUNT( * ) + MIN( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - - COUNT ( * ) + MIN ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
26

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE - 40 * - - 60 * col2 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 39 IS NOT NULL
----

query II rowsort
SELECT + col0 AS col0, + 81 + 67 FROM tab1 AS cor0
----
51
148
85
148
91
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 - - 0 - + 20 col1 FROM tab0 AS cor0
----
-245
-7589
-9429

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4628
SELECT DISTINCT + CAST( COUNT( + ( + col0 ) ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT + CAST ( COUNT ( + ( + col0 ) ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT + 6 - + + 91 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + + COUNT( + col0 ) - 14 * - 43 AS col2 FROM tab1 AS cor0
----
605

skipif mysql # not compatible
query I rowsort label-4630
SELECT + + COUNT ( + col0 ) - 14 * - 43 AS col2 FROM tab1 AS cor0
----
605

query I rowsort
SELECT 69 * col0 - - ( 18 ) FROM tab1
----
3537
5883
6297

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - 78 - + COUNT( * ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 78 - + COUNT ( * ) FROM tab2
----
-81

query I rowsort
SELECT ALL + 83 + + col0 FROM tab2
----
129
147
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT + MIN( DISTINCT CAST( col0 AS SIGNED ) ) * 68 AS col0 FROM tab2 WHERE ( col2 * + + 61 - 42 ) BETWEEN - 94 AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT + MIN ( DISTINCT CAST ( col0 AS INTEGER ) ) * 68 AS col0 FROM tab2 WHERE ( col2 * + + 61 - 42 ) BETWEEN - 94 AND ( col0 )
----
NULL

query II rowsort
SELECT ALL + 57 * col2, col2 AS col0 FROM tab0
----
2679
47
5643
99
570
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT col1 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 * CAST( col1 AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-4636
SELECT col1 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 * CAST ( col1 AS INTEGER ) AND - col0
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT ( - 19 ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( - 5 + + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4639
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) <= ( CAST( + col2 AS SIGNED ) )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-4639
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) <= ( CAST ( + col2 AS INTEGER ) )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT - - MIN( ALL - col2 ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4640
SELECT - - MIN ( ALL - col2 ) col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + 57 * + MAX( - - col2 ) + + ( + 46 ) AS col2 FROM tab0 AS cor0
----
5689

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 57 * + MAX ( - - col2 ) + + ( + 46 ) AS col2 FROM tab0 AS cor0
----
5689

query I rowsort
SELECT col2 * - + 96 AS col1 FROM tab0
----
-4512
-9504
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT ALL + 11 * + col2 DIV - col2 AS col2 FROM tab1
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + 11 * + col2 / - col2 AS col2 FROM tab1
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT + - SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4645
SELECT + - SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT + + col0 DIV + + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4646
SELECT + + col0 / + + col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 82 col1, 72 + - col2 AS col1 FROM tab2 AS cor0
----
82
14
82
32
82
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 / - col1 ) IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 68 NOT IN ( col2 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 7 + - + col0 FROM tab2 AS cor0
----
-39
-57
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - SUM( DISTINCT - + col2 ) + + - 19 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-4651
SELECT - SUM ( DISTINCT - + col2 ) + + - 19 FROM tab2
----
102

query III rowsort
SELECT * FROM tab1 WHERE col2 * col2 + - col1 + + - col2 * 3 NOT BETWEEN ( - col1 ) AND col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( - col0 ) AS col2 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4654
SELECT * FROM tab1 AS cor0 WHERE CAST( + - col2 AS DECIMAL ) - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4654
SELECT * FROM tab1 AS cor0 WHERE CAST ( + - col2 AS REAL ) - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 71 * - - col0 * 2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT DISTINCT 0 + + COUNT( * ) AS col0, + COUNT( * ) * - 85 AS col2 FROM tab1
----
3
-255

skipif mysql # not compatible
query II rowsort label-4656
SELECT DISTINCT 0 + + COUNT ( * ) AS col0, + COUNT ( * ) * - 85 AS col2 FROM tab1
----
3
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + - COUNT( ALL + 66 ) FROM tab1 WHERE + 25 * 93 BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4657
SELECT + - COUNT ( ALL + 66 ) FROM tab1 WHERE + 25 * 93 BETWEEN + col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT - - 57 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 74 + + - col0 < NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND - + col1
----

query I rowsort
SELECT DISTINCT col1 - - - 17 AS col2 FROM tab2 AS cor0
----
34
50
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT ALL + 64 DIV - - ( + - col2 ) - col2 AS col1 FROM tab1 AS cor0
----
-60
-68
-96

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + 64 / - - ( + - col2 ) - col2 AS col1 FROM tab1 AS cor0
----
-60
-68
-96

query II rowsort
SELECT col1 + + col1, 10 AS col2 FROM tab0 AS cor0
----
162
10
2
10
42
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - ( COUNT( DISTINCT - 42 ) ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4664
SELECT - ( COUNT ( DISTINCT - 42 ) ) AS col2 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 + + col1 * + col0 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 15 + + col1 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT - - COUNT( * ) + - 84 * + 18 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----
-1512

skipif mysql # not compatible
query I rowsort label-4667
SELECT - - COUNT ( * ) + - 84 * + 18 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----
-1512

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4669
SELECT 57 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
57
NULL
57
NULL
57
NULL

skipif mysql # not compatible
query II rowsort label-4669
SELECT 57 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
57
NULL
57
NULL
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT - MAX( + col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4670
SELECT - MAX ( + col0 ) AS col1 FROM tab2
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - + col2 AND ( + - 75 )
----

query II rowsort
SELECT DISTINCT - 11 AS col0, 71 FROM tab1
----
-11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT - COUNT( ALL - ( + 63 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4673
SELECT - COUNT ( ALL - ( + 63 ) ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT - ( COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4674
SELECT - ( COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + + 55 FROM tab1 AS cor0 WHERE NOT 8 IS NULL
----
55

query I rowsort
SELECT - col1 + - + col0 - col0 - 55 / col2 AS col2 FROM tab1 AS cor0 WHERE NOT + ( + ( - ( - col1 ) ) ) <= ( + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col1 - - col1
----

query I rowsort
SELECT ALL - + 62 * - col1 + + 36 + col1 + - col0 FROM tab1 cor0
----
266
2906
867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * - + col0 col1 FROM tab1
----
-4029
-6715
-7189

query I rowsort
SELECT - 50 * + 67 FROM tab2 WHERE + 15 NOT IN ( - col0 )
----
-3350
-3350
-3350

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - 98 * + SUM( DISTINCT + col1 ) * + COUNT( * ) + - 67 FROM tab1
----
-19471

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - 98 * + SUM ( DISTINCT + col1 ) * + COUNT ( * ) + - 67 FROM tab1
----
-19471

query I rowsort
SELECT - col0 + 26 + + col0 FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT + AVG ( ALL + col1 ) AS col2 FROM tab0 cor0 WHERE NOT 98 BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 49 col0 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT - + col0 + col0 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE NULL <= + 16 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL <= + 16 * - col2
----
0

query II rowsort
SELECT - 12 AS col0, - 1 * - - col0 FROM tab0
----
-12
-15
-12
-87
-12
-97

query I rowsort
SELECT DISTINCT - + 43 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4690
SELECT ALL - 66 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - 66 / + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT COUNT( ALL - 8 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4691
SELECT COUNT ( ALL - 8 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + ( - - col1 ), col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - - MAX( + col2 ) AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - - MAX ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT + col1 IS NULL
----
-3

query I rowsort
SELECT - ( + col2 ) * - - 34 FROM tab1
----
-2006
-2312
-3264

query I rowsort
SELECT - 98 * - - 1 FROM tab1
----
-98
-98
-98

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + 51 ), 12 col2 FROM tab1
----
-51
12
-51
12
-51
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4699
SELECT DISTINCT CAST( - - col0 AS SIGNED ) AS col1, col2 FROM tab2
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-4699
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) AS col1, col2 FROM tab2
----
46
23
64
40
75
58

query II rowsort
SELECT ALL 25, 17 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 53 ) <= 8 * ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4703
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) <> col2 + 92
----

skipif mysql # not compatible
query III rowsort label-4703
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) <> col2 + 92
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 * ( col2 ) + + ( - + col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 * + col1 * + 85 / + - ( - col0 ) + - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + ( - col2 ) ), 75 col1 FROM tab1 AS cor0
----
59
75
68
75
96
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 32 AND NULL
----

query II rowsort
SELECT + 48 * - - col0 + 79, col0 FROM tab1 AS cor0
----
2527
51
4159
85
4447
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + + - col1 * col0 col2 FROM tab0 cor0
----
-1158
-1770
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4710
SELECT DISTINCT - - COUNT( * ) AS col1, 53 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
50

skipif mysql # not compatible
query II rowsort label-4710
SELECT DISTINCT - - COUNT ( * ) AS col1, 53 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
50

query I rowsort
SELECT - 88 * col1 + ( + col1 ) * + col1 * + col1 + - col2 FROM tab1 AS cor0
----
-374
1416
99619

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT DISTINCT + + 90 * + - SUM( DISTINCT + 20 ) FROM tab2 AS cor0
----
-1800

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + + 90 * + - SUM ( DISTINCT + 20 ) FROM tab2 AS cor0
----
-1800

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + 67 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4714
SELECT * FROM tab0 WHERE + CAST( 40 AS DECIMAL ) + col2 = - col1
----

skipif mysql # not compatible
query III rowsort label-4714
SELECT * FROM tab0 WHERE + CAST ( 40 AS REAL ) + col2 = - col1
----

query I rowsort
SELECT ALL 91 * + 25 * 61 AS col1 FROM tab1 WHERE NOT ( col2 ) IN ( + 50 )
----
138775
138775
138775

query I rowsort
SELECT DISTINCT + 79 * + col1 FROM tab1
----
1106
3713
395

query I rowsort
SELECT + ( + 19 ) AS col0 FROM tab1
----
19
19
19

query I rowsort
SELECT ALL - 98 * + col0 AS col1 FROM tab1 AS cor0
----
-4998
-8330
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT + COUNT( * ) col2 FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4719
SELECT + COUNT ( * ) col2 FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
9

query II rowsort
SELECT - - col1, - 68 AS col0 FROM tab1 AS cor0
----
14
-68
47
-68
5
-68

query I rowsort
SELECT 51 AS col0 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT - col1 * 80 FROM tab1 AS cor0
----
-1120
-3760
-400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT DISTINCT + CAST( + - 38 AS SIGNED ) * - - 79 + - col2 col2 FROM tab1 AS cor0
----
-3061
-3070
-3098

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4723
SELECT DISTINCT + CAST ( + - 38 AS INTEGER ) * - - 79 + - col2 col2 FROM tab1 AS cor0
----
-3061
-3070
-3098

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT + MIN( + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + MIN ( + + col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 <> + 20
----

query I rowsort
SELECT ALL 60 AS col0 FROM tab0 WHERE NOT + col1 / 59 * + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT COUNT( * ) * 73 AS col2 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-4727
SELECT COUNT ( * ) * 73 AS col2 FROM tab2
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL SUM( - 61 ) col1 FROM tab2
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4728
SELECT ALL SUM ( - 61 ) col1 FROM tab2
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT + ( col1 ) DIV - 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT + ( col1 ) / - 98 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( + 5 ) * + 94 col2 FROM tab1
----
23970
39950
42770

query I rowsort
SELECT 96 * + - 48 + - col1 AS col0 FROM tab0 AS cor0
----
-4609
-4629
-4689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 + - 6 AS col1, + 6 col1 FROM tab2
----
15
6
15
6
15
6

query II rowsort
SELECT DISTINCT col1 + col2, col0 FROM tab2
----
117
64
125
75
74
46

query I rowsort
SELECT - col0 FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - - col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 FROM tab0 cor0 WHERE NOT 98 <= 50
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT - CAST( + 0 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT - CAST ( + 0 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > col0
----

query I rowsort
SELECT + - 85 * - ( + col2 ) * - col1 FROM tab0 AS cor0
----
-17850
-323595
-8415

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 BETWEEN - + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 BETWEEN - + col0 AND NULL
----
0

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE 12 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 53 <> NULL
----

query I rowsort
SELECT ALL + 45 + + col0 AS col2 FROM tab2
----
109
120
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT - ( + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4744
SELECT - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT + 1 - - SUM( col2 ) * - 45 + + COUNT( * ) AS col2 FROM tab1 WHERE 40 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + 1 - - SUM ( col2 ) * - 45 + + COUNT ( * ) AS col2 FROM tab1 WHERE 40 IS NULL
----
NULL

query I rowsort
SELECT ALL - col2 + - 21 + + col2 * - ( col1 ) + + + col1 FROM tab1
----
-1447
-3238
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT COUNT( * ) - - - 93 * - + ( - COUNT( * ) ) AS col0 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-4747
SELECT COUNT ( * ) - - - 93 * - + ( - COUNT ( * ) ) AS col0 FROM tab1
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4748
SELECT DISTINCT - CAST( + + 49 AS SIGNED ) * + + 38 AS col2, + ( 69 ) AS col2 FROM tab1 AS cor0
----
-1862
69

skipif mysql # not compatible
query II rowsort label-4748
SELECT DISTINCT - CAST ( + + 49 AS INTEGER ) * + + 38 AS col2, + ( 69 ) AS col2 FROM tab1 AS cor0
----
-1862
69

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 WHERE NOT col0 BETWEEN + col0 AND + 24
----
1
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 18 * - 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + ( + + 62 ) - - 27 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT ALL * FROM tab1 WHERE - 1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4754
SELECT DISTINCT - 39 * - CAST( NULL AS SIGNED ) * 18 / + 50, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4754
SELECT DISTINCT - 39 * - CAST ( NULL AS INTEGER ) * 18 / + 50, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT 6 < 5 * + col0 + - col1
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 87 AND + 2
----

query II rowsort
SELECT + col1 * col1 + + col1 * - 93 AS col1, col0 AS col1 FROM tab2 AS cor0
----
-1232
64
-1742
75
-2142
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4758
SELECT - MAX( CAST( + 75 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4758
SELECT - MAX ( CAST ( + 75 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + ( - COUNT( DISTINCT - 45 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4759
SELECT + ( - COUNT ( DISTINCT - 45 ) ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - + ( - + 81 ) AS col2 FROM tab1 WHERE NOT + + col2 / + col1 >= + 2
----
81

query I rowsort
SELECT DISTINCT + col0 * - - 65 * - 46 * - + col1 FROM tab0
----
290030
3632850
5462730

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT ALL 44 DIV - 83 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4762
SELECT ALL 44 / - 83 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( - col1 ) * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT + 6 * ( - MIN( ALL + ( - ( + + col1 ) ) ) ) * 7 FROM tab0 cor0
----
3402

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + 6 * ( - MIN ( ALL + ( - ( + + col1 ) ) ) ) * 7 FROM tab0 cor0
----
3402

query I rowsort
SELECT + ( + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4766
SELECT - - MIN( - - 63 ) AS col0, + 77 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
63
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4766
SELECT - - MIN ( - - 63 ) AS col0, + 77 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
63
77

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT + - 76 + - 77 FROM tab0 AS cor0
----
-153
-153
-153

query I rowsort
SELECT - - 37 + + ( ( + 31 ) ) AS col0 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4770
SELECT - + COUNT( * ) + - - SUM( col0 ) DIV + 47 col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4770
SELECT - + COUNT ( * ) + - - SUM ( col0 ) / + 47 col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + ( 32 ) + - - 81 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
275

skipif mysql # not compatible
query I rowsort label-4771
SELECT + ( 32 ) + - - 81 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT 14 + - COUNT( * ) + + ( - - MIN( - 98 ) ) - + 96 * - + 69 AS col1 FROM tab0 AS cor0
----
6537

skipif mysql # not compatible
query I rowsort label-4772
SELECT 14 + - COUNT ( * ) + + ( - - MIN ( - 98 ) ) - + 96 * - + 69 AS col1 FROM tab0 AS cor0
----
6537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT ALL + 37 FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) >= 98
----
37
37
37

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + 37 FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) >= 98
----
37
37
37

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT 92 * - ( + 36 ) + CAST( NULL AS SIGNED ) + + - col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT 92 * - ( + 36 ) + CAST ( NULL AS INTEGER ) + + - col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + + + ( - 41 ) FROM tab2
----
-1
-18
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT ALL CAST( - col0 AS SIGNED ) + + 52 FROM tab2
----
-12
-23
6

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL CAST ( - col0 AS INTEGER ) + + 52 FROM tab2
----
-12
-23
6

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - + 47 AS col0 FROM tab1
----
-33
-42
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT ALL + 83 - col0 DIV - + col2 AS col0 FROM tab0
----
83
83
91

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + 83 - col0 / - + col2 AS col0 FROM tab0
----
83
83
91

query I rowsort
SELECT - col2 / 58 + - 63 FROM tab0 AS cor0 WHERE col1 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4782
SELECT + + 13 - + 47 DIV col0 AS col1, + 26 FROM tab0 AS cor0
----
10
26
13
26
13
26

skipif mysql # not compatible
query II rowsort label-4782
SELECT + + 13 - + 47 / col0 AS col1, + 26 FROM tab0 AS cor0
----
10
26
13
26
13
26

query I rowsort
SELECT ALL ( + 5 ) - + ( col1 ) AS col1 FROM tab1 AS cor0
----
-42
-9
0

query I rowsort
SELECT col2 - - + col1 AS col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 71 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT DISTINCT COUNT( + ( 93 ) ) AS col0, - 37 FROM tab1
----
3
-37

skipif mysql # not compatible
query II rowsort label-4786
SELECT DISTINCT COUNT ( + ( 93 ) ) AS col0, - 37 FROM tab1
----
3
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT - MAX( DISTINCT + col2 ) AS col2 FROM tab1 cor0 WHERE NOT + col2 * - - col2 / - ( + 92 ) / + - col0 + - col0 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - MAX ( DISTINCT + col2 ) AS col2 FROM tab1 cor0 WHERE NOT + col2 * - - col2 / - ( + 92 ) / + - col0 + - col0 IS NULL
----
-96

query I rowsort
SELECT ALL - 53 * + - col0 AS col1 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT MIN( - 54 ) AS col1 FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4789
SELECT MIN ( - 54 ) AS col1 FROM tab2 cor0
----
-54

query I rowsort
SELECT - + ( 36 ) AS col2 FROM tab2 AS cor0
----
-36
-36
-36

query II rowsort
SELECT + + col1, + 56 AS col2 FROM tab1 AS cor0
----
14
56
47
56
5
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT + - COUNT( ALL + 1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + - COUNT ( ALL + 1 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4793
SELECT + ( + COUNT( * ) ), COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4793
SELECT + ( + COUNT ( * ) ), COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4794
SELECT - 54 AS col2, COUNT( - - col1 ) FROM tab2 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-4794
SELECT - 54 AS col2, COUNT ( - - col1 ) FROM tab2 AS cor0
----
-54
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT DISTINCT + - COUNT( * ) AS col2, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4795
SELECT DISTINCT + - COUNT ( * ) AS col2, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) * + + col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ( - - col2 ) * col2 + + + col0 AS col1 FROM tab1
----
3566
4715
9267

query III rowsort
SELECT * FROM tab2 WHERE NOT + 53 NOT BETWEEN - col0 AND + col0 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT 72 * COUNT( * ) * 8 AS col0 FROM tab2
----
1728

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT 72 * COUNT ( * ) * 8 AS col0 FROM tab2
----
1728

query I rowsort
SELECT - col2 * - - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - 50 + col1 AS col0 FROM tab1 AS cor0
----
-3
-36
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT col1 + - - CAST( - + 23 AS SIGNED ) AS col1 FROM tab1
----
-18
-9
24

skipif mysql # not compatible
query I rowsort label-4802
SELECT col1 + - - CAST ( - + 23 AS INTEGER ) AS col1 FROM tab1
----
-18
-9
24

query I rowsort
SELECT DISTINCT + 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL + - COUNT( * ) + 80 AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + - COUNT ( * ) + 80 AS col2 FROM tab0 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 83 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab2 cor0
----
63

query I rowsort
SELECT DISTINCT + + 2 * col2 FROM tab1 AS cor0
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) * + 40 col2 FROM tab0 cor0
----
3480
3880
600

query I rowsort
SELECT - col2 * - + col2 * - - 51 + - col1 FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + col1 * - col2 + - col1 + - col1 * - col2 * 77 FROM tab0 AS cor0
----
15939
289251
7523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + ( - col2 ) - - + 37 FROM tab2
----
-21
-3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT 10 - + COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-4814
SELECT 10 - + COUNT ( * ) FROM tab2
----
7

query I rowsort
SELECT - col2 - - - 99 - + col1 FROM tab0
----
-130
-199
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, - 38 FROM tab1
----
59
-38
68
-38
96
-38

query I rowsort
SELECT DISTINCT + 56 + col0 AS col1 FROM tab0
----
143
153
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4819
SELECT DISTINCT - - ( + - CAST( - col2 AS SIGNED ) ) DIV + col1 + + col2 AS col2 FROM tab1 AS cor0
----
102
69
70

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - - ( + - CAST ( - col2 AS INTEGER ) ) / + col1 + + col2 AS col2 FROM tab1 AS cor0
----
102
69
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL COUNT( ALL - col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL COUNT ( ALL - col0 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col0, - col1 AS col2 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL - COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT - MAX( + 26 ) DIV - ( + COUNT( * ) ) + 32 + - + 17 AS col1 FROM tab1, tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4824
SELECT - MAX ( + 26 ) / - ( + COUNT ( * ) ) + 32 + - + 17 AS col1 FROM tab1, tab2 AS cor0
----
17

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 WHERE NOT 19 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL - MIN( DISTINCT + col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - MIN ( DISTINCT + col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + ( + 87 ) NOT BETWEEN - col0 AND col1
----

query I rowsort
SELECT ( ( 36 ) ) AS col2 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT col1 * + + col0 * + col2 * - + 99 + + - 64 AS col0 FROM tab1
----
-2482489
-28792828
-6785920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab0 cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + + COUNT( * ) * - - SUM( + - col0 ) AS col2 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-4831
SELECT + + COUNT ( * ) * - - SUM ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-597

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col2 ) AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4833
SELECT * FROM tab0 WHERE - - CAST( col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4833
SELECT * FROM tab0 WHERE - - CAST ( col2 AS REAL ) IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( 22 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT DISTINCT col2 + + 18 DIV col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT col2 + + 18 / col2 FROM tab1
----
59
68
96

query I rowsort
SELECT col1 + col0 * + 77 AS col1 FROM tab1 AS cor0
----
3941
6550
7054

query I rowsort
SELECT DISTINCT col0 * - 33 AS col1 FROM tab2 AS cor0
----
-1518
-2112
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + + 95 * - - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-4838
SELECT + + 95 * - - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
285

query II rowsort
SELECT + 9, col0 FROM tab1
----
9
51
9
85
9
91

query I rowsort
SELECT DISTINCT - + 28 AS col1 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT DISTINCT + col0 * + + 25 AS col2 FROM tab0 AS cor0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT + ( 93 ) + + 62 * 75 * + - ( COUNT( 43 ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-41757

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT + ( 93 ) + + 62 * 75 * + - ( COUNT ( 43 ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-41757

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT 31 AS col1, - COUNT( * ) * + 81 AS col0 FROM tab0
----
31
-243

skipif mysql # not compatible
query II rowsort label-4843
SELECT 31 AS col1, - COUNT ( * ) * + 81 AS col0 FROM tab0
----
31
-243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4844
SELECT - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4845
SELECT ALL + ( - CAST( NULL AS SIGNED ) ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4845
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT - + col1 AS col0, - col0 * + 13 AS col2 FROM tab1 AS cor0
----
-14
-663
-47
-1183
-5
-1105

query I rowsort
SELECT DISTINCT + - ( - + col0 ) * - - col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT + 54 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
54
-3

skipif mysql # not compatible
query II rowsort label-4848
SELECT + 54 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
54
-3

query III rowsort
SELECT * FROM tab0 WHERE + 28 + - ( col2 ) * + 40 * - - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT + col0 + ( 64 ) * col0 * + CAST( - 20 AS SIGNED ) FROM tab0 AS cor0
----
-111273
-124063
-19185

skipif mysql # not compatible
query I rowsort label-4851
SELECT + col0 + ( 64 ) * col0 * + CAST ( - 20 AS INTEGER ) FROM tab0 AS cor0
----
-111273
-124063
-19185

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT + 71 AS col0, - COUNT( ALL - 68 ) AS col2 FROM tab0
----
71
-3

skipif mysql # not compatible
query II rowsort label-4852
SELECT + 71 AS col0, - COUNT ( ALL - 68 ) AS col2 FROM tab0
----
71
-3

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4854
SELECT CAST( - + col0 AS SIGNED ) DIV - - 9 + + + col1 + + col0 - col0 FROM tab0
----
-9
12
80

skipif mysql # not compatible
query I rowsort label-4854
SELECT CAST ( - + col0 AS INTEGER ) / - - 9 + + + col1 + + col0 - col0 FROM tab0
----
-9
12
80

query II rowsort
SELECT DISTINCT - + 40 * col0 * 53 + + + col1, + col0 FROM tab2 AS cor0
----
-135603
64
-158933
75
-97469
46

query I rowsort
SELECT DISTINCT + 0 + - 13 FROM tab2 cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - - 96 / - ( - - col0 ) - - col0 IS NOT NULL OR - + col2 + + 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT + - 52 DIV 89 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT + - 52 / 89 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 91 - - col1 AS col1 FROM tab1 AS cor0
----
-44
-77
-86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col0
----

query I rowsort
SELECT DISTINCT 31 - - col2 * - col1 AS col2 FROM tab0 cor0
----
-179
-3776
-68

query I rowsort
SELECT col1 - + - 11 AS col1 FROM tab1 AS cor0
----
16
25
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT + + col2 * CAST( NULL AS SIGNED ) - - 37 + + 66 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT + + col2 * CAST ( NULL AS INTEGER ) - - 37 + + 66 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT - + CAST( + ( - + ( + - 45 ) ) AS SIGNED ) + + + COUNT( * ) AS col1 FROM tab0 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4864
SELECT - + CAST ( + ( - + ( + - 45 ) ) AS INTEGER ) + + + COUNT ( * ) AS col1 FROM tab0 cor0
----
-42

query I rowsort
SELECT - 52 * - ( ( col2 ) ) AS col0 FROM tab0
----
2444
5148
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT 89 DIV + - col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT 89 / + - col2 FROM tab0
----
-1
-8
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 65 + + ( col1 ) + col1 / + - ( - 22 ) - - 3 - - 47 <= - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4869
SELECT ALL - MIN( ALL - - col2 ) col0, 67 DIV + + ( - ( + ( + 33 ) ) ) FROM tab0 AS cor0
----
-10
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4869
SELECT ALL - MIN ( ALL - - col2 ) col0, 67 / + + ( - ( + ( + 33 ) ) ) FROM tab0 AS cor0
----
-10
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + COUNT( DISTINCT - 16 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-4870
SELECT + COUNT ( DISTINCT - 16 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - - col2 col0, + 55 col0 FROM tab2 AS cor0
----
-1173
55
-3080
55
-3886
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT + COUNT( * ) AS col0, - ( - + 84 ) AS col2 FROM tab0
----
3
84

skipif mysql # not compatible
query II rowsort label-4872
SELECT + COUNT ( * ) AS col0, - ( - + 84 ) AS col2 FROM tab0
----
3
84

query I rowsort
SELECT ALL - 85 + - - 89 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - COUNT( ALL - 45 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4874
SELECT - COUNT ( ALL - 45 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT + col1 DIV + - 86 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT + col1 / + - 86 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - MIN( - - 88 ) AS col0 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4876
SELECT - MIN ( - - 88 ) AS col0 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT + 31 + + 70 FROM tab1 cor0
----
101
101
101

query I rowsort
SELECT ALL - - col2 + - 81 FROM tab1 AS cor0
----
-13
-22
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT ALL + col1 DIV - 50 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + col1 / - 50 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + COUNT( * ) + + 71 * + COUNT( * ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-4880
SELECT + COUNT ( * ) + + 71 * + COUNT ( * ) FROM tab1
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4881
SELECT ALL - col0 + col2 * - + ( + - 15 ) + + + col1 AS col0, ( col0 ) AS col0 FROM tab0 WHERE ( + ( - - ( + - CAST( NULL AS SIGNED ) ) ) ) BETWEEN + 15 AND NULL
----

skipif mysql # not compatible
query II rowsort label-4881
SELECT ALL - col0 + col2 * - + ( + - 15 ) + + + col1 AS col0, ( col0 ) AS col0 FROM tab0 WHERE ( + ( - - ( + - CAST ( NULL AS INTEGER ) ) ) ) BETWEEN + 15 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT ALL + col2 + + col2 DIV col1 * - col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL + col2 + + col2 / col1 * - col2 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 * - col1 + + 21 IS NULL
----

query II rowsort
SELECT DISTINCT col2, 67 + - col1 AS col0 FROM tab0
----
10
46
47
-14
99
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 77 * + 99 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + - 21 FROM tab2
----
1218
483
840

query I rowsort
SELECT ALL col1 + + + col2 * - 15 + - ( + - col0 ) FROM tab0 AS cor0
----
-1387
-42
-609

onlyif mysql # DIV for integer division: 
query II rowsort label-4888
SELECT - 4 AS col2, + col1 DIV - 75 - - - col1 AS col2 FROM tab2 AS cor0
----
-4
-51
-4
-67
-4
-78

skipif mysql # not compatible
query II rowsort label-4888
SELECT - 4 AS col2, + col1 / - 75 - - - col1 AS col2 FROM tab2 AS cor0
----
-4
-51
-4
-67
-4
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT + CAST( col2 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT ALL + + COUNT( * ), - COUNT( * ) AS col2 FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4890
SELECT ALL + + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 cor0
----
3
-3

query II rowsort
SELECT ALL col0 + + col2 AS col2, + 57 + + - col0 AS col1 FROM tab1
----
144
-28
147
6
159
-34

query I rowsort
SELECT DISTINCT 37 + + col0 * + + 18 * - col2 FROM tab1 AS cor0
----
-111347
-88091
-90233

query I rowsort
SELECT col2 + col0 + - 53 AS col2 FROM tab1 cor0
----
106
91
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT + CAST( + + 96 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + CAST ( + + 96 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + 27 * + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4895
SELECT + 27 * + COUNT ( * ) FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT + - COUNT( * ) FROM tab1 cor0 WHERE ( + 71 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + - COUNT ( * ) FROM tab1 cor0 WHERE ( + 71 IS NULL )
----
0

query I rowsort
SELECT + - ( + ( + col0 ) ) * - col2 * col1 FROM tab2 cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT 10 * + COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT 10 * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4899
SELECT DISTINCT - col1 AS col1, - col1 DIV - col0 * ( - - col0 ) AS col2 FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-4899
SELECT DISTINCT - col1 AS col1, - col1 / - col0 * ( - - col0 ) AS col2 FROM tab1
----
-14
0
-47
0
-5
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4900
SELECT 32 col2, 96 DIV + ( + ( 67 ) ) + + col2 FROM tab0
----
32
100
32
11
32
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4900
SELECT 32 col2, 96 / + ( + ( 67 ) ) + + col2 FROM tab0
----
32
100
32
11
32
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT ALL col1 DIV + + col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL col1 / + + col0 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT + col0 / - col2 FROM tab0 WHERE NOT col0 * + 7 + + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4902
SELECT + col0 / - col2 FROM tab0 WHERE NOT col0 * + 7 + + CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT col1 DIV + 97 * - 37 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT col1 / + 97 * - 37 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + col0 * + 74 AS col0 FROM tab1 AS cor0
----
3774
6290
6734

query I rowsort
SELECT DISTINCT - 99 * col2 + + 46 FROM tab1 AS cor0
----
-5795
-6686
-9458

query II rowsort
SELECT ALL 70 AS col1, - 32 FROM tab2 AS cor0 WHERE NULL <= ( - col2 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 67, - col0 )
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 - - 8 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL 68 + - - MIN( - col0 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL 68 + - - MIN ( - col0 ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT + 25 * - COUNT( * ) AS col2, COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-225
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4911
SELECT + 25 * - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-225
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT DISTINCT SUM( DISTINCT - col2 ) + + 98 + 13 * - 1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT SUM ( DISTINCT - col2 ) + + 98 + 13 * - 1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4913
SELECT - col1 * + col0 + - col2 DIV + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4913
SELECT - col1 * + col0 + - col2 / + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col0 + 44 - - + col0 FROM tab0
----
218
238
74

query II rowsort
SELECT col2 AS col0, + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT col2 - + - col0 * + col2 AS col2 FROM tab1
----
4992
5074
6256

query II rowsort
SELECT ALL + 83, + col2 AS col1 FROM tab1
----
83
59
83
68
83
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT DISTINCT col2 + + 10 + + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT col2 + + 10 + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT COUNT( * ) + + 27 AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-4919
SELECT COUNT ( * ) + + 27 AS col2 FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4920
SELECT col0 + - - col0 DIV + col2 AS col0, - col1 FROM tab0 cor0
----
15
-81
95
-21
97
-1

skipif mysql # not compatible
query II rowsort label-4920
SELECT col0 + - - col0 / + col2 AS col0, - col1 FROM tab0 cor0
----
15
-81
95
-21
97
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT + 26 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4921
SELECT + 26 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4922
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 * 7 - + 83 * - col1 * + 88 - col1 AND - + 41
----

query II rowsort
SELECT DISTINCT col0 * + col1, + col1 AS col0 FROM tab1 AS cor0
----
425
5
4277
47
714
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT MIN( ALL - col0 ) + 1 + + 27 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4925
SELECT MIN ( ALL - col0 ) + 1 + + 27 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-69

query I rowsort
SELECT - 6 * - 32 + + 33 AS col0 FROM tab2 AS cor0
----
225
225
225

query I rowsort
SELECT ALL ( + - col1 ) * - 50 AS col1 FROM tab2
----
2550
3350
3850

query I rowsort
SELECT 40 * + ( - col1 ) AS col0 FROM tab1
----
-1880
-200
-560

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / - + 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4930
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - + col2 / - col1, + col1 / 30, - 99 / 20 / + 73 + + CAST( NULL AS SIGNED ), - col0 - + 4, + CAST( NULL AS SIGNED ), col0 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-4930
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - + col2 / - col1, + col1 / 30, - 99 / 20 / + 73 + + CAST ( NULL AS INTEGER ), - col0 - + 4, + CAST ( NULL AS INTEGER ), col0 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 46 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT + SUM( ALL + 52 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
156
3

skipif mysql # not compatible
query II rowsort label-4932
SELECT + SUM ( ALL + 52 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
156
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT + + AVG ( 41 ) FROM tab2 AS cor0 WHERE NOT ( + 27 ) > col0 * + + CAST( - 48 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT + + AVG ( 41 ) FROM tab2 AS cor0 WHERE NOT ( + 27 ) > col0 * + + CAST ( - 48 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT - + MIN( ALL - 15 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT - + MIN ( ALL - 15 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE - 79 * - 4 IS NULL
----

query I rowsort
SELECT ALL - 29 AS col1 FROM tab0 cor0
----
-29
-29
-29

query I rowsort
SELECT - col1 + 36 AS col2 FROM tab1 cor0
----
-11
22
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT - COUNT( ALL - 83 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - COUNT ( ALL - 83 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT DISTINCT col1 + - - 74 AS col1 FROM tab2 AS cor0 WHERE NOT + 87 / + 97 + + CAST( NULL AS SIGNED ) * 90 + + + col2 + + + 99 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT col1 + - - 74 AS col1 FROM tab2 AS cor0 WHERE NOT + 87 / + 97 + + CAST ( NULL AS INTEGER ) * 90 + + + col2 + + + 99 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + + 74 + 65 * - + COUNT( * ) col2 FROM tab1 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4942
SELECT + + 74 + 65 * - + COUNT ( * ) col2 FROM tab1 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT - col0 * - - 51 + - - 7 * - col2 - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT - col0 * - - 51 + - - 7 * - col2 - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4944
SELECT * FROM tab2 AS cor0 WHERE ( + col0 IN ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4944
SELECT * FROM tab2 AS cor0 WHERE ( + col0 IN ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT 39 + - - col0 FROM tab2
----
103
114
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT 51 + COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT 51 + COUNT ( * ) FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL MAX( + ( col2 ) ) * - COUNT( * ) FROM tab0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL MAX ( + ( col2 ) ) * - COUNT ( * ) FROM tab0 WHERE NULL > NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 72 col0 FROM tab0
----
153
73
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT + - CAST( NULL AS SIGNED ) - COUNT( * ) + + 35 * + + MIN( ALL - col1 ) / + 16 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT + - CAST ( NULL AS INTEGER ) - COUNT ( * ) + + 35 * + + MIN ( ALL - col1 ) / + 16 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT CAST( - 30 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif mysql # not compatible
query I rowsort label-4951
SELECT CAST ( - 30 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT DISTINCT + + 90 * 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + ( MIN( DISTINCT + col2 ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4953
SELECT + ( MIN ( DISTINCT + col2 ) ) AS col1 FROM tab2 AS cor0
----
23

query II rowsort
SELECT - col1 AS col2, col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT + MIN( DISTINCT + 1 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + MIN ( DISTINCT + 1 ) AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col1, col1 * + 85 FROM tab1 AS cor0
----
14
1190
47
3995
5
425

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4959
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 39 * - + col0 AND - 3 + + 48 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4959
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 39 * - + col0 AND - 3 + + 48 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + MIN( + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4961
SELECT + MIN ( + col1 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT DISTINCT - CAST( - MIN( - - col0 ) AS SIGNED ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - CAST ( - MIN ( - - col0 ) AS INTEGER ) FROM tab0
----
15

query II rowsort
SELECT 18 AS col0, 28 AS col1 FROM tab0
----
18
28
18
28
18
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL - MAX( DISTINCT + 75 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - MAX ( DISTINCT + 75 ) FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT 39 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4965
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT 39 = NULL
----
0

query I rowsort
SELECT ALL - 32 + 15 * col1 AS col1 FROM tab0 AS cor0 WHERE 15 + - 66 IS NOT NULL
----
-17
1183
283

query II rowsort
SELECT + - col0 + col1, 66 AS col0 FROM tab2 AS cor0
----
-8
66
13
66
5
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 44 - - + col2 - + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + + col0 col1, 61 + 88 FROM tab1
----
102
149
170
149
182
149

query II rowsort
SELECT - - ( + + 19 ) AS col1, col2 FROM tab1 AS cor0
----
19
59
19
68
19
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + 74
----

query I rowsort
SELECT ALL 52 * + 18 AS col1 FROM tab0 cor0
----
936
936
936

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT DISTINCT 60 * col2 DIV - col1 AS col2 FROM tab2 cor0
----
-27
-31
-51

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT 60 * col2 / - col1 AS col2 FROM tab2 cor0
----
-27
-31
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT - 37 DIV - 50 + col0 * + 18 FROM tab1 AS cor0
----
1530
1638
918

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 37 / - 50 + col0 * + 18 FROM tab1 AS cor0
----
1530
1638
918

query II rowsort
SELECT DISTINCT col2 + 93 * - 5, col0 FROM tab0
----
-366
97
-418
15
-455
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col2 FROM tab0, tab1 AS cor0 WHERE 3 IS NULL
----

query I rowsort
SELECT ALL + 68 + - 48 AS col1 FROM tab2
----
20
20
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - - 11 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4979
SELECT ALL + COUNT( - + 56 ) DIV + 55 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL + COUNT ( - + 56 ) / + 55 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL + - AVG ( col1 ) * COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE col2 + - col0 + + + ( col2 ) * + col0 / col0 * col2 * - 1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + - AVG ( col1 ) * COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + - col0 + + + ( col2 ) * + col0 / col0 * col2 * - 1 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, col2, - CAST( - col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4981
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, col2, - CAST ( - col2 AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE col0 + - col2 > col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * col2 > - 31 * - col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT + ( + 28 ) + CAST( col1 AS SIGNED ) * - col1 FROM tab0
----
-413
-6533
27

skipif mysql # not compatible
query I rowsort label-4984
SELECT + ( + 28 ) + CAST ( col1 AS INTEGER ) * - col1 FROM tab0
----
-413
-6533
27

query I rowsort
SELECT 88 AS col0 FROM tab2 WHERE ( + ( + col1 ) ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) + 26 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT ALL - col1 DIV + col2 - 33 FROM tab2 WHERE NOT ( 83 ) IS NULL
----
-34
-34
-35

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - col1 / + col2 - 33 FROM tab2 WHERE NOT ( 83 ) IS NULL
----
-34
-34
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4988
SELECT * FROM tab0 WHERE NOT col0 + 34 NOT IN ( - CAST( NULL AS DECIMAL ) * col2 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-4988
SELECT * FROM tab0 WHERE NOT col0 + 34 NOT IN ( - CAST ( NULL AS REAL ) * col2 + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col1 FROM tab0
----
-65

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 / + col2 + 46 ) BETWEEN col1 AND 38 + + col2
----
97
1
99

query I rowsort
SELECT - 77 + 62 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + 92 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + MAX( ALL - 74 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-4993
SELECT + MAX ( ALL - 74 ) FROM tab0
----
-74

query I rowsort
SELECT DISTINCT - col1 + + col0 * + 62 FROM tab2 WHERE NOT 29 / - 72 IS NULL
----
2801
3891
4583

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + COUNT( * ) * ( 59 ) AS col0 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-4995
SELECT + COUNT ( * ) * ( 59 ) AS col0 FROM tab2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL - 81 - 25 * COUNT( * ) FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - 81 - 25 * COUNT ( * ) FROM tab1
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * - 46 col0 FROM tab0
----
3082
3082
3082

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 53 - + col1 * - col0 BETWEEN 56 AND + col1
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE col2 + col2 / + col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL 96 * col2 FROM tab1
----
5664
6528
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT col2 DIV 45 + 82 FROM tab2
----
82
82
83

skipif mysql # not compatible
query I rowsort label-5001
SELECT col2 / 45 + 82 FROM tab2
----
82
82
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT col0 DIV col2 + col1 AS col1 FROM tab0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-5002
SELECT col0 / col2 + col1 AS col1 FROM tab0
----
1
29
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT DISTINCT + ( 53 ) * + 0 + CAST( NULL AS SIGNED ) * col0 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5003
SELECT DISTINCT + ( 53 ) * + 0 + CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 0 <= + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 35 IN ( col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) > - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND col1
----
87
21
10
97
1
99

query I rowsort
SELECT col0 * 22 FROM tab0 cor0
----
1914
2134
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + col1 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 4 + col2 FROM tab2
----
27
44
62

query I rowsort
SELECT ALL + col1 + + col2 * 27 AS col2 FROM tab0 AS cor0
----
1350
2674
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 + + AVG ( ALL + col1 ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 - - col0 AS col2 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT DISTINCT - col1 DIV 60 - + col0 * 2 AS col0 FROM tab2 AS cor0
----
-129
-151
-92

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT - col1 / 60 - + col0 * 2 AS col0 FROM tab2 AS cor0
----
-129
-151
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + 49 + + 7 * MAX( + col0 ) FROM tab0 AS cor0
----
728

skipif mysql # not compatible
query I rowsort label-5015
SELECT + 49 + + 7 * MAX ( + col0 ) FROM tab0 AS cor0
----
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 0 col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 67 * - col0 + - col1 FROM tab1 AS cor0
----
-3431
-5700
-6144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5018
SELECT ALL + 55 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + 55 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL + col1 * - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col1 + 21 * + 66 AS col2 FROM tab1 AS cor0
----
1391
1400
1433

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - - 59 * + ( - col0 ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT + col0 DIV 30 AS col2 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5022
SELECT + col0 / 30 AS col2 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT ALL + 8 + - col1 * + 89 FROM tab1
----
-1238
-4175
-437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + 14 + - ( col1 ) AS col0 FROM tab0
----
-67
-7
13

query I rowsort
SELECT ALL 90 - - col1 FROM tab2
----
141
157
167

query I rowsort
SELECT DISTINCT - 28 FROM tab2 WHERE NULL IS NULL
----
-28

query I rowsort
SELECT - 41 * 31 FROM tab0 WHERE - col0 + - 35 < ( 60 + col1 )
----
-1271
-1271
-1271

onlyif mysql # DIV for integer division: 
query I rowsort label-5029
SELECT ALL 26 DIV + col2 + col2 FROM tab2
----
24
40
58

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL 26 / + col2 + col2 FROM tab2
----
24
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5030
SELECT 42 / + SUM( DISTINCT col0 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT 42 / + SUM ( DISTINCT col0 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL - COUNT( * ) * + 62 + - MIN( col2 + - col2 ) AS col0 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - COUNT ( * ) * + 62 + - MIN ( col2 + - col2 ) AS col0 FROM tab2
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5032
SELECT ALL - MAX( DISTINCT col0 ) - ( COUNT( * ) ) DIV 31 AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - MAX ( DISTINCT col0 ) - ( COUNT ( * ) ) / 31 AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= ( col1 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <= ( col1 * col1 )
----
0

query I rowsort
SELECT ( col1 ) * col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) NOT BETWEEN ( NULL ) AND ( 14 ) - - 66 AND NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 41 * col0 AS col1 FROM tab1 AS cor0
----
-2091
-3485
-3731

query I rowsort
SELECT ALL 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5039
SELECT DISTINCT * FROM tab0 WHERE 2 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5039
SELECT DISTINCT * FROM tab0 WHERE 2 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL + 2 * + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + 2 * + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 64 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT 46 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5042
SELECT 46 / - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 = - col0
----

query I rowsort
SELECT 64 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL OR NOT NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5045
SELECT 53 AS col1, COUNT( * ) AS col0 FROM tab2 cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-5045
SELECT 53 AS col1, COUNT ( * ) AS col0 FROM tab2 cor0
----
53
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) > ( NULL )
----
0

query II rowsort
SELECT DISTINCT - + col0 AS col1, ( 63 ) * - ( - col2 ) - 28 AS col2 FROM tab0 AS cor0
----
-15
2933
-87
602
-97
6209

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT DISTINCT - 56 DIV - col2 col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5048
SELECT DISTINCT - 56 / - col2 col0 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - col1 * - - 91 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1274
-4277
-455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + - 25 col1 FROM tab1 AS cor0
----
-121
-84
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ) col2, - 7 AS col2 FROM tab0
----
15
-7
87
-7
97
-7

query I rowsort
SELECT ALL + col0 * - col0 + col2 AS col1 FROM tab2
----
-2093
-4056
-5567

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col2 * - - ( 58 )
----

query I rowsort
SELECT ALL + 79 * - 14 * - - col2 AS col0 FROM tab0
----
-109494
-11060
-51982

query I rowsort
SELECT DISTINCT col2 + 3 * + + ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - col2 <> ( + 36 ) * - col2
----
51
67
77

query I rowsort
SELECT 74 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ( 40 ) AS col0 FROM tab0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - + COUNT( * ) - + + MIN( DISTINCT + 73 ) AS col2 FROM tab0 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5059
SELECT - + COUNT ( * ) - + + MIN ( DISTINCT + 73 ) AS col2 FROM tab0 cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT - ( - col2 ) * - + ( + CAST( + 63 AS SIGNED ) ) + col0 - - col1 AS col2 FROM tab1 AS cor0
----
-3627
-4146
-5983

skipif mysql # not compatible
query I rowsort label-5060
SELECT - ( - col2 ) * - + ( + CAST ( + 63 AS INTEGER ) ) + col0 - - col1 AS col2 FROM tab1 AS cor0
----
-3627
-4146
-5983

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE + 57 BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5061
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE + 57 BETWEEN - col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - COUNT( * ) * + - 77 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-5062
SELECT - COUNT ( * ) * + - 77 FROM tab0
----
231

query I rowsort
SELECT ( - ( 51 ) ) AS col1 FROM tab2
----
-51
-51
-51

query I rowsort
SELECT + ( - - col2 ) FROM tab0 WHERE NOT + + 0 IS NOT NULL
----

query I rowsort
SELECT - col1 * + + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - 46 / 21 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + 67 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT ALL + 33 DIV 19 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + 33 / 19 AS col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT - CAST( NULL AS SIGNED ) * col1 * - col2 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT - CAST ( NULL AS INTEGER ) * col1 * - col2 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT + 17 * 5 + - + CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab0
----
4
64
84

skipif mysql # not compatible
query I rowsort label-5070
SELECT + 17 * 5 + - + CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab0
----
4
64
84

query I rowsort
SELECT + 6 + + + col2 AS col1 FROM tab2
----
29
46
64

query I rowsort
SELECT + col1 + - - 71 + ( + 11 ) - + 98 + - col1 * - col1 * - 79 + col2 AS col0 FROM tab0
----
-34824
-518207
5

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * + col2 + - col2 * - - 56 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT 53 + - COUNT( * ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-5074
SELECT 53 + - COUNT ( * ) FROM tab1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT - ( col2 ) * - 78 FROM tab1 WHERE - 77 / + + 5 + - 16 BETWEEN 6 AND - + col1 / + + 88 + - col2 - - CAST( 56 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5075
SELECT - ( col2 ) * - 78 FROM tab1 WHERE - 77 / + + 5 + - 16 BETWEEN 6 AND - + col1 / + + 88 + - col2 - - CAST ( 56 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 + 16 + 77 AS col0 FROM tab0
----
114
174
94

query I rowsort
SELECT ALL col1 + + + 91 AS col1 FROM tab2
----
142
158
168

query I rowsort
SELECT + + 53 FROM tab2 WHERE + + 43 IS NOT NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query III rowsort label-5079
SELECT ALL - 57, + ( + 17 ) * + COUNT( * ) AS col1, ( + 42 ) AS col0 FROM tab1 AS cor0
----
-57
51
42

skipif mysql # not compatible
query III rowsort label-5079
SELECT ALL - 57, + ( + 17 ) * + COUNT ( * ) AS col1, ( + 42 ) AS col0 FROM tab1 AS cor0
----
-57
51
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT DISTINCT - CAST( + 35 AS SIGNED ) FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - CAST ( + 35 AS INTEGER ) FROM tab0 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + 86 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5082
SELECT * FROM tab2 WHERE ( ( - CAST( - 75 AS SIGNED ) ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5082
SELECT * FROM tab2 WHERE ( ( - CAST ( - 75 AS INTEGER ) ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5083
SELECT DISTINCT * FROM tab1 WHERE ( ( col0 - ( + + 75 ) ) IN ( col0 * + CAST( NULL AS DECIMAL ) - 83 ) )
----

skipif mysql # not compatible
query III rowsort label-5083
SELECT DISTINCT * FROM tab1 WHERE ( ( col0 - ( + + 75 ) ) IN ( col0 * + CAST ( NULL AS REAL ) - 83 ) )
----

query I rowsort
SELECT ALL - col2 - col0 + + ( - col1 ) + + col1 + - + 17 + + col1 + + col0 * - - 40 * col1 FROM tab2 AS cor0
----
197076
200917
93805

query I rowsort
SELECT ALL col0 - - col1 * - + col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT - - 89 DIV + 83 + - - col0 * col2 * - - col0 AS col1 FROM tab1 cor0
----
249697
426276
563109

skipif mysql # not compatible
query I rowsort label-5086
SELECT - - 89 / + 83 + - - col0 * col2 * - - col0 AS col1 FROM tab1 cor0
----
249697
426276
563109

query I rowsort
SELECT DISTINCT - - col1 - 95 AS col1 FROM tab1 AS cor0
----
-48
-81
-90

query I rowsort
SELECT - col2 + + - col1 * 82 AS col0 FROM tab0 AS cor0
----
-1732
-181
-6689

query I rowsort
SELECT ALL + + col1 - 34 AS col1 FROM tab1 AS cor0
----
-20
-29
13

query II rowsort
SELECT DISTINCT + + ( + col1 ), + 11 FROM tab0 AS cor0
----
1
11
21
11
81
11

query I rowsort
SELECT + + col2 FROM tab2 cor0 WHERE 66 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL MIN( ALL + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL MIN ( ALL + col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT ALL + 77 - - 19 FROM tab0 WHERE NOT NULL IS NOT NULL
----
96
96
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) <= + col2 - + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT DISTINCT - 3, COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-5096
SELECT DISTINCT - 3, COUNT ( * ) AS col1 FROM tab1
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - col2
----

query I rowsort
SELECT ALL - ( 49 ) AS col0 FROM tab2
----
-49
-49
-49

query II rowsort
SELECT DISTINCT - 52, + col2 AS col1 FROM tab2
----
-52
23
-52
40
-52
58

query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 + + - 47 FROM tab2 AS cor0
----
51
4
67
20
77
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + 18 ) col1 FROM tab1 cor0 WHERE - 50 - + col2 + - col1 < - col2
----
-18
-18
-18

query II rowsort
SELECT col1 * + + col1 * + 0 AS col1, col2 AS col2 FROM tab1 cor0
----
0
59
0
68
0
96

query I rowsort
SELECT ALL + 2 AS col1 FROM tab0 cor0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col1, ( + + col0 ) )
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT + + 65 * - + col2 FROM tab1 AS cor0
----
-3835
-4420
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - ( - col0 ) FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5109
SELECT DISTINCT - - 66 AS col1, col0 DIV - col2 AS col1 FROM tab2 AS cor0
----
66
-1
66
-2

skipif mysql # not compatible
query II rowsort label-5109
SELECT DISTINCT - - 66 AS col1, col0 / - col2 AS col1 FROM tab2 AS cor0
----
66
-1
66
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT DISTINCT - 70 DIV - - col2 + - col0 FROM tab0 AS cor0
----
-16
-94
-97

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT - 70 / - - col2 + - col0 FROM tab0 AS cor0
----
-16
-94
-97

query I rowsort
SELECT DISTINCT + + col1 * - 74 FROM tab1 AS cor0
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT - - col1 AS col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + SUM( DISTINCT - - col1 ) - + 90 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
105

skipif mysql # not compatible
query I rowsort label-5114
SELECT + SUM ( DISTINCT - - col1 ) - + 90 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - MAX( ALL - + col2 ) FROM tab0 AS cor0 WHERE 31 BETWEEN ( col2 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT - MAX ( ALL - + col2 ) FROM tab0 AS cor0 WHERE 31 BETWEEN ( col2 ) AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT ALL col2 DIV - 98 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5116
SELECT ALL col2 / - 98 col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT - col2 * col1 DIV - ( - col0 ) AS col2 FROM tab2
----
-25
-48
-51

skipif mysql # not compatible
query I rowsort label-5117
SELECT - col2 * col1 / - ( - col0 ) AS col2 FROM tab2
----
-25
-48
-51

query II rowsort
SELECT - col0 AS col2, 53 FROM tab1
----
-51
53
-85
53
-91
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT DISTINCT - - COUNT( * ), - 10 - + SUM( - col2 ) AS col1 FROM tab2 cor0
----
3
111

skipif mysql # not compatible
query II rowsort label-5119
SELECT DISTINCT - - COUNT ( * ), - 10 - + SUM ( - col2 ) AS col1 FROM tab2 cor0
----
3
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT + 24 / + ( + col1 ) < - col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5120
SELECT + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT + 24 / + ( + col1 ) < - col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5121
SELECT + col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5121
SELECT + col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5122
SELECT + CAST( NULL AS DECIMAL ) AS col0, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5122
SELECT + CAST ( NULL AS REAL ) AS col0, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query II rowsort
SELECT col1 AS col1, + ( 56 ) * - col1 * col0 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
1
-15035
21
-103182
81
-68745

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT + col2 DIV 62 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5124
SELECT + col2 / 62 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 BETWEEN NULL AND 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT - MIN( + 92 ) * + 40 FROM tab2
----
-3680

skipif mysql # not compatible
query I rowsort label-5126
SELECT - MIN ( + 92 ) * + 40 FROM tab2
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL + 52 * - COUNT( * ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + 52 * - COUNT ( * ) FROM tab0
----
-156

query I rowsort
SELECT col1 * - + col1 AS col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5129
SELECT CAST( NULL AS SIGNED ) / + 29 AS col2, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5129
SELECT CAST ( NULL AS INTEGER ) / + 29 AS col2, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT col0 * col1 AS col1, 58 * + 56 + col0 AS col2 FROM tab0
----
1215
3263
1827
3335
97
3345

query I rowsort
SELECT + col1 - + 69 / col1 FROM tab1 WHERE NOT + + 91 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 40, col1, - 30 * + col2, + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT + + COUNT( * ) * - 62 AS col2 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-5133
SELECT + + COUNT ( * ) * - 62 AS col2 FROM tab1 AS cor0
----
-186

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= NULL AND NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - - col0 AS col0, + 2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT + - 73 + + col0 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5136
SELECT + - 73 + + col0 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT - - col2 + - 95 DIV - 24 FROM tab1 cor0
----
62
71
99

skipif mysql # not compatible
query I rowsort label-5137
SELECT - - col2 + - 95 / - 24 FROM tab1 cor0
----
62
71
99

query I rowsort
SELECT col0 + - col1 + col1 FROM tab0 cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 42, col1 col2 FROM tab1 AS cor0
----
42
14
42
47
42
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5140
SELECT DISTINCT + CAST( - - 91 AS SIGNED ) * col0 * col0 col2 FROM tab0 cor0
----
20475
688779
856219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5140
SELECT DISTINCT + CAST ( - - 91 AS INTEGER ) * col0 * col0 col2 FROM tab0 cor0
----
20475
688779
856219

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - COUNT( * ) + 16 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5141
SELECT - COUNT ( * ) + 16 FROM tab2 AS cor0
----
13

query I rowsort
SELECT - col1 + 64 * - col0 AS col0 FROM tab1 AS cor0
----
-3278
-5445
-5871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT + - col0 * - CAST( NULL AS SIGNED ) / + 42 + - - 52 + CAST( NULL AS SIGNED ) + - col1 * + col2 * - + col1 * col2 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-5143
SELECT + - col0 * - CAST ( NULL AS INTEGER ) / + 42 + - - 52 + CAST ( NULL AS INTEGER ) + - col1 * + col2 * - + col1 * col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + - col1 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-100
-10368
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ALL COUNT( * ) + 17 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL COUNT ( * ) + 17 FROM tab1 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + - ( - - col0 ) col0 FROM tab1 AS cor0
----
-11
-5
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - 20 col1 FROM tab0
----
119
30
67

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 + - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT col2 / + CAST( NULL AS SIGNED ) FROM tab0 WHERE - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-5149
SELECT col2 / + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col0 <> NULL
----

query II rowsort
SELECT + col1, + 46 + 58 FROM tab0
----
1
104
21
104
81
104

query II rowsort
SELECT DISTINCT - col1 * + - col2, + col1 * - + col2 AS col1 FROM tab0
----
210
-210
3807
-3807
99
-99

query I rowsort
SELECT DISTINCT + 44 * col1 * - 34 FROM tab2 AS cor0
----
-100232
-115192
-76296

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL + - COUNT( * ) * - + 66 + - 90 AS col2 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL + - COUNT ( * ) * - + 66 + - 90 AS col2 FROM tab2 AS cor0
----
108

query I rowsort
SELECT - - col2 - - col1 + + + col2 + + col2 FROM tab0 AS cor0
----
222
298
51

query I rowsort
SELECT DISTINCT col0 * - + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5156
SELECT ALL 85 DIV COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL 85 / COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL + col0 + + + 27 FROM tab0
----
114
124
42

query I rowsort
SELECT DISTINCT - 80 * - ( + col0 ) + - col1 FROM tab1 AS cor0
----
4066
6795
7233

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL 48 * - COUNT( * ) * - - 88 FROM tab0 AS cor0
----
-12672

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL 48 * - COUNT ( * ) * - - 88 FROM tab0 AS cor0
----
-12672

query I rowsort
SELECT - 41 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND col0 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT ALL - CAST( + - 74 AS SIGNED ) FROM tab1 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL - CAST ( + - 74 AS INTEGER ) FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 cor0 WHERE NOT NULL <= - col0 * col1 * - - col0 + + - col1
----

query I rowsort
SELECT ALL - 68 FROM tab1 AS cor0 WHERE 9 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 85 + - 57 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 93 + - col2 IS NOT NULL
----

query I rowsort
SELECT + 76 FROM tab2 WHERE NOT - 56 IS NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5167
SELECT ALL + 18 AS col1, + COUNT( * ) AS col1 FROM tab1
----
18
3

skipif mysql # not compatible
query II rowsort label-5167
SELECT ALL + 18 AS col1, + COUNT ( * ) AS col1 FROM tab1
----
18
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5168
SELECT DISTINCT 10 DIV - + COUNT( * ) AS col0 FROM tab0 WHERE NOT - - 12 > + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT 10 / - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - - 12 > + + col0
----
-3

query II rowsort
SELECT - col2 AS col0, 35 FROM tab0
----
-10
35
-47
35
-99
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - 96 col2 FROM tab1
----
5664
6528
9216

query II rowsort
SELECT DISTINCT 66 AS col1, col2 FROM tab0
----
66
10
66
47
66
99

query II rowsort
SELECT + 59, - col0 AS col2 FROM tab0 cor0
----
59
-15
59
-87
59
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, - col1 AS col0 FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL + + MAX( DISTINCT - ( + 86 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + + MAX ( DISTINCT - ( + 86 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT 34 * - + 12 * - COUNT( * ) FROM tab2 AS cor0
----
1224

skipif mysql # not compatible
query I rowsort label-5176
SELECT 34 * - + 12 * - COUNT ( * ) FROM tab2 AS cor0
----
1224

query I rowsort
SELECT ALL - 47 + - + col0 + + col2 AS col2 FROM tab0 cor0
----
-124
-15
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) > ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + 71 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + 71 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col2 * + col0 * - col0 - col2 - - ( + col0 ) - 18 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 - - - col0 AS col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5183
SELECT - 75 + - COUNT( * ) + + CAST( NULL AS SIGNED ) * + COUNT( * ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT - 75 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 + + 50 FROM tab2
----
108
73
90

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab1 WHERE - ( - 51 ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 3 - + ( 87 ) AS col0 FROM tab0 cor0
----
-84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 47 )
----

query I rowsort
SELECT ALL - - 5 * + - col1 - - + col1 - - col1 * col1 AS col2 FROM tab2 AS cor0
----
2397
4221
5621

onlyif mysql # DIV for integer division: 
query II rowsort label-5189
SELECT + col0 DIV - 78 AS col0, 33 * + + col1 AS col0 FROM tab1
----
-1
1551
-1
165
0
462

skipif mysql # not compatible
query II rowsort label-5189
SELECT + col0 / - 78 AS col0, 33 * + + col1 AS col0 FROM tab1
----
-1
1551
-1
165
0
462

query I rowsort
SELECT - - ( col2 ) AS col0 FROM tab1 WHERE NOT ( - col0 <> NULL )
----

query I rowsort
SELECT ALL - 79 AS col0 FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NULL IS NULL
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT DISTINCT col2 * - 63 FROM tab0
----
-2961
-6237
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT col1 FROM tab1 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) * - 46 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5193
SELECT col1 FROM tab1 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) * - 46 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT DISTINCT + 79 * - col0 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + 79 * - col0 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 93 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - - col2 + + 16 - + 4 / - 72 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT + COUNT( ALL - ( 90 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5196
SELECT + COUNT ( ALL - ( 90 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 61 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5198
SELECT DISTINCT + + col2 AS col2, 95 / - CAST( NULL AS SIGNED ) * - col2 col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5198
SELECT DISTINCT + + col2 AS col2, 95 / - CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 8 col2 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT col2 * - col1 * + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
237160
260362
59823

skipif mysql # not compatible
query I rowsort label-5200
SELECT col2 * - col1 * + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT + 48 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT + 48 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT ALL - 60 * - COUNT( * ) FROM tab1 WHERE - 61 NOT IN ( + col0 + col0 )
----
180

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - 60 * - COUNT ( * ) FROM tab1 WHERE - 61 NOT IN ( + col0 + col0 )
----
180

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + 0 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + ( 7 ) FROM tab0
----
147
567
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 51 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + + MAX( col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5206
SELECT + + MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT DISTINCT 97 + + + 73 + col0 * - - CAST( NULL AS SIGNED ) - - 80 + + 39 * - col1 + + - col2 * - col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT 97 + + + 73 + col0 * - - CAST ( NULL AS INTEGER ) - - 80 + + 39 * - col1 + + - col2 * - col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE 51 NOT IN ( col1, col2 + 71 * - - 59, - col0 )
----
14
47
5

query I rowsort
SELECT DISTINCT - ( 44 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( - col0 + - 90 * col2 + - col1 ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 25 + ( + 52 ) + - ( + ( - col2 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT + col1 + - + 73 DIV + - col1 + - col1 + + - 7 AS col1 FROM tab1 AS cor0
----
-2
-6
7

skipif mysql # not compatible
query I rowsort label-5212
SELECT + col1 + - + 73 / + - col1 + - col1 + + - 7 AS col1 FROM tab1 AS cor0
----
-2
-6
7

query I rowsort
SELECT - 14 + + + col2 FROM tab1 AS cor0
----
45
54
82

query II rowsort
SELECT ALL + 88 AS col0, - 76 * - - col2 FROM tab0 AS cor0
----
88
-3572
88
-7524
88
-760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL - CAST( col1 AS SIGNED ) + col2 FROM tab2 cor0 WHERE NOT + 32 + col2 / + + col0 >= + 80 + - col1 + + col1 - - col2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - CAST ( col1 AS INTEGER ) + col2 FROM tab2 cor0 WHERE NOT + 32 + col2 / + + col0 >= + 80 + - col1 + + col1 - - col2
----
-28
-37
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT - COUNT( + - CAST( + ( - col2 ) AS SIGNED ) ) + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT - COUNT ( + - CAST ( + ( - col2 ) AS INTEGER ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col0 * + col0 * 50 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5218
SELECT ALL + 84 FROM tab1 WHERE NOT NULL IN ( - 36 * - CAST( NULL AS SIGNED ) * col1 / + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + 84 FROM tab1 WHERE NOT NULL IN ( - 36 * - CAST ( NULL AS INTEGER ) * col1 / + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 AND + 77
----

query II rowsort
SELECT ALL col1 - - col1 AS col0, - 44 FROM tab0
----
162
-44
2
-44
42
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5221
SELECT + 26 - col1 DIV + col0 + + - col0 - CAST( + - 72 AS SIGNED ) FROM tab0 AS cor0
----
1
11
78

skipif mysql # not compatible
query I rowsort label-5221
SELECT + 26 - col1 / + col0 + + - col0 - CAST ( + - 72 AS INTEGER ) FROM tab0 AS cor0
----
1
11
78

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 23 + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL COUNT( + col2 ) + 18 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL COUNT ( + col2 ) + 18 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL - - 21 AS col0 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + ( COUNT( * ) ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5225
SELECT + ( COUNT ( * ) ) col2 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + - ( - + 61 ) AS col2 FROM tab0 AS cor0
----
61

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * col2 < NULL
----

query I rowsort
SELECT DISTINCT 90 * col0 AS col0 FROM tab2
----
4140
5760
6750

query II rowsort
SELECT col0, col1 * + 25 AS col1 FROM tab1
----
51
350
85
125
91
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT + MIN( ALL - 19 ) * 68 AS col1 FROM tab2
----
-1292

skipif mysql # not compatible
query I rowsort label-5232
SELECT + MIN ( ALL - 19 ) * 68 AS col1 FROM tab2
----
-1292

query I rowsort
SELECT ALL - + 96 AS col1 FROM tab1 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5234
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - - 56 FROM tab1
----
-2856
-4760
-5096

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - - 56 FROM tab1
----
-2856
-4760
-5096

query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 AS col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT 64 * - - col1 AS col1 FROM tab0
----
1344
5184
64

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT NULL > - + col2 + col2 * 22
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 45 / + + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT 92 * + COUNT( * ) col0 FROM tab2
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5239
SELECT 92 * + COUNT ( * ) col0 FROM tab2
----
276

query I rowsort
SELECT + 12 * + - col0 AS col0 FROM tab0
----
-1044
-1164
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL + ( 78 ) * COUNT( * ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + ( 78 ) * COUNT ( * ) FROM tab2
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT SUM( col2 ) * - COUNT( * ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-5242
SELECT SUM ( col2 ) * - COUNT ( * ) FROM tab1
----
-669

onlyif mysql # DIV for integer division: 
query II rowsort label-5243
SELECT + col0 DIV - col0 AS col0, col0 col2 FROM tab0
----
-1
15
-1
87
-1
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5243
SELECT + col0 / - col0 AS col0, col0 col2 FROM tab0
----
-1
15
-1
87
-1
97

query II rowsort
SELECT DISTINCT - col2 AS col2, - 63 * 23 * + - col2 AS col0 FROM tab1 AS cor0
----
-59
85491
-68
98532
-96
139104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 + 17 + - 46 * + - col2 col2 FROM tab0 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT 59 + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-5246
SELECT 59 + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
50

query I rowsort
SELECT + col1 + + 15 FROM tab2
----
66
82
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5248
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 79 * - 4 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + col2 * - col2 + - 73 AS col2 FROM tab1 AS cor0
----
128951
17332
217255

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ALL - COUNT( * ) - + 79 - - COUNT( * ) * - COUNT( * ) * ( + 29 ) AS col2 FROM tab1 AS cor0
----
-343

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL - COUNT ( * ) - + 79 - - COUNT ( * ) * - COUNT ( * ) * ( + 29 ) AS col2 FROM tab1 AS cor0
----
-343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT - CAST( + col0 AS SIGNED ) - - col0 FROM tab1 WHERE - - col1 BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5252
SELECT - CAST ( + col0 AS INTEGER ) - - col0 FROM tab1 WHERE - - col1 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - 69 + - + col1 FROM tab2
----
-120
-136
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + 36 + - SUM( ALL - + 90 ) AS col0 FROM tab2
----
306

skipif mysql # not compatible
query I rowsort label-5254
SELECT + 36 + - SUM ( ALL - + 90 ) AS col0 FROM tab2
----
306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT 65 + CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
18
51
60

skipif mysql # not compatible
query I rowsort label-5255
SELECT 65 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
18
51
60

query I rowsort
SELECT DISTINCT - col0 + + + 94 AS col0 FROM tab0
----
-3
7
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT - col2 + + 35 DIV 65 * + ( + col2 ) col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5257
SELECT - col2 + + 35 / 65 * + ( + col2 ) col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL - COUNT( * ) * - 83 + - + COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL - COUNT ( * ) * - 83 + - + COUNT ( * ) FROM tab0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + COUNT( * ) * + + ( 27 ) + 99 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-5259
SELECT + COUNT ( * ) * + + ( 27 ) + 99 FROM tab0
----
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE + + col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT 14 + col2 AS col1 FROM tab2
----
37
54
72

query I rowsort
SELECT 33 AS col0 FROM tab1 cor0 WHERE NOT col2 * - ( 51 ) IN ( + - col2 )
----
33
33
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 45 NOT BETWEEN - 7 * - col2 / - 67 - - + col0 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT - - ( - - 21 ) AS col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT ALL col0 * - + 25 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( col1 * - col2 * - col1 + - col2 )
----

query II rowsort
SELECT ALL - 35 AS col1, col2 * + col0 AS col1 FROM tab1 AS cor0
----
-35
4896
-35
5015
-35
6188

query II rowsort
SELECT - 2 * - - col2, col0 AS col1 FROM tab2
----
-116
75
-46
46
-80
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + ( + - MAX( - - 75 ) ) * + COUNT( * ) AS col0 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-5269
SELECT + ( + - MAX ( - - 75 ) ) * + COUNT ( * ) AS col0 FROM tab0
----
-225

query I rowsort
SELECT - ( - ( + 81 ) ) AS col1 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL MIN( DISTINCT - 40 ) AS col2 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL MIN ( DISTINCT - 40 ) AS col2 FROM tab0 AS cor0
----
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 89 < NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 32 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT COUNT( + 42 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5274
SELECT COUNT ( + 42 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 43 + + col1 AS col2, col2 * - + col1 * - 49, - col2 * - col1 col0 FROM tab1 cor0
----
9 values hashing to 2b74d06d2b9b628d9c0a661076aec157

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NOT ( NOT NULL > NULL ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) <= 38 + + - 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5278
SELECT DISTINCT 36 * + 88 + + + 88, - COUNT( * ) AS col2 FROM tab2
----
3256
-3

skipif mysql # not compatible
query II rowsort label-5278
SELECT DISTINCT 36 * + 88 + + + 88, - COUNT ( * ) AS col2 FROM tab2
----
3256
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT DISTINCT ( - + col0 ) + col0 DIV + col1 FROM tab1
----
-48
-68
-90

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT ( - + col0 ) + col0 / + col1 FROM tab1
----
-48
-68
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT 22 * + COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5280
SELECT 22 * + COUNT ( * ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT col1 * - + ( - col0 ) FROM tab0 cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + - col0 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 + + - col2 col2 FROM tab0
----
-127
-179
-90

query III rowsort
SELECT * FROM tab1 WHERE + + ( - col0 ) - + col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + ( + col0 ) * 46 AS col0 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT ALL col0 * col0 * col0 AS col2 FROM tab2 AS cor0
----
262144
421875
97336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT + CAST( - + ( - + COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5288
SELECT + CAST ( - + ( - + COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( ( - 66 ) ) AS col2 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT ALL + col2 * + 91 - + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
2092
3639
5277

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + col2 * + 91 - + col0 / col0 AS col1 FROM tab2 AS cor0
----
2092
3639
5277

query II rowsort
SELECT ALL - 38, + 91 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-38
91
-38
91
-38
91

query I rowsort
SELECT col2 * - col0 * + - col2 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE ( ( NOT ( NULL ) NOT BETWEEN + col1 AND - 83 + - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5294
SELECT * FROM tab2 WHERE NULL NOT IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5294
SELECT * FROM tab2 WHERE NULL NOT IN ( - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5295
SELECT DISTINCT COUNT( * ) DIV 24 AS col0, - 47 AS col2 FROM tab2
----
0
-47

skipif mysql # not compatible
query II rowsort label-5295
SELECT DISTINCT COUNT ( * ) / 24 AS col0, - 47 AS col2 FROM tab2
----
0
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5296
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - ( - + MAX( + 66 ) ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - ( - + MAX ( + 66 ) ) FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + MAX( + 94 ) AS col0 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-5298
SELECT + MAX ( + 94 ) AS col0 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL - COUNT( DISTINCT + 89 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL - COUNT ( DISTINCT + 89 ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col2 ), + 47 col2 FROM tab2 AS cor0
----
23
47
40
47
58
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col1 * + col2 AND + 57 + - - 4 - - col1
----

query I rowsort
SELECT ALL 52 * + 23 AS col1 FROM tab0
----
1196
1196
1196

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT + ( + + 0 ) * - 21 DIV - col2 - - - col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5303
SELECT + ( + + 0 ) * - 21 / - col2 - - - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL ( + 35 ) AS col1 FROM tab1
----
35
35
35

query II rowsort
SELECT + col0 AS col0, + col0 AS col1 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT MAX( ALL + col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5306
SELECT MAX ( ALL + col1 ) FROM tab0 cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT 41 DIV - 84 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT 41 / - 84 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 7 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col2 + ( - - col1 ) FROM tab1
----
-31
31
70

query I rowsort
SELECT ALL + col1 * + - col1 * + 43 * - col0 AS col2 FROM tab1
----
429828
8643817
91375

query I rowsort
SELECT DISTINCT col1 * + 85 FROM tab0
----
1785
6885
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 12 / col2 >= NULL
----

query I rowsort
SELECT ALL col1 + 68 AS col1 FROM tab0
----
149
69
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5314
SELECT 99 * - CAST( + + AVG ( + - col1 ) AS SIGNED ) - MIN( DISTINCT - 13 ) AS col0 FROM tab1 AS cor0
----
2191

skipif mysql # not compatible
query I rowsort label-5314
SELECT 99 * - CAST ( + + AVG ( + - col1 ) AS INTEGER ) - MIN ( DISTINCT - 13 ) AS col0 FROM tab1 AS cor0
----
2191

query I rowsort
SELECT + col2 * + - col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT DISTINCT + COUNT( col1 ) * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5316
SELECT DISTINCT + COUNT ( col1 ) * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 53 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT 40 * - ( + - MIN( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
2360

skipif mysql # not compatible
query I rowsort label-5318
SELECT 40 * - ( + - MIN ( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
2360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col0 FROM tab0
----
-35
-35
-35

query I rowsort
SELECT col2 * + 3 * - col1 AS col2 FROM tab1
----
-4032
-885
-9588

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT + col2 DIV col1 DIV - - col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5321
SELECT + col2 / col1 / - - col1 FROM tab1
----
0
0
2

query II rowsort
SELECT ALL col1 AS col2, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab0 WHERE NOT ( + col1 IS NULL )
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT - COUNT( * ), + 18 AS col1 FROM tab1
----
-3
18

skipif mysql # not compatible
query II rowsort label-5324
SELECT - COUNT ( * ), + 18 AS col1 FROM tab1
----
-3
18

query I rowsort
SELECT ( + ( col0 ) ) * - - col0 + 80 AS col0 FROM tab0
----
305
7649
9489

query II rowsort
SELECT - col0 AS col1, + col1 AS col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL ( + 34 ) * - COUNT( * ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL ( + 34 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-102

query I rowsort
SELECT DISTINCT - - ( col2 ) * - col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - 70 * col0 col2 FROM tab2 AS cor0
----
-164220
-344960
-351750

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) * + ( + 98 ) + 4 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5331
SELECT ALL COUNT( - col2 ), - CAST( 69 AS SIGNED ) AS col0 FROM tab1
----
3
-69

skipif mysql # not compatible
query II rowsort label-5331
SELECT ALL COUNT ( - col2 ), - CAST ( 69 AS INTEGER ) AS col0 FROM tab1
----
3
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5332
SELECT - COUNT( * ) DIV + + 54 * + - COUNT( * ) * + - 68 * + 66 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT - COUNT ( * ) / + + 54 * + - COUNT ( * ) * + - 68 * + 66 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
0

query I rowsort
SELECT + col0 * + - ( + + ( - col1 ) ) FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5335
SELECT DISTINCT + ( COUNT( * ) ), + 44 AS col2 FROM tab1 AS cor0
----
3
44

skipif mysql # not compatible
query II rowsort label-5335
SELECT DISTINCT + ( COUNT ( * ) ), + 44 AS col2 FROM tab1 AS cor0
----
3
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col0 FROM tab2 cor0
----
56
56
56

query II rowsort
SELECT col1 / - col0, 23 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 58, 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT - - ( - + ( - + col0 ) ) * + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - - ( - + ( - + col0 ) ) * + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab2 AS cor0 WHERE ( NOT + 94 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + - COUNT( - + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + - COUNT ( - + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL + - MIN( + - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL + - MIN ( + - col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5342
SELECT - CAST( NULL AS SIGNED ) + - 89, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5342
SELECT - CAST ( NULL AS INTEGER ) + - 89, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + 7 IS NULL
----

query I rowsort
SELECT col1 + + 59 AS col2 FROM tab2 AS cor0
----
110
126
136

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT 95 + col0 DIV col0 AS col1 FROM tab0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-5345
SELECT 95 + col0 / col0 AS col1 FROM tab0
----
96
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5346
SELECT DISTINCT 5 AS col0, SUM( ALL + col1 ) AS col0 FROM tab0
----
5
103

skipif mysql # not compatible
query II rowsort label-5346
SELECT DISTINCT 5 AS col0, SUM ( ALL + col1 ) AS col0 FROM tab0
----
5
103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 78 + 13 * + - col1 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT 49 DIV - col2 * + - col0 + 51 AS col1 FROM tab1
----
51
51
51

skipif mysql # not compatible
query I rowsort label-5348
SELECT 49 / - col2 * + - col0 + 51 AS col1 FROM tab1
----
51
51
51

query I rowsort
SELECT 55 AS col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - col0 * + col2 + - 53 FROM tab1
----
-4949
-5068
-6241

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 73 - - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT - - COUNT( * ) FROM tab2 WHERE 54 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT - - COUNT ( * ) FROM tab2 WHERE 54 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col0 col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + - col0 * + 20 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + 24 * - col2 - col1 - col2 FROM tab1 AS cor0
----
110861
221074
83480

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( 78 IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL 10 - - COUNT( * ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL 10 - - COUNT ( * ) FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5360
SELECT - MAX( ALL + - 41 ), + 58 AS col1 FROM tab1 AS cor0
----
41
58

skipif mysql # not compatible
query II rowsort label-5360
SELECT - MAX ( ALL + - 41 ), + 58 AS col1 FROM tab1 AS cor0
----
41
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * 98 NOT BETWEEN + + 35 AND + - 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= + col2 / - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col0 = NULL
----
0

query I rowsort
SELECT DISTINCT - 11 * col1 FROM tab1
----
-154
-517
-55

query II rowsort
SELECT DISTINCT col0, col1 * - col2 * + 30 + - - col0 FROM tab0
----
15
-114195
87
-6213
97
-2873

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT - MAX( ALL - 26 ) * + 97 AS col2 FROM tab2
----
2522

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - MAX ( ALL - 26 ) * + 97 AS col2 FROM tab2
----
2522

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5367
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND - CAST( + - col1 AS SIGNED )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-5367
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND - CAST ( + - col1 AS INTEGER )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT COUNT( DISTINCT + - 15 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5368
SELECT COUNT ( DISTINCT + - 15 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL - col2 * - - 57 AS col0 FROM tab1
----
-3363
-3876
-5472

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL IN ( - 72, col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5371
SELECT + - COUNT( * ) DIV + 53 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT + - COUNT ( * ) / + 53 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + ( ( - 26 ) ) * + 3 + - + 13 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-91
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 >= - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 82 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query II rowsort
SELECT col1 AS col0, - col0 * + 80 AS col0 FROM tab0 AS cor0
----
1
-7760
21
-6960
81
-1200

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) >= + + 78 * 66 * col1
----

onlyif mysql # aggregate syntax: 
query III rowsort label-5377
SELECT + COUNT( * ), + ( + + COUNT( * ) ) * COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
9
3

skipif mysql # not compatible
query III rowsort label-5377
SELECT + COUNT ( * ), + ( + + COUNT ( * ) ) * COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
9
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 * + col2 IS NULL
----

query II rowsort
SELECT + col0 AS col0, + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + 21 * - col0 IS NOT NULL
----
51
67
77

query II rowsort
SELECT ALL col2, - 61 FROM tab1 AS cor0
----
59
-61
68
-61
96
-61

query I rowsort
SELECT ALL ( - col2 ) * + 65 + + - col0 AS col1 FROM tab0
----
-3070
-6532
-737

query I rowsort
SELECT DISTINCT - col2 + col1 - 28 AS col1 FROM tab2
----
-19
0
9

query I rowsort
SELECT ALL - col2 + 63 + + 58 FROM tab2 WHERE NULL IS NULL
----
63
81
98

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE + - col1 BETWEEN col2 AND NULL
----

query I rowsort
SELECT col2 * 70 * col2 + + + 77 AS col2 FROM tab2
----
112077
235557
37107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT ALL - CAST( + ( - 75 ) AS SIGNED ) + - - col0 * 86 FROM tab1
----
4461
7385
7901

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - CAST ( + ( - 75 ) AS INTEGER ) + - - col0 * 86 FROM tab1
----
4461
7385
7901

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 + - 56 * + col0
----

query I rowsort
SELECT DISTINCT col2 + + col1 * + col0 FROM tab0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT 20 - + MAX( ALL + col0 ) AS col0 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-5390
SELECT 20 - + MAX ( ALL + col0 ) AS col0 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - + MAX( DISTINCT 7 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-5391
SELECT - + MAX ( DISTINCT 7 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7

query I rowsort
SELECT DISTINCT + 72 * - 75 FROM tab2
----
-5400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5393
SELECT - col1 DIV CAST( - col2 AS SIGNED ), ( col1 ) AS col0 FROM tab0 AS cor0
----
0
1
1
81
2
21

skipif mysql # not compatible
query II rowsort label-5393
SELECT - col1 / CAST ( - col2 AS INTEGER ), ( col1 ) AS col0 FROM tab0 AS cor0
----
0
1
1
81
2
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT MAX( DISTINCT - col1 ) * + - MAX( ALL + - 34 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT MAX ( DISTINCT - col1 ) * + - MAX ( ALL + - 34 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 67 * col0 * + + col0 FROM tab0 AS cor0 WHERE NOT - 56 + + 42 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT DISTINCT - col0 + 58 + - 25 + + col2 + - - col0 * - - 50 + col1 - - + col1 + - col0 * - col1 FROM tab2 AS cor0 WHERE - 91 + col0 IN ( col0 + + - col0 + + + col2 / 1 / + CAST( NULL AS SIGNED ), + col2 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT - col0 + 58 + - 25 + + col2 + - - col0 * - - 50 + col1 - - + col1 + - col0 * - col1 FROM tab2 AS cor0 WHERE - 91 + col0 IN ( col0 + + - col0 + + + col2 / 1 / + CAST ( NULL AS INTEGER ), + col2 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5397
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5397
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + MAX( DISTINCT + col0 ) * - MAX( DISTINCT 61 ) + + 47 AS col0 FROM tab0 AS cor0
----
-5870

skipif mysql # not compatible
query I rowsort label-5398
SELECT + MAX ( DISTINCT + col0 ) * - MAX ( DISTINCT 61 ) + + 47 AS col0 FROM tab0 AS cor0
----
-5870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT - CAST( + - col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5399
SELECT - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT - 50 * - 7 FROM tab1
----
350
350
350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5401
SELECT CAST( + col1 AS SIGNED ), col1 FROM tab0
----
1
1
21
21
81
81

skipif mysql # not compatible
query II rowsort label-5401
SELECT CAST ( + col1 AS INTEGER ), col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5402
SELECT - + col0 * 16 AS col1, + col0 AS col0 FROM tab1 WHERE NOT - + 63 + + 7 BETWEEN + CAST( - col0 AS SIGNED ) + - col0 + - col1 AND NULL
----

skipif mysql # not compatible
query II rowsort label-5402
SELECT - + col0 * 16 AS col1, + col0 AS col0 FROM tab1 WHERE NOT - + 63 + + 7 BETWEEN + CAST ( - col0 AS INTEGER ) + - col0 + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT 69 * + col0 AS col2 FROM tab1
----
3519
5865
6279

query I rowsort
SELECT + col1 * + col2 * - - 9 AS col0 FROM tab0
----
1890
34263
891

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT - COUNT( DISTINCT col0 ) FROM tab2 WHERE NOT - col1 NOT IN ( 1 )
----
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT - COUNT ( DISTINCT col0 ) FROM tab2 WHERE NOT - col1 NOT IN ( 1 )
----
0

query I rowsort
SELECT DISTINCT + + 92 + - 93 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL 69 * + - MIN( 34 ) FROM tab0
----
-2346

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL 69 * + - MIN ( 34 ) FROM tab0
----
-2346

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT - col0 + - col0 <= - + col0 * - col0 * col0 / + 40
----

query I rowsort
SELECT DISTINCT - 44 + + 27 FROM tab2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5410
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, - col1 AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5410
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, - col1 AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query II rowsort
SELECT DISTINCT + 42 AS col1, - col2 AS col2 FROM tab2 AS cor0
----
42
-23
42
-40
42
-58

query I rowsort
SELECT DISTINCT 95 - - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
146
180
186

query I rowsort
SELECT + - col1 + + ( + 78 ) AS col2 FROM tab1 AS cor0
----
31
64
73

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col2 * - 67 - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + col1 + - + 82 FROM tab0
----
-178
-180
-190

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5416
SELECT - 29 * + ( - 61 ) - col1 + col1 + CAST( + col0 AS SIGNED ) DIV + 63 col2 FROM tab0 cor0
----
1769
1770
1770

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5416
SELECT - 29 * + ( - 61 ) - col1 + col1 + CAST ( + col0 AS INTEGER ) / + 63 col2 FROM tab0 cor0
----
1769
1770
1770

query I rowsort
SELECT ALL + 31 - ( + col2 ) * + + 25 * - col0 AS col2 FROM tab1 AS cor0
----
122431
125406
154731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * col0 * ( + col1 ) - - - ( col1 ) col0, ( - 84 ) + + col1 FROM tab0 AS cor0
----
158928
-63
18144
-3
9408
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 - + - col2 col2 FROM tab0 AS cor0
----
144
55
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5420
SELECT - SUM( + 22 ) + + COUNT( * ) * - COUNT( * ) * + 16 AS col1, + COUNT( - - 59 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1494
9

skipif mysql # not compatible
query II rowsort label-5420
SELECT - SUM ( + 22 ) + + COUNT ( * ) * - COUNT ( * ) * + 16 AS col1, + COUNT ( - - 59 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1494
9

query I rowsort
SELECT + - 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 col0 FROM tab2 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * - + col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT + ( + MAX( DISTINCT col1 ) ) * + ( + 17 ) * SUM( col2 ) FROM tab2 AS cor0
----
158389

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + ( + MAX ( DISTINCT col1 ) ) * + ( + 17 ) * SUM ( col2 ) FROM tab2 AS cor0
----
158389

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT - - COUNT( DISTINCT - col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - - COUNT ( DISTINCT - col1 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT CAST( + - COUNT( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5427
SELECT CAST ( + - COUNT ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 99 * - + col1 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT + CAST( NULL AS SIGNED ) * - col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5429
SELECT + CAST ( NULL AS INTEGER ) * - col1 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 * - + col1 >= NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT 68 * COUNT( * ) FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-5432
SELECT 68 * COUNT ( * ) FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT COUNT( * ) - - 90 AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-5433
SELECT COUNT ( * ) - - 90 AS col1 FROM tab2
----
93

query I rowsort
SELECT ALL - col1 + + 50 AS col1 FROM tab2
----
-1
-17
-27

query III rowsort
SELECT ALL * FROM tab1 WHERE 50 * col0 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT COUNT( ALL + col2 ) - MIN( ALL + ( + ( + ( - col2 ) ) ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT COUNT ( ALL + col2 ) - MIN ( ALL + ( + ( + ( - col2 ) ) ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - 60 + col0 NOT BETWEEN NULL AND 87 * + 78
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 - col1 ) NOT BETWEEN 46 * - col1 AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5439
SELECT * FROM tab1 WHERE NOT col2 / 6 BETWEEN + CAST( + col0 AS SIGNED ) AND + 97 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5439
SELECT * FROM tab1 WHERE NOT col2 / 6 BETWEEN + CAST ( + col0 AS INTEGER ) AND + 97 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 82 + 8 FROM tab1
----
90
90
90

query I rowsort
SELECT ALL 60 * + col0 FROM tab2
----
2760
3840
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT 56 * MIN( DISTINCT 83 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT 56 * MIN ( DISTINCT 83 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 - col0 * col0 AS col0 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL SUM( DISTINCT - col0 ) + 50 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL SUM ( DISTINCT - col0 ) + 50 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) <> + col1 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( 83 ) < ( NULL )
----

query I rowsort
SELECT ALL col0 + + 15 FROM tab0
----
102
112
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL + COUNT( * ) * 43 AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + COUNT ( * ) * 43 AS col0 FROM tab2
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT + col0 + 76 DIV 60 AS col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-5449
SELECT + col0 + 76 / 60 AS col0 FROM tab2
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5450
SELECT ALL col2 + 87 DIV col2 AS col1 FROM tab2
----
26
42
59

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL col2 + 87 / col2 AS col1 FROM tab2
----
26
42
59

query I rowsort
SELECT col0 + - 61 AS col0 FROM tab1
----
-10
24
30

query I rowsort
SELECT ALL - col0 * 6 AS col2 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT + 54 * + col1 AS col2 FROM tab0
----
1134
4374
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5454
SELECT * FROM tab0 WHERE ( - col1 ) BETWEEN + col2 / col2 AND - col2 * - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5454
SELECT * FROM tab0 WHERE ( - col1 ) BETWEEN + col2 / col2 AND - col2 * - CAST ( col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col1 * 37 + 4
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + 24 < - col1 * 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT CAST( + col0 AS SIGNED ) col2 FROM tab0 WHERE NOT - col2 >= - 16
----
15
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5457
SELECT CAST ( + col0 AS INTEGER ) col2 FROM tab0 WHERE NOT - col2 >= - 16
----
15
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5458
SELECT DISTINCT 34 DIV - COUNT( * ) AS col0 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT 34 / - COUNT ( * ) AS col0 FROM tab2
----
-11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * col1 ) = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL SUM( DISTINCT + col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL SUM ( DISTINCT + col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
188

query I rowsort
SELECT 5 * col2 FROM tab0 AS cor0
----
235
495
50

query I rowsort
SELECT 53 * - 69 FROM tab1 AS cor0
----
-3657
-3657
-3657

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT MIN( DISTINCT + 88 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT MIN ( DISTINCT + 88 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 66 FROM tab1 cor0 CROSS JOIN tab0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT ALL + col2 DIV 48 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + col2 / 48 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT + - 11 AS col2 FROM tab0 AS cor0
----
-11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT - ( - COUNT( DISTINCT col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT - ( - COUNT ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT ALL 73 DIV 55 col0 FROM tab1 AS cor0 WHERE 13 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5469
SELECT ALL 73 / 55 col0 FROM tab1 AS cor0 WHERE 13 IS NOT NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT ALL - 76 DIV ( 83 ) AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - 76 / ( 83 ) AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab0 AS cor0 WHERE + 10 IS NOT NULL
----
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 72 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT CAST( NULL AS SIGNED ) * - - col2 + 1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT CAST ( NULL AS INTEGER ) * - - col2 + 1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 62 + 26 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - 83 AS col1 FROM tab2 WHERE NULL IS NULL
----
-83
-83
-83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN - 57 * 58 AND col1 * 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( * ) + 6 * COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5477
SELECT COUNT ( * ) + 6 * COUNT ( * ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ALL + 72 + COUNT( DISTINCT + col0 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL + 72 + COUNT ( DISTINCT + col0 ) FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT MIN( ALL 52 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-5479
SELECT MIN ( ALL 52 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - + col0 = - col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT DISTINCT - SUM( DISTINCT + CAST( 69 AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT NULL < ( 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - SUM ( DISTINCT + CAST ( 69 AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT NULL < ( 37 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - col0 + + col2 * 46 col2 FROM tab1 AS cor0
----
2804
3266
4481

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT + - COUNT( * ) * 92 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT + - COUNT ( * ) * 92 FROM tab1 AS cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + - COUNT( 46 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5485
SELECT + - COUNT ( 46 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 89 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT - COUNT( * ) - - + 89 + + ( + 96 ) + 58 * 1 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - COUNT ( * ) - - + 89 + + ( + 96 ) + 58 * 1 FROM tab2 AS cor0
----
240

query I rowsort
SELECT + 6 + - 42 FROM tab1 AS cor0
----
-36
-36
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 48 ) BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL + ( + - 9 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + ( + - 9 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT col1 + + ( - 55 ) AS col2 FROM tab0 AS cor0
----
-34
-54
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( - - col2 AS SIGNED ) * + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) * + col1 < NULL
----

query I rowsort
SELECT - col1 + col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT ALL - - ( + 49 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - - ( + 49 ) / col1 AS col2 FROM tab0 AS cor0
----
0
2
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + - 97 + + COUNT( * ) AS col1 FROM tab1 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5495
SELECT + - 97 + + COUNT ( * ) AS col1 FROM tab1 cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT - col1 + - col0 DIV - - ( + 60 ) AS col0 FROM tab0 cor0
----
-2
-22
-81

skipif mysql # not compatible
query I rowsort label-5496
SELECT - col1 + - col0 / - - ( + 60 ) AS col0 FROM tab0 cor0
----
-2
-22
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5497
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - col2 + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - col2 + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT + COUNT( * ) + + 38 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - - col2 / col0 >= NULL
----
38

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + COUNT ( * ) + + 38 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - - col2 / col0 >= NULL
----
38

query I rowsort
SELECT ALL - 77 + 13 * - col0 AS col1 FROM tab1 WHERE NOT col1 * + - 42 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 33 + + col2 AS col2 FROM tab1
----
26
35
63

query I rowsort
SELECT col1 FROM tab1 WHERE ( + + ( + col0 ) - + col1 ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND + col0 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - - col0 / 42 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT ALL CAST( NULL AS SIGNED ) * - col0 - + - 66 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 - + - 66 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + + col2 ) * col1 - - - col1 FROM tab0
----
189
3726
98

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab1 WHERE col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - COUNT( - - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5508
SELECT - COUNT ( - - col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5509
SELECT + + CAST( NULL AS DECIMAL ) * + col0 / - + col1 + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5509
SELECT + + CAST ( NULL AS REAL ) * + col0 / - + col1 + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 61 * + - ( - + col2 ) FROM tab2 AS cor0
----
1403
2440
3538

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) * - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-729

skipif mysql # not compatible
query II rowsort label-5511
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL - ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 - + 99 + + 98 * - 65 * ( - 87 ) <> - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + 37 + + - col2 BETWEEN ( col2 - col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT DISTINCT - col0 DIV - 12 AS col2 FROM tab0 AS cor0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT - col0 / - 12 AS col2 FROM tab0 AS cor0
----
1
7
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT DISTINCT - col1 DIV 35 AS col2 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT - col1 / 35 AS col2 FROM tab0 AS cor0
----
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - 56 - 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5518
SELECT col0 * + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5518
SELECT col0 * + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT + 6 + + CAST( NULL AS SIGNED ) + MAX( ALL col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + 6 + + CAST ( NULL AS INTEGER ) + MAX ( ALL col1 ) FROM tab2
----
NULL

query I rowsort
SELECT col1 * col2 * col1 AS col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT - 0 * - 21 FROM tab2 WHERE + 50 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT - 21, + SUM( ALL + col2 ) col2 FROM tab2
----
-21
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5522
SELECT - 21, + SUM ( ALL + col2 ) col2 FROM tab2
----
-21
121

query II rowsort
SELECT ALL col1 AS col0, + col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * 79 + + col2 col0 FROM tab1 AS cor0
----
3535
3544
3572

query I rowsort
SELECT ALL + - col1 * - 90 AS col1 FROM tab0 AS cor0
----
1890
7290
90

query II rowsort
SELECT - ( - col0 ), col1 AS col0 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL - 54 - - + col0 * + col2 * + 57 * - 21 AS col2 FROM tab0 AS cor0
----
-1041444
-11494845
-843939

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL > NULL )
----

query I rowsort
SELECT ALL - 90 AS col0 FROM tab0 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT COUNT( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT COUNT ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT MIN( - 15 ) + 34 * 82 FROM tab1 AS cor0 WHERE ( NOT - col0 IN ( + col0 ) )
----
2773

skipif mysql # not compatible
query I rowsort label-5533
SELECT MIN ( - 15 ) + 34 * 82 FROM tab1 AS cor0 WHERE ( NOT - col0 IN ( + col0 ) )
----
2773

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL - COUNT( * ) + 5 AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - COUNT ( * ) + 5 AS col1 FROM tab2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT + CAST( NULL AS SIGNED ) * + 80 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT + CAST ( NULL AS INTEGER ) * + 80 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT - 58 * - - SUM( ALL + col1 ) * + - COUNT( * ) AS col2 FROM tab1
----
11484

skipif mysql # not compatible
query I rowsort label-5536
SELECT - 58 * - - SUM ( ALL + col1 ) * + - COUNT ( * ) AS col2 FROM tab1
----
11484

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT - COUNT( DISTINCT - 89 ) * - - COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5537
SELECT - COUNT ( DISTINCT - 89 ) * - - COUNT ( * ) AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5538
SELECT DISTINCT col2, 89 DIV col0 FROM tab0
----
10
1
47
5
99
0

skipif mysql # not compatible
query II rowsort label-5538
SELECT DISTINCT col2, 89 / col0 FROM tab0
----
10
1
47
5
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5539
SELECT DISTINCT * FROM tab1 WHERE 34 / + CAST( NULL AS SIGNED ) * - - 55 * 3 * - CAST( - col0 AS SIGNED ) + - 73 < 58
----

skipif mysql # not compatible
query III rowsort label-5539
SELECT DISTINCT * FROM tab1 WHERE 34 / + CAST ( NULL AS INTEGER ) * - - 55 * 3 * - CAST ( - col0 AS INTEGER ) + - 73 < 58
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT DISTINCT - COUNT( * ) * - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT - COUNT ( * ) * - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - - 36 AS col0, col2 AS col1 FROM tab1 AS cor0 WHERE 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5542
SELECT DISTINCT - COUNT( * ) AS col1, ( - MIN( - + 95 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( 40 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5542
SELECT DISTINCT - COUNT ( * ) AS col1, ( - MIN ( - + 95 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( 40 )
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5543
SELECT ALL - 36 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - 36 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT ALL COUNT( ALL 70 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL COUNT ( ALL 70 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL col1 * + + col1 * + - col0 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5547
SELECT + 85 DIV 86 col1, + col2 * + col0 * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0
295885
0
420784
0
470016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5547
SELECT + 85 / 86 col1, + col2 * + col0 * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
0
295885
0
420784
0
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT DISTINCT - + COUNT( ALL + col2 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5548
SELECT DISTINCT - + COUNT ( ALL + col2 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5549
SELECT + 74 AS col0, - 38 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5549
SELECT + 74 AS col0, - 38 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 29 + + + col1 AS col2 FROM tab0
----
110
30
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5551
SELECT DISTINCT - 42 DIV - col0 + - col1 AS col0, - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-5551
SELECT DISTINCT - 42 / - col0 + - col1 AS col0, - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT DISTINCT - col2 DIV 51 * - - col1 col1 FROM tab2
----
-67
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5553
SELECT DISTINCT - col2 / 51 * - - col1 col1 FROM tab2
----
-67
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT NULL <> + col1 + + + 70
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 53 IS NOT NULL
----

query I rowsort
SELECT + - 98 FROM tab1 WHERE - col0 IN ( - col2, 30 * + 6 * - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + COUNT( DISTINCT + - 81 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5557
SELECT + COUNT ( DISTINCT + - 81 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + - 34 + - 45 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL col2 * - col0 + - - 79 AS col0 FROM tab1
----
-4817
-4936
-6109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - - col0 + + col1 col1 FROM tab0
----
-195
-76
19

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * - col0 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + 95 FROM tab1
----
146
180
186

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5563
SELECT * FROM tab2 AS cor0 WHERE - ( - col2 ) + + + col0 - + col2 + + CAST( NULL AS SIGNED ) + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5563
SELECT * FROM tab2 AS cor0 WHERE - ( - col2 ) + + + col0 - + col2 + + CAST ( NULL AS INTEGER ) + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 70 + - - ( col0 ) * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 95 - - + 37 + + col0 * + + 36 col1 FROM tab1 AS cor0
----
1829
3087
3309

query I rowsort
SELECT DISTINCT - 77 + ( - col2 ) + 3 + col2 * col1 + + ( + col0 ) * + col2 FROM tab1 AS cor0 WHERE 82 IS NULL
----

query I rowsort
SELECT ALL + 77 - col0 - - 56 + - col1 AS col0 FROM tab0 AS cor0
----
25
35
37

query I rowsort
SELECT + - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT col0 * - 89 * col0 * + 6 - + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + ( + 33 ) AS col1 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5571
SELECT 66, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
66
NULL
66
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-5571
SELECT 66, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
66
NULL
66
NULL
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT - ( MIN( ALL 41 ) ) AS col1 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5572
SELECT - ( MIN ( ALL 41 ) ) AS col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT col1 * - col2 * 23 * + - 13 FROM tab0 AS cor0
----
1138293
29601
62790

query I rowsort
SELECT DISTINCT + 3 * - + 97 AS col0 FROM tab0, tab0 cor0
----
-291

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 / + 36 * + col2 * - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT + CAST( NULL AS SIGNED ) * 66 FROM tab2 WHERE NOT ( NOT ( ( ( NOT ( - 83 + - - 34 ) = - col1 ) ) ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT + CAST ( NULL AS INTEGER ) * 66 FROM tab2 WHERE NOT ( NOT ( ( ( NOT ( - 83 + - - 34 ) = - col1 ) ) ) )
----
NULL
NULL
NULL

query I rowsort
SELECT 28 FROM tab1 WHERE NOT NULL IS NOT NULL
----
28
28
28

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 NOT IN ( + col0 + - + 8, col0, - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 68 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT DISTINCT ( + 22 ) DIV 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT ( + 22 ) / 93 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT col2 / + col1 * - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT col2 / + col1 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 84 * - 90 AS col1 FROM tab0 AS cor0
----
-7560
-7560
-7560

query I rowsort
SELECT + + col2 * - 49 AS col1 FROM tab1 cor0
----
-2891
-3332
-4704

query I rowsort
SELECT - 51 * + - 57 + + 32 FROM tab1 AS cor0
----
2939
2939
2939

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + - col1 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5586
SELECT ALL + col0 * + + CAST( NULL AS SIGNED ) + + col2 + + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + col0 * + + CAST ( NULL AS INTEGER ) + + col2 + + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5587
SELECT DISTINCT - COUNT( ALL - ( col0 ) ) + + 74 AS col0, + MIN( DISTINCT - col2 ) * - 7 AS col1 FROM tab1 AS cor0
----
71
672

skipif mysql # not compatible
query II rowsort label-5587
SELECT DISTINCT - COUNT ( ALL - ( col0 ) ) + + 74 AS col0, + MIN ( DISTINCT - col2 ) * - 7 AS col1 FROM tab1 AS cor0
----
71
672

query I rowsort
SELECT ALL - 44 + col2 FROM tab2
----
-21
-4
14

query III rowsort
SELECT * FROM tab2 WHERE 67 BETWEEN ( + 27 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5590
SELECT * FROM tab1 WHERE ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5590
SELECT * FROM tab1 WHERE ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 93 + - - col0 AS col2 FROM tab0
----
-6
-78
4

query III rowsort
SELECT * FROM tab1 WHERE + ( - - 39 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5593
SELECT + ( CAST( NULL AS DECIMAL ) ) + + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT + ( CAST ( NULL AS REAL ) ) + + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT - COUNT( * ) FROM tab0, tab2 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5594
SELECT - COUNT ( * ) FROM tab0, tab2 AS cor0 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5595
SELECT DISTINCT + COUNT( * ) + + 21 + + + COUNT( * ) + - - MIN( ALL - 26 ) AS col1, 71 AS col0 FROM tab0
----
1
71

skipif mysql # not compatible
query II rowsort label-5595
SELECT DISTINCT + COUNT ( * ) + + 21 + + + COUNT ( * ) + - - MIN ( ALL - 26 ) AS col1, 71 AS col0 FROM tab0
----
1
71

query I rowsort
SELECT DISTINCT + col2 * - col1 + - + 4 - col1 * col2 * - - col1 FROM tab2
----
-240244
-264252
-61000

query I rowsort
SELECT + col0 - - 6 * - 9 FROM tab1
----
-3
31
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL + COUNT( + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + COUNT ( + col0 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT ( - MIN( DISTINCT - - col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT ( - MIN ( DISTINCT - - col0 ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + + col0 * + 35 FROM tab0 AS cor0
----
3045
3395
525

query I rowsort
SELECT 96 FROM tab0 cor0 WHERE NOT ( - col1 ) = + 29 + + 6
----
96
96
96

query II rowsort
SELECT ALL - - col0 * - 69 + - ( 32 ) * + col2, col0 - col1 AS col1 FROM tab0 AS cor0
----
-2539
-66
-6323
66
-9861
96

query II rowsort
SELECT col2, 75 AS col0 FROM tab1
----
59
75
68
75
96
75

query II rowsort
SELECT ALL - col2 AS col2, - 98 AS col0 FROM tab2
----
-23
-98
-40
-98
-58
-98

query II rowsort
SELECT 29, + col0 FROM tab1
----
29
51
29
85
29
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - col0 * 57 FROM tab1
----
14
-2907
47
-5187
5
-4845

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT - 28 < - 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5608
SELECT col2, CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

skipif mysql # not compatible
query II rowsort label-5608
SELECT col2, CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - 37 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab1 AS cor0 WHERE + - col0 + + 24 - + col1 <> NULL AND NOT 8 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT + ( - + col0 ) + - + CAST( NULL AS SIGNED ) - + col1 + + 19 * col0 / - + ( col1 ) + - 83 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT + ( - + col0 ) + - + CAST ( NULL AS INTEGER ) - + col1 + + 19 * col0 / - + ( col1 ) + - 83 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 46 + + - col1 AS col1 FROM tab1 cor0
----
-1
32
41

query II rowsort
SELECT + 30 + - - col2 AS col1, 66 FROM tab0 AS cor0
----
129
66
40
66
77
66

query I rowsort
SELECT ALL - 35 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 * + + col2 AND 41
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / 21 * + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT COUNT( * ) + + MIN( col1 ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5617
SELECT COUNT ( * ) + + MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT - CAST( NULL AS SIGNED ) + - col1 * + ( - col1 ) * + col2 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT - CAST ( NULL AS INTEGER ) + - col1 * + ( - col1 ) * + col2 * - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL - MIN( col0 ) FROM tab0 WHERE + + col2 <= + 82 + + col1
----
-15

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - MIN ( col0 ) FROM tab0 WHERE + + col2 <= + 82 + + col1
----
-15

query I rowsort
SELECT ALL - col2 - col1 * col0 * - col2 + + ( - col2 ) FROM tab2 AS cor0
----
197040
291334
53912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT - + 98 * - + CAST( NULL AS SIGNED ) - - + 23 + - 99 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT - + 98 * - + CAST ( NULL AS INTEGER ) - - + 23 + - 99 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + 92 AS col2 FROM tab2 AS cor0
----
-34
-52
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * 48 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - 89
----

query I rowsort
SELECT DISTINCT + 83 - + col0 AS col0 FROM tab1 AS cor0
----
-2
-8
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 66 - - - MIN( + col1 ) FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5626
SELECT 66 - - - MIN ( + col1 ) FROM tab2 cor0
----
15

query I rowsort
SELECT col1 + - - 71 AS col1 FROM tab1 AS cor0
----
118
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 col2 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT SUM( + + ( + col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5630
SELECT SUM ( + + ( + col1 ) ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT 62 * + col2 / col2 * col0 FROM tab2 AS cor0 WHERE NOT NULL < col1 + + col0 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5632
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 + - - col0 + - - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5632
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 + - - col0 + - - CAST ( + col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5633
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT - 56 * + CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5633
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT - 56 * + CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - ( col1 ) * + col1 * + + col2 AS col0 FROM tab2 AS cor0
----
-1375929
-15100996
-9486400

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT DISTINCT - col1 * col2 DIV + col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - col1 * col2 / + col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT ALL - - col1 DIV 81 + - 4 col1 FROM tab0 AS cor0
----
-3
-4
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5636
SELECT ALL - - col1 / 81 + - 4 col1 FROM tab0 AS cor0
----
-3
-4
-4

query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab0 AS cor0 WHERE NOT col2 / + col2 + - 83 IS NOT NULL
----

query I rowsort
SELECT 92 * - - col2 AS col0 FROM tab2
----
2116
3680
5336

query II rowsort
SELECT DISTINCT + col1, - 81 - + 64 AS col2 FROM tab0
----
1
-145
21
-145
81
-145

query I rowsort
SELECT DISTINCT - col2 * - 95 FROM tab2
----
2185
3800
5510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT + 82 DIV + COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5641
SELECT + 82 / + COUNT ( * ) FROM tab1
----
27

query I rowsort
SELECT ALL 61 * - + col2 * - - col2 FROM tab0
----
-134749
-597861
-6100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT COUNT( * ) * + 49 * + + 0 DIV SUM( DISTINCT - 72 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT COUNT ( * ) * + 49 * + + 0 / SUM ( DISTINCT - 72 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 36
----

query II rowsort
SELECT - ( 89 ) * - col1 * col2 * - col1 AS col1, col0 AS col1 FROM tab0 AS cor0
----
-27444663
15
-392490
87
-8811
97

onlyif mysql # aggregate syntax: 
query