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 I rowsort label-5646
SELECT + COUNT( - - col0 ) FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT MAX( + col1 ) + - 39 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5647
SELECT MAX ( + col1 ) + - 39 FROM tab0 AS cor0
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT MIN( 22 ) AS col0 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5649
SELECT MIN ( 22 ) AS col0 FROM tab2 AS cor0
----
22

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT + - col2 DIV + col1 col0 FROM tab0 AS cor0
----
-99
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT + + COUNT( * ) * 55 * + 19 + - - 76 AS col0 FROM tab1 AS cor0
----
3211

skipif mysql # not compatible
query I rowsort label-5652
SELECT + + COUNT ( * ) * 55 * + 19 + - - 76 AS col0 FROM tab1 AS cor0
----
3211

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

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

query I rowsort
SELECT - col1 - - + col0 FROM tab1 AS cor0
----
37
44
80

query II rowsort
SELECT ALL - col2 + + + ( + 76 ) AS col1, - col1 AS col0 FROM tab1
----
-20
-14
17
-5
8
-47

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + 75 col0 FROM tab1
----
-16
-7
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT + SUM( DISTINCT col1 ) + - 93 * MAX( DISTINCT + col0 ) - - COUNT( * ) FROM tab2
----
-6777

skipif mysql # not compatible
query I rowsort label-5659
SELECT + SUM ( DISTINCT col1 ) + - 93 * MAX ( DISTINCT + col0 ) - - COUNT ( * ) FROM tab2
----
-6777

query I rowsort
SELECT ALL - 66 + + col2 FROM tab2
----
-26
-43
-8

query I rowsort
SELECT ALL 0 + - 2 + - 75 FROM tab2
----
-77
-77
-77

query I rowsort
SELECT ( - + col1 ) + + 64 FROM tab2
----
-13
-3
13

query I rowsort
SELECT DISTINCT - ( + - 42 ) * 84 FROM tab0
----
3528

query I rowsort
SELECT + col2 * - - 31 FROM tab2 cor0
----
1240
1798
713

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL - COUNT( ALL + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL - COUNT ( ALL + col1 ) FROM tab1
----
-3

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

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

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

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

query I rowsort
SELECT ALL ( + + col1 ) AS col2 FROM tab1 AS cor0 WHERE ( col2 * + col2 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - 32 * - + 76 * col0 AS col1 FROM tab1
----
124032
206720
221312

query I rowsort
SELECT DISTINCT col2 + - 17 + - + 29 - col2 FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * + ( + col1 ) col0 FROM tab1
----
1274
4277
455

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - MIN( DISTINCT 38 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-5675
SELECT - MIN ( DISTINCT 38 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-38

query I rowsort
SELECT col1 + col0 + - - col1 AS col0 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5677
SELECT ALL - CAST( - 62 AS SIGNED ) - - - col1 FROM tab1 AS cor0
----
15
48
57

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - CAST ( - 62 AS INTEGER ) - - - col1 FROM tab1 AS cor0
----
15
48
57

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

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

query I rowsort
SELECT + + col1 + - 81 AS col1 FROM tab0 cor0
----
-60
-80
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - col0 ) + 7 col1, - col2 AS col1 FROM tab1 AS cor0
----
58
-96
92
-59
98
-68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL NOT IN ( - col2 - - col2, col0 + 59, - col0 * + + 48 ) )
----

query I rowsort
SELECT col0 + ( col1 ) + col2 + col1 * + 23 * col1 * + col1 AS col1 FROM tab0 AS cor0
----
12223286
213121
220

query I rowsort
SELECT - col2 * + + col1 + - col1 * - col1 * - 3 FROM tab0 AS cor0
----
-102
-1533
-23490

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT - + 34 DIV - + 23 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5684
SELECT - + 34 / - + 23 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 29 * + - col1 + - 81 AS col2 FROM tab0 AS cor0 WHERE 45 > - col1 * + 45 + col2 + + col1 * + col0
----
-2430

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

skipif mysql # not compatible
query I rowsort label-5686
SELECT ( - + CAST ( NULL AS REAL ) ) * + ( - COUNT ( * ) ) * + + 87 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 79 * - col0 AS col1 FROM tab2 cor0
----
3634
5056
5925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT CAST( 87 AS SIGNED ) * 52 FROM tab0
----
4524
4524
4524

skipif mysql # not compatible
query I rowsort label-5688
SELECT CAST ( 87 AS INTEGER ) * 52 FROM tab0
----
4524
4524
4524

query I rowsort
SELECT DISTINCT 82 * + ( - + col0 ) + col0 + - + 18 * - col0 FROM tab2
----
-2898
-4032
-4725

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( col1 ) < - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT 83 + - 74 FROM tab0
----
9

query II rowsort
SELECT + col2 AS col2, col1 FROM tab2 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
23
51
40
77
58
67

query I rowsort
SELECT + - 9 * + ( + 49 ) AS col0 FROM tab2 AS cor0
----
-441
-441
-441

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5695
SELECT + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - - COUNT ( * ) + + - 11 col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 >= + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5697
SELECT - - CAST( NULL AS SIGNED ) * - + 5 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5697
SELECT - - CAST ( NULL AS INTEGER ) * - + 5 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - + col2 * + col0 AS col1, + col0 AS col2 FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 56 * + 58 FROM tab0
----
3248
3248
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT ALL 83 DIV + - col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL 83 / + - col2 FROM tab2
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col2 + - 98 + - col0 col2, ( + 7 ) * - 36, col0 FROM tab0
----
9 values hashing to a8ab547a65f0fcb2fc61e8700546bd88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT DISTINCT 1 DIV - - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT 1 / - - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 + 97 FROM tab2
----
22
33
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5708
SELECT ALL - col2 + + col1 AS col2, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
28
NULL
37
NULL
9
NULL

skipif mysql # not compatible
query II rowsort label-5708
SELECT ALL - col2 + + col1 AS col2, + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
28
NULL
37
NULL
9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5709
SELECT col2, + ( ( col0 ) ) + - + col0 + - col0 + + col0 + + - 25 + - + 76 AS col0 FROM tab2 WHERE NULL NOT IN ( 61 * col1 - - 71 / + - CAST( NULL AS SIGNED ), col2, ( - + 99 ), col0 + col1 )
----

skipif mysql # not compatible
query II rowsort label-5709
SELECT col2, + ( ( col0 ) ) + - + col0 + - col0 + + col0 + + - 25 + - + 76 AS col0 FROM tab2 WHERE NULL NOT IN ( 61 * col1 - - 71 / + - CAST ( NULL AS INTEGER ), col2, ( - + 99 ), col0 + col1 )
----

query I rowsort
SELECT DISTINCT - col0 - + ( + 45 ) FROM tab2 AS cor0
----
-109
-120
-91

query II rowsort
SELECT ALL 54 - - 96 AS col1, 0 FROM tab1 AS cor0
----
150
0
150
0
150
0

query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab0 cor0
----
-75

query I rowsort
SELECT ALL + ( - + col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL col1 + 68 FROM tab0
----
149
69
89

query I rowsort
SELECT col0 + + 78 FROM tab0
----
165
175
93

query I rowsort
SELECT ALL + 39 + - ( - + col0 ) FROM tab0
----
126
136
54

query I rowsort
SELECT col0 + - 32 AS col0 FROM tab1
----
19
53
59

query I rowsort
SELECT + 25 + 77 FROM tab2
----
102
102
102

query II rowsort
SELECT ALL - col2 AS col2, + col1 - - col2 * col1 FROM tab0
----
-10
231
-47
3888
-99
100

query I rowsort
SELECT 76 * + + col0 + 63 * + + col2 AS col1 FROM tab0
----
13609
4101
7242

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5721
SELECT - ( MIN( ALL - 55 ) ) * - - 52 + + 1 + ( - MAX( + col1 ) ) AS col2 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN col2 AND + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT - ( MIN ( ALL - 55 ) ) * - - 52 + + 1 + ( - MAX ( + col1 ) ) AS col2 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN col2 AND + - 89
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5722
SELECT - COUNT ( * ) / + ( 58 ) col1 FROM tab1
----
0

query I rowsort
SELECT - 43 * - col0 FROM tab0 WHERE NOT - - 17 - - col1 IS NOT NULL
----

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

query I rowsort
SELECT ALL + 14 AS col2 FROM tab0 cor0
----
14
14
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL 79 * MIN( DISTINCT col0 ) * SUM( + - 61 ) FROM tab1
----
-737307

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL 79 * MIN ( DISTINCT col0 ) * SUM ( + - 61 ) FROM tab1
----
-737307

query I rowsort
SELECT - - 68 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # DIV for integer division: 
query II rowsort label-5730
SELECT ALL + col0, - col0 DIV col2 col2 FROM tab1 AS cor0
----
51
0
85
-1
91
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5730
SELECT ALL + col0, - col0 / col2 col2 FROM tab1 AS cor0
----
51
0
85
-1
91
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 BETWEEN col1 * + + col1 - col0 AND 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL + + SUM( ALL - 47 ) FROM tab1 AS cor0 WHERE ( NULL ) = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + + SUM ( ALL - 47 ) FROM tab1 AS cor0 WHERE ( NULL ) = + col1
----
NULL

query I rowsort
SELECT + col0 + - - 90 AS col0 FROM tab0 AS cor0
----
105
177
187

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5734
SELECT - - col0 + - col1 - col0 DIV + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-12
-4
9

skipif mysql # not compatible
query I rowsort label-5734
SELECT - - col0 + - col1 - col0 / + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-12
-4
9

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

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

query II rowsort
SELECT - col2 + - col0 AS col0, col2 * - - col1 * - 9 FROM tab2
----
-104
-27720
-133
-34974
-69
-10557

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

skipif mysql # not compatible
query I rowsort label-5737
SELECT + COUNT ( * ) FROM tab0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT + col0 - 68 FROM tab0 WHERE - col2 IS NOT NULL
----
-53
19
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 * + col1 + col0 col0 FROM tab1
----
2535
345
779

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 17 / + 82 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE ( col2 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT DISTINCT - 44 * + CAST( - - 66 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-2919
-2991
-3001

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - 44 * + CAST ( - - 66 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-2919
-2991
-3001

query I rowsort
SELECT ALL - col1 * - - 44 * - 21 AS col2 FROM tab2
----
47124
61908
71148

query I rowsort
SELECT col1 + 43 AS col0 FROM tab2
----
110
120
94

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + COUNT( * ) + 13 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5748
SELECT + COUNT ( * ) + 13 FROM tab0 AS cor0
----
16

query II rowsort
SELECT + 50 + - - col1 * + + 75 AS col1, + 0 + + - col1 AS col1 FROM tab1 AS cor0
----
1100
-14
3575
-47
425
-5

query II rowsort
SELECT + 74 AS col2, col0 - - - 63 FROM tab2 cor0
----
74
-17
74
1
74
12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT col1 DIV - col1 col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5753
SELECT DISTINCT col1 / - col1 col0 FROM tab2 AS cor0
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT ALL COUNT( * ) * - 27 AS col2, COUNT( * ) AS col2 FROM tab2
----
-81
3

skipif mysql # not compatible
query II rowsort label-5756
SELECT ALL COUNT ( * ) * - 27 AS col2, COUNT ( * ) AS col2 FROM tab2
----
-81
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 70 >= - + ( - + col0 ) + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + COUNT( ALL - - 67 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5759
SELECT + COUNT ( ALL - - 67 ) AS col1 FROM tab2
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT col0 DIV + - col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5761
SELECT col0 / + - col0 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL - + 12 * - CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-1020
-1092
-612

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - + 12 * - CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-1020
-1092
-612

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

skipif mysql # not compatible
query I rowsort label-5763
SELECT COUNT ( * ) * - 2 / 65 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 * + 76 + + ( + col2 ) AS col2 FROM tab0 WHERE NOT NULL >= - 93
----

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 < - 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5767
SELECT + col0 * col1 * - - CAST( + + col2 AS SIGNED ) * - ( - + col2 ) AS col1, col1 - col0 FROM tab0 AS cor0
----
182700
-66
2683935
66
950697
-96

skipif mysql # not compatible
query II rowsort label-5767
SELECT + col0 * col1 * - - CAST ( + + col2 AS INTEGER ) * - ( - + col2 ) AS col1, col1 - col0 FROM tab0 AS cor0
----
182700
-66
2683935
66
950697
-96

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

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL + SUM ( ALL - + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL + SUM( - 66 ) AS col0 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + SUM ( - 66 ) AS col0 FROM tab2 AS cor0
----
-198

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT DISTINCT + - SUM( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + - SUM ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > + 43 * - ( - + 12 )
----

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

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

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

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

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

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

query I rowsort
SELECT ALL + 35 + - col0 * 95 * + 28 AS col2 FROM tab0
----
-231385
-257985
-39865

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT DISTINCT + ( - 10 ) DIV - col2 * + + col1 + + + col0 * - col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT + ( - 10 ) / - col2 * + + col1 + + + col0 * - col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT col1 * - 66 + + ( - 69 ) FROM tab2
----
-3435
-4491
-5151

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT 22 + MAX( ALL + + 65 ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5782
SELECT 22 + MAX ( ALL + + 65 ) AS col0 FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 75 + - col0 col2 FROM tab0 AS cor0
----
-162
-172
-90

query II rowsort
SELECT col0 + - + col2, 25 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( col1 ) + - col0
----

query I rowsort
SELECT ALL - - 95 * 60 FROM tab1 AS cor0
----
5700
5700
5700

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

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

query II rowsort
SELECT ALL - col0 - + 97 AS col2, - 73 + + col1 - col2 FROM tab1
----
-148
-155
-182
-127
-188
-94

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE + 11 < + col1
----
-21
-81

query I rowsort
SELECT DISTINCT - 51 * ( ( + ( col2 ) ) ) FROM tab2 AS cor0
----
-1173
-2040
-2958

onlyif mysql # DIV for integer division: 
query I rowsort label-5790
SELECT + + col1 * col1 DIV + col0 FROM tab2 AS cor0
----
56
59
92

skipif mysql # not compatible
query I rowsort label-5790
SELECT + + col1 * col1 / + col0 FROM tab2 AS cor0
----
56
59
92

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

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

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

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

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT MAX( DISTINCT + + 0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT MAX ( DISTINCT + + 0 ) AS col1 FROM tab1
----
0

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

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

query I rowsort
SELECT col1 - + 17 - - col0 FROM tab2 WHERE NOT - + col0 - - col1 <> + + 88
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT DISTINCT ( + CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0
----
-10
-47
-99

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

query I rowsort
SELECT DISTINCT + col2 * col1 * + - col1 * - ( + 81 ) AS col0 FROM tab2
----
19209960
21089322
4845663

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

query II rowsort
SELECT DISTINCT - 84 + + - 16 AS col2, 85 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-100
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 68 <> NULL
----

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

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

query I rowsort
SELECT + col2 + - - col0 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT + col0 + + + col0 + + col1 AS col0 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT - col0 * col2 DIV + ( - col1 ) + - + 10 AS col0 FROM tab2 AS cor0
----
10
23
54

skipif mysql # not compatible
query I rowsort label-5809
SELECT - col0 * col2 / + ( - col1 ) + - + 10 AS col0 FROM tab2 AS cor0
----
10
23
54

query I rowsort
SELECT DISTINCT 72 * col1 AS col1 FROM tab0
----
1512
5832
72

query I rowsort
SELECT ALL col1 * ( - - 15 ) + 2 + + col1 + 58 FROM tab2
----
1132
1292
876

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT + MIN( - 59 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5812
SELECT + MIN ( - 59 ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT DISTINCT + col2 + - 51 DIV col1 FROM tab1
----
49
67
93

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT + col2 + - 51 / col1 FROM tab1
----
49
67
93

query III rowsort
SELECT * FROM tab1 WHERE + 24 <= NULL
----

query II rowsort
SELECT ALL - col0 * + + col1 + - 6 AS col2, - col2 * + ( - 68 ) FROM tab0
----
-103
6732
-1221
3196
-1833
680

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT MAX( ALL 69 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT MAX ( ALL 69 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT + - 1 + + MIN( + - col0 ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT + - 1 + + MIN ( + - col0 ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT ALL - + 4 - 57 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-5820
SELECT - + col2 - - col2 * + 2, + col2 DIV col1 + - 21 AS col2 FROM tab0 AS cor0
----
10
-21
47
-21
99
78

skipif mysql # not compatible
query II rowsort label-5820
SELECT - + col2 - - col2 * + 2, + col2 / col1 + - 21 AS col2 FROM tab0 AS cor0
----
10
-21
47
-21
99
78

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

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

query II rowsort
SELECT + 16 - - 38 + 5, col0 FROM tab0 AS cor0
----
59
15
59
87
59
97

query I rowsort
SELECT ALL - col1 + - col1 AS col2 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT DISTINCT - 70 * + col0 + - 3 FROM tab0
----
-1053
-6093
-6793

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

query II rowsort
SELECT ALL - 49, + col1 FROM tab2 cor0
----
-49
51
-49
67
-49
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( NOT NULL <> NULL )
----

query I rowsort
SELECT DISTINCT - 46 * - col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5837
SELECT - + ( + + col1 ) DIV + col1 AS col1, 69 FROM tab2 AS cor0
----
-1
69
-1
69
-1
69

skipif mysql # not compatible
query II rowsort label-5837
SELECT - + ( + + col1 ) / + col1 AS col1, 69 FROM tab2 AS cor0
----
-1
69
-1
69
-1
69

query I rowsort
SELECT DISTINCT + + col0 * - 19 * - ( - col0 ) AS col1 FROM tab2 cor0
----
-106875
-40204
-77824

query I rowsort
SELECT ALL 97 * + 4 FROM tab2
----
388
388
388

query II rowsort
SELECT ALL - 39, 41 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to 7de559ad4bc8a9ef23cdfbb857229f08

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + col2 > 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 16 * - ( + col1 ) FROM tab2
----
-1072
-1232
-816

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

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

query I rowsort
SELECT - + 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

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

query II rowsort
SELECT - + 40 * col2 + col1 + + col0 + - + 18 + + - col1, - 41 AS col0 FROM tab2 AS cor0
----
-1554
-41
-2263
-41
-892
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5847
SELECT ALL - CAST( 24 AS SIGNED ) DIV + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - CAST ( 24 AS INTEGER ) / + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-8

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

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

query II rowsort
SELECT DISTINCT ( col2 ), + col2 * + 35 FROM tab1
----
59
2065
68
2380
96
3360

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

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

query I rowsort
SELECT ALL - col0 + + 38 - - - 38 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT + 22 + + 4 DIV + col1 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-5852
SELECT + 22 + + 4 / + col1 FROM tab1
----
22
22
22

query I rowsort
SELECT col0 + 55 AS col1 FROM tab1
----
106
140
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL 70 + + + MIN( - col0 ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL 70 + + + MIN ( - col0 ) FROM tab2
----
-5

query II rowsort
SELECT ALL + col0 + col2 AS col2, - col1 FROM tab2
----
104
-77
133
-67
69
-51

query I rowsort
SELECT DISTINCT + - 12 + - col0 + + + col0 FROM tab1 WHERE NULL < + - col2 * + col2 / col2 + - + col2 * col2 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5857
SELECT DISTINCT 54 + + col2 DIV 96 + + 83 FROM tab1
----
137
138

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT 54 + + col2 / 96 + + 83 FROM tab1
----
137
138

query III rowsort
SELECT * FROM tab0 WHERE col0 <> col1 + + + 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 22 + col2 AS col2 FROM tab1
----
118
81
90

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

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

query I rowsort
SELECT ALL ( + - col2 ) FROM tab2 cor0
----
-23
-40
-58

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

query I rowsort
SELECT - col2 * - col2 * + 39 FROM tab2 AS cor0
----
131196
20631
62400

query I rowsort
SELECT 54 * + - 73 * + 3 FROM tab0
----
-11826
-11826
-11826

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

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

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

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

query II rowsort
SELECT 72, col0 FROM tab0
----
72
15
72
87
72
97

query I rowsort
SELECT 95 * + + col1 FROM tab0
----
1995
7695
95

query I rowsort
SELECT ALL + 24 * - col1 * + col2 FROM tab0
----
-2376
-5040
-91368

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT DISTINCT 73 DIV - + 94 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT 73 / - + 94 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, + col0 col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
85
68
91
96
51

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5874
SELECT ALL col2 + 20 + - - CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL col2 + 20 + - - CAST ( CAST ( NULL AS REAL ) AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + - 14 + 65 FROM tab2
----
1115
709
961

query I rowsort
SELECT DISTINCT - AVG ( 11 ) FROM tab0 WHERE NOT - 91 + - + 51 * + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 29 * 66 + + col1 FROM tab1
----
-1867
-1900
-1909

query I rowsort
SELECT ALL + + 77 FROM tab2 AS cor0 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT DISTINCT MAX( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT MAX ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - 21 + + - ( + 69 ) FROM tab0 AS cor0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col0 ) ) + + 36 * - + col0 col0 FROM tab2 cor0
----
-1702
-2368
-2775

query I rowsort
SELECT ALL + - 59 AS col0 FROM tab0 cor0
----
-59
-59
-59

query I rowsort
SELECT - col1 * - 88 + - col1 - - - col0 AS col1 FROM tab0 AS cor0
----
-10
1740
7032

query I rowsort
SELECT DISTINCT 5 * col1 FROM tab0 AS cor0 WHERE NOT - col0 * + col0 = + col2 / - 30 * - col2
----
105
405
5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 <= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5886
SELECT 68 + - SUM ( + + col2 ) col0 FROM tab1 AS cor0
----
-155

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

query I rowsort
SELECT DISTINCT + 17 + 50 * + + ( - 28 ) FROM tab1
----
-1383

query I rowsort
SELECT ALL + col2 + - 27 AS col0 FROM tab0
----
-17
20
72

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - - col1 BETWEEN - + 62 + + - col1 + - col0 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT 12 + - COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL - COUNT( - 31 ) * + + MAX( DISTINCT col0 ) + COUNT( * ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - COUNT ( - 31 ) * + + MAX ( DISTINCT col0 ) + COUNT ( * ) FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL MAX( - 65 ) AS col2 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL MAX ( - 65 ) AS col2 FROM tab0
----
-65

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 49 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - + 91 col2 FROM tab0 AS cor0
----
134
7478
9318

query I rowsort
SELECT DISTINCT + col1 - 38 AS col0 FROM tab0 AS cor0
----
-17
-37
43

query I rowsort
SELECT + - col1 + + + 98 AS col2 FROM tab1 cor0
----
51
84
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT ALL - + CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - + CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
23
40
58

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

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

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

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

query I rowsort
SELECT col0 - - 86 * 27 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ( + MAX( DISTINCT - col1 ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5905
SELECT ( + MAX ( DISTINCT - col1 ) ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT ALL 66 + col2 FROM tab0 WHERE ( + col1 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT ALL - 81 + col1 DIV - col2 col2 FROM tab1 WHERE NULL IS NULL
----
-81
-81
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5907
SELECT ALL - 81 + col1 / - col2 col2 FROM tab1 WHERE NULL IS NULL
----
-81
-81
-81

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

query I rowsort
SELECT - 90 * + col2 AS col2 FROM tab0 WHERE NOT ( - 20 ) <> 78
----

query III rowsort
SELECT * FROM tab1 WHERE ( 30 ) = NULL
----

query I rowsort
SELECT + 17 + 61 FROM tab1
----
78
78
78

query I rowsort
SELECT ALL + ( - col2 ) * col1 + col1 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - 27 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT + 78 DIV col0 FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5914
SELECT + 78 / col0 FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
0
0
5

query I rowsort
SELECT - col0 * col1 FROM tab1 WHERE ( - 12 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - 53 + col0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) <> + col2 - + col1 * - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT - COUNT( * ) + - 15 AS col1 FROM tab1 WHERE NOT col2 < ( - col1 + - col1 )
----
-18

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - COUNT ( * ) + - 15 AS col1 FROM tab1 WHERE NOT col2 < ( - col1 + - col1 )
----
-18

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT + 18 DIV 99 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5922
SELECT + 18 / 99 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col2 AS col2 FROM tab2 AS cor0 WHERE + col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT + col2 DIV col2 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-5924
SELECT + col2 / col2 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT DISTINCT - 36 * + col2 AS col2 FROM tab0 cor0
----
-1692
-3564
-360

query I rowsort
SELECT col0 + 68 AS col0 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT 20 * COUNT( * ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5927
SELECT 20 * COUNT ( * ) AS col1 FROM tab2
----
60

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + - 67 * - 68 FROM tab0 AS cor0
----
4556

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

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

query I rowsort
SELECT DISTINCT - 66 * + ( + col2 * col0 ) FROM tab0 AS cor0
----
-46530
-57420
-633798

query I rowsort
SELECT ALL + 77 * - col2 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

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

query I rowsort
SELECT DISTINCT 32 * 37 AS col1 FROM tab1 AS cor0
----
1184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col1 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 66 ) NOT BETWEEN - 11 AND col1
----

query I rowsort
SELECT ALL + col2 * 98 AS col1 FROM tab0
----
4606
9702
980

query I rowsort
SELECT ALL + col2 * col2 + col1 AS col1 FROM tab2
----
1677
3431
580

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

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

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

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

query I rowsort
SELECT col2 * + 6 + 98 AS col0 FROM tab0
----
158
380
692

query I rowsort
SELECT ALL - 50 * - col0 - - 49 AS col0 FROM tab2
----
2349
3249
3799

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5943
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) + 44 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5943
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) + 44 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5946
SELECT 9 DIV - - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5946
SELECT 9 / - - COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT SUM( DISTINCT 91 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT SUM ( DISTINCT 91 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query I rowsort
SELECT ALL + + 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT 57 * - + col1 AS col2 FROM tab1
----
-2679
-285
-798

query IIIIII rowsort
SELECT * FROM tab0 cor0 INNER JOIN tab0 cor1 ON NULL <> 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ALL - + MIN( + + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL - + MIN ( + + col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - 17 * - - col2 * + 33 FROM tab2 AS cor0
----
-12903
-22440
-32538

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5958
SELECT MIN ( + 70 ) AS col2 FROM tab2 AS cor0
----
70

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + + 27 col2 FROM tab1
----
73
73
73

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN 12 - + col1 AND col2 + col0
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5964
SELECT 36 * + + CAST( NULL AS DECIMAL ) + + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5964
SELECT 36 * + + CAST ( NULL AS REAL ) + + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 0 * + col1 + - col0 + + col0 * - col0 AS col1 FROM tab1
----
-2652
-7310
-8372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT MAX( ALL CAST( - 41 AS SIGNED ) ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-5966
SELECT MAX ( ALL CAST ( - 41 AS INTEGER ) ) AS col1 FROM tab0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5967
SELECT ALL * FROM tab2 WHERE NOT + CAST( + + 28 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5967
SELECT ALL * FROM tab2 WHERE NOT + CAST ( + + 28 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col2 + + 85 * col2 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
5074
5848
8256

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

skipif mysql # not compatible
query I rowsort label-5969
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT CAST( 58 AS SIGNED ) col0 FROM tab0
----
58

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

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

query I rowsort
SELECT DISTINCT col0 + 37 FROM tab2 WHERE + - ( + col1 ) BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT DISTINCT - col0 + + 59 AS col0 FROM tab1
----
-26
-32
8

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

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

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

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

query I rowsort
SELECT - 11 + - 13 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

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

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

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

query I rowsort
SELECT ALL + + col1 - + - 82 FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT ALL - 44 * col0 - - ( + col1 ) FROM tab0 AS cor0
----
-3807
-4267
-579

query I rowsort
SELECT col1 + - - col0 AS col0 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 47 * + 56 IN ( + - col2 )
----

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

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

query I rowsort
SELECT ALL 96 * + col1 AS col0 FROM tab2 AS cor0
----
4896
6432
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL + 90 + + MAX( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 96 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL + 90 + + MAX ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 96 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 86 * + - 11 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
43539
60584
71008

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT + ( - - ( col1 ) ) DIV - + 79 + - ( - - 38 ) - + 63 DIV + 98 AS col0 FROM tab1
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-5989
SELECT + ( - - ( col1 ) ) / - + 79 + - ( - - 38 ) - + 63 / + 98 AS col0 FROM tab1
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT DISTINCT + col0 DIV + 93 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT + col0 / + 93 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5991
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - CAST( - col0 AS SIGNED ) + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5991
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - CAST ( - col0 AS INTEGER ) + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 97 + - col2 FROM tab0
----
-2
50
87

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

query I rowsort
SELECT ALL 72 - + - 80 * + 19 FROM tab1
----
1592
1592
1592

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

query II rowsort
SELECT + ( + 23 ) * + - 89 + + col0, col2 * 89 * 83 AS col2 FROM tab1
----
-1956
502316
-1962
435833
-1996
709152

query I rowsort
SELECT DISTINCT col1 * - 20 AS col1 FROM tab1
----
-100
-280
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT MAX( ALL - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + + col2 / - + 98 <> ( col1 + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT MAX ( ALL - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + + col2 / - + 98 <> ( col1 + + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - 71 * + col2 AS col1 FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT + - 59 * - MAX( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-295

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT + - 59 * - MAX ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-295

query I rowsort
SELECT + + col0 * col1 - - 85 FROM tab2 AS cor0
----
2431
5013
5110

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

query I rowsort
SELECT - - col0 * + + col1 * + - col0 * - col2 FROM tab1 AS cor0
----
2131375
26466076
3495744

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( 70 * - col2 * - ( - col1 ) * 48 - - 35 * col0 ) <> 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT ALL - col1 DIV col1 + - 0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - col1 / col1 + - 0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6006
SELECT ALL CAST( 76 AS SIGNED ), 96 AS col1 FROM tab2 AS cor0
----
76
96
76
96
76
96

skipif mysql # not compatible
query II rowsort label-6006
SELECT ALL CAST ( 76 AS INTEGER ), 96 AS col1 FROM tab2 AS cor0
----
76
96
76
96
76
96

query II rowsort
SELECT ALL ( + col1 ), + col2 - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * ( - 7 ) + col2 + col2 * col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 72 FROM tab1
----
1008
3384
360

query I rowsort
SELECT ALL col2 + - 40 AS col2 FROM tab2
----
-17
0
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT DISTINCT - AVG ( + + col0 ) FROM tab1 WHERE NULL BETWEEN - 54 AND ( + + CAST( NULL AS SIGNED ) * - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - AVG ( + + col0 ) FROM tab1 WHERE NULL BETWEEN - 54 AND ( + + CAST ( NULL AS INTEGER ) * - + col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6014
SELECT DISTINCT + col2 + + col1 - + 59 + col1 + col1 * 33 * + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
6533
73000
835

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT + col2 + + col1 - + 59 + col1 + col1 * 33 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
6533
73000
835

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + col0 - 26 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT + col1 AS col2 FROM tab2 WHERE - + CAST( + col1 AS SIGNED ) * 88 / - col2 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6017
SELECT + col1 AS col2 FROM tab2 WHERE - + CAST ( + col1 AS INTEGER ) * 88 / - col2 >= ( NULL )
----

query I rowsort
SELECT 56 + + - col0 AS col0 FROM tab0
----
-31
-41
41

query I rowsort
SELECT - 57 + + col0 AS col2 FROM tab2 AS cor0
----
-11
18
7

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE col0 < 74
----
51
77

query II rowsort
SELECT DISTINCT - 21 * + col2 + col1, + col0 FROM tab0 AS cor0
----
-189
87
-2078
97
-906
15

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

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

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

skipif mysql # not compatible
query I rowsort label-6024
SELECT + + CAST ( ( COUNT ( * ) ) AS INTEGER ) + + MIN ( DISTINCT + - col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6025
SELECT MAX( - CAST( + 95 AS SIGNED ) ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-6025
SELECT MAX ( - CAST ( + 95 AS INTEGER ) ) FROM tab1
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + 72 col0 FROM tab1
----
-4248
-4896
-6912

query I rowsort
SELECT DISTINCT + 29 * + col0 AS col0 FROM tab2
----
1334
1856
2175

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL + MAX( col1 ) * + 18 FROM tab1
----
846

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL + MAX ( col1 ) * + 18 FROM tab1
----
846

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT ALL - 77 * + + COUNT( * ) FROM tab1 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL - 77 * + + COUNT ( * ) FROM tab1 cor0
----
-231

query I rowsort
SELECT DISTINCT 95 / + 62 * - 87 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT - col1 / + 7 FROM tab1
----
-2
-6
0

query I rowsort
SELECT ALL + - 43 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT DISTINCT - col1 DIV 91 * col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT - col1 / 91 * col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + + 80 AS col1 FROM tab0 AS cor0
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT + - COUNT( - + 5 ) + + + 19 AS col0 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6038
SELECT + - COUNT ( - + 5 ) + + + 19 AS col0 FROM tab0 AS cor0
----
16

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / + col2 <> + 18 - + col2 * - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 75 + - col1 FROM tab0 cor0
----
-6
54
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT ALL - - COUNT( * ) + ( - 59 ) + - 24 col2 FROM tab0 WHERE 7 NOT IN ( - - 15 * + 23 * 88 - + 50, CAST( NULL AS SIGNED ) )
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6043
SELECT ALL - - COUNT ( * ) + ( - 59 ) + - 24 col2 FROM tab0 WHERE 7 NOT IN ( - - 15 * + 23 * 88 - + 50, CAST ( NULL AS INTEGER ) )
----
-83

query I rowsort
SELECT DISTINCT - 52 + + ( - col1 ) * + col1 - - + ( + col1 ) FROM tab2
----
-2602
-4474
-5904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6045
SELECT DISTINCT COUNT( DISTINCT - - col2 ) FROM tab0 WHERE NOT ( NOT NULL <= 93 / - + CAST( col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT COUNT ( DISTINCT - - col2 ) FROM tab0 WHERE NOT ( NOT NULL <= 93 / - + CAST ( col0 AS INTEGER ) )
----
0

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

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

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT col2 DIV + col0 + 26 AS col0 FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6048
SELECT col2 / + col0 + 26 AS col0 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT 31 - + + 22 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT - 60 AS col2 FROM tab2 WHERE NULL = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - ( 25 ) ) * col2 - col2 col2 FROM tab0 AS cor0
----
-1222
-2574
-260

query I rowsort
SELECT ALL + 0 - + col0 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 86 <> NULL
----

query I rowsort
SELECT + - col1 * 84 AS col0 FROM tab0 WHERE NOT col0 <> NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT col1 + col2 FROM tab2 WHERE NOT + col0 < 73 + CAST( NULL AS SIGNED ) + + col0 * - ( + col0 ) * col2 + + - 61
----

skipif mysql # not compatible
query I rowsort label-6059
SELECT col1 + col2 FROM tab2 WHERE NOT + col0 < 73 + CAST ( NULL AS INTEGER ) + + col0 * - ( + col0 ) * col2 + + - 61
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT DISTINCT - - 47, - MAX( - - col1 ) AS col1 FROM tab2 AS cor0
----
47
-77

skipif mysql # not compatible
query II rowsort label-6062
SELECT DISTINCT - - 47, - MAX ( - - col1 ) AS col1 FROM tab2 AS cor0
----
47
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6063
SELECT + 57 DIV + + SUM( col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6063
SELECT + 57 / + + SUM ( col0 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 44 * + + 56 FROM tab0 AS cor0
----
2464
2464
2464

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - COUNT( DISTINCT + 21 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6067
SELECT - COUNT ( DISTINCT + 21 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col2 ) < - 20
----

query I rowsort
SELECT 8 + - - 57 FROM tab0
----
65
65
65

query II rowsort
SELECT DISTINCT col2, - 62 * + col1 * col0 + + ( 36 ) AS col2 FROM tab2
----
23
-145416
40
-305500
58
-311514

query I rowsort
SELECT col2 + + col2 - + + col2 AS col2 FROM tab0
----
10
47
99

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - 38 AND - col2 * 60 > - - col2 / - + 72
----

query I rowsort
SELECT - 84 + - 83 * 2 AS col0 FROM tab0
----
-250
-250
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT + COUNT( * ) + 71 AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + COUNT ( * ) + 71 AS col2 FROM tab2
----
74

query I rowsort
SELECT + 89 + - 67 + + - 30 AS col0 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL - + col0 * + col1 * + + col2 - - 29 AS col2 FROM tab1 AS cor0
----
-25046
-290807
-68515

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT + 66 * - COUNT( * ) + + + 58 + COUNT( * ) FROM tab1 cor0
----
-137

skipif mysql # not compatible
query I rowsort label-6078
SELECT + 66 * - COUNT ( * ) + + + 58 + COUNT ( * ) FROM tab1 cor0
----
-137

query I rowsort
SELECT - col2 - - col0 + - - 60 + + ( + 76 ) AS col2 FROM tab0
----
104
134
213

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - COUNT( * ) * - - MAX( DISTINCT - col1 ) - 2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6080
SELECT - COUNT ( * ) * - - MAX ( DISTINCT - col1 ) - 2 FROM tab0
----
1

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

query I rowsort
SELECT DISTINCT 33 / + + 15 AS col0 FROM tab1 AS cor0 WHERE - 93 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6083
SELECT + MIN ( DISTINCT + CAST ( - + 27 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
-27

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

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

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

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

query II rowsort
SELECT col0, 45 * 31 FROM tab0
----
15
1395
87
1395
97
1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6088
SELECT 6 DIV - COUNT( * ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6088
SELECT 6 / - COUNT ( * ) FROM tab2
----
-2

query I rowsort
SELECT + 56 * + + col0 AS col1 FROM tab0
----
4872
5432
840

query II rowsort
SELECT col0, - col2 + + 90 FROM tab2
----
46
67
64
50
75
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT - ( COUNT( * ) ) * - 54 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-6091
SELECT - ( COUNT ( * ) ) * - 54 FROM tab0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6092
SELECT DISTINCT * FROM tab1 WHERE CAST( 20 AS SIGNED ) > + col1
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-6092
SELECT DISTINCT * FROM tab1 WHERE CAST ( 20 AS INTEGER ) > + col1
----
51
14
96
85
5
59

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

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

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

query II rowsort
SELECT - col2 + col0 AS col0, col1 FROM tab0 cor0
----
-2
1
-32
81
77
21

query I rowsort
SELECT DISTINCT - 61 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3599
-4148
-5856

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

skipif mysql # not compatible
query II rowsort label-6097
SELECT ALL + ( + 53 ) AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
53
NULL
53
NULL
53
NULL

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

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

query I rowsort
SELECT + 2 + - 57 FROM tab2 AS cor0
----
-55
-55
-55

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 98 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + + 4 / col0
----

query I rowsort
SELECT ALL - col1 + + col0 + - col0 * - - 86 * - 10 FROM tab2
----
39555
55027
64508

query I rowsort
SELECT DISTINCT + 57 + + col2 AS col0 FROM tab1
----
116
125
153

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

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT - col2, ( col2 ) AS col0 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + + 60 - col2 FROM tab1 AS cor0
----
-36
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT COUNT( * ) + - MIN( - col0 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6108
SELECT COUNT ( * ) + - MIN ( - col0 ) FROM tab1 AS cor0
----
94

query I rowsort
SELECT 53 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT SUM( - 91 ) AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-6110
SELECT SUM ( - 91 ) AS col0 FROM tab1
----
-273

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 42 col2 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT - col1 * + - col2 * + col0 DIV + col0 AS col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-6114
SELECT - col1 * + - col2 * + col0 / + col0 AS col2 FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 26 + + 45 * col2 col2 FROM tab0 WHERE NOT - 42 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6116
SELECT - 72 * + CAST( NULL AS SIGNED ) AS col1, MAX( + + 44 ) FROM tab1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-6116
SELECT - 72 * + CAST ( NULL AS INTEGER ) AS col1, MAX ( + + 44 ) FROM tab1
----
NULL
44

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

query I rowsort
SELECT ALL - col2 + - 15 FROM tab1 AS cor0
----
-111
-74
-83

query I rowsort
SELECT ALL - 4 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

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

query I rowsort
SELECT ALL - 91 + - 85 AS col0 FROM tab2
----
-176
-176
-176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6122
SELECT - + 6, + ( + 18 ) FROM tab1 WHERE col2 * + + CAST( NULL AS SIGNED ) * 30 = - col1
----

skipif mysql # not compatible
query II rowsort label-6122
SELECT - + 6, + ( + 18 ) FROM tab1 WHERE col2 * + + CAST ( NULL AS INTEGER ) * 30 = - col1
----

query I rowsort
SELECT - col1 + col2 + + col2 FROM tab2
----
-5
3
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6124
SELECT ALL COUNT( * ) AS col1, + MAX( - col2 ) FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
3
-59

skipif mysql # not compatible
query II rowsort label-6124
SELECT ALL COUNT ( * ) AS col1, + MAX ( - col2 ) FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
3
-59

query I rowsort
SELECT + col0 * 81 * + + col1 * - col1 + - col0 * - col1 AS col2 FROM tab0
----
-3105900
-7760
-7970400

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - + SUM( - 99 ) + + MIN( DISTINCT col0 ) + - + COUNT( ALL - 43 ) AS col1 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - + SUM ( - 99 ) + + MIN ( DISTINCT col0 ) + - + COUNT ( ALL - 43 ) AS col1 FROM tab0 AS cor0
----
309

query I rowsort
SELECT - + 81 FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
-81
-81
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL + - 19 * COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-171

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL + - 19 * COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-171

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( 74 ) * col0 * - col2 IS NOT NULL
----

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

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

query II rowsort
SELECT ALL 37 AS col1, 46 - - + 85 + + col1 + + - col2 * - - col1 + - - col2 AS col1 FROM tab0
----
37
-3548
37
-48
37
132

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * - + 77 col2 FROM tab0
----
-2233
-2233
-2233

onlyif mysql # aggregate syntax: 
query II rowsort label-6137
SELECT DISTINCT 27, MAX( DISTINCT + 2 ) + + 49 AS col2 FROM tab2
----
27
51

skipif mysql # not compatible
query II rowsort label-6137
SELECT DISTINCT 27, MAX ( DISTINCT + 2 ) + + 49 AS col2 FROM tab2
----
27
51

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab1 WHERE NOT + - col1 IS NULL
----
-45
23
26

query I rowsort
SELECT ALL - ( ( - col1 ) ) AS col2 FROM tab0
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT DISTINCT MAX( ALL + 49 ) + + COUNT( * ) AS col2 FROM tab0 cor0
----
52

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT MAX ( ALL + 49 ) + + COUNT ( * ) AS col2 FROM tab0 cor0
----
52

query II rowsort
SELECT ALL + 57, col2 FROM tab0 AS cor0
----
57
10
57
47
57
99

query I rowsort
SELECT 65 * ( - + col2 ) + - col2 FROM tab1
----
-3894
-4488
-6336

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

query I rowsort
SELECT - - ( - + 36 ) + - 24 + + col2 AS col1 FROM tab2 AS cor0
----
-2
-20
-37

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

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

query III rowsort
SELECT * FROM tab1 WHERE + + ( + 6 ) > - 67 * 64 * + ( col0 ) + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - col2 - - + ( - + col2 ) + + - 15 AS col2 FROM tab2
----
-131
-61
-95

query III rowsort
SELECT * FROM tab1 WHERE - 73 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * 34 + col0 FROM tab0
----
1613
3463
427

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT MIN( - 39 ) - - MAX( ALL ( col2 ) ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-6152
SELECT MIN ( - 39 ) - - MAX ( ALL ( col2 ) ) FROM tab1
----
57

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

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

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

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

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

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

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

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

query II rowsort
SELECT ( - 29 ) AS col1, + 33 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-29
33
-29
33
-29
33

query II rowsort
SELECT ALL + col0, col2 * + 9 - - 91 FROM tab0 AS cor0 WHERE ( NULL ) >= - col2
----

query II rowsort
SELECT ( col0 ) * - 51 + col1 * col1 * - 68, col0 FROM tab0
----
-34425
87
-446913
15
-5015
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6163
SELECT ALL col0 DIV + - 93 + - 85 AS col2, 63 AS col0 FROM tab0
----
-85
63
-85
63
-86
63

skipif mysql # not compatible
query II rowsort label-6163
SELECT ALL col0 / + - 93 + - 85 AS col2, 63 AS col0 FROM tab0
----
-85
63
-85
63
-86
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT DISTINCT SUM( + 38 ) AS col0 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT SUM ( + 38 ) AS col0 FROM tab1
----
114

query I rowsort
SELECT ALL + col0 * + - 25 * + col1 * + 91 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11211200
-11431875
-5337150

query I rowsort
SELECT + + 30 AS col0 FROM tab2 WHERE NOT - 33 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6167
SELECT ALL - col2 col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6167
SELECT ALL - col2 col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT - col2 * - ( - - ( - col0 ) ) + + + col0 * - + col2 FROM tab1
----
-10030
-12376
-9792

query II rowsort
SELECT col0 AS col1, - col0 - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
-102
85
-170
91
-182

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT - 94 * COUNT( DISTINCT + col0 ) + + - MIN( DISTINCT - + ( + - 46 ) ) FROM tab0 AS cor0
----
-328

skipif mysql # not compatible
query I rowsort label-6171
SELECT - 94 * COUNT ( DISTINCT + col0 ) + + - MIN ( DISTINCT - + ( + - 46 ) ) FROM tab0 AS cor0
----
-328

query I rowsort
SELECT DISTINCT - col1 * - + 82 AS col0 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + 7 + - ( - SUM( - col1 ) ) + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6173
SELECT + 7 + - ( - SUM ( - col1 ) ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT ALL + - 81 * 37 DIV - COUNT( * ) + + 84 FROM tab2 AS cor0
----
1083

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + - 81 * 37 / - COUNT ( * ) + + 84 FROM tab2 AS cor0
----
1083

query I rowsort
SELECT ALL 74 AS col0 FROM tab1 WHERE col0 * - + col0 < 3 + - col1 * - 3
----
74
74
74

query I rowsort
SELECT - + 7 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT DISTINCT + + col0 + - col2 * + + 45 * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-115136
-195675
-47564

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT + + col0 + - col2 * + + 45 * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-115136
-195675
-47564

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

query I rowsort
SELECT DISTINCT + - 65 - - + 17 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT + - 66 * + COUNT( ALL - - 77 ) AS col0 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT + - 66 * + COUNT ( ALL - - 77 ) AS col0 FROM tab2 AS cor0
----
-198

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT 72 + - COUNT( * ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6182
SELECT 72 + - COUNT ( * ) FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6183
SELECT + col0 + CAST( 9 AS SIGNED ) AS col2 FROM tab1
----
100
60
94

skipif mysql # not compatible
query I rowsort label-6183
SELECT + col0 + CAST ( 9 AS INTEGER ) AS col2 FROM tab1
----
100
60
94

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

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

query I rowsort
SELECT DISTINCT - col1 * + 9 + col1 + col0 * col0 FROM tab2
----
1708
3480
5089

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

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL MIN ( col0 ) FROM tab1 WHERE NULL IS NULL
----
51

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

query I rowsort
SELECT ALL - col2 * - col2 + - 99 FROM tab2 AS cor0 WHERE + col0 / - ( + - col0 ) / col2 + - col0 * col1 IS NULL
----

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

query I rowsort
SELECT ALL + ( - 5 ) FROM tab0 AS cor0
----
-5
-5
-5

query II rowsort
SELECT DISTINCT 76, col0 FROM tab1
----
76
51
76
85
76
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT MAX( + 23 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-6192
SELECT MAX ( + 23 ) FROM tab1
----
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN col0 AND + ( col2 )
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT ALL + 19 DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL + 19 / + col0 FROM tab0 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT + 19, + col1 * + col1 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND 10
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6196
SELECT ALL + - 31 AS col0, CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-31
3

skipif mysql # not compatible
query II rowsort label-6196
SELECT ALL + - 31 AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-31
3

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

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - ( CAST ( - COUNT ( DISTINCT + col0 ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 71, - col0, - - 16, - - col2, col0 + col1 )
----

query I rowsort
SELECT + col0 + + 15 AS col0 FROM tab0 AS cor0
----
102
112
30

query I rowsort
SELECT 88 + - col0 - + + col1 FROM tab2
----
-53
-54
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT - COUNT( * ) + + 72 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - COUNT ( * ) + + 72 FROM tab0
----
69

query I rowsort
SELECT - ( + col2 ) * - - 66 FROM tab1 WHERE + 69 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL - - col0 * - - 29 FROM tab0 AS cor0
----
2523
2813
435

query II rowsort
SELECT DISTINCT - ( - + col1 ) AS col0, col0 * - - col2 * col0 AS col2 FROM tab2 AS cor0
----
51
48668
67
326250
77
163840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6210
SELECT ALL COUNT( - ( + col1 ) ) + + - CAST( MAX( ALL 55 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL COUNT ( - ( + col1 ) ) + + - CAST ( MAX ( ALL 55 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT DISTINCT + ( + + ( + col0 ) ) / - + 40 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - - ( 43 ) / + col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT COUNT( * ) * 96 AS col0 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6212
SELECT COUNT ( * ) * 96 AS col0 FROM tab0 AS cor0
----
288

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) < 74
----
51
14
96

query I rowsort
SELECT + 22 * col2 + ( 33 ) AS col0 FROM tab2 AS cor0
----
1309
539
913

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT 4 * + 60 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-6215
SELECT 4 * + 60 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6216
SELECT - CAST( NULL AS DECIMAL ) * col2 / - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT - CAST ( NULL AS REAL ) * col2 / - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - - col0 col2 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + col0 ) - 33 + col0 * + + 99 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT ALL - col2 DIV - 98 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL - col2 / - 98 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col1 FROM tab2 AS cor0 WHERE NOT NULL > + col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT DISTINCT - 98 - + + 90 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) - + col0 BETWEEN - 8 AND col1
----

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - 98 - + + 90 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + col0 BETWEEN - 8 AND col1
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT DISTINCT - - COUNT( * ) AS col0, MAX( + - 3 ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6227
SELECT DISTINCT - - COUNT ( * ) AS col0, MAX ( + - 3 ) FROM tab0 AS cor0
----
3
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT + ( - CAST( + col2 AS SIGNED ) ) * col2 AS col1 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-6229
SELECT + ( - CAST ( + col2 AS INTEGER ) ) * col2 AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6230
SELECT COUNT( * ) DIV CAST( + + COUNT( ALL + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT DISTINCT - ( - 57 ) + + + COUNT( * ) col1 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6231
SELECT DISTINCT - ( - 57 ) + + + COUNT ( * ) col1 FROM tab2 AS cor0
----
60

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6233
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 + + + 71 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL CAST ( NULL AS REAL ) * + col1 + + + 71 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 98 + + col1 + 87 FROM tab2
----
236
252
262

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT COUNT( * ) * - - COUNT( * ) + + 92 * - + MAX( ALL + col1 ) FROM tab2
----
-7075

skipif mysql # not compatible
query I rowsort label-6235
SELECT COUNT ( * ) * - - COUNT ( * ) + + 92 * - + MAX ( ALL + col1 ) FROM tab2
----
-7075

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < ( - - col0 ) / col2
----

query I rowsort
SELECT DISTINCT 68 - - 3 FROM tab2 AS cor0
----
71

query I rowsort
SELECT DISTINCT - - col2 * - + col2 + + + col0 + - + col2 * 89 FROM tab2 AS cor0
----
-2530
-5096
-8451

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6242
SELECT + CAST( 10 AS SIGNED ) * - col2 DIV - - col2 - + + 54 FROM tab1 cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-6242
SELECT + CAST ( 10 AS INTEGER ) * - col2 / - - col2 - + + 54 FROM tab1 cor0
----
-64
-64
-64

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 64 IS NOT NULL
----

query I rowsort
SELECT col0 * + col0 * - 87 FROM tab2 AS cor0
----
-184092
-356352
-489375

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + 81 / - 27 * col2 + - col0 IS NULL
----
23
40
58

query I rowsort
SELECT 71 * - col1 * - - col2 AS col2 FROM tab1
----
-20945
-226916
-95424

query I rowsort
SELECT ALL ( - 15 ) FROM tab2
----
-15
-15
-15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6250
SELECT + 87 AS col1, + COUNT( * ) * - ( 81 ) AS col2 FROM tab0
----
87
-243

skipif mysql # not compatible
query II rowsort label-6250
SELECT + 87 AS col1, + COUNT ( * ) * - ( 81 ) AS col2 FROM tab0
----
87
-243

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - ( + 40 ) * - col0 + col0 <> col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6253
SELECT + col1 * - CAST( + 19 AS SIGNED ) FROM tab2
----
-1273
-1463
-969

skipif mysql # not compatible
query I rowsort label-6253
SELECT + col1 * - CAST ( + 19 AS INTEGER ) FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT ALL - - 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

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

query II rowsort
SELECT ALL + 47 AS col0, col2 AS col2 FROM tab0
----
47
10
47
47
47
99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT - - col0 * + + col0 + + col1 DIV col0 FROM tab0 cor0
----
230
7569
9409

skipif mysql # not compatible
query I rowsort label-6259
SELECT - - col0 * + + col0 + + col1 / col0 FROM tab0 cor0
----
230
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT COUNT( * ) + - 25 * + MAX( DISTINCT - + 53 ) AS col1 FROM tab2 AS cor0
----
1328

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT COUNT ( * ) + - 25 * + MAX ( DISTINCT - + 53 ) AS col1 FROM tab2 AS cor0
----
1328

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT + + 42 * + - 21 * COUNT( - + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-2646

skipif mysql # not compatible
query I rowsort label-6261
SELECT + + 42 * + - 21 * COUNT ( - + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-2646

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

query I rowsort
SELECT DISTINCT + col2 - - ( - col1 ) FROM tab2 WHERE NOT + col1 IS NULL
----
-28
-37
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT DISTINCT SUM( ALL - - col1 ) + - MAX( - col2 ) FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT SUM ( ALL - - col1 ) + - MAX ( - col2 ) FROM tab0
----
113

onlyif mysql # DIV for integer division: 
query II rowsort label-6266
SELECT ALL - col1 * + col0 AS col0, - col2 DIV - col0 col2 FROM tab1
----
-425
0
-4277
0
-714
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6266
SELECT ALL - col1 * + col0 AS col0, - col2 / - col0 col2 FROM tab1
----
-425
0
-4277
0
-714
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT - 27 * + col1 + col1 + 56 DIV - - col1 FROM tab2 AS cor0
----
-1325
-1742
-2002

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 27 * + col1 + col1 + 56 / - - col1 FROM tab2 AS cor0
----
-1325
-1742
-2002

query I rowsort
SELECT - - 97 + col0 FROM tab0 AS cor0
----
112
184
194

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT + col2 + - col1 DIV + + 5 FROM tab2 AS cor0
----
13
25
45

skipif mysql # not compatible
query I rowsort label-6270
SELECT + col2 + - col1 / + + 5 FROM tab2 AS cor0
----
13
25
45

query I rowsort
SELECT ALL - + 41 FROM tab2 AS cor0 WHERE - 75 <> + col2
----
-41
-41
-41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2, 91 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT DISTINCT col2 * 73 DIV - 86 FROM tab1 AS cor0
----
-50
-57
-81

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT col2 * 73 / - 86 FROM tab1 AS cor0
----
-50
-57
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6274
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - ( 26 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-6274
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - ( 26 ) BETWEEN NULL AND NULL
----

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

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

query II rowsort
SELECT - 62 * - - 90 * + 40, + col2 FROM tab0 AS cor0
----
-223200
10
-223200
47
-223200
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT ALL - - col1 DIV - - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL - - col1 / - - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

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

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

query II rowsort
SELECT ALL - col0, col0 * - ( + col1 ) AS col0 FROM tab2 cor0
----
-46
-2346
-64
-4928
-75
-5025

query II rowsort
SELECT + ( + - 9 ) AS col1, col2 FROM tab1
----
-9
59
-9
68
-9
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL MAX( ALL + 97 ) * - - 38 FROM tab2
----
3686

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL MAX ( ALL + 97 ) * - - 38 FROM tab2
----
3686

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT ALL - 9 DIV + - col1 FROM tab0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - 9 / + - col1 FROM tab0
----
0
0
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT + 21 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6284
SELECT + 21 / col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT DISTINCT - 98 * CAST( - ( + col2 ) AS SIGNED ) col2 FROM tab1
----
5782
6664
9408

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6285
SELECT DISTINCT - 98 * CAST ( - ( + col2 ) AS INTEGER ) col2 FROM tab1
----
5782
6664
9408

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

skipif mysql # not compatible
query I rowsort label-6286
SELECT - + COUNT ( * ) / + 41 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 38 + + col2 col1 FROM tab1 AS cor0
----
106
134
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT 72 * + COUNT( + 46 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
648

skipif mysql # not compatible
query I rowsort label-6289
SELECT 72 * + COUNT ( + 46 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
648

query II rowsort
SELECT DISTINCT 15, col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
15
23
15
40
15
58

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 41 + - col1 BETWEEN + col2 + - col2 - + 37 + - 7 AND NULL
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT - 76 AS col0, 89 FROM tab0 AS cor0
----
-76
89

query II rowsort
SELECT DISTINCT col0, 52 FROM tab2 cor0
----
46
52
64
52
75
52

query I rowsort
SELECT ALL - - col0 + + + col1 + col0 AS col1 FROM tab1 AS cor0
----
116
175
229

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6296
SELECT ALL CAST( NULL AS SIGNED ) AS col1, col2 + + - col1 + + - ( 45 ) FROM tab1 AS cor0
----
NULL
-24
NULL
37
NULL
9

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, col2 + + - col1 + + - ( 45 ) FROM tab1 AS cor0
----
NULL
-24
NULL
37
NULL
9

query I rowsort
SELECT ALL + 46 * col2 + + col1 FROM tab2
----
1109
1917
2735

query I rowsort
SELECT DISTINCT + 92 + + 49 FROM tab2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT 7 - + + COUNT( * ) + + - 20 + COUNT( * ) * - - ( + 37 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT 7 - + + COUNT ( * ) + + - 20 + COUNT ( * ) * - - ( + 37 ) FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT 42 * - 2 * + 15 + + COUNT( 6 ) AS col2 FROM tab1
----
-1257

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT 42 * - 2 * + 15 + + COUNT ( 6 ) AS col2 FROM tab1
----
-1257

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT MAX( + col1 ) + + + 32 FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-6301
SELECT MAX ( + col1 ) + + + 32 FROM tab0
----
113

query I rowsort
SELECT + col2 + + - 92 + + + col1 AS col2 FROM tab1
----
-28
18
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT MIN( + col2 ) + + + 78 AS col2 FROM tab1
----
137

skipif mysql # not compatible
query I rowsort label-6304
SELECT MIN ( + col2 ) + + + 78 AS col2 FROM tab1
----
137

query I rowsort
SELECT + 26 + col0 * - - col2 AS col2 FROM tab0
----
731
896
9629

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

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - COUNT ( * ) + 21 FROM tab0
----
18

query II rowsort
SELECT DISTINCT - col2, 88 AS col0 FROM tab2
----
-23
88
-40
88
-58
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT 44 * + COUNT( * ) FROM tab1 cor0
----
132

skipif mysql # not compatible
query I rowsort label-6308
SELECT 44 * + COUNT ( * ) FROM tab1 cor0
----
132

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT + 54 * + col1 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - 82 * - + col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

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

query I rowsort
SELECT ALL + 18 * - col2 * + col2 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

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

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

query I rowsort
SELECT ALL + 89 * + 98 + - col2 FROM tab0 cor0
----
8623
8675
8712

query II rowsort
SELECT DISTINCT col1 * + col1 AS col1, col2 FROM tab0 AS cor0
----
1
99
441
10
6561
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT ALL - col2 DIV + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - col2 / + - col1 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6319
SELECT ALL + ( COUNT ( * ) ) col2, 90 * COUNT ( * ) FROM tab0 AS cor0
----
3
270

query I rowsort
SELECT DISTINCT col1 / - col2 FROM tab0 AS cor0 WHERE NOT NULL > + col2 + + 72
----

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

query I rowsort
SELECT + 31 * + 91 FROM tab2
----
2821
2821
2821

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

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

query I rowsort
SELECT - col1 * col2 * - col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL - 82 * + ( + + 9 ) * + COUNT( ALL col1 ) + - + COUNT( * ) AS col1 FROM tab0
----
-2217

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - 82 * + ( + + 9 ) * + COUNT ( ALL col1 ) + - + COUNT ( * ) AS col1 FROM tab0
----
-2217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 23 col2 FROM tab2
----
1173
1541
1771

query I rowsort
SELECT 92 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
92
92
92

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT - col0 * + 61 IS NULL
----
10
47
99

query I rowsort
SELECT + 15 + 17 FROM tab1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - col2 / col2 FROM tab2 WHERE NULL < col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT + 3 DIV col1 - col2 * + col0 AS col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT + 3 / col1 - col2 * + col0 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL + COUNT( DISTINCT + 21 ) + COUNT( + col0 ) col1 FROM tab0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6334
SELECT ALL + COUNT ( DISTINCT + 21 ) + COUNT ( + col0 ) col1 FROM tab0
----
4

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT + 90 * SUM( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT + 90 * SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT - COUNT( * ) * + MIN( + col2 ) AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6339
SELECT - COUNT ( * ) * + MIN ( + col2 ) AS col1 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT + COUNT( ALL + 96 ) AS col1 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT + COUNT ( ALL + 96 ) AS col1 FROM tab2 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT + 81 * COUNT( * ) AS col0 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT + 81 * COUNT ( * ) AS col0 FROM tab2
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6342
SELECT ALL * FROM tab0 WHERE - 21 BETWEEN col1 + + 56 AND ( CAST( - 27 AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-6342
SELECT ALL * FROM tab0 WHERE - 21 BETWEEN col1 + + 56 AND ( CAST ( - 27 AS INTEGER ) * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT DISTINCT - col0 + 22 * CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-1173
-1955
-2093

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - col0 + 22 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-1173
-1955
-2093

query I rowsort
SELECT col1 * 37 FROM tab2 WHERE NOT 29 IS NULL
----
1887
2479
2849

query I rowsort
SELECT col1 * col2 + - 42 AS col2 FROM tab1
----
1302
253
3154

query I rowsort
SELECT + col1 + + 37 FROM tab0
----
118
38
58

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

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

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

query I rowsort
SELECT - col1 FROM tab1 WHERE - col1 >= NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = 26 / - 37
----

query I rowsort
SELECT 86 + - col0 AS col1 FROM tab0
----
-1
-11
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT CAST( NULL AS SIGNED ) / 84 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT CAST ( NULL AS INTEGER ) / 84 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT DISTINCT col0 DIV - 79 + col0 AS col2 FROM tab1
----
51
84
90

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT col0 / - 79 + col0 AS col2 FROM tab1
----
51
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE ( - col1 * + 57 ) NOT IN ( col0 )
----
15
87
97

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

query I rowsort
SELECT ALL + 62 AS col2 FROM tab0 WHERE NULL <> + 32 - + col2
----

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

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

query I rowsort
SELECT DISTINCT 56 - - col2 AS col1 FROM tab2 AS cor0
----
114
79
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT col2 DIV col2 + col1 * + 40 col2 FROM tab1 AS cor0
----
1881
201
561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6362
SELECT col2 / col2 + col1 * + 40 col2 FROM tab1 AS cor0
----
1881
201
561

query I rowsort
SELECT DISTINCT - 57 - + ( + 79 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 * col2 + - col2 AND NULL
----

query I rowsort
SELECT - col1 + - col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT 70 + col2 < - col1 + ( - col1 ) * 65
----
-3

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT 70 + col2 < - col1 + ( - col1 ) * 65
----
-3

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > ( col0 )
----

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

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

query I rowsort
SELECT 92 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - col0 * + col2 - + 61 * - 70 AS col2 FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL ( - 10 ) AS col2 FROM tab1 AS cor0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( col2 * 23 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ( 59 ) AS col1 FROM tab1 AS cor0
----
59
59
59

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

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

query I rowsort
SELECT ALL col0 FROM tab0 cor0 WHERE NOT 7 + col2 IN ( - col0 )
----
15
87
97

query I rowsort
SELECT - - col1 * - 42 FROM tab0 AS cor0
----
-3402
-42
-882

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

query I rowsort
SELECT ALL - 37 AS col1 FROM tab0 AS cor0 WHERE ( - col0 * + 61 + - 34 * col0 ) = col1 * 76
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT ( NULL ) >= - 44 + col1 * 77
----

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

query I rowsort
SELECT DISTINCT - 21 * - 44 FROM tab0
----
924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6383
SELECT DISTINCT - 16 DIV + COUNT( ALL - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT - 16 / + COUNT ( ALL - col1 ) FROM tab1
----
-5

query I rowsort
SELECT ALL + col0 * 37 FROM tab1 WHERE NOT col0 / 38 + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - 61 ) + 48 AS col1 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT - 70 FROM tab2 WHERE NOT + 48 + + 60 <> - col0 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT 40 DIV + + 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6387
SELECT 40 / + + 86 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT - col0 DIV - - 57 AS col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6388
SELECT - col0 / - - 57 AS col0 FROM tab0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * col0 * - col0 col2 FROM tab1
----
-192474
-534650
-612794

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 32 ) <> - 29 + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 4 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / - col1 NOT BETWEEN - 13 * - col1 AND NULL AND NOT NULL NOT BETWEEN ( + 96 ) AND ( NULL )
----

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

query I rowsort
SELECT + col0 * - 24 FROM tab0
----
-2088
-2328
-360

query I rowsort
SELECT - 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

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

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0, tab1 AS cor0
----
0

query II rowsort
SELECT + col0 AS col1, 15 + 97 FROM tab0 AS cor0
----
15
112
87
112
97
112

query I rowsort
SELECT DISTINCT 20 - - col1 FROM tab0 AS cor0
----
101
21
41

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IS NULL OR ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 - + 57 FROM tab2 AS cor0 WHERE 49 = NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( - + col2 ) NOT BETWEEN NULL AND NULL OR 81 - 39 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL + + 2 * COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + + 2 * COUNT ( * ) FROM tab1 cor0
----
6

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 * + 72 <> col0 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - 75 ) NOT BETWEEN + col1 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT col1 + - + col2 * col1 DIV + col0 AS col2 FROM tab1
----
-12
12
2

skipif mysql # not compatible
query I rowsort label-6406
SELECT col1 + - + col2 * col1 / + col0 AS col2 FROM tab1
----
-12
12
2

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( 66 )
----

query II rowsort
SELECT DISTINCT + 88 + + + 77 AS col1, + 41 FROM tab2
----
165
41

query I rowsort
SELECT + col0 + + col2 * + col0 * 62 FROM tab0
----
43725
54027
595483

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

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

query II rowsort
SELECT 31 + + + col1, + 52 * - 10 + 73 AS col1 FROM tab2
----
108
-447
82
-447
98
-447

query I rowsort
SELECT + 21 + - col2 FROM tab0
----
-26
-78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT 65 + + + COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-6413
SELECT 65 + + + COUNT ( * ) FROM tab1
----
68

query I rowsort
SELECT 56 AS col1 FROM tab2 WHERE ( 65 ) IS NOT NULL
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 20 + - + 3 AS col1, + col0 col0 FROM tab0
----
-23
15
-23
87
-23
97

query I rowsort
SELECT ALL - 14 - - col2 + - + col0 + - 84 AS col0 FROM tab2
----
-115
-121
-122

query I rowsort
SELECT DISTINCT - 81 - ( - col0 ) AS col2 FROM tab2
----
-17
-35
-6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6419
SELECT + + MAX( DISTINCT + 58 ) AS col2, + 49 col2 FROM tab1 AS cor0
----
58
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6419
SELECT + + MAX ( DISTINCT + 58 ) AS col2, + 49 col2 FROM tab1 AS cor0
----
58
49

query I rowsort
SELECT DISTINCT + - 61 FROM tab1 cor0
----
-61

query I rowsort
SELECT - 87 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + col0 + col0 BETWEEN ( NULL ) AND 24 - - col1 / col0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT 54 * + 47 + + - col2 FROM tab2 cor0
----
2480
2498
2515

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL - SUM( + - col0 ) * + 81 + - 97 AS col1 FROM tab1 AS cor0
----
18290

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL - SUM ( + - col0 ) * + 81 + - 97 AS col1 FROM tab1 AS cor0
----
18290

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

query I rowsort
SELECT ALL + - 26 FROM tab1 AS cor0 WHERE + ( + col2 ) * - col2 NOT BETWEEN NULL AND NULL
----

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

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

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

query I rowsort
SELECT + 68 + + + col0 FROM tab2 AS cor0
----
114
132
143

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT ALL + 20 + - col1 DIV 32 FROM tab0
----
18
20
20

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + 20 + - col1 / 32 FROM tab0
----
18
20
20

query II rowsort
SELECT ALL 65 AS col2, 5 AS col1 FROM tab2, tab0 AS cor0
----
18 values hashing to 573425f08ec11c387aadc1a4a17924dc

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 + - + 51 + - + 34 * - col1 + + col2 / col0 ) NOT IN ( - 68 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6435
SELECT - COUNT( * ), SUM( 77 ) AS col0 FROM tab1
----
-3
231

skipif mysql # not compatible
query II rowsort label-6435
SELECT - COUNT ( * ), SUM ( 77 ) AS col0 FROM tab1
----
-3
231

query I rowsort
SELECT DISTINCT - 86 + col1 AS col0 FROM tab2
----
-19
-35
-9

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

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

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

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

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

query II rowsort
SELECT col0, + col2 * + col2 FROM tab1 AS cor0
----
51
9216
85
3481
91
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT - COUNT( * ) * + MAX( - - col1 ) + COUNT( * ) + 54 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6441
SELECT - COUNT ( * ) * + MAX ( - - col1 ) + COUNT ( * ) + 54 FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL + - 29 + + 47 + COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL + - 29 + + 47 + COUNT ( * ) FROM tab0 AS cor0
----
21

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 52 IS NULL
----

query I rowsort
SELECT + col2 + 39 AS col0 FROM tab2 AS cor0
----
62
79
97

query I rowsort
SELECT ALL + ( col2 ) * + col2 * + col2 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

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

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

query II rowsort
SELECT - + 17 * col1 AS col2, + col2 AS col0 FROM tab2 cor0
----
-1139
58
-1309
40
-867
23

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) * - 64 - - col1 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - + 59 > NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6452
SELECT ALL - + COUNT( * ) DIV - 77 * - 3 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - + COUNT ( * ) / - 77 * - 3 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * + 31 * - + col0 FROM tab2 AS cor0
----
134850
32798
79360

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN + 78 AND + + col2 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT DISTINCT + col2 DIV + 14 + col1 FROM tab2
----
52
71
79

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT + col2 / + 14 + col1 FROM tab2
----
52
71
79

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 21 * - col2 / col0 + - ( + + col0 ) - 84 IS NULL
----

query I rowsort
SELECT DISTINCT + 27 * - - 22 AS col1 FROM tab0
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6461
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + - + col1 * 22 NOT IN ( CAST( col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6461
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + - + col1 * 22 NOT IN ( CAST ( col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6462
SELECT DISTINCT - CAST( + + 60 AS SIGNED ) DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT - CAST ( + + 60 AS INTEGER ) / - col2 AS col1 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT DISTINCT - 94 DIV + + 83 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - 94 / + + 83 AS col2 FROM tab2 cor0
----
-1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 30 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6467
SELECT ALL 82 * 63 * CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
242802
25830
72324

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL 82 * 63 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
242802
25830
72324

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 56 / + + 55 + - col1 ) BETWEEN ( NULL ) AND ( + col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT ALL + COUNT( * ) AS col0, - ( - + ( - 34 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
-34

skipif mysql # not compatible
query II rowsort label-6472
SELECT ALL + COUNT ( * ) AS col0, - ( - + ( - 34 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6473
SELECT DISTINCT + col2 DIV 18 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT + col2 / 18 FROM tab0 AS cor0
----
0
2
5

query I rowsort
SELECT ALL + + col1 + 78 AS col1 FROM tab2 cor0
----
129
145
155

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + col2 / - - 94 IS NULL
----

query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab1 WHERE NULL BETWEEN col1 AND + 60
----

query I rowsort
SELECT ALL - 20 + + + 39 * - col2 + - col0 FROM tab1
----
-2406
-2763
-3815

query I rowsort
SELECT DISTINCT + col2 * + col2 + + col2 + ( + col1 ) FROM tab1
----
3545
4739
9326

query I rowsort
SELECT - 67 + - 28 FROM tab2
----
-95
-95
-95

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

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

query I rowsort
SELECT ALL 28 + - col1 AS col0 FROM tab2 AS cor0
----
-23
-39
-49

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

query I rowsort
SELECT DISTINCT col2 + - col2 * 95 FROM tab0
----
-4418
-9306
-940

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL MIN( DISTINCT + col2 ) FROM tab2 WHERE NULL IN ( + col1, 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL MIN ( DISTINCT + col2 ) FROM tab2 WHERE NULL IN ( + col1, 10 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NULL OR ( NOT ( ( 78 + - 84 - + 37 * + col2 IS NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 83 ) + col0 FROM tab0 AS cor0
----
170
180
98

query I rowsort
SELECT ALL col2 * 97 FROM tab2 AS cor0
----
2231
3880
5626

query I rowsort
SELECT DISTINCT col1 * - col1 - + col1 AS col2 FROM tab2 AS cor0
----
-2652
-4556
-6006

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

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

query I rowsort
SELECT DISTINCT + col2 * col1 * - col2 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT - SUM( + col2 ) * COUNT( * ) AS col2 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-6493
SELECT - SUM ( + col2 ) * COUNT ( * ) AS col2 FROM tab1
----
-669

query I rowsort
SELECT + 39 * col2 FROM tab2
----
1560
2262
897

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT ( - ( 69 ) ) * - + MIN( - + col0 ) AS col2 FROM tab0 AS cor0
----
-6693

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT ( - ( 69 ) ) * - + MIN ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-6693

query I rowsort
SELECT DISTINCT col2 * 88 AS col1 FROM tab0
----
4136
8712
880

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + 55 >= + 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6501
SELECT ALL + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) = col2
----

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6502
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col2, + col0 - 46 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6502
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col2, + col0 - 46 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( + 10 ) / 90 < NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col0 AS col2 FROM tab1
----
4368
510
765

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6507
SELECT - MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
99

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

skipif mysql # not compatible
query I rowsort label-6508
SELECT - COUNT ( * ) - CAST ( NULL AS REAL ) + - + ( CAST ( - 37 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * 61 + col0 * - 28 AS col0 FROM tab1 AS cor0
----
-2282
-2685
-5415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6510
SELECT ALL - 14 + - 55 * ( + CAST( + 15 AS SIGNED ) ) FROM tab1
----
-839
-839
-839

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - 14 + - 55 * ( + CAST ( + 15 AS INTEGER ) ) FROM tab1
----
-839
-839
-839

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT - MAX( + 31 ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-6511
SELECT - MAX ( + 31 ) FROM tab2
----
-31

query I rowsort
SELECT DISTINCT - - 61 + + + col2 AS col2 FROM tab1 AS cor0
----
120
129
157

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 67 )
----

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

skipif mysql # not compatible
query II rowsort label-6514
SELECT - col0 AS col2, col0 / - col2 AS col0 FROM tab2 AS cor0
----
-46
-2
-64
-1
-75
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL - MAX( ALL + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL - MAX ( ALL + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT + 50 DIV + - 18 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6518
SELECT + 50 / + - 18 FROM tab2
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6519
SELECT DISTINCT - col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT - col0 + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) > NULL
----

query II rowsort
SELECT + col1, + col0 * 3 + - 49 + col1 + + - col2 * + - 84 AS col0 FROM tab0
----
1
8559
21
1073
81
4025

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 67 ) + + 47 * + + col1 > col0 + - + 89 + 48 * + 42
----
87
21
10
97
1
99

query I rowsort
SELECT - 55 * col1 * ( + col1 ) FROM tab0
----
-24255
-360855
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - 62 col0 FROM tab2 cor0
----
-2852
-3968
-4650

query I rowsort
SELECT + + 18 * 26 FROM tab1 AS cor0
----
468
468
468

query II rowsort
SELECT - col2 AS col2, col0 * col2 FROM tab0 AS cor0
----
-10
870
-47
705
-99
9603

query I rowsort
SELECT - - 74 * 31 FROM tab1 cor0 WHERE NOT - 40 IS NULL
----
2294
2294
2294

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

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

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE - ( - col0 ) + - col1 * - col2 + + 84 + - 3 <> + 53
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT + COUNT( * ) * - + 31 * - 63 AS col1 FROM tab0
----
5859

skipif mysql # not compatible
query I rowsort label-6529
SELECT + COUNT ( * ) * - + 31 * - 63 AS col1 FROM tab0
----
5859

query I rowsort
SELECT + - col2 FROM tab0 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT - - 43 * - + 62 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-7998

skipif mysql # not compatible
query I rowsort label-6531
SELECT - - 43 * - + 62 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-7998

query I rowsort
SELECT + - 61 AS col0 FROM tab2 AS cor0
----
-61
-61
-61

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

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

query II rowsort
SELECT + col1, col1 + - 99 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - 19 * + col1 + + - col1 * col0 + + col0 + col0
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + 53 FROM tab0
----
-46
43
6

query I rowsort
SELECT - col2 + + - col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT col1 + col2 + - col1 AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6544
SELECT ALL 70 AS col2, - COUNT( * ) FROM tab1
----
70
-3

skipif mysql # not compatible
query II rowsort label-6544
SELECT ALL 70 AS col2, - COUNT ( * ) FROM tab1
----
70
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - col2 col2 FROM tab1
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 12 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6547
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6548
SELECT DISTINCT - col0 + - col2 FROM tab2 WHERE CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - col0 + - col2 FROM tab2 WHERE CAST ( NULL AS REAL ) <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6550
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( + col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-6550
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6551
SELECT DISTINCT - 32, - col0 AS col1, - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query III rowsort label-6551
SELECT DISTINCT - 32, - col0 AS col1, - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 98 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 98 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT - SUM( - 54 ) col2 FROM tab1
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6553
SELECT DISTINCT - SUM ( - 54 ) col2 FROM tab1
----
162

query I rowsort
SELECT DISTINCT col2 * + + ( - 13 ) FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT col1 * - ( - 79 ) AS col0 FROM tab1
----
1106
3713
395

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

query I rowsort
SELECT ALL - - col1 * + col2 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT DISTINCT - COUNT( * ) AS col0, 3 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-6558
SELECT DISTINCT - COUNT ( * ) AS col0, 3 FROM tab1
----
-3
3

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

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

query I rowsort
SELECT DISTINCT col1 + 51 + 22 AS col0 FROM tab2 AS cor0
----
124
140
150

query I rowsort
SELECT + 87 FROM tab0, tab1 AS cor0 WHERE NOT + 86 < NULL
----

query II rowsort
SELECT col1, - col2 * - col1 FROM tab2
----
51
1173
67
3886
77
3080

query I rowsort
SELECT ALL - ( - + 57 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + 58 ) AS col0 FROM tab2
----
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL SUM( + 81 ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL SUM ( + 81 ) FROM tab1
----
243

query I rowsort
SELECT - col1 + + 82 + 68 AS col0 FROM tab1 AS cor0
----
103
136
145

query I rowsort
SELECT ALL - + 11 * 24 * - col0 FROM tab1 AS cor0
----
13464
22440
24024

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT - + col1 DIV col1 * + 3 FROM tab1 cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6569
SELECT - + col1 / col1 * + 3 FROM tab1 cor0
----
-3
-3
-3

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6571
SELECT DISTINCT - - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT - - COUNT ( * ) * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT 45 DIV + 67 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6573
SELECT 45 / + 67 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6574
SELECT DISTINCT - COUNT( * ) + - + 67 col2, 28 FROM tab1
----
-70
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6574
SELECT DISTINCT - COUNT ( * ) + - + 67 col2, 28 FROM tab1
----
-70
28

query I rowsort
SELECT + 33 - - - 86 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT 38 - - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT 38 - - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT - col0 + + col1 * col0 + + - CAST( col0 AS SIGNED ) + 37 FROM tab0 AS cor0
----
-60
1222
1690

skipif mysql # not compatible
query I rowsort label-6577
SELECT - col0 + + col1 * col0 + + - CAST ( col0 AS INTEGER ) + 37 FROM tab0 AS cor0
----
-60
1222
1690

query I rowsort
SELECT col1 + - + 39 AS col2 FROM tab2 AS cor0
----
12
28
38

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6580
SELECT - COUNT( * ) * - - 32 DIV 50 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT - COUNT ( * ) * - - 32 / 50 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6581
SELECT ALL SUM ( - col1 ) col0 FROM tab2
----
-195

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 61, col1 col2 FROM tab2 AS cor0
----
61
51
61
67
61
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 53 NOT BETWEEN 95 AND NULL
----

query I rowsort
SELECT - + 62 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( col0 )
----

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

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

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

query II rowsort
SELECT ALL - 31 - col2 + + - col2, 15 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

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

query I rowsort
SELECT col0 + col0 - col1 AS col2 FROM tab1 AS cor0
----
135
165
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT 95 + 43 * MIN( + - 45 ) FROM tab2
----
-1840

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT 95 + 43 * MIN ( + - 45 ) FROM tab2
----
-1840

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT DISTINCT - 10 col0, - COUNT( * ) AS col0 FROM tab0
----
-10
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6598
SELECT DISTINCT - 10 col0, - COUNT ( * ) AS col0 FROM tab0
----
-10
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6599
SELECT 0 col2, COUNT( * ) AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6599
SELECT 0 col2, COUNT ( * ) AS col1 FROM tab0
----
0
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT + 64 - + COUNT( * ) col0 FROM tab1 AS cor0
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT + + MAX( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE + 22 / - 86 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT + + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE + 22 / - 86 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 66 * - + 94 / + col2
----

query I rowsort
SELECT - 55 + - + col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
-114
-123
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL COUNT( * ) * - - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 WHERE + 22 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 WHERE + 22 IS NOT NULL
----
27

query I rowsort
SELECT - 7 * - col0 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
75

query I rowsort
SELECT col2 * col1 + + - 21 AS col2 FROM tab1
----
1323
274
3175

query I rowsort
SELECT 45 + 73 FROM tab0
----
118
118
118

query I rowsort
SELECT ALL - col2 * ( col2 ) - col1 FROM tab1
----
-3486
-4671
-9230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6612
SELECT ALL - CAST( - 43 AS SIGNED ) * - 18 FROM tab1 AS cor0
----
-774
-774
-774

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL - CAST ( - 43 AS INTEGER ) * - 18 FROM tab1 AS cor0
----
-774
-774
-774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT + - 37 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6613
SELECT + - 37 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-12

query II rowsort
SELECT + col1 * + - col2, + col2 FROM tab1
----
-1344
96
-295
59
-3196
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6615
SELECT + CAST( - - col0 AS SIGNED ) DIV - + 60 + + col2 + - ( + CAST( col2 AS SIGNED ) ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT + CAST ( - - col0 AS INTEGER ) / - + 60 + + col2 + - ( + CAST ( col2 AS INTEGER ) ) FROM tab2
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 13 + - 35 NOT BETWEEN - col1 * - + 99 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6618
SELECT ALL col0 + - col2 / + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) > + + 95
----

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL col0 + - col2 / + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) > + + 95
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6620
SELECT + col2, + 6 + - - 82 + CAST( NULL AS SIGNED ) * - col2 / + + col0, + col2 FROM tab1
----
9 values hashing to 6357952adfc00c59cf0c8633d995677b

skipif mysql # not compatible
query III rowsort label-6620
SELECT + col2, + 6 + - - 82 + CAST ( NULL AS INTEGER ) * - col2 / + + col0, + col2 FROM tab1
----
9 values hashing to 6357952adfc00c59cf0c8633d995677b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6621
SELECT ALL col0 AS col2, col1 - + + col1 + col2 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
15
-2209
87
-100
97
-9801

skipif mysql # not compatible
query II rowsort label-6621
SELECT ALL col0 AS col2, col1 - + + col1 + col2 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
15
-2209
87
-100
97
-9801

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

query I rowsort
SELECT + col2 * + 74 * + col2 AS col0 FROM tab2
----
118400
248936
39146

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

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 * + + col1 * col0 * - col1 + + col1 + 75 FROM tab1 AS cor0
----
10410
138689
9444819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6626
SELECT COUNT( * ) * - MIN( 78 ) - + + SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT COUNT ( * ) * - MIN ( 78 ) - + + SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT 73 + + COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT 73 + + COUNT ( * ) FROM tab0
----
76

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - col0 col1 FROM tab2
----
-8
13
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6632
SELECT ALL - 73 * + CAST( NULL AS SIGNED ) AS col1, 5 FROM tab2 AS cor0
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-6632
SELECT ALL - 73 * + CAST ( NULL AS INTEGER ) AS col1, 5 FROM tab2 AS cor0
----
NULL
5
NULL
5
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT - SUM( DISTINCT col2 ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT - SUM ( DISTINCT col2 ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT + col0 DIV + 99 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6634
SELECT + col0 / + 99 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2 WHERE NOT + 79 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 79 IS NULL
----
NULL

query I rowsort
SELECT ALL 66 + + 4 FROM tab1
----
70
70
70

query I rowsort
SELECT + 58 - - col0 - - col0 * + - col1 AS col0 FROM tab2
----
-2242
-4806
-4892

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col2 FROM tab0 cor0
----
10
47
99

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

query I rowsort
SELECT col0 * + 24 * col1 * + - 42 * 19 FROM tab2 AS cor0
----
-44930592
-94381056
-96238800

query II rowsort
SELECT DISTINCT + col1 AS col1, 80 + - + col2 AS col1 FROM tab0 AS cor0
----
1
-19
21
70
81
33

query I rowsort
SELECT ALL + col1 * + + col2 * - - 67 FROM tab1
----
19765
214132
90048

query I rowsort
SELECT col0 * - + col0 * + col0 FROM tab2
----
-262144
-421875
-97336

query I rowsort
SELECT DISTINCT col2 * + col2 * - 28 FROM tab0
----
-274428
-2800
-61852

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

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

query II rowsort
SELECT ( col0 ), - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

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

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

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

skipif mysql # not compatible
query I rowsort label-6649
SELECT ( + ( + + COUNT ( + - col2 ) ) ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL col2 + 36 AS col2 FROM tab1 AS cor0 WHERE NOT + 4 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - + col0 AS col1, - col2 + 61 FROM tab0 AS cor0
----
-15
14
-87
51
-97
-38

query I rowsort
SELECT DISTINCT + col1 * - 4 FROM tab1 AS cor0
----
-188
-20
-56

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

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

query I rowsort
SELECT ALL 76 * 92 + + col0 + - col1 AS col2 FROM tab2 cor0
----
6979
6987
7000

query I rowsort
SELECT DISTINCT - + 77 + - col2 AS col0 FROM tab2 AS cor0
----
-100
-117
-135

query II rowsort
SELECT DISTINCT col2 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

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

query I rowsort
SELECT DISTINCT + - col0 * - - col1 + + + col1 AS col2 FROM tab1 AS cor0 WHERE col2 * - 25 * 13 >= - - col0
----

query I rowsort
SELECT ALL ( + 27 ) AS col2 FROM tab1
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT - 45 + + 67 * - col0 / - + col2 * col2 + - + 74 + + col1 + + - CAST( NULL AS SIGNED ) + 65 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - 45 + + 67 * - col0 / - + col2 * col2 + - + 74 + + col1 + + - CAST ( NULL AS INTEGER ) + 65 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT - CAST( COUNT( * ) AS SIGNED ) * - - 82 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-6662
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - - 82 FROM tab2
----
-246

query I rowsort
SELECT DISTINCT 82 * col0 * - 87 FROM tab1
----
-363834
-606390
-649194

query I rowsort
SELECT - 70 + - - col1 AS col2 FROM tab2
----
-19
-3
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6665
SELECT - MAX( ALL col2 ) + - ( 21 ) DIV COUNT( * ) + - - 14 + + 7 col0 FROM tab2
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6665
SELECT - MAX ( ALL col2 ) + - ( 21 ) / COUNT ( * ) + - - 14 + + 7 col0 FROM tab2
----
-44

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE col1 NOT IN ( 41 + col1, 39 )
----
1
21
81

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT DISTINCT + 23 * + col0 * 89 + - + CAST( + 59 AS SIGNED ) + - col2 FROM tab2 cor0
----
130909
153408
94080

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT + 23 * + col0 * 89 + - + CAST ( + 59 AS INTEGER ) + - col2 FROM tab2 cor0
----
130909
153408
94080

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 48 IS NOT NULL
----

query I rowsort
SELECT 58 - - + 2 + col0 AS col2 FROM tab2 AS cor0
----
106
124
135

query I rowsort
SELECT - col0 * - col1 - - 61 FROM tab2 AS cor0
----
2407
4989
5086

query I rowsort
SELECT - ( + + 73 ) - + ( + + 94 ) FROM tab0 AS cor0
----
-167
-167
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL - 41 - + 68 + ( + COUNT( * ) ) FROM tab0 cor0
----
-106

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - 41 - + 68 + ( + COUNT ( * ) ) FROM tab0 cor0
----
-106

query I rowsort
SELECT DISTINCT + col0 * - col1 * 15 - + ( + 87 ) AS col2 FROM tab0 AS cor0
----
-1542
-18312
-27492

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT 53 + 45 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----
98

skipif mysql # not compatible
query I rowsort label-6678
SELECT 53 + 45 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----
98

query I rowsort
SELECT DISTINCT - ( 1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + 86 = - - 41 * + 73 + 84 + + col1
----
59
68
96

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

query I rowsort
SELECT + 30 AS col1 FROM tab1 WHERE NULL BETWEEN + - col1 AND NULL
----

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0, - 69 * + col1, col0 * col0 * 93 * + col1 * - col0 + + col2, + + col2 * + col2 + - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT - 30 <= - + 25 * + 98
----
3

skipif mysql # not compatible
query I rowsort label-6687
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT - 30 <= - + 25 * + 98
----
3

query I rowsort
SELECT 83 * - + col1 AS col1 FROM tab0
----
-1743
-6723
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT - 81 + - + COUNT( - - col1 ) AS col2 FROM tab2 WHERE NOT col2 = NULL
----
-81

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - 81 + - + COUNT ( - - col1 ) AS col2 FROM tab2 WHERE NOT col2 = NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL + MAX( - 88 ) AS col2 FROM tab1 WHERE NOT NULL IN ( - col1, - col0 * + col1, - + ( - - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + MAX ( - 88 ) AS col2 FROM tab1 WHERE NOT NULL IN ( - col1, - col0 * + col1, - + ( - - col0 ) )
----
NULL

query I rowsort
SELECT ALL + + col2 * + + 3 + + col1 FROM tab0 AS cor0
----
222
298
51

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

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

query I rowsort
SELECT + + col0 + + 87 * - - 82 FROM tab0 AS cor0
----
7149
7221
7231

query I rowsort
SELECT DISTINCT 1 + col0 + col1 AS col2 FROM tab0 AS cor0
----
109
97
99

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6698
SELECT col2 DIV + col2 + - - col0 AS col0, col0 FROM tab1 cor0
----
52
51
86
85
92
91

skipif mysql # not compatible
query II rowsort label-6698
SELECT col2 / + col2 + - - col0 AS col0, col0 FROM tab1 cor0
----
52
51
86
85
92
91

query I rowsort
SELECT - 79 + + 94 AS col1 FROM tab0 AS cor0
----
15
15
15

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

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

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

query II rowsort
SELECT ( + - col2 ) AS col2, - 49 AS col2 FROM tab0
----
-10
-49
-47
-49
-99
-49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT ALL 35 * col1 + - + 35 DIV + col2 col0 FROM tab2
----
1784
2345
2695

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6704
SELECT ALL 35 * col1 + - + 35 / + col2 col0 FROM tab2
----
1784
2345
2695

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

query II rowsort
SELECT col1 + + + col0, col2 FROM tab1
----
138
68
65
96
90
59

query I rowsort
SELECT - - 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT - col1 * - 86 * + col0 IS NULL
----
1
21
81

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

query I rowsort
SELECT - + 0 - + + ( - + 35 ) AS col1 FROM tab2 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT + SUM( - - 43 ) AS col1 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6712
SELECT + SUM ( - - 43 ) AS col1 FROM tab0 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ( - MIN( ALL col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6713
SELECT ( - MIN ( ALL col1 ) ) FROM tab0
----
-1

query II rowsort
SELECT ALL - + 1 AS col2, 29 * ( + - col1 ) FROM tab2 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT ( - 52 ) FROM tab0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6716
SELECT - + CAST( - col0 AS SIGNED ) FROM tab1 WHERE NOT - - col1 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6716
SELECT - + CAST ( - col0 AS INTEGER ) FROM tab1 WHERE NOT - - col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT + SUM( + - 59 ) AS col1 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6717
SELECT + SUM ( + - 59 ) AS col1 FROM tab0 AS cor0
----
-177

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL + - 45 + COUNT( * ) col0 FROM tab0 cor0 WHERE 79 IS NOT NULL
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6720
SELECT ALL + - 45 + COUNT ( * ) col0 FROM tab0 cor0 WHERE 79 IS NOT NULL
----
-42

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

query I rowsort
SELECT - 80 * - col2 FROM tab0 AS cor0
----
3760
7920
800

onlyif mysql # DIV for integer division: 
query I rowsort label-6723
SELECT - 84 DIV col2 * + 32 AS col2 FROM tab2 AS cor0
----
-32
-64
-96

skipif mysql # not compatible
query I rowsort label-6723
SELECT - 84 / col2 * + 32 AS col2 FROM tab2 AS cor0
----
-32
-64
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 71 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT - - ( + - 5 ) * - - 9 * - COUNT( * ) * - ( - COUNT( - - ( - - col2 ) ) ) AS col2 FROM tab2 AS cor0
----
405

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - - ( + - 5 ) * - - 9 * - COUNT ( * ) * - ( - COUNT ( - - ( - - col2 ) ) ) AS col2 FROM tab2 AS cor0
----
405

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT DISTINCT + col2 + + col1 DIV - col2 FROM tab0
----
46
8
99

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT + col2 + + col1 / - col2 FROM tab0
----
46
8
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT 77 + + COUNT( + - col1 ) * - 5 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT 77 + + COUNT ( + - col1 ) * - 5 FROM tab1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT DISTINCT + col0 + CAST( + 34 AS SIGNED ) + + CAST( - 83 AS SIGNED ) FROM tab1
----
2
36
42

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT + col0 + CAST ( + 34 AS INTEGER ) + + CAST ( - 83 AS INTEGER ) FROM tab1
----
2
36
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT COUNT( * ) * - 8 - 69 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT COUNT ( * ) * - 8 - 69 FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6730
SELECT DISTINCT 0 AS col2, col2 AS col2 FROM tab2 WHERE + CAST( 42 AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6730
SELECT DISTINCT 0 AS col2, col2 AS col2 FROM tab2 WHERE + CAST ( 42 AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT + 29 - + COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6731
SELECT + 29 - + COUNT ( * ) FROM tab1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT - - 32 * - CAST( col1 AS SIGNED ) + col1 - - col1 FROM tab1 cor0
----
-1410
-150
-420

skipif mysql # not compatible
query I rowsort label-6732
SELECT - - 32 * - CAST ( col1 AS INTEGER ) + col1 - - col1 FROM tab1 cor0
----
-1410
-150
-420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 63 + + col2 * 56 + col2 >= - - col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + - SUM( - col2 ) AS col0 FROM tab2 WHERE NOT 20 * - 67 IS NULL
----
121

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + - SUM ( - col2 ) AS col0 FROM tab2 WHERE NOT 20 * - 67 IS NULL
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-6738
SELECT DISTINCT col2 DIV + col2, - 47 + + col1 col1 FROM tab2
----
1
20
1
30
1
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6738
SELECT DISTINCT col2 / + col2, - 47 + + col1 col1 FROM tab2
----
1
20
1
30
1
4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL + MAX( + 89 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + MAX ( + 89 ) FROM tab0
----
89

query I rowsort
SELECT - 67 * + - col0 AS col0 FROM tab1
----
3417
5695
6097

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 75 BETWEEN - 71 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col0 * 18 + + col0 + + col2 AND - col2
----
46
64
75

query I rowsort
SELECT ALL - + col1 + - 0 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - col1 * + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6746
SELECT * FROM tab2 AS cor0 WHERE CAST( col0 AS SIGNED ) = - - ( + - col1 ) * - + col0 + + + 92 + - 56
----

skipif mysql # not compatible
query III rowsort label-6746
SELECT * FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) = - - ( + - col1 ) * - + col0 + + + 92 + - 56
----

query I rowsort
SELECT DISTINCT + 19 + + 71 AS col1 FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE col2 * 82 - + + 43 NOT BETWEEN + 45 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * 82 - + + 43 NOT BETWEEN + 45 AND NULL
----
0

query I rowsort
SELECT + ( + 89 ) AS col2 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6750
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <= - CAST( + + 34 AS SIGNED )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-6750
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 <= - CAST ( + + 34 AS INTEGER )
----
46
51
23

query I rowsort
SELECT DISTINCT 9 * - 58 + + + col1 + - col2 FROM tab0
----
-488
-511
-620

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

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE - col1 / col1 + - col2 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT DISTINCT 74 + - + 69, + 61 + + col0 AS col1 FROM tab0
----
5
148
5
158
5
76

query I rowsort
SELECT ALL - 89 + - - col2 FROM tab2
----
-31
-49
-66

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6757
SELECT ALL - col1 * - col0 AS col1, + col1 + + CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-6757
SELECT ALL - col1 * - col0 AS col1, + col1 + + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
2346
NULL
4928
NULL
5025
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT DISTINCT col0 * 28 * CAST( - 53 AS SIGNED ) FROM tab1 AS cor0
----
-126140
-135044
-75684

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT col0 * 28 * CAST ( - 53 AS INTEGER ) FROM tab1 AS cor0
----
-126140
-135044
-75684

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

query I rowsort
SELECT ALL + 69 * - + 83 AS col0 FROM tab2 AS cor0
----
-5727
-5727
-5727

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT ALL 45 DIV + - col1 col0 FROM tab1 AS cor0
----
-3
-9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6761
SELECT ALL 45 / + - col1 col0 FROM tab1 AS cor0
----
-3
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6762
SELECT + col0 * - CAST( - - col1 AS SIGNED ), col0 FROM tab1 AS cor0
----
-425
85
-4277
91
-714
51

skipif mysql # not compatible
query II rowsort label-6762
SELECT + col0 * - CAST ( - - col1 AS INTEGER ), col0 FROM tab1 AS cor0
----
-425
85
-4277
91
-714
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT ALL + + 2 DIV + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + + 2 / + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL - 45 * - + 79 FROM tab0 AS cor0
----
3555
3555
3555

query II rowsort
SELECT DISTINCT col2, - 53 FROM tab2 AS cor0 WHERE NULL < col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + - 23 > NULL
----

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

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

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

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

query I rowsort
SELECT + + 96 + - 71 AS col0 FROM tab2 WHERE NOT - - col1 <> + 4 - - + col1 * + 57 * + - col2 * + - 23
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6773
SELECT ALL - 65 AS col0, 98 DIV + + COUNT( ALL + + 83 ) AS col0 FROM tab1
----
-65
32

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL - 65 AS col0, 98 / + + COUNT ( ALL + + 83 ) AS col0 FROM tab1
----
-65
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT DISTINCT + + ( - 6 ) DIV col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT + + ( - 6 ) / col1 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT + SUM( DISTINCT + + 44 ) + 49 AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6775
SELECT + SUM ( DISTINCT + + 44 ) + 49 AS col1 FROM tab1 AS cor0
----
93

query II rowsort
SELECT ALL col2, col1 * 80 AS col0 FROM tab2 AS cor0 WHERE 73 NOT BETWEEN NULL AND + + 12 * + 38 / - + col1
----
23
4080
40
6160
58
5360

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

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + 95 * CAST ( NULL AS REAL ) + + col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 50 + - col0 AS col2 FROM tab2
----
-114
-125
-96

query II rowsort
SELECT - - col1 * + col2 AS col0, col2 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT - ( - 61 ) DIV - col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6781
SELECT - ( - 61 ) / - col2 col0 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT DISTINCT - SUM( - + col2 ) * - COUNT( * ) FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT - SUM ( - + col2 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6783
SELECT DISTINCT MAX( + col1 ) DIV 30 AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT MAX ( + col1 ) / 30 AS col2 FROM tab2 AS cor0
----
2

query II rowsort
SELECT col2 + 56 AS col0, col1 AS col2 FROM tab2 AS cor0
----
114
67
79
51
96
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + + 44 + + - col2, + 44 * col0 col0 FROM tab0 AS cor0
----
12
660
121
3828
42
4268

query I rowsort
SELECT ALL - col0 + - col2 + - 42 AS col0 FROM tab2 AS cor0
----
-111
-146
-175

query II rowsort
SELECT DISTINCT 90 AS col1, + col0 * + col1 * col1 FROM tab0
----
90
38367
90
97
90
98415

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 - - ( - - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 83 + - + col2 FROM tab0
----
-16
36
73

query I rowsort
SELECT 1 * - col1 + - col1 AS col1 FROM tab0
----
-162
-2
-42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> 22
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT 97 + - COUNT( + col2 ) AS col0, COUNT( * ) FROM tab1
----
94
3

skipif mysql # not compatible
query II rowsort label-6792
SELECT 97 + - COUNT ( + col2 ) AS col0, COUNT ( * ) FROM tab1
----
94
3

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

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

query I rowsort
SELECT DISTINCT col1 * + col1 + 29 AS col2 FROM tab2
----
2630
4518
5958

query I rowsort
SELECT ALL + 83 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 59 * col2 > ( 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL - ( - MIN( 58 ) ) + - 77 AS col2 FROM tab1 WHERE NOT NULL <= ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL - ( - MIN ( 58 ) ) + - 77 AS col2 FROM tab1 WHERE NOT NULL <= ( + col2 )
----
NULL

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

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT DISTINCT SUM( DISTINCT + col0 ) FROM tab0 WHERE NOT ( - col1 ) * 20 IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT SUM ( DISTINCT + col0 ) FROM tab0 WHERE NOT ( - col1 ) * 20 IS NULL
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 WHERE NOT - col2 * 26 IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col0 FROM tab1 WHERE NOT ( - col1 ) NOT IN ( col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT + ( + COUNT ( DISTINCT - col0 ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL - 29 + + 15 FROM tab1
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6807
SELECT * FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6807
SELECT * FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 63 FROM tab1 WHERE NOT - col0 IS NULL
----
63
63
63

query I rowsort
SELECT DISTINCT - 30 + col2 AS col0 FROM tab0 WHERE ( NULL ) <= 20
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 31 IN ( + 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + 45 * + 87 AS col1 FROM tab1 AS cor0
----
3915

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE + 91 <> col2
----
1
21
81

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - col1 <> + 54
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 6 + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6818
SELECT DISTINCT CAST( ( + MAX( DISTINCT col2 ) ) AS SIGNED ) DIV + 30 AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT CAST ( ( + MAX ( DISTINCT col2 ) ) AS INTEGER ) / + 30 AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - col0 / - col2 > NULL
----

query I rowsort
SELECT + 59 AS col1 FROM tab1 WHERE 30 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 38 - + col1 / + 60 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT DISTINCT 13 DIV - 13 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT 13 / - 13 FROM tab1 cor0
----
-1

query I rowsort
SELECT col1 + col0 * + col1 FROM tab2 AS cor0
----
2397
5005
5092

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

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

query I rowsort
SELECT - col0 * ( - col1 + - col2 * 5 ) AS col1 FROM tab2 AS cor0
----
17728
26775
7636

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL + COUNT( * ) AS col0 FROM tab1 cor0 WHERE 73 NOT IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE 73 NOT IN ( col2 )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col0 <= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL + + COUNT( DISTINCT + 37 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL + + COUNT ( DISTINCT + 37 ) FROM tab1 AS cor0
----
1

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND 18 + - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT COUNT( * ) * 41 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
123

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT COUNT ( * ) * 41 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
123

query I rowsort
SELECT DISTINCT - col0 - + col0 + 97 * 80 FROM tab1 AS cor0
----
7578
7590
7658

query I rowsort
SELECT + 63 * 32 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * - col1 * - 92 FROM tab0 cor0
----
-19320
-350244
-9108

query I rowsort
SELECT - + 67 AS col0 FROM tab2 cor0
----
-67
-67
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * col2 <= NULL
----

query I rowsort
SELECT col1 * 99 + + 64 AS col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 52 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL - COUNT( DISTINCT col0 ) * + + 33 AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - COUNT ( DISTINCT col0 ) * + + 33 AS col1 FROM tab2
----
-99

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 0 / - - col1 + col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT + + MIN( ALL + + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6846
SELECT + + MIN ( ALL + + col2 ) AS col2 FROM tab2 AS cor0
----
23

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

query I rowsort
SELECT DISTINCT - col0 + + ( + col1 ) FROM tab1 cor0 WHERE NULL NOT IN ( 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL + COUNT( ALL - col2 ) * - COUNT( * ) * - + 81 FROM tab0
----
729

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + COUNT ( ALL - col2 ) * - COUNT ( * ) * - + 81 FROM tab0
----
729

query I rowsort
SELECT DISTINCT + col2 * - - col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 34 FROM tab2 WHERE col0 * + col2 - col2 * 17 - + col0 NOT IN ( col0 )
----
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT MIN( DISTINCT - col2 ) * + COUNT( * ) + - - COUNT( * ) + - COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT MIN ( DISTINCT - col2 ) * + COUNT ( * ) + - - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-297

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 74 - - - 15 IS NOT NULL
----

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

query I rowsort
SELECT col1 + - col2 * + 49 AS col0 FROM tab2
----
-1076
-1883
-2775

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

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

query I rowsort
SELECT + - 15 + - + ( + 25 ) + col1 * - 59 FROM tab0 AS cor0
----
-1279
-4819
-99

query I rowsort
SELECT ALL ( + col1 ) + col1 * 92 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + 98 * - 86 FROM tab2 AS cor0 WHERE NOT ( col0 * + - 56 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT + COUNT( * ) * + + MIN( + col0 ) + - 90 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6861
SELECT + COUNT ( * ) * + + MIN ( + col0 ) + - 90 FROM tab2 AS cor0
----
48

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

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

skipif mysql # not compatible
query I rowsort label-6863
SELECT - 9 / - 39 + + - COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 + - - col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT + - col2 + - + col0 + + + col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL - + SUM( DISTINCT 10 ) * + COUNT( col2 ) * 33 FROM tab1 AS cor0
----
-990

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL - + SUM ( DISTINCT 10 ) * + COUNT ( col2 ) * 33 FROM tab1 AS cor0
----
-990

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

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

query I rowsort
SELECT ALL - + 59 * + + col1 - + - 4 * - - col0 FROM tab2 AS cor0
----
-2825
-3653
-4287

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT - - col2 DIV + + 96 - + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-6869
SELECT - - col2 / + + 96 - + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
52
85
91

query I rowsort
SELECT - col1 - col0 + + - 61 * + col1 AS col0 FROM tab2 AS cor0
----
-3208
-4229
-4838

query II rowsort
SELECT DISTINCT - col2, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

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

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

query I rowsort
SELECT DISTINCT - col2 + 20 FROM tab2
----
-20
-3
-38

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

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

query I rowsort
SELECT - 43 + + - col0 FROM tab2
----
-107
-118
-89

query I rowsort
SELECT DISTINCT - col0 * + 50 * + - col1 AS col2 FROM tab1
----
21250
213850
35700

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT DISTINCT col0 DIV - col1 + + + ( + 93 ) - + col2 FROM tab0
----
-103
46
79

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT col0 / - col1 + + + ( + 93 ) - + col2 FROM tab0
----
-103
46
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 16 col2, - 91 FROM tab0, tab1 AS cor0
----
16
-91

query I rowsort
SELECT DISTINCT 26 * + + 61 * - col0 + - + col2 * 44 FROM tab0
----
-138422
-158198
-25858

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

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

skipif mysql # not compatible
query I rowsort label-6881
SELECT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
14
47
5

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

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

query II rowsort
SELECT - col1, 46 * - col0 AS col2 FROM tab2
----
-51
-2116
-67
-3450
-77
-2944

query II rowsort
SELECT DISTINCT + col0 AS col1, 76 FROM tab1
----
51
76
85
76
91
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT ALL + CAST( 7 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL + CAST ( 7 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
7
7
7

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

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

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL + COUNT ( * ) * CAST ( - - 41 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
123

query II rowsort
SELECT DISTINCT - + 22, 79 + - - col1 + + 16 AS col0 FROM tab1 AS cor0
----
-22
100
-22
109
-22
142

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

skipif mysql # not compatible
query I rowsort label-6889
SELECT col1 / - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
-1
-1
-2

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

query I rowsort
SELECT ALL + + 6 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col0 * - + col1
----

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

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

query I rowsort
SELECT DISTINCT + - ( + 62 ) FROM tab0 cor0
----
-62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6898
SELECT DISTINCT - + col2 + - col2 * 25 - + col0 * + CAST( + + col0 AS SIGNED ) + - - col0 * + CAST( col0 + + 84 AS SIGNED ) FROM tab1 AS cor0
----
1788
5606
5876

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT - + col2 + - col2 * 25 - + col0 * + CAST ( + + col0 AS INTEGER ) + - - col0 * + CAST ( col0 + + 84 AS INTEGER ) FROM tab1 AS cor0
----
1788
5606
5876

query I rowsort
SELECT ( + 7 ) FROM tab1
----
7
7
7

query I rowsort
SELECT - col1 * - col0 * col0 AS col2 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - COUNT( ALL - 86 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6901
SELECT - COUNT ( ALL - 86 ) FROM tab1
----
-3

query II rowsort
SELECT DISTINCT 99 AS col1, - 76 FROM tab1
----
99
-76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT ALL + 18 + - COUNT( * ) DIV 88 col1 FROM tab1
----
18

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

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab0 WHERE NOT - - col0 IS NULL
----
89

query I rowsort
SELECT DISTINCT - 61 FROM tab0 cor0
----
-61

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

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

query I rowsort
SELECT - 61 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + + COUNT( * ) + + COUNT( DISTINCT 56 ) AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6909
SELECT + + COUNT ( * ) + + COUNT ( DISTINCT 56 ) AS col1 FROM tab2 AS cor0
----
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 72 IS NULL
----

query I rowsort
SELECT ALL - col0 - + col2 + - - 26 * + + 73 - - + col2 AS col1 FROM tab2
----
1823
1834
1852

query I rowsort
SELECT DISTINCT col2 - 66 FROM tab2
----
-26
-43
-8

query I rowsort
SELECT ALL - + 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT DISTINCT - 39 - - COUNT( * ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT - 39 - - COUNT ( * ) FROM tab2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT ALL + - col2 DIV + col0 - - 24 + - col0 + col1 * + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-170
291
6552

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL + - col2 / + col0 - - 24 + - col0 + col1 * + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-170
291
6552

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT ALL col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL col1 / + col0 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE - 0 >= 48 - col2
----
1

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

query I rowsort
SELECT ALL - - col1 - - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 48 - - col1 FROM tab2 AS cor0
----
19
29
3

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

skipif mysql # not compatible
query I rowsort label-6921
SELECT + AVG ( 76 ) - - - ( - COUNT ( DISTINCT + 0 ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 11 + - 84 FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6923
SELECT DISTINCT + ( + COUNT( * ) ), - COUNT( * ) col1 FROM tab1 WHERE NULL < + col1
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6923
SELECT DISTINCT + ( + COUNT ( * ) ), - COUNT ( * ) col1 FROM tab1 WHERE NULL < + col1
----
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6924
SELECT DISTINCT col2 DIV - - col0 * CAST( col0 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT col2 / - - col0 * CAST ( col0 AS INTEGER ) FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT DISTINCT + COUNT( * ) * + + 73 DIV - 69 AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT + COUNT ( * ) * + + 73 / - 69 AS col0 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * + + col0 <> + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 21 AS col0 FROM tab1
----
1239
1428
2016

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + ( - - col1 ) < + col0 )
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE + ( col2 ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col0 + - col2 ) > NULL
----

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

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

query I rowsort
SELECT ( 21 ) AS col2 FROM tab0 AS cor0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76, col2 * col2 col1 FROM tab0 AS cor0
----
76
100
76
2209
76
9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 95 * - col1 >= - 42 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + - col0 * + col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6940
SELECT ALL 31 / + CAST( NULL AS DECIMAL ) * + + CAST( + - 56 AS SIGNED ) AS col2, COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6940
SELECT ALL 31 / + CAST ( NULL AS REAL ) * + + CAST ( + - 56 AS INTEGER ) AS col2, COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
0

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 14 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1786
-190
-532

query II rowsort
SELECT + 94 AS col0, + 82 FROM tab1 AS cor0
----
94
82
94
82
94
82

query III rowsort
SELECT * FROM tab2 WHERE + - 60 IS NULL
----

query I rowsort
SELECT ALL col1 + - 14 FROM tab2
----
37
53
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT 62 + col1 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / - col0 * col0 - - 42 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT 62 + col1 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - col0 * col0 - - 42 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6949
SELECT DISTINCT + 24 DIV + - col0 + - - col2 FROM tab0 WHERE NOT ( 41 ) IN ( + col1, - CAST( - - col0 AS SIGNED ) )
----
10
46
99

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT + 24 / + - col0 + - - col2 FROM tab0 WHERE NOT ( 41 ) IN ( + col1, - CAST ( - - col0 AS INTEGER ) )
----
10
46
99

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

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

query I rowsort
SELECT ALL 66 * + col2 + col1 AS col1 FROM tab0
----
3183
6535
681

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

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

query I rowsort
SELECT DISTINCT + col0 + - col2 - + - 40 + - col0 FROM tab1 AS cor0
----
-19
-28
-56

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT col1 - 83 >= ( + col0 )
----
-51
-85
-91

query I rowsort
SELECT + 20 * + - col0 AS col1 FROM tab0 WHERE NOT - col2 IS NULL AND NOT NULL NOT BETWEEN + 65 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT ALL + + col0 DIV 61 col0 FROM tab0 AS cor0
----
0
1
1

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

query I rowsort
SELECT ALL + - 66 - + 34 AS col2 FROM tab1 cor0
----
-100
-100
-100

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

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

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

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

query I rowsort
SELECT col2 * - + 73 FROM tab2
----
-1679
-2920
-4234

query II rowsort
SELECT 73, + 82 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 < - 43
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6964
SELECT ALL + col0 * + + col2 * ( + 7 ) col1, - col0 * - col1 DIV col1 + + col1 * + col0 * + col0 FROM tab1
----
34272
36465
35105
36210
43316
389298

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6964
SELECT ALL + col0 * + + col2 * ( + 7 ) col1, - col0 * - col1 / col1 + + col1 * + col0 * + col0 FROM tab1
----
34272
36465
35105
36210
43316
389298

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6965
SELECT - CAST( + - col1 AS SIGNED ) DIV - 35 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6965
SELECT - CAST ( + - col1 AS INTEGER ) / - 35 AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT 20 * + + col2 FROM tab1
----
1180
1360
1920

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6969
SELECT - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 * + - 71 FROM tab0
----
3337
7029
710

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 45 <> NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT - + col0 / col0 FROM tab0 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT DISTINCT - col1 DIV - 47 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - col1 / - 47 AS col1 FROM tab2 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT - COUNT( - col1 ) + CAST( 19 AS SIGNED ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6976
SELECT - COUNT ( - col1 ) + CAST ( 19 AS INTEGER ) FROM tab0 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6977
SELECT + + col0 * - 60 DIV 56 DIV + CAST( - + ( - 98 ) AS SIGNED ) + + + col2 * + col2 AS col0 FROM tab1 cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-6977
SELECT + + col0 * - 60 / 56 / + CAST ( - + ( - 98 ) AS INTEGER ) + + + col2 * + col2 AS col0 FROM tab1 cor0
----
3481
4624
9216

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT COUNT( DISTINCT - ( + col2 ) ) + + + 51 - - COUNT( * ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT COUNT ( DISTINCT - ( + col2 ) ) + + + 51 - - COUNT ( * ) FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT DISTINCT + col1 - col0 / + CAST( + - 78 AS SIGNED ) + 35 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT + col1 - col0 / + CAST ( + - 78 AS INTEGER ) + 35 FROM tab2 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT col2 * - col0 + - 56 - + col2 FROM tab0 cor0
----
-808
-936
-9758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + + 86 col2 FROM tab1 AS cor0
----
-39
-72
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + - col2 col0 FROM tab0
----
658
860
9504

query I rowsort
SELECT DISTINCT - col1 + - ( - - 40 ) * + col1 FROM tab2
----
-2091
-2747
-3157

query I rowsort
SELECT ALL + col0 + - 27 FROM tab1
----
24
58
64

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

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

query II rowsort
SELECT + - col0 * - 50 AS col2, col2 FROM tab1 AS cor0
----
2550
96
4250
59
4550
68

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( NULL IS NULL ) )
----

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

query II rowsort
SELECT - + col1, col2 AS col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

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

query I rowsort
SELECT ALL + + 58 + + - col1 FROM tab1 AS cor0
----
11
44
53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT col0 * CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-6996
SELECT col0 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT ALL - MIN( col0 ) AS col0 FROM tab1 WHERE NOT NULL = - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - MIN ( col0 ) AS col0 FROM tab1 WHERE NOT NULL = - col0
----
NULL

query I rowsort
SELECT ALL col1 * + 28 AS col0 FROM tab2
----
1428
1876
2156

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

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

query I rowsort
SELECT 6 * + col0 AS col2 FROM tab2 AS cor0
----
276
384
450

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

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

query I rowsort
SELECT + col0 * - ( - - 13 ) + - col1 * col0 AS col0 FROM tab1 cor0
----
-1377
-1530
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT 57 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-7003
SELECT 57 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL - COUNT( * ) + - 45 AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - COUNT ( * ) + - 45 AS col0 FROM tab2
----
-48

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

query I rowsort
SELECT ALL - 12 * col2 FROM tab0 WHERE - col2 < - - ( 44 )
----
-1188
-120
-564

query I rowsort
SELECT - col2 + + 50 FROM tab2
----
-8
10
27

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

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

query I rowsort
SELECT 35 * + + col2 + 69 FROM tab0 WHERE col0 * - 26 IS NULL
----

query I rowsort
SELECT + 65 + - - col2 FROM tab1
----
124
133
161

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7011
SELECT ALL + COUNT ( * ) - SUM ( ALL col1 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ALL - + MAX( - 1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - + MAX ( - 1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + + col2 - - col0 * 55 FROM tab1 AS cor0
----
2901
4734
5073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT + CAST( NULL AS SIGNED ) - - AVG ( + + ( + col1 ) ) + MIN( ALL - col0 ) - + MAX( DISTINCT - 7 ) FROM tab0 WHERE NULL BETWEEN NULL AND - - col2 + - col0 - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT + CAST ( NULL AS INTEGER ) - - AVG ( + + ( + col1 ) ) + MIN ( ALL - col0 ) - + MAX ( DISTINCT - 7 ) FROM tab0 WHERE NULL BETWEEN NULL AND - - col2 + - col0 - - col2
----
NULL

query I rowsort
SELECT - col2 - col0 - - col1 FROM tab2
----
-18
-27
-66

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT + 66 DIV ( + - col0 ) FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT + 66 / ( + - col0 ) FROM tab0
----
-4
0
0

query I rowsort
SELECT ALL + ( col2 ) FROM tab2 WHERE NULL IS NULL
----
23
40
58

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

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

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

query I rowsort
SELECT ALL 5 AS col1 FROM tab1 cor0 WHERE - 5 IS NOT NULL
----
5
5
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ALL + MIN( - 39 ) AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL + MIN ( - 39 ) AS col0 FROM tab0
----
-39

query I rowsort
SELECT + 37 * 51 FROM tab1
----
1887
1887
1887

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL 90 * + COUNT( * ) FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL 90 * + COUNT ( * ) FROM tab1
----
270

query I rowsort
SELECT - ( 81 ) * 41 AS col2 FROM tab2
----
-3321
-3321
-3321

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT - COUNT( ALL 58 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7032
SELECT - COUNT ( ALL 58 ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT SUM( DISTINCT - - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7034
SELECT SUM ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT ( + col2 ) + - col2 + + col0 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col1 FROM tab2 WHERE NULL IS NULL
----
40

query II rowsort
SELECT 48 + + - col1 * - col0, col1 - - col2 AS col1 FROM tab2
----
2394
74
4976
117
5073
125

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7038
SELECT + - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7039
SELECT + 4 + ( + COUNT( * ) ) * COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85
9

skipif mysql # not compatible
query II rowsort label-7039
SELECT + 4 + ( + COUNT ( * ) ) * COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85
9

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
23
40
58

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

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

query I rowsort
SELECT - 64 * - - col2 FROM tab1 AS cor0
----
-3776
-4352
-6144

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 83 * - col1 col0 FROM tab1 AS cor0
----
-1162
-3901
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT + MAX( ALL - 36 ) FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7045
SELECT + MAX ( ALL - 36 ) FROM tab2 cor0
----
-36

query I rowsort
SELECT ALL - col1 + + 51 FROM tab0 AS cor0
----
-30
30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL + 17 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL + 17 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL 63 + + - 22 FROM tab1
----
41
41
41

query I rowsort
SELECT ALL col0 * - - col1 * + + col1 * - 16 + 49 AS col0 FROM tab2
----
-1914287
-5386751
-6071247

query I rowsort
SELECT - col1 + + 98 FROM tab0 AS cor0
----
17
77
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7051
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-7051
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT + 90 + 45 + - - col1 FROM tab0 AS cor0
----
136
156
216

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

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

query I rowsort
SELECT + 1 + + 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL - MIN( 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL - MIN ( 98 ) FROM tab1
----
-98

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

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

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

query I rowsort
SELECT ALL - 14 FROM tab1 WHERE NOT col0 + + + 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT ( - + ( - + col2 ) ) / + 83 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT ( - + ( - + col2 ) ) / + 83 IS NULL
----
-3

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

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

query I rowsort
SELECT - col1 * + + 58 AS col1 FROM tab0
----
-1218
-4698
-58

query I rowsort
SELECT + col0 * - + 3 AS col0 FROM tab1
----
-153
-255
-273

query I rowsort
SELECT + 97 + ( col0 ) AS col2 FROM tab1 AS cor0
----
148
182
188

query I rowsort
SELECT + 1 + + - col2 AS col2 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL + - MIN( ALL - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL + - MIN ( ALL - col2 ) FROM tab2 AS cor0
----
58

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

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

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

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

query I rowsort
SELECT ALL - col1 * - + 16 * col0 FROM tab1 WHERE NOT + - col2 * + 82 / + col2 > NULL
----

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

query I rowsort
SELECT + col2 * - 49 AS col0 FROM tab1 cor0 WHERE 91 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT DISTINCT + 22 * + COUNT( * ) - - - 94 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT + 22 * + COUNT ( * ) - - - 94 FROM tab0 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col1, col2, + CAST( NULL AS SIGNED ), - ( col2 ), - + col0, + 16 - - 64 + + col0 + - ( 11 ) + - 55, - col2 + - 99 )
----

skipif mysql # not compatible
query III rowsort label-7073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col1, col2, + CAST ( NULL AS INTEGER ), - ( col2 ), - + col0, + 16 - - 64 + + col0 + - ( 11 ) + - 55, - col2 + - 99 )
----

query I rowsort
SELECT - + col0 + - col2 + - + col0 - - - col2 FROM tab2 AS cor0
----
-138
-208
-266

query I rowsort
SELECT DISTINCT - col2 * + - col2 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT col2 * + + col0 * + col0 + + - 98 AS col1 FROM tab0
----
10477
75592
931393

query I rowsort
SELECT DISTINCT col1 * + col0 + - col2 AS col1 FROM tab2
----
2323
4888
4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT - 4 FROM tab0 WHERE col1 * - CAST( NULL AS SIGNED ) - + ( col0 ) IS NULL
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7078
SELECT - 4 FROM tab0 WHERE col1 * - CAST ( NULL AS INTEGER ) - + ( col0 ) IS NULL
----
-4
-4
-4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT DISTINCT - col0 - - CAST( col2 AS SIGNED ) FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT - col0 - - CAST ( col2 AS INTEGER ) FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL 5 + 24 FROM tab1
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( - col0 ) ) - - - col0 col0 FROM tab2
----
-128
-150
-92

query II rowsort
SELECT - col1, ( col1 ) * 75 - 29 + - col0 AS col0 FROM tab2
----
-51
3750
-67
4921
-77
5682

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - + col2 + + - col2 + + col2 / + col1 = col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7087
SELECT DISTINCT col2 DIV + - 71 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT col2 / + - 71 AS col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL - 34 FROM tab0 AS cor0 WHERE ( + - col2 ) * - col0 * - col2 <> col1
----
-34
-34
-34

query I rowsort
SELECT col2 * + + 80 * - - col0 FROM tab2
----
204800
348000
84640

query I rowsort
SELECT DISTINCT - + col0 * 25 AS col2 FROM tab2 AS cor0
----
-1150
-1600
-1875

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 55 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT DISTINCT + - col0 DIV - col2 - - col1 * - 28 FROM tab1 AS cor0
----
-1315
-139
-392

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT + - col0 / - col2 - - col1 * - 28 FROM tab1 AS cor0
----
-1315
-139
-392

query I rowsort
SELECT ALL + + 14 AS col1 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL + col0 + col2 * - CAST( - - col1 AS SIGNED ) FROM tab2
----
-1127
-3016
-3811

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL + col0 + col2 * - CAST ( - - col1 AS INTEGER ) FROM tab2
----
-1127
-3016
-3811

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * col2 col1 FROM tab2
----
1035
1800
2610

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * + col1 col2 FROM tab0
----
2025
25
525

query I rowsort
SELECT ALL + - 97 AS col1 FROM tab0 cor0
----
-97
-97
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - col0 AND 25
----
91
47
68

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

query I rowsort
SELECT DISTINCT - ( - + col0 ) * + 54 - - col1 FROM tab2 AS cor0
----
2535
3533
4117

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

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

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

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

query I rowsort
SELECT ALL - col2 * + + col1 - 56 AS col0 FROM tab0 AS cor0
----
-155
-266
-3863

onlyif mysql # DIV for integer division: 
query II rowsort label-7106
SELECT DISTINCT + col0, - col0 DIV + - col1 + - col0 FROM tab1 AS cor0
----
51
-48
85
-68
91
-90

skipif mysql # not compatible
query II rowsort label-7106
SELECT DISTINCT + col0, - col0 / + - col1 + - col0 FROM tab1 AS cor0
----
51
-48
85
-68
91
-90

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT + + MAX( + + col0 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + + MAX ( + + col0 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
291

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

query I rowsort
SELECT - col0 * - 28 * + col0 FROM tab1 AS cor0
----
202300
231868
72828

query I rowsort
SELECT + - 62 * - col0 + + 13 FROM tab2 AS cor0
----
2865
3981
4663

query II rowsort
SELECT + 36 - + col1 AS col2, col2 * + - col0 FROM tab1
----
-11
-6188
22
-4896
31
-5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * - 39 - - col0 - col1 + - - 92 col1 FROM tab0
----
-3595
-47359
-71095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7116
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NULL NOT IN ( col0 * - 34 * ( - + CAST( col0 AS DECIMAL ) ) + - - col2 / - col1 * 97 * + col2, col1 * + + 93 + + CAST( + col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT IN ( col0 * - 34 * ( - + CAST ( col0 AS REAL ) ) + - - col2 / - col1 * 97 * + col2, col1 * + + 93 + + CAST ( + col2 AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT + 32 FROM tab0 WHERE - - col0 * col1 - - col1 <> - - col0 * - col1
----
32

query I rowsort
SELECT + 47 FROM tab2 AS cor0 WHERE NOT + ( col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT col0 FROM tab1 AS cor0 WHERE NOT CAST( - - col2 AS SIGNED ) * + 29 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7119
SELECT col0 FROM tab1 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) * + 29 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT - - 35 DIV + 30 + - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7120
SELECT - - 35 / + 30 + - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT - - 31 * - + col1 FROM tab2 AS cor0
----
-1581
-2077
-2387

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL - 27 * - COUNT( DISTINCT + 29 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL - 27 * - COUNT ( DISTINCT + 29 ) AS col1 FROM tab1 AS cor0
----
27

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7123
SELECT DISTINCT MIN ( ALL - col0 ) col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + col1 * + 80 - - + col0 * col1 FROM tab0 AS cor0
----
177
3507
7695

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL - + MIN( DISTINCT col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - + MIN ( DISTINCT col2 ) FROM tab2 cor0
----
-23

query II rowsort
SELECT - 20 AS col0, col2 + + col1 * - + col2 AS col2 FROM tab2 cor0
----
-20
-1150
-20
-3040
-20
-3828

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + + 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT DISTINCT col2 DIV 22 AS col0 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT col2 / 22 AS col0 FROM tab1
----
2
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT col1 + - + col0 + - 44 * CAST( 93 AS SIGNED ) * col2 + - - col1 AS col2 FROM tab0
----
-192177
-405203
-40965

skipif mysql # not compatible
query I rowsort label-7130
SELECT col1 + - + col0 + - 44 * CAST ( 93 AS INTEGER ) * col2 + - - col1 AS col2 FROM tab0
----
-192177
-405203
-40965

query I rowsort
SELECT - col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + col2 + col0 AND 95 - + col2 + col2 * + col2 * + 26 / col2 NOT IN ( - col1, - col0 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT - AVG ( + CAST( - 20 AS SIGNED ) ) / - ( + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - AVG ( + CAST ( - 20 AS INTEGER ) ) / - ( + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) FROM tab0
----
NULL

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-7135
SELECT COUNT( - + col1 ) AS col2 FROM tab0
----
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7136
SELECT + ( + COUNT( * ) ) * - COUNT( * ) - - - 1 * COUNT( * ) DIV + - 29 + 86 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-7136
SELECT + ( + COUNT ( * ) ) * - COUNT ( * ) - - - 1 * COUNT ( * ) / + - 29 + 86 FROM tab1
----
77

query I rowsort
SELECT - col1 - + 6 FROM tab2
----
-57
-73
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT + - col0 - - col0 DIV + 65 AS col1 FROM tab1 AS cor0
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-7138
SELECT + - col0 - - col0 / + 65 AS col1 FROM tab1 AS cor0
----
-51
-84
-90

query II rowsort
SELECT ALL - 36, col2 + + - col0 + + col0 + + 46 AS col1 FROM tab0 AS cor0
----
-36
145
-36
56
-36
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7140
SELECT DISTINCT - 3, MIN( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-7140
SELECT DISTINCT - 3, MIN ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
-3
46

query II rowsort
SELECT + - 53 + col2 * - + 68 AS col2, ( + col0 ) FROM tab1 cor0
----
-4065
85
-4677
91
-6581
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 / col1 col2 FROM tab1 WHERE NULL < 85
----

query II rowsort
SELECT col2 AS col1, ( ( + - 40 ) ) * col2 - - col2 * + col0 + - + col1 AS col1 FROM tab0
----
10
449
47
-1256
99
5642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7145
SELECT COUNT( * ) DIV - SUM( ALL - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7145
SELECT COUNT ( * ) / - SUM ( ALL - col2 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 col1, - col0 AS col2, + 24 FROM tab0
----
9 values hashing to 683bf8373ab7965206165251445206a0

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT MIN( - 34 ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-7147
SELECT MIN ( - 34 ) FROM tab0
----
-34

query II rowsort
SELECT + col1 AS col2, 58 + - col1 AS col0 FROM tab0 AS cor0
----
1
57
21
37
81
-23

query I rowsort
SELECT DISTINCT - col0 * + 61 AS col2 FROM tab0
----
-5307
-5917
-915

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

skipif mysql # not compatible
query III rowsort label-7150
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) <> + - col1 * CAST ( + col0 AS INTEGER ) * 13 + - col0
----

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

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

query II rowsort
SELECT ALL col2 * + - 73 AS col1, + col2 AS col2 FROM tab2
----
-1679
23
-2920
40
-4234
58

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col0 * + + col2 > - + col1 + 54
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL - - col1 AS col2 FROM tab2 WHERE + + col1 NOT IN ( + 56, + 3, - CAST( + 92 AS SIGNED ), + col2, - - col2 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL - - col1 AS col2 FROM tab2 WHERE + + col1 NOT IN ( + 56, + 3, - CAST ( + 92 AS INTEGER ), + col2, - - col2 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT ( MAX( - 76 ) ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-7158
SELECT ( MAX ( - 76 ) ) FROM tab2
----
-76

query I rowsort
SELECT ALL col0 + - + 59 FROM tab0
----
-44
28
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7160
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) IN ( + col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-7160
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IN ( + col1, col0 )
----

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

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

query I rowsort
SELECT ALL 71 + + 96 AS col0 FROM tab0
----
167
167
167

query I rowsort
SELECT DISTINCT col1 * + + col1 + + col2 + - + 79 FROM tab1
----
213
2198
5

query I rowsort
SELECT ALL 2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - - 2 * - col2 IS NULL
----
2
2
2

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7167
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) DIV + - 22, col1 col2 FROM tab1 AS cor0
----
-2
14
-3
5
-4
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7167
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) / + - 22, col1 col2 FROM tab1 AS cor0
----
-2
14
-3
5
-4
47

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

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 50 * - 69 * - ( - - CAST ( NULL AS INTEGER ) ) + - CAST ( ( - col2 ) AS INTEGER ) + + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 75 * 33 * + 0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - 88 AS col1 FROM tab0 WHERE NOT + col1 * + - 27 IS NULL
----
-88
-88
-88

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - col1 ) + 11 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-3
-36
6

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - + SUM( + - 2 ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7178
SELECT - + SUM ( + - 2 ) AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT col0 * - 94 FROM tab1
----
-4794
-7990
-8554

query I rowsort
SELECT ALL - 70 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query II rowsort
SELECT + col2 AS col2, - col1 * 9 FROM tab0
----
10
-189
47
-729
99
-9

query I rowsort
SELECT + 81 * + + col2 FROM tab2 AS cor0
----
1863
3240
4698

query I rowsort
SELECT - col2 * + - ( col2 ) FROM tab1 cor0
----
3481
4624
9216

query II rowsort
SELECT - col1 * - + 74 AS col1, + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT 50 * - + col2 + + 54 FROM tab1
----
-2896
-3346
-4746

query I rowsort
SELECT ALL col1 + + 77 + + col1 FROM tab0
----
119
239
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT - MAX( DISTINCT + - 78 ) + - ( - 68 ) FROM tab0
----
146

skipif mysql # not compatible
query I rowsort label-7189
SELECT - MAX ( DISTINCT + - 78 ) + - ( - 68 ) FROM tab0
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT col1 DIV + 64 + + col2 + + 47 FROM tab2
----
106
70
88

skipif mysql # not compatible
query I rowsort label-7190
SELECT col1 / + 64 + + col2 + + 47 FROM tab2
----
106
70
88

query I rowsort
SELECT ALL + 36 * + + 55 - - col2 - + col1 FROM tab1 AS cor0
----
2001
2034
2062

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 < 13 / + ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + col0 - 69 + ( + col1 ) AS col0 FROM tab0
----
27
29
39

query I rowsort
SELECT col2 * col0 * col2 - - 26 FROM tab0
----
33161
8726
950723

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

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

query I rowsort
SELECT ALL - 2 + + - ( - - col0 ) AS col2 FROM tab1
----
-53
-87
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-7198
SELECT ALL - + col0, col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-15
1
-87
1
-97
1

skipif mysql # not compatible
query II rowsort label-7198
SELECT ALL - + col0, col0 / col0 AS col2 FROM tab0 AS cor0
----
-15
1
-87
1
-97
1

query II rowsort
SELECT DISTINCT + 0, 85 * + col1 AS col0 FROM tab1 cor0
----
0
1190
0
3995
0
425

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

query I rowsort
SELECT col1 * - ( - col0 ) FROM tab2
----
2346
4928
5025

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > 92 * + col2 * - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7204
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT - CAST( + + 25 AS DECIMAL ) <> - col1
----

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT - CAST ( + + 25 AS REAL ) <> - col1
----

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

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

query I rowsort
SELECT ALL - 87 AS col1 FROM tab1 cor0
----
-87
-87
-87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 77 AND NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT SUM ( - 32 ) AS col0 FROM tab2
----
-96

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

skipif mysql # not compatible
query I rowsort label-7210
SELECT 89 + + COUNT ( * ) FROM tab0
----
92

query I rowsort
SELECT DISTINCT 93 + + col1 + + col2 - - - ( - - col0 ) FROM tab0
----
206
37
96

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

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

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

query I rowsort
SELECT - 13 * + col2 + col0 FROM tab2 AS cor0
----
-253
-456
-679

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT + + col1 DIV col0 * - col1 + + - col1 FROM tab2 AS cor0
----
-102
-154
-67

skipif mysql # not compatible
query I rowsort label-7215
SELECT + + col1 / col0 * - col1 + + - col1 FROM tab2 AS cor0
----
-102
-154
-67

query I rowsort
SELECT + col1 * + - 40 FROM tab1
----
-1880
-200
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT + SUM( + 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7217
SELECT + SUM ( + 0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT ALL - CAST( + col0 AS SIGNED ) * - ( - + col0 ) + - - col2 * + col2 * + col2 AS col2 FROM tab0
----
-6569
103598
960890

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL - CAST ( + col0 AS INTEGER ) * - ( - + col0 ) + - - col2 * + col2 * + col2 AS col2 FROM tab0
----
-6569
103598
960890

query II rowsort
SELECT + ( col1 ) AS col0, col1 + col0 AS col0 FROM tab1
----
14
65
47
138
5
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - SUM( DISTINCT + 41 ) AS col1 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-7220
SELECT - SUM ( DISTINCT + 41 ) AS col1 FROM tab2
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + - col2 * - 4 * - 29 col0, - 53 AS col2 FROM tab2
----
-2617
-53
-4563
-53
-6661
-53

query I rowsort
SELECT DISTINCT col1 - 19 AS col0 FROM tab1
----
-14
-5
28

query I rowsort
SELECT - - AVG ( + 47 ) - 64 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

query I rowsort
SELECT + col0 + 93 AS col2 FROM tab2 AS cor0
----
139
157
168

query I rowsort
SELECT DISTINCT - - ( + 42 ) + - col1 FROM tab0 AS cor0
----
-39
21
41

query I rowsort
SELECT + 89 + + - ( + 56 ) * col0 AS col1 FROM tab0 cor0
----
-4783
-5343
-751

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

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

query I rowsort
SELECT DISTINCT - 68 * - col0 AS col1 FROM tab2
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query II rowsort label-7229
SELECT ALL + COUNT( * ) * 86, 18 AS col2 FROM tab0 AS cor0
----
258
18

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL + COUNT ( * ) * 86, 18 AS col2 FROM tab0 AS cor0
----
258
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT DISTINCT MIN( 40 ) * - COUNT( DISTINCT + + 16 ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT MIN ( 40 ) * - COUNT ( DISTINCT + + 16 ) FROM tab0 AS cor0
----
-40

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

query I rowsort
SELECT - - 68 * col2 + 4 * - + 64 * - col0 FROM tab0 cor0
----
22952
31564
7036

query I rowsort
SELECT - 96 * + 56 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5376
-5376
-5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 66 col1 FROM tab1 AS cor0
----
3894
4488
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-7235
SELECT ALL + col0 DIV col2 - - col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + col0 / col2 - - col2 FROM tab1 AS cor0
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT COUNT( - + 80 ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7236
SELECT COUNT ( - + 80 ) FROM tab2, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT + SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7237
SELECT + SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT + - col0 + - - col1 AS col1 FROM tab2 cor0
----
-8
13
5

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

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

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( - 20 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 10 * col0 FROM tab0
----
-150
-870
-970

query I rowsort
SELECT ( ( - col2 ) ) AS col0 FROM tab1
----
-59
-68
-96

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

query I rowsort
SELECT col2 + + 89 AS col1 FROM tab1 WHERE NOT + 7 + + col1 IS NULL
----
148
157
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT ( ( 76 ) / + 21 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT ( ( 76 ) / + 21 ) >= NULL
----
0

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

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

query I rowsort
SELECT 29 * - col0 AS col2 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT - MIN( + col2 ) * + COUNT( * ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-7248
SELECT - MIN ( + col2 ) * + COUNT ( * ) FROM tab2
----
-69

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 12 - 40 )
----

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

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

query I rowsort
SELECT ALL 22 * - 7 AS col0 FROM tab2
----
-154
-154
-154

query I rowsort
SELECT - col2 * + 21 FROM tab1
----
-1239
-1428
-2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * col2 col1 FROM tab2
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT 12 * - COUNT( * ) col0 FROM tab1
----
-36

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) = ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT MIN( DISTINCT 55 ) * - COUNT( * ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-7258
SELECT MIN ( DISTINCT 55 ) * - COUNT ( * ) FROM tab1
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT col1 * col2 + - CAST( 89 - 4 AS SIGNED ) FROM tab1
----
1259
210
3111

skipif mysql # not compatible
query I rowsort label-7259
SELECT col1 * col2 + - CAST ( 89 - 4 AS INTEGER ) FROM tab1
----
1259
210
3111

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT 64 + - col0 DIV col2 AS col2 FROM tab2
----
62
63
63

skipif mysql # not compatible
query I rowsort label-7260
SELECT 64 + - col0 / col2 AS col2 FROM tab2
----
62
63
63

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

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

query I rowsort
SELECT 1 + + 84 AS col2 FROM tab0
----
85
85
85

query I rowsort
SELECT DISTINCT - 97 * col2 AS col1 FROM tab0 AS cor0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT + 11 * MAX( 19 ) - + COUNT( * ) * 70 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT + 11 * MAX ( 19 ) - + COUNT ( * ) * 70 FROM tab0 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT ALL - col0 DIV + 65 col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7265
SELECT ALL - col0 / + 65 col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 - - col1 AS col1 FROM tab2 cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 col2 FROM tab1 AS cor0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( 62 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT 48 * ( COUNT( * ) ) AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT 48 * ( COUNT ( * ) ) AS col0 FROM tab1
----
144

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

query I rowsort
SELECT DISTINCT col2 * + ( 69 ) AS col0 FROM tab0
----
3243
6831
690

query I rowsort
SELECT + 29 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 11 / 21
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT ( - 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-7276
SELECT DISTINCT ( - MIN ( ALL + col2 ) ) col1 FROM tab1 AS cor0
----
-59

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

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

query I rowsort
SELECT DISTINCT col1 * - col1 + col0 * - 7 FROM tab2 AS cor0 WHERE NOT + col0 / 24 <= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7281
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7281
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 79 * - + col2 * col0 FROM tab2
----
-202240
-343650
-83582

query I rowsort
SELECT - col1 * - + col0 * col0 AS col2 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT DISTINCT + 96 * 51 * - 43 FROM tab2
----
-210528

query I rowsort
SELECT + ( + 11 ) * 61 FROM tab2
----
671
671
671

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT DISTINCT ( + ( + 68 ) ) DIV col1 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT ( + ( + 68 ) ) / col1 FROM tab1
----
1
13
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT ALL - 3 * 96 DIV - col1 FROM tab1
----
20
57
6

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - 3 * 96 / - col1 FROM tab1
----
20
57
6

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

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

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

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

query I rowsort
SELECT ALL + - 39 AS col0 FROM tab0 AS cor0
----
-39
-39
-39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7294
SELECT + COUNT( * ) DIV MAX( ALL + 99 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7294
SELECT + COUNT ( * ) / MAX ( ALL + 99 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - ( - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7296
SELECT DISTINCT + COUNT( * ) col0, - 11 FROM tab1
----
3
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7296
SELECT DISTINCT + COUNT ( * ) col0, - 11 FROM tab1
----
3
-11

query I rowsort
SELECT DISTINCT col0 * - - 31 + + col0 FROM tab0
----
2784
3104
480

query III rowsort
SELECT * FROM tab2 WHERE ( + - col1 ) = + col0
----

query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab0 cor0
----
49

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

query I rowsort
SELECT col0 * + + col2 * - col0 * - ( - 75 * 24 ) FROM tab2 AS cor0
----
-294912000
-587250000
-87602400

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7302
SELECT - MIN ( DISTINCT - col1 ) col1 FROM tab0 AS cor0
----
81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT COUNT( * ) * MAX( 68 ) FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-7305
SELECT COUNT ( * ) * MAX ( 68 ) FROM tab1 AS cor0
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT + ( - - col1 ) DIV + 72 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7306
SELECT + ( - - col1 ) / + 72 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT SUM( col2 ) FROM tab2 WHERE - col0 * - col0 + 46 = 6 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT SUM ( col2 ) FROM tab2 WHERE - col0 * - col0 + 46 = 6 * col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + 75 * - COUNT( * ) AS col0 FROM tab2 WHERE NULL <= - - col0
----
0

skipif mysql # not compatible
query I rowsort label-7308
SELECT + 75 * - COUNT ( * ) AS col0 FROM tab2 WHERE NULL <= - - col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL + 63 + + COUNT( * ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + 63 + + COUNT ( * ) AS col1 FROM tab1
----
66

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7312
SELECT ALL CAST ( 65 AS INTEGER ) - + COUNT ( * ) col2 FROM tab0
----
62

query I rowsort
SELECT ( - - col1 ) * + ( + 2 ) FROM tab2 AS cor0
----
102
134
154

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 - - 52 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7317
SELECT + ( 45 ) DIV + COUNT( DISTINCT col0 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7317
SELECT + ( 45 ) / + COUNT ( DISTINCT col0 ) col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - COUNT( DISTINCT + 2 ) + + - 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-7318
SELECT - COUNT ( DISTINCT + 2 ) + + - 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7319
SELECT ALL COUNT( * ) AS col0, SUM( ALL + col1 ) AS col2 FROM tab1
----
3
66

skipif mysql # not compatible
query II rowsort label-7319
SELECT ALL COUNT ( * ) AS col0, SUM ( ALL + col1 ) AS col2 FROM tab1
----
3
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col0 col2 FROM tab1 AS cor0
----
425
4277
714

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

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

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

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

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

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 32 >= + col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN - col1 AND + + 87 / ( - col2 ) * + col2 + col2 * - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT 79 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 65 + - col1 + + CAST( NULL AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-7329
SELECT 79 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 65 + - col1 + + CAST ( NULL AS INTEGER ) ) >= NULL
----

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

query I rowsort
SELECT ALL - + 46 AS col1 FROM tab0 AS cor0
----
-46
-46
-46

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 / col0 + - col2 >= + + col0
----

query I rowsort
SELECT ALL - 36 + + col2 - 71 * + col2 FROM tab1
----
-4166
-4796
-6756

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT - COUNT( * ) AS col0 FROM tab1, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7336
SELECT - COUNT ( * ) AS col0 FROM tab1, tab2 cor0
----
-9

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

query I rowsort
SELECT + col1 * + col1 + - 72 AS col0 FROM tab0
----
-71
369
6489

query I rowsort
SELECT + col0 + + - col0 + + 20 * + col2 AS col2 FROM tab0
----
1980
200
940

query I rowsort
SELECT - 64 * + col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 67, + col2 * + - 69 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT + + 37 DIV + col1 * + col2 + - col1 + col2 AS col2 FROM tab2 cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-7341
SELECT + + 37 / + col1 * + col2 + - col1 + col2 AS col2 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT ALL ( - + ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7343
SELECT + 32 + - MAX( + - CAST( - ( - 53 ) AS SIGNED ) ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7343
SELECT + 32 + - MAX ( + - CAST ( - ( - 53 ) AS INTEGER ) ) FROM tab1 AS cor0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT + col1 DIV - ( 31 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7344
SELECT + col1 / - ( 31 ) FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7345
SELECT * FROM tab0 AS cor0 WHERE - col0 * + 2 + - - col2 + - col1 >= - ( CAST( col0 AS SIGNED ) )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-7345
SELECT * FROM tab0 AS cor0 WHERE - col0 * + 2 + - - col2 + - col1 >= - ( CAST ( col0 AS INTEGER ) )
----
97
1
99

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( 60 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7348
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 69 * - col1 NOT BETWEEN + - 72 AND ( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 69 * - col1 NOT BETWEEN + - 72 AND ( + CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> - col2 + - - col1
----

query I rowsort
SELECT DISTINCT col2 - + + ( 2 ) AS col0 FROM tab2 AS cor0
----
21
38
56

query II rowsort
SELECT DISTINCT - + col2 * col2 AS col2, 48 FROM tab0 AS cor0
----
-100
48
-2209
48
-9801
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7352
SELECT - col2 + + 81 FROM tab0 AS cor0 WHERE ( NOT 56 * + CAST( NULL AS SIGNED ) IS NOT NULL )
----
-18
34
71

skipif mysql # not compatible
query I rowsort label-7352
SELECT - col2 + + 81 FROM tab0 AS cor0 WHERE ( NOT 56 * + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
-18
34
71

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

query I rowsort
SELECT - col2 + + 36 + col2 AS col2 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT col0 + + + col0 + col2 AS col0 FROM tab0
----
184
293
77

query I rowsort
SELECT DISTINCT + 61 + + col2 AS col2 FROM tab1 WHERE NOT + - col1 IS NULL
----
120
129
157

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT - COUNT( * ) + - - 27 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - COUNT ( * ) + - - 27 FROM tab0
----
24

query I rowsort
SELECT ALL - col0 - + + col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT - col0 + + 53 + + ( + 46 ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - 29, 82 )
----

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

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

query I rowsort
SELECT + col1 * 55 AS col1 FROM tab0
----
1155
4455
55

query II rowsort
SELECT DISTINCT - 25 AS col2, 20 FROM tab0 AS cor0
----
-25
20

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( 46 ) + + - ( col2 ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> 27 + - ( 87 ) * col1
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 60 / 52 * + col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7370
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7370
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT 13 DIV - col2 * col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT 13 / - col2 * col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + 36, - col1 )
----

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + 36, - col1 )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col0 * col1 * - col1
----

query II rowsort
SELECT ALL - 64 * + - col0, + col1 * - col0 + - 4 AS col1 FROM tab0 AS cor0 WHERE NOT - 16 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT MIN( DISTINCT + 51 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-7377
SELECT MIN ( DISTINCT + 51 ) FROM tab0
----
51

query I rowsort
SELECT ALL + 3 + - 82 FROM tab0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN ( - ( + 78 ) / + col2 ) AND col0
----

query I rowsort
SELECT DISTINCT + col0 + + - 42 FROM tab2
----
22
33
4

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7381
SELECT ALL - col2 + + CAST ( - col2 AS INTEGER ) - + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 92 AS col1, col2 FROM tab1
----
92
59
92
68
92
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7384
SELECT ALL + col2 AS col2, ( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-7384
SELECT ALL + col2 AS col2, ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT + + 93 + + + MIN( ALL + ( - 68 ) ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7386
SELECT + + 93 + + + MIN ( ALL + ( - 68 ) ) FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT MIN( - col2 ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT MIN ( - col2 ) AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab1 WHERE NULL <> NULL
----

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

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

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2 AS cor0 WHERE - col1 > NULL
----

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

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

query I rowsort
SELECT ALL ( + ( + + col2 ) ) * col0 + + + 22 FROM tab1 AS cor0
----
4918
5037
6210

query I rowsort
SELECT - col1 - + - col0 AS col0 FROM tab1 cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - - MAX( DISTINCT + col1 ) - + 57 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-7394
SELECT - - MAX ( DISTINCT + col1 ) - + 57 FROM tab0 cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7395
SELECT - col2 DIV - 20 AS col0 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-7395
SELECT - col2 / - 20 AS col0 FROM tab0
----
0
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7396
SELECT DISTINCT col1 DIV 22 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT col1 / 22 FROM tab0
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7397
SELECT ( 46 ) DIV - - COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7397
SELECT ( 46 ) / - - COUNT ( * ) FROM tab2
----
15

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT ALL + COUNT( * ), + 13 AS col2 FROM tab1 WHERE - col2 + - col0 <= NULL
----
0
13

skipif mysql # not compatible
query II rowsort label-7399
SELECT ALL + COUNT ( * ), + 13 AS col2 FROM tab1 WHERE - col2 + - col0 <= NULL
----
0
13

query I rowsort
SELECT ALL col2 * + col0 * - 68 FROM tab1
----
-332928
-341020
-420784

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + 67 * + + col1 = - + 16
----
-51
-85
-91

query II rowsort
SELECT + - col1 * 57 AS col0, + col1 * + + 67 FROM tab1 AS cor0
----
-2679
3149
-285
335
-798
938

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT - 51 DIV + 41 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7403
SELECT - 51 / + 41 FROM tab2 AS cor0
----
-1
-1
-1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7406
SELECT MAX( - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT MAX ( - - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 cor0
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7409
SELECT + 92 DIV + col1 AS col2, + col1 + - col0 + 49 * col2 FROM tab1 AS cor0 WHERE NOT ( NOT 78 IS NOT NULL )
----
1
3288
18
2811
6
4667

skipif mysql # not compatible
query II rowsort label-7409
SELECT + 92 / + col1 AS col2, + col1 + - col0 + 49 * col2 FROM tab1 AS cor0 WHERE NOT ( NOT 78 IS NOT NULL )
----
1
3288
18
2811
6
4667

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT ALL + col1 + + col0 DIV - 7 FROM tab2 AS cor0
----
45
57
68

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + col1 + + col0 / - 7 FROM tab2 AS cor0
----
45
57
68

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

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

query I rowsort
SELECT ALL col2 * + - col0 + + - col2 AS col2 FROM tab2 cor0
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT SUM( - 1 ) + + 78 AS col2 FROM tab0 WHERE ( col1 + 66 / + 67 + + col2 + col1 - + col2 + + + col1 / + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT SUM ( - 1 ) + + 78 AS col2 FROM tab0 WHERE ( col1 + 66 / + 67 + + col2 + col1 - + col2 + + + col1 / + col1 ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 + col0 AS col1, + 63 FROM tab1
----
144
63
147
63
159
63

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

query I rowsort
SELECT ALL 69 + + - col2 FROM tab0
----
-30
22
59

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 57 >= + - col0
----
46
51
23

query I rowsort
SELECT - col1 + - col2 - - col1 * 14 FROM tab1
----
543
6
86

query I rowsort
SELECT col2 + + 86 * col0 FROM tab0
----
1337
7492
8441

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 44 > + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL + COUNT( ALL + - col0 ) * 28 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + COUNT ( ALL + - col0 ) * 28 FROM tab2 AS cor0
----
84

query I rowsort
SELECT + ( + ( - 66 ) ) * - col0 - col1 FROM tab2
----
2985
4147
4883

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT COUNT( - 25 ) col0 FROM tab2 AS cor0 WHERE col2 >= - col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7427
SELECT COUNT ( - 25 ) col0 FROM tab2 AS cor0 WHERE col2 >= - col0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT + 17 + - col2 + ( - - CAST( col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
26
45
54

skipif mysql # not compatible
query I rowsort label-7429
SELECT + 17 + - col2 + ( - - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
26
45
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT MAX( + - 13 ) + - 97 FROM tab1 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-7430
SELECT MAX ( + - 13 ) + - 97 FROM tab1 AS cor0
----
-110

query I rowsort
SELECT - ( + - 99 ) + + col1 + - 63 AS col1 FROM tab2 cor0
----
103
113
87

query I rowsort
SELECT ALL + 61 * col1 FROM tab2 cor0
----
3111
4087
4697

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT DISTINCT - + 45 DIV + + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT - + 45 / + + col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7434
SELECT - COUNT( ALL - ( 9 ) ) DIV ( - - 15 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT - COUNT ( ALL - ( 9 ) ) / ( - - 15 ) FROM tab0
----
0

query II rowsort
SELECT - col2 * - col0, col0 AS col0 FROM tab1
----
4896
51
5015
85
6188
91

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

skipif mysql # not compatible
query II rowsort label-7436
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2
----
-9
3

query II rowsort
SELECT DISTINCT - col1, + col2 AS col1 FROM tab1
----
-14
96
-47
68
-5
59

query II rowsort
SELECT col0, - col1 * col2 FROM tab0
----
15
-3807
87
-210
97
-99

query I rowsort
SELECT + - AVG ( DISTINCT + 97 ) FROM tab0 AS cor0 WHERE NOT ( 85 ) <> col1
----
NULL

query I rowsort
SELECT ALL - 2 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

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

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

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

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

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

query III rowsort
SELECT ALL - ( + - col1 ) + + col2 AS col1, - 1 - + col0, - col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to 37e7a7d0205bd056918bcff9c79f4de7

query I rowsort
SELECT - - 52 * + - ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
160160
202072
60996

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7448
SELECT 71 col1 FROM tab1 AS cor0 WHERE CAST ( + 3 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7449
SELECT ALL col0 + + + CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL col0 + + + CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT ALL 33 + + 32 + + + 75 DIV + col2 AS col1 FROM tab2
----
66
66
68

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL 33 + + 32 + + + 75 / + col2 AS col1 FROM tab2
----
66
66
68

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 + 8 + col2 + - 24 = 91
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7455
SELECT ALL + - COUNT( * ) AS col0, + CAST( + 85 AS SIGNED ) FROM tab0 AS cor0
----
-3
85

skipif mysql # not compatible
query II rowsort label-7455
SELECT ALL + - COUNT ( * ) AS col0, + CAST ( + 85 AS INTEGER ) FROM tab0 AS cor0
----
-3
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 + ( + col1 ) col0 FROM tab2 cor0
----
22
32
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7457
SELECT col2 DIV 41 * + - col0 + + col0 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-51
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-7457
SELECT col2 / 41 * + - col0 + + col0 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-51
NULL
0
NULL
0
NULL

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

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

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL 53 + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 NOT BETWEEN NULL AND - 59
----

query I rowsort
SELECT DISTINCT - - col1 * + - 25 AS col1 FROM tab2 AS cor0
----
-1275
-1675
-1925

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

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

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT - 77 IS NULL
----
-23
-40
-58

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7465
SELECT * FROM tab2 WHERE NOT - 57 * + - col1 + col2 * + col2 > - ( CAST( NULL AS DECIMAL ) ) + + 21
----

skipif mysql # not compatible
query III rowsort label-7465
SELECT * FROM tab2 WHERE NOT - 57 * + - col1 + col2 * + col2 > - ( CAST ( NULL AS REAL ) ) + + 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT ALL ( + col1 ) * 55 DIV - - 29 AS col0 FROM tab1
----
26
89
9

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL ( + col1 ) * 55 / - - 29 AS col0 FROM tab1
----
26
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + - SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7467
SELECT + - SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
103

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

skipif mysql # not compatible
query I rowsort label-7468
SELECT + - SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 = - col2
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 51 * - - col1 + + 96 + + - col1 * + ( 64 ) IS NULL
----

query I rowsort
SELECT DISTINCT + AVG ( ALL - col0 ) * + ( + 88 ) / - 90 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7473
SELECT ALL + + col0 DIV - - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + + col0 / - - col1 AS col2 FROM tab2 AS cor0
----
0
0
1

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

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

query I rowsort
SELECT - + 24 * + col1 FROM tab1 AS cor0
----
-1128
-120
-336

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL MAX( DISTINCT + col1 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT ALL + - 72 AS col0 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT + col0 + 87 + + + col2 + - col2 AS col0 FROM tab2
----
133
151
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + + COUNT( * ) FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7482
SELECT + + COUNT ( * ) FROM tab0 WHERE NULL <> NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL MAX( ALL + 62 ) + - COUNT( * ) col1 FROM tab2
----
59

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7485
SELECT ALL CAST( NULL AS SIGNED ) - col1, ( - - 83 ) AS col0 FROM tab0
----
NULL
83
NULL
83
NULL
83

skipif mysql # not compatible
query II rowsort label-7485
SELECT ALL CAST ( NULL AS INTEGER ) - col1, ( - - 83 ) AS col0 FROM tab0
----
NULL
83
NULL
83
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT COUNT( * ) FROM tab1 WHERE col2 NOT BETWEEN + 37 AND 48
----
3

skipif mysql # not compatible
query I rowsort label-7486
SELECT COUNT ( * ) FROM tab1 WHERE col2 NOT BETWEEN + 37 AND 48
----
3

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

query I rowsort
SELECT DISTINCT col2 + + col1 - 75 AS col0 FROM tab1
----
-11
35
40

query I rowsort
SELECT DISTINCT + + ( - - 68 ) - + col2 FROM tab0 AS cor0
----
-31
21
58

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7492
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT ALL + 38 / - 28 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + CAST( + - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL + 38 / - 28 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + CAST ( + - col1 AS INTEGER )
----

query I rowsort
SELECT ( + - col2 ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7495
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 65 IN ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7495
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 65 IN ( + - CAST ( NULL AS INTEGER ) )
----

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

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

query I rowsort
SELECT ALL col2 * - col2 * - col0 FROM tab2
----
102400
24334
252300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL - COUNT( * ) * 23 * - 92 * COUNT( ALL - col1 ) AS col1 FROM tab1
----
19044

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - COUNT ( * ) * 23 * - 92 * COUNT ( ALL - col1 ) AS col1 FROM tab1
----
19044

query I rowsort
SELECT col0 * - 65 * - col0 FROM tab2
----
137540
266240
365625

query I rowsort
SELECT DISTINCT - - 5 AS col1 FROM tab0 WHERE NOT ( ( ( NOT col2 IS NULL ) ) )
----

query I rowsort
SELECT 70 * - ( col1 ) AS col1 FROM tab1
----
-3290
-350
-980

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

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

query I rowsort
SELECT ALL 55 + + col1 * - + 36 AS col2 FROM tab2
----
-1781
-2357
-2717

query I rowsort
SELECT DISTINCT 9 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 78 + + col2 + 19 / col1 NOT BETWEEN + col2 AND NULL
----

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

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

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

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

query I rowsort
SELECT - + col0 * - col2 * + 35 FROM tab2 cor0
----
152250
37030
89600

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + MIN( 68 ) AS col2 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7514
SELECT + MIN ( 68 ) AS col2 FROM tab1 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-7515
SELECT ALL ( + col2 ) * col0 + - + 32, - col1 DIV - col0 + + col2 AS col1 FROM tab2
----
1026
24
2528
41
4318
58

skipif mysql # not compatible
query II rowsort label-7515
SELECT ALL ( + col2 ) * col0 + - + 32, - col1 / - col0 + + col2 AS col1 FROM tab2
----
1026
24
2528
41
4318
58

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

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

query I rowsort
SELECT ALL 0 - col0 + + col1 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 WHERE - 62 * - + col1 + - + col1 - + 20 + - - col1 NOT BETWEEN + ( col0 ) AND NULL
----
97
1
99

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

query I rowsort
SELECT ALL - + ( - - col2 ) - col1 - - + 87 FROM tab0 AS cor0
----
-13
-41
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - - 99 + + - col0 + - col2 col2 FROM tab2 AS cor0
----
-5118
-6766
-7727

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

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

query II rowsort
SELECT ALL 40 * + + col2 AS col0, + col1 * col1 + - col0 - + - col2 + col2 * - col1 * + col0 AS col1 FROM tab0 cor0 WHERE NOT col0 > ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab1 WHERE + col2 * - col0 < ( + + 46 )
----
-45
23
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT + COUNT( DISTINCT 92 ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7526
SELECT DISTINCT + COUNT ( DISTINCT 92 ) col1 FROM tab0 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-7527
SELECT - ( + MAX ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

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

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

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

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

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

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE col1 / 50 * col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND 85
----

query I rowsort
SELECT col1 * + 98 FROM tab0
----
2058
7938
98

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

skipif mysql # not compatible
query II rowsort label-7535
SELECT + CAST ( NULL AS REAL ) - + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col0 FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT ALL - 70 - - + MIN( DISTINCT - 32 ) AS col2 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - 70 - - + MIN ( DISTINCT - 32 ) AS col2 FROM tab1 AS cor0
----
-102

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 16 ) < col1
----
15
81
47
87
21
10

query I rowsort
SELECT 89 + col2 + - 22 + - 62 FROM tab2 AS cor0
----
28
45
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE ( ( - 88 ) + - + col0 ) NOT BETWEEN NULL AND col1 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( ( - 88 ) + - + col0 ) NOT BETWEEN NULL AND col1 * + 40
----
0

query II rowsort
SELECT DISTINCT 8 * - col1, + col0 AS col0 FROM tab1 cor0
----
-112
51
-376
91
-40
85

query I rowsort
SELECT DISTINCT + + col1 + - + 35 AS col0 FROM tab0 AS cor0
----
-14
-34
46

query III rowsort
SELECT * FROM tab2 WHERE - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT + 40 * + 62 + - SUM( DISTINCT + 71 ) AS col1 FROM tab2
----
2409

skipif mysql # not compatible
query I rowsort label-7544
SELECT + 40 * + 62 + - SUM ( DISTINCT + 71 ) AS col1 FROM tab2
----
2409

query I rowsort
SELECT ALL col1 - - + col2 AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL - col2 + + - col1 AS col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT - col2 * - 40 + - col2 + - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL = + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT + COUNT( * ) * + ( - ( - 90 ) ) + + 85 AS col1 FROM tab0 cor0
----
355

skipif mysql # not compatible
query I rowsort label-7548
SELECT + COUNT ( * ) * + ( - ( - 90 ) ) + + 85 AS col1 FROM tab0 cor0
----
355

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT DISTINCT + 6 * - col1 * - - 0 DIV - col1 * + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT + 6 * - col1 * - - 0 / - col1 * + col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT - MIN( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7550
SELECT - MIN ( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT - - 29 AS col1 FROM tab1 AS cor0
----
29

query II rowsort
SELECT ALL + + col2, - col2 FROM tab1 cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT DISTINCT 97, COUNT( * ) AS col0 FROM tab1 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-7553
SELECT DISTINCT 97, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
97
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL - SUM( DISTINCT + ( 65 ) ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - SUM ( DISTINCT + ( 65 ) ) FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL MIN( ALL col0 ) + + 37 * + COUNT( * ) + - - 80 col0 FROM tab2 cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7556
SELECT ALL MIN ( ALL col0 ) + + 37 * + COUNT ( * ) + - - 80 col0 FROM tab2 cor0
----
237

query III rowsort
SELECT * FROM tab1 WHERE NOT + 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT + MAX( + 36 ) col1 FROM tab0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7558
SELECT + MAX ( + 36 ) col1 FROM tab0
----
36

query I rowsort
SELECT DISTINCT + 7 / - col2 * + col2 FROM tab0 WHERE + + 64 IS NULL
----

query I rowsort
SELECT - 3 * 27 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT + 21 * 73 FROM tab2
----
1533
1533
1533

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT + 69 * + ( + ( + COUNT( * ) ) ) FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-7562
SELECT + 69 * + ( + ( + COUNT ( * ) ) ) FROM tab0
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * col0 + + 30 + + col0 col0 FROM tab0 cor0
----
4815
5365
855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT DISTINCT + 83 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + 83 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT - CAST( + 9 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif mysql # not compatible
query I rowsort label-7565
SELECT - CAST ( + 9 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7566
SELECT ALL + col1 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 < - 78
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + col1 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 < - 78
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL + MAX( ALL + + col1 ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7567
SELECT ALL + MAX ( ALL + + col1 ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7569
SELECT + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7569
SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7570
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + col0 * + + 19 FROM tab0 AS cor0
----
1653
1843
285

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 / col1 * 41 + + col1 IS NOT NULL
----

query I rowsort
SELECT col2 - + + 25 FROM tab1 AS cor0
----
34
43
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT DISTINCT CAST( 59 AS SIGNED ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT CAST ( 59 AS INTEGER ) FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 + - col0 * + col1 + + col1 * - col0 col2 FROM tab0 AS cor0
----
-2515
-279
-3739

query I rowsort
SELECT col0 - - 94 AS col1 FROM tab0
----
109
181
191

query I rowsort
SELECT ALL 47 + - - 67 FROM tab1
----
114
114
114

query II rowsort
SELECT ALL - 65 * 33 AS col2, 63 FROM tab1
----
-2145
63
-2145
63
-2145
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 36 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 63 AS col0 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-7580
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 63 AS col0 FROM tab0
----
-189

query I rowsort
SELECT ALL + 89 * - col1 AS col1 FROM tab1 AS cor0
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT SUM( + - col0 ) * + - COUNT( 43 ) AS col2 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT SUM ( + - col0 ) * + - COUNT ( 43 ) AS col2 FROM tab1 AS cor0
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT + - col2 DIV col2 AS col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7583
SELECT + - col2 / col2 AS col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 + + 18 AS col1 FROM tab1 AS cor0
----
-41
-50
-78

query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 50 * col1 * - col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col0 + 61 AS col2 FROM tab2
----
158
202
203

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL MIN( col1 ) FROM tab0 WHERE + ( + - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL MIN ( col1 ) FROM tab0 WHERE + ( + - col1 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7588
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col1, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7588
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + col2 * + col0 * - 9
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7590
SELECT ALL + - 23, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-23
-3

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL + - 23, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-23
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) * - 50 + - 77 FROM tab2 cor0
----
-527

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * - 50 + - 77 FROM tab2 cor0
----
-527

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT + 65 + + ( - ( - 6 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7594
SELECT * FROM tab0 WHERE + col0 IN ( col2 * + + CAST( NULL AS SIGNED ) * + col0 * + 36 - + + col0, col2 ) AND NULL < 95
----

skipif mysql # not compatible
query III rowsort label-7594
SELECT * FROM tab0 WHERE + col0 IN ( col2 * + + CAST ( NULL AS INTEGER ) * + col0 * + 36 - + + col0, col2 ) AND NULL < 95
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT - + COUNT( * ) + - SUM( - + col1 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
100
3

skipif mysql # not compatible
query II rowsort label-7595
SELECT - + COUNT ( * ) + - SUM ( - + col1 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
100
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT - + ( - - col2 ) * + - col0 - + - col2 DIV - 92 + + 10 + - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
5001
5084
6266

skipif mysql # not compatible
query I rowsort label-7596
SELECT - + ( - - col2 ) * + - col0 - + - col2 / - 92 + + 10 + - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
5001
5084
6266

query I rowsort
SELECT ALL 46 * + col1 FROM tab0 cor0 WHERE + col1 * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT COUNT( * ) + - ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT COUNT ( * ) + - ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT 87 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 / col1 AS col0 FROM tab1 AS cor0 WHERE ( 32 ) = NULL
----

query I rowsort
SELECT - ( + - col2 ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7602
SELECT * FROM tab1 WHERE NOT ( + + col1 ) NOT BETWEEN - CAST( + 56 AS SIGNED ) AND - + col2 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7602
SELECT * FROM tab1 WHERE NOT ( + + col1 ) NOT BETWEEN - CAST ( + 56 AS INTEGER ) AND - + col2 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - 28 FROM tab1
----
-1652
-1904
-2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - col0 * + + 23 AS col0 FROM tab0
----
-2001
-2231
-345

query I rowsort
SELECT ALL 77 * + col1 FROM tab2
----
3927
5159
5929

query I rowsort
SELECT DISTINCT + 99 * + col2 FROM tab2
----
2277
3960
5742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col2 FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL 44 * + - COUNT( * ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL 44 * + - COUNT ( * ) FROM tab1
----
-132

query I rowsort
SELECT DISTINCT - + 22 * - + 51 * - - 90 * + col0 * - 49 FROM tab1 AS cor0
----
-252349020
-420581700
-450269820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7611
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 / + 11 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7614
SELECT CAST( NULL AS SIGNED ) * - ( - COUNT( * ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7615
SELECT - 9 * col1 col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-459
NULL
-603
NULL
-693
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7615
SELECT - 9 * col1 col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-459
NULL
-603
NULL
-693
NULL

query I rowsort
SELECT ALL - + col0 * - - col2 * - + col0 FROM tab1 WHERE NOT - - col2 IS NULL
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT ALL + 21 DIV ( - col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + 21 / ( - col0 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 24 < ( - ( - + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7619
SELECT ALL 75 DIV + CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) + + col1, + col2 * + - col0 AS col2 FROM tab0
----
-74
-9603
18
-870
81
-705

skipif mysql # not compatible
query II rowsort label-7619
SELECT ALL 75 / + CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) + + col1, + col2 * + - col0 AS col2 FROM tab0
----
-74
-9603
18
-870
81
-705

query I rowsort
SELECT 52 * + col0 AS col2 FROM tab1
----
2652
4420
4732

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT ALL - col1 DIV - col0 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - col1 / - col0 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT + 47 AS col0 FROM tab0 WHERE + - col1 / - col0 IS NOT NULL
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7623
SELECT ALL * FROM tab1 WHERE NOT + ( + col2 ) NOT BETWEEN - - CAST( - ( - - col1 ) AS SIGNED ) + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7623
SELECT ALL * FROM tab1 WHERE NOT + ( + col2 ) NOT BETWEEN - - CAST ( - ( - - col1 ) AS INTEGER ) + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT 83 * + COUNT( * ) AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-7624
SELECT 83 * + COUNT ( * ) AS col0 FROM tab1
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-7625
SELECT ( - - col1 ) + - 43 + + - 54 + 37 DIV - col2 * - col2 * col1 AS col2 FROM tab1 AS cor0
----
-50
-83
-92

skipif mysql # not compatible
query I rowsort label-7625
SELECT ( - - col1 ) + - 43 + + - 54 + 37 / - col2 * - col2 * col1 AS col2 FROM tab1 AS cor0
----
-50
-83
-92

query II rowsort
SELECT col1 * + col1 + + - 58, col0 * + 19 AS col1 FROM tab2 AS cor0
----
2543
874
4431
1425
5871
1216

query I rowsort
SELECT + col1 + + + 44 FROM tab1 AS cor0
----
49
58
91

query II rowsort
SELECT col0 + + ( - col0 ) AS col1, + col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

query I rowsort
SELECT ALL + col2 * - 9 AS col1 FROM tab2
----
-207
-360
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT DISTINCT MAX( ALL + - col0 ) + 82 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT MAX ( ALL + - col0 ) + 82 FROM tab1
----
31

query II rowsort
SELECT + col2 * col2 AS col0, col0 AS col0 FROM tab1 AS cor0
----
3481
85
4624
91
9216
51

query II rowsort
SELECT ALL 10 AS col1, col0 * - col0 + - ( + + col2 ) FROM tab2 AS cor0
----
10
-2139
10
-4136
10
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL + MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT + - ( + MAX( - 21 ) ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7634
SELECT + - ( + MAX ( - 21 ) ) FROM tab0 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + col2 * + col0 col0 FROM tab0 AS cor0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT + + 31 * - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7636
SELECT + + 31 * - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 cor0
----
-31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 56 >= NULL
----

query I rowsort
SELECT DISTINCT + 39 * + col1 AS col1 FROM tab1
----
1833
195
546

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL + 66 * SUM( 48 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
9504

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL + 66 * SUM ( 48 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
9504

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7641
SELECT + ( - - COUNT( * ) ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT + ( - - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT 89 + - MAX( + - col0 ) + + AVG ( - - col2 ) FROM tab2 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT 89 + - MAX ( + - col0 ) + + AVG ( - - col2 ) FROM tab2 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT + + 84 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT - - ( + 8 ) FROM tab1 AS cor0
----
8
8
8

query II rowsort
SELECT - + col1 AS col0, + 68 AS col2 FROM tab1 AS cor0
----
-14
68
-47
68
-5
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 8 ) = - col1 * - col2
----

query II rowsort
SELECT - 45, - col2 * + col2 AS col1 FROM tab1 cor0
----
-45
-3481
-45
-4624
-45
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT - 72 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - 72 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL CAST( NULL AS SIGNED ) + - 82 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL CAST ( NULL AS INTEGER ) + - 82 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + + 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + 2 - 31 FROM tab2 AS cor0
----
17
35
46

query I rowsort
SELECT ALL - 32 + + - col0 FROM tab2
----
-107
-78
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT DISTINCT 45 + + - col2 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT 45 + + - col2 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7654
SELECT - COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE + col2 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7654
SELECT - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE + col2 IS NULL
----
0
NULL

query I rowsort
SELECT DISTINCT - col1 + - - col2 + - col2 + col2 + + - col0 AS col2 FROM tab1
----
-31
-70
31

query I rowsort
SELECT 21 + - - ( - 95 ) FROM tab2
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + + col1 + - ( - + 38 ) AS col1 FROM tab2 WHERE NOT - + col1 + + - 96 = + col0
----
105
115
89

query I rowsort
SELECT ALL - col0 + ( - 93 ) FROM tab0
----
-108
-180
-190

query I rowsort
SELECT + 12 + - col1 AS col1 FROM tab0
----
-69
-9
11

query I rowsort
SELECT - col0 * + 80 + + - col2 AS col2 FROM tab0
----
-1247
-6970
-7859

query I rowsort
SELECT DISTINCT ( - 31 ) - col1 + - + 52 FROM tab2
----
-134
-150
-160

query I rowsort
SELECT DISTINCT - 37 + - col2 + + col2 AS col0 FROM tab2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT CAST( - col2 AS SIGNED ) * + col0 * - - col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

skipif mysql # not compatible
query I rowsort label-7663
SELECT CAST ( - col2 AS INTEGER ) * + col0 * - - col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT - col1 + + + 73 * col0 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col1 FROM tab2 AS cor0 WHERE NOT - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL 91 * + COUNT( * ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL 91 * + COUNT ( * ) FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + COUNT( * ) - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7667
SELECT + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - 38 + + 40 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT DISTINCT - col2 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT - col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT ALL - - col2 * - - col2 * ( - ( + - col2 ) ) + + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
205438
314500
884832

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - - col2 * - - col2 * ( - ( + - col2 ) ) + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
205438
314500
884832

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT ALL + - col2 DIV col2 + - + 26 FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + - col2 / col2 + - + 26 FROM tab0 AS cor0
----
-27
-27
-27

query II rowsort
SELECT DISTINCT + col2, 20 FROM tab0 AS cor0
----
10
20
47
20
99
20

query I rowsort
SELECT - 19 * - - col1 AS col0 FROM tab0 AS cor0
----
-1539
-19
-399

query I rowsort
SELECT ALL 11 * + + col1 FROM tab0
----
11
231
891

query I rowsort
SELECT - 51 * + + ( 19 ) AS col1 FROM tab1
----
-969
-969
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT col2 DIV - + 73 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7676
SELECT col2 / - + 73 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT ALL COUNT( * ), COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7677
SELECT ALL COUNT ( * ), COUNT ( * ) AS col0 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT ALL + COUNT( * ), ( - - 91 ) * ( - COUNT( * ) ) + + 10 AS col0 FROM tab2
----
3
-263

skipif mysql # not compatible
query II rowsort label-7678
SELECT ALL + COUNT ( * ), ( - - 91 ) * ( - COUNT ( * ) ) + + 10 AS col0 FROM tab2
----
3
-263

query II rowsort
SELECT DISTINCT 87 AS col1, - ( - - col1 ) FROM tab0
----
87
-1
87
-21
87
-81

query II rowsort
SELECT ALL col1, + 49 FROM tab0
----
1
49
21
49
81
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL ( - COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL ( - COUNT ( * ) ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, + col2, col2 / + col2 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7683
SELECT ALL - col0 + - + CAST( NULL AS SIGNED ), col1 col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7683
SELECT ALL - col0 + - + CAST ( NULL AS INTEGER ), col1 col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL 32 + + + 7 AS col1 FROM tab2 WHERE NOT - + col1 + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 WHERE NOT NULL < + - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7685
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 WHERE NOT NULL < + - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + MAX( - 70 ) + + MIN( DISTINCT 60 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-10

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + MAX ( - 70 ) + + MIN ( DISTINCT 60 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7687
SELECT ALL - + CAST( - 86 AS SIGNED ), + col0 AS col1 FROM tab0 AS cor0
----
86
15
86
87
86
97

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL - + CAST ( - 86 AS INTEGER ), + col0 AS col1 FROM tab0 AS cor0
----
86
15
86
87
86
97

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT + col1 + + - 78 * 19 AS col2 FROM tab0 AS cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - + SUM( 55 ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - + SUM ( 55 ) FROM tab0 AS cor0
----
-165

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7691
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 * - - col1 AND - col1 - + + CAST( + 71 AS DECIMAL ) * + col1
----

skipif mysql # not compatible
query III rowsort label-7691
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 * - - col1 AND - col1 - + + CAST ( + 71 AS REAL ) * + col1
----

query I rowsort
SELECT ALL - - 1 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7693
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + - 78 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) + - 78 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 49 + - + col2 * - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 49 + - + col2 * - col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 WHERE NULL <> - + col1 + + 94
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 WHERE NULL <> - + col1 + + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + - SUM( ALL 35 ) * - COUNT( * ) + - 67 col0 FROM tab0 AS cor0
----
248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7697
SELECT + - SUM ( ALL 35 ) * - COUNT ( * ) + - 67 col0 FROM tab0 AS cor0
----
248

query I rowsort
SELECT 43 + col1 + col0 AS col1 FROM tab1 AS cor0
----
108
133
181

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT - - COUNT( * ) + + 70 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7699
SELECT - - COUNT ( * ) + + 70 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT - SUM( - 99 ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-7700
SELECT - SUM ( - 99 ) FROM tab1
----
297

query I rowsort
SELECT - col0 / col1 AS col0 FROM tab1 WHERE NOT ( NULL ) >= + col0 * - 31
----

query I rowsort
SELECT ( 32 ) - 22 AS col1 FROM tab1
----
10
10
10

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - 17 AND 83 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 31 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT - 50 FROM tab2 WHERE NOT NULL > + 32 + 68
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN col2 AND + col2
----

query I rowsort
SELECT col1 FROM tab0 WHERE - col1 < ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND - col2
----

query I rowsort
SELECT - 95 AS col1 FROM tab2 WHERE NOT ( 0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7710
SELECT DISTINCT * FROM tab2 WHERE col2 * - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7710
SELECT DISTINCT * FROM tab2 WHERE col2 * - CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL CAST( col1 AS SIGNED ) FROM tab0 WHERE + col0 * col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL CAST ( col1 AS INTEGER ) FROM tab0 WHERE + col0 * col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col0 + 10 FROM tab1
----
101
61
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab2 WHERE NULL NOT BETWEEN + ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT COUNT( DISTINCT col2 ) * CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT COUNT ( DISTINCT col2 ) * CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT - 53 * ( + COUNT( * ) ) FROM tab0 WHERE NULL IN ( + 63 )
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 53 * ( + COUNT ( * ) ) FROM tab0 WHERE NULL IN ( + 63 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + ( MIN( DISTINCT - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7716
SELECT + ( MIN ( DISTINCT - col1 ) ) FROM tab2
----
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT 88 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 * 62 )
----

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 * 62 )
----

query I rowsort
SELECT ALL 97 + + col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
112
184
194

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 6 + - 45 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT 87 * SUM( col2 ) AS col1 FROM tab0
----
13572

skipif mysql # not compatible
query I rowsort label-7722
SELECT 87 * SUM ( col2 ) AS col1 FROM tab0
----
13572

query I rowsort
SELECT ALL - col2 + - ( col2 ) * + 79 FROM tab2
----
-1840
-3200
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT - MIN( ALL col2 ) + SUM( DISTINCT + 5 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7724
SELECT - MIN ( ALL col2 ) + SUM ( DISTINCT + 5 ) FROM tab0 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= + 65 * 84 - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT 67 * - COUNT( col2 * col1 ) + + 35 FROM tab0 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-7726
SELECT 67 * - COUNT ( col2 * col1 ) + + 35 FROM tab0 AS cor0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT MAX( + 53 ) / + 15 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 83 AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT MAX ( + 53 ) / + 15 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 83 AND ( col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT DISTINCT CAST( + col2 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7729
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7730
SELECT ALL 3 * + CAST( 15 / + COUNT( * ) AS SIGNED ) + + 31 col1 FROM tab1 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7730
SELECT ALL 3 * + CAST ( 15 / + COUNT ( * ) AS INTEGER ) + + 31 col1 FROM tab1 cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7731
SELECT + ( 91 ) * CAST( col2 - 81 AS SIGNED ) FROM tab2 AS cor0
----
-2093
-3731
-5278

skipif mysql # not compatible
query I rowsort label-7731
SELECT + ( 91 ) * CAST ( col2 - 81 AS INTEGER ) FROM tab2 AS cor0
----
-2093
-3731
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT COUNT( * ) + 13 FROM tab1 AS cor0 WHERE ( - col1 * col2 ) IN ( col0 )
----
13

skipif mysql # not compatible
query I rowsort label-7732
SELECT COUNT ( * ) + 13 FROM tab1 AS cor0 WHERE ( - col1 * col2 ) IN ( col0 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT COUNT( * ) + + 45 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7733
SELECT COUNT ( * ) + + 45 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT + SUM( col2 ) AS col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT + SUM ( col2 ) AS col0 FROM tab1 cor0
----
223

query I rowsort
SELECT + - col0 * - col2 + 23 AS col0 FROM tab2 cor0
----
1081
2583
4373

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT COUNT( ALL 14 ) * - 30 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT COUNT ( ALL 14 ) * - 30 FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT - ( - 10 ) / - MIN( DISTINCT + 38 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( - col2 * col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT - ( - 10 ) / - MIN ( DISTINCT + 38 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( - col2 * col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT 60 + COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7738
SELECT 60 + COUNT ( * ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT + 78 + + 61 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT BETWEEN NULL AND - 7
----

query I rowsort
SELECT ALL - col1 + - + 0 * + col2 AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 / + col2 + col2 BETWEEN NULL AND ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT COUNT( * ) + + 8 * - COUNT( ALL - col0 ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-7743
SELECT COUNT ( * ) + + 8 * - COUNT ( ALL - col0 ) AS col0 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT - MIN( - col0 ) + + COUNT( * ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT - MIN ( - col0 ) + + COUNT ( * ) AS col0 FROM tab2
----
78

query I rowsort
SELECT DISTINCT - col2 - - - col1 + + col1 AS col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - 48 )
----

query I rowsort
SELECT ALL + col1 * - - 98 AS col0 FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT 42 * + COUNT( * ) - 23 * - 66 FROM tab1
----
1644

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT 42 * + COUNT ( * ) - 23 * - 66 FROM tab1
----
1644

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + COUNT( * ) * + SUM( + col1 ) + 46 FROM tab0 AS cor0
----
355

skipif mysql # not compatible
query I rowsort label-7749
SELECT + COUNT ( * ) * + SUM ( + col1 ) + 46 FROM tab0 AS cor0
----
355

query I rowsort
SELECT ALL 77 AS col1 FROM tab0 AS cor0 WHERE 12 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT DISTINCT + col1 * + col2 * 83 - 38 DIV + col0 FROM tab2 AS cor0
----
255640
322538
97359

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + col1 * + col2 * 83 - 38 / + col0 FROM tab2 AS cor0
----
255640
322538
97359

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT MIN( ALL + col0 ) col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7752
SELECT MIN ( ALL + col0 ) col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT DISTINCT - CAST( - 84 AS SIGNED ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - CAST ( - 84 AS INTEGER ) FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT DISTINCT - ( SUM( DISTINCT col2 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT - ( SUM ( DISTINCT col2 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 73 + + 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 AS col1 FROM tab2 WHERE ( col0 * col0 ) IS NULL
----

query I rowsort
SELECT - 43 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 1 col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT MAX( ALL 51 ) AS col2 FROM tab2 AS cor0 WHERE NOT 0 * + col1 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT MAX ( ALL 51 ) AS col2 FROM tab2 AS cor0 WHERE NOT 0 * + col1 * col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + + col2 / + ( 60 ) + + 64 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT IN ( + - col1 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( + ( - col2 ) - - col1 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7763
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - CAST( NULL AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7763
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - CAST ( NULL AS INTEGER ) * + col2 IS NULL
----

query I rowsort
SELECT col1 * + 91 * - col2 AS col1 FROM tab0
----
-19110
-346437
-9009

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT - - col2 NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - 54 * + + 66 FROM tab2
----
-3564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * + 35 col2 FROM tab2
----
1960
1960
1960

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - + 41 + - 10 <> NULL
----

query I rowsort
SELECT - - 4 + col2 AS col0 FROM tab1 WHERE NOT NULL > col0
----

query I rowsort
SELECT ALL - - col2 * - col1 AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7772
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col2 + + - col2 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7772
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col2 + + - col2 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT DISTINCT + 89 * + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT + 89 * + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ( - col0 ) DIV col2 - - col0 + col0 * - col2 + col2 FROM tab1
----
-4749
-4872
-6030

skipif mysql # not compatible
query I rowsort label-7774
SELECT ( - col0 ) / col2 - - col0 + col0 * - col2 + col2 FROM tab1
----
-4749
-4872
-6030

query I rowsort
SELECT 78 * + 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61aea37bcffe1ce617da1e9f1a6c280c

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 * - + ( col1 ) + col1 * col2 ) IN ( col2 + - col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 54 IN ( + col1 * - col1 + - + 14 + ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7778
SELECT - col2 DIV CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7778
SELECT - col2 / CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7779
SELECT - + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

query II rowsort
SELECT - + 81 * + 19 * + + 86 AS col1, + 46 FROM tab2 AS cor0
----
-132354
46
-132354
46
-132354
46

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * - 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT 77 * - + col0 IS NOT NULL AND + 71 NOT BETWEEN ( + col1 + 27 ) AND NULL
----

query I rowsort
SELECT - 76 - - col0 AS col1 FROM tab2
----
-1
-12
-30

query II rowsort
SELECT DISTINCT + col1 AS col1, - ( + 65 ) FROM tab0
----
1
-65
21
-65
81
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7785
SELECT ALL col2 + - - col1 + - - CAST( NULL AS SIGNED ) * + 43 * 83 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL col2 + - - col1 + - - CAST ( NULL AS INTEGER ) * + 43 * 83 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - col1 + + col1 - col1 FROM tab1
----
-138
-65
-90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 58 NOT BETWEEN + - ( + col2 ) + col1 AND + col1 * + col0
----
85
5
59
91
47
68

query I rowsort
SELECT + + ( - 60 ) AS col1 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT - + col0 * - - col1 + + - 16 AS col1 FROM tab1 AS cor0
----
-4293
-441
-730

query II rowsort
SELECT + col0 AS col1, + 65 + + - col2 FROM tab0 AS cor0
----
15
18
87
55
97
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7791
SELECT - 1 * + - col0 * - + 46 * + col0 AS col0, - CAST( - 25 AS SIGNED ) * col1 + - ( col1 ) FROM tab2 AS cor0
----
-188416
1848
-258750
1608
-97336
1224

skipif mysql # not compatible
query II rowsort label-7791
SELECT - 1 * + - col0 * - + 46 * + col0 AS col0, - CAST ( - 25 AS INTEGER ) * col1 + - ( col1 ) FROM tab2 AS cor0
----
-188416
1848
-258750
1608
-97336
1224

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - col0 * - col1 * - + col2 ) = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL + - COUNT( - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + - COUNT ( - col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT + + ( - + MIN( col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7795
SELECT + + ( - + MIN ( col2 ) ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - + col1 * + col2 - ( col1 ) + + col1 + - col2 * + col1 FROM tab1 AS cor0
----
-2688
-590
-6392

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT ALL - 88 * COUNT( * ) AS col1 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL - 88 * COUNT ( * ) AS col1 FROM tab1
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT DISTINCT - col2 DIV - - 27 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - col2 / - - 27 FROM tab0
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT - col0 + 24 / 33 FROM tab2 WHERE NOT + col0 + + + col1 * + - col1 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-7801
SELECT - col0 + 24 / 33 FROM tab2 WHERE NOT + col0 + + + col1 * + - col1 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT ALL + 61 DIV 44 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL + 61 / 44 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col0 * + 48 AS col2 FROM tab1
----
-2448
-4080
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT MIN( + + col2 ) DIV - 44 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7804
SELECT MIN ( + + col2 ) / - 44 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT - ( COUNT( * ) ) + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-7805
SELECT - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE ( ( NOT ( NOT ( ( - 18 ) ) IS NOT NULL ) ) )
----
51
67
77

query I rowsort
SELECT DISTINCT - 93 * + + col0 * + - ( col1 ) - + ( + col2 ) FROM tab2 AS cor0
----
218155
458264
467267

onlyif mysql # DIV for integer division: 
query I rowsort label-7808
SELECT - ( + col1 ) DIV col0 * + col1 * 88 + + - col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7808
SELECT - ( + col1 ) / col0 * + col1 * 88 + + - col2 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT ALL col1 - - 63 AS col1 FROM tab1 AS cor0
----
110
68
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( + 47 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 59 + col2 FROM tab0
----
106
158
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 * + col1 col0 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT + ( 50 ) AS col2 FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-7815
SELECT COUNT( * ) * MAX( - 0 ), 51 col2 FROM tab1
----
0
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7815
SELECT COUNT ( * ) * MAX ( - 0 ), 51 col2 FROM tab1
----
0
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7816
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 3 + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7816
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 3 + CAST ( + col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col1 FROM tab2 cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - - COUNT( * ) * - 73 - - ( - ( - + 0 ) ) AS col0 FROM tab2 WHERE NOT - - 81 - + ( + + col1 ) IS NULL
----
-219

skipif mysql # not compatible
query I rowsort label-7818
SELECT - - COUNT ( * ) * - 73 - - ( - ( - + 0 ) ) AS col0 FROM tab2 WHERE NOT - - 81 - + ( + + col1 ) IS NULL
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL + MIN( ALL - 49 ) AS col1 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + MIN ( ALL - 49 ) AS col1 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + 25 * MAX( ALL col2 ) FROM tab1
----
2400

skipif mysql # not compatible
query I rowsort label-7820
SELECT + 25 * MAX ( ALL col2 ) FROM tab1
----
2400

query I rowsort
SELECT - col2 * - + 80 FROM tab1
----
4720
5440
7680

query II rowsort
SELECT ALL 20 AS col0, + 70 * col0 FROM tab2
----
20
3220
20
4480
20
5250

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 * - 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 97 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
97
1
97
21
97
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 37 + - col1 IS NULL
----

query I rowsort
SELECT - 40 * - - col2 AS col1 FROM tab1 AS cor0
----
-2360
-2720
-3840

query II rowsort
SELECT 40 AS col1, col0 AS col0 FROM tab0 AS cor0
----
40
15
40
87
40
97

query I rowsort
SELECT ALL - + 69 * + col1 * - 86 + - col0 + - 6 * - col1 AS col0 FROM tab0 AS cor0
----
124653
481125
5843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7829
SELECT DISTINCT AVG ( ALL + + CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT AVG ( ALL + + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN + + col0 + + col1 AND + 79 * - 62 + + 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + col1 + - + col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT - 65 * - col2 * + col1 FROM tab0
----
13650
247455
6435

query I rowsort
SELECT 3 + - col0 * - - col1 FROM tab0 AS cor0
----
-1212
-1824
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT ALL - 92, + SUM( - 28 ) + COUNT( DISTINCT + 8 ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-92
-251

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7834
SELECT ALL - 92, + SUM ( - 28 ) + COUNT ( DISTINCT + 8 ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-92
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL + CAST( NULL AS SIGNED ) - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + CAST ( NULL AS INTEGER ) - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + col1 * - col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query II rowsort
SELECT + + 20 AS col1, col1 * col1 + - 27 AS col0 FROM tab1 AS cor0
----
20
-2
20
169
20
2182

query I rowsort
SELECT ALL + 50 - + - col0 AS col0 FROM tab2 AS cor0
----
114
125
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL + + ( + COUNT( * ) ) * + 87 AS col2 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + + ( + COUNT ( * ) ) * + 87 AS col2 FROM tab1 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT DISTINCT + COUNT( * ) * + - MIN( - + col2 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7841
SELECT DISTINCT + COUNT ( * ) * + - MIN ( - + col2 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + col2 * + 39 FROM tab0 AS cor0
----
148473
3861
8190

query I rowsort
SELECT - ( col0 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7844
SELECT DISTINCT - 61 * + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * + + 6 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + - CAST( NULL AS DECIMAL ) - - col1 >= - col0 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7844
SELECT DISTINCT - 61 * + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + + 6 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + - CAST ( NULL AS REAL ) - - col1 >= - col0 )
----
0
NULL

query I rowsort
SELECT ALL - 41 - + col1 AS col0 FROM tab1 AS cor0
----
-46
-55
-88

query I rowsort
SELECT col2 * + - col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL IN ( 1 ) ) )
----

query I rowsort
SELECT 72 - - col2 + col1 FROM tab1 AS cor0
----
136
182
187

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE NOT + 27 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7849
SELECT DISTINCT + + 93 * - + 50 - + SUM( DISTINCT - col2 ) * - - MIN( DISTINCT + col1 ) AS col2, COUNT( * ) + - - COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3535
NULL

skipif mysql # not compatible
query II rowsort label-7849
SELECT DISTINCT + + 93 * - + 50 - + SUM ( DISTINCT - col2 ) * - - MIN ( DISTINCT + col1 ) AS col2, COUNT ( * ) + - - COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3535
NULL

query II rowsort
SELECT - col0 * - + col2 + - col1 AS col1, 28 FROM tab2 AS cor0
----
1007
28
2483
28
4283
28

query I rowsort
SELECT col2 * - 19 * + + col0 AS col2 FROM tab2
----
-20102
-48640
-82650

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - - 86 * col0
----

query I rowsort
SELECT ( col1 ) + - col1 AS col1 FROM tab1 WHERE NOT - 47 + + + col1 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7854
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col2, col0 col0 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - + 22 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT - - MAX( 33 ) AS col0 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - - MAX ( 33 ) AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT + col1 * + ( + - CAST( NULL AS SIGNED ) ) + - 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT + col1 * + ( + - CAST ( NULL AS INTEGER ) ) + - 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + MAX( - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7859
SELECT + MAX ( - col1 ) FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7860
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT MAX( DISTINCT + + 15 ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT MAX ( DISTINCT + + 15 ) AS col0 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL 2 + - COUNT( * ) + - + 91 col0 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7862
SELECT ALL 2 + - COUNT ( * ) + - + 91 col0 FROM tab2 AS cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT DISTINCT + MIN( ALL 33 ) * - - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT + MIN ( ALL 33 ) * - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
297

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - 59
----

query I rowsort
SELECT 37 * - 95 + col0 * - 95 FROM tab2
----
-10640
-7885
-9595

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7866
SELECT ALL col1 / + ( + 28 ) AS col2, col2 col2 FROM tab0 WHERE NULL BETWEEN col0 * - 39 AND - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7866
SELECT ALL col1 / + ( + 28 ) AS col2, col2 col2 FROM tab0 WHERE NULL BETWEEN col0 * - 39 AND - CAST ( col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL - 98 + + + COUNT( * ) AS col0 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - 98 + + + COUNT ( * ) AS col0 FROM tab1
----
-95

query I rowsort
SELECT ALL - col2 + + - 25 AS col1 FROM tab0
----
-124
-35
-72

query I rowsort
SELECT - - col1 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT ALL COUNT( - + col0 ) AS col1, + ( + COUNT( * ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7871
SELECT ALL COUNT ( - + col0 ) AS col1, + ( + COUNT ( * ) ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT CAST( NULL AS SIGNED ) + + 98 - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT CAST ( NULL AS INTEGER ) + + 98 - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 93 * + col2 / - - 3 + - 95 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 93 * + col2 / - - 3 + - 95 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT 60 * - MAX( DISTINCT - 25 ) FROM tab0
----
1500

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT 60 * - MAX ( DISTINCT - 25 ) FROM tab0
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT MAX( DISTINCT - col1 ) * 41 FROM tab2
----
-2091

skipif mysql # not compatible
query I rowsort label-7875
SELECT MAX ( DISTINCT - col1 ) * 41 FROM tab2
----
-2091

query I rowsort
SELECT ALL - ( ( + - col0 ) ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7877
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT 34 + col1 AS col1 FROM tab2 cor0
----
101
111
85

query I rowsort
SELECT ALL + 93 * - 68 + col1 + + col1 * col0 FROM tab1
----
-2000
-5596
-5894

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col0 ) * + + 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + - col0 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - 11 AS col2 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT col0 + - ( + 7 ) FROM tab1 AS cor0
----
44
78
84

query I rowsort
SELECT DISTINCT 90 * - col0 AS col2 FROM tab0 AS cor0
----
-1350
-7830
-8730

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT DISTINCT - - col0 DIV - 43 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT - - col0 / - 43 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col1 * col0 + - 10 FROM tab2 AS cor0
----
-2356
-4938
-5035

query I rowsort
SELECT - - 63 FROM tab0 AS cor0 WHERE NOT + 46 + - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT col1 DIV - 95 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT col1 / - 95 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT + CAST( - SUM( ALL - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT + CAST ( - SUM ( ALL - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 70 * - col0 + - ( + - col2 ) col1 FROM tab1 AS cor0
----
3666
6009
6438

query I rowsort
SELECT + - col1 + + 64 FROM tab0 WHERE NOT - col1 IS NULL
----
-17
43
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT 26 DIV - + col2 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7894
SELECT 26 / - + col2 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT DISTINCT + col2 DIV - + col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + col2 / - + col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT COUNT( - - 37 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7897
SELECT COUNT ( - - 37 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT + 82 * COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7898
SELECT + 82 * COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query II rowsort
SELECT col2, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + col0 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - - 41 + + + 43 AS col2 FROM tab0 AS cor0 WHERE - col1 < + ( - + col1 ) * + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col0 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT - COUNT( ( + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7903
SELECT - COUNT ( ( + col2 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL SUM( DISTINCT + 38 ) AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL SUM ( DISTINCT + 38 ) AS col0 FROM tab0
----
38

query I rowsort
SELECT ALL - ( - + col2 ) AS col1 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col2 * col2 - - - 57 )
----

query II rowsort
SELECT DISTINCT col1, col0 FROM tab1 AS cor0 WHERE NOT ( + ( 71 ) * col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT - COUNT( * ) * 28 + 3 AS col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7908
SELECT - COUNT ( * ) * 28 + 3 AS col0 FROM tab1 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-7909
SELECT DISTINCT + 41 DIV - col0, col1 FROM tab2 AS cor0 WHERE + 46 IS NOT NULL
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-7909
SELECT DISTINCT + 41 / - col0, col1 FROM tab2 AS cor0 WHERE + 46 IS NOT NULL
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 20 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - - 50 ) col1 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT + - MIN( DISTINCT col0 ) AS col2 FROM tab2 cor0 WHERE NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + - MIN ( DISTINCT col0 ) AS col2 FROM tab2 cor0 WHERE NULL = col2
----
NULL

query I rowsort
SELECT ALL 70 + + + 24 AS col2 FROM tab0
----
94
94
94

query I rowsort
SELECT + col1 - col1 + + + col2 * - + col0 + + col0 + + col2 * col0 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 + + - col2 + col2 * ( col0 ) FROM tab2
----
1058
2560
4350

query II rowsort
SELECT ALL + col1 + - + col1 + + - col0 AS col2, col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7917
SELECT COUNT( * ) * - 47 * 77 + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT COUNT ( * ) * - 47 * 77 + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + + col2 * col1 + 56 FROM tab0 AS cor0
----
155
266
3863

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT + 12 + + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT + 12 + + COUNT ( * ) FROM tab0
----
15

query I rowsort
SELECT ALL - col2 + - - ( col1 ) FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL COUNT( DISTINCT + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL COUNT ( DISTINCT + col1 ) FROM tab0
----
3

query II rowsort
SELECT + col2 AS col2, ( + - col2 ) + + ( + col0 ) + - + col0 FROM tab0
----
10
-10
47
-47
99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 + - col2 col1 FROM tab1
----
-16
-25
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL ( 73 ) * + + COUNT( * ) AS col1 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL ( 73 ) * + + COUNT ( * ) AS col1 FROM tab2
----
219

query II rowsort
SELECT + 9, - col1 AS col0 FROM tab1 AS cor0
----
9
-14
9
-47
9
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 * + - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT DISTINCT + ( + 23 ) DIV - + 25 + col1 + + col1 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT + ( + 23 ) / - + 25 + col1 + + col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + ( + + COUNT( * ) ) * + 14 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7928
SELECT + ( + + COUNT ( * ) ) * + 14 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT - SUM( + 91 ) AS col1 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-7929
SELECT - SUM ( + 91 ) AS col1 FROM tab2 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 63 col2, 85 AS col1 FROM tab0 AS cor0
----
63
85
63
85
63
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 55 + - + 57 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 3 NOT IN ( col2, + 31, 81 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT - col0 DIV 39 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-7933
SELECT - col0 / 39 FROM tab0 AS cor0
----
-2
-2
0

query I rowsort
SELECT DISTINCT - - 94 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + - - col1 FROM tab2 WHERE NOT + + col0 < - + col0
----
117
125
74

query I rowsort
SELECT ALL col2 * - + col0 * - col1 AS col1 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 + 61
----

query I rowsort
SELECT DISTINCT + col1 * + - ( 74 ) FROM tab1
----
-1036
-3478
-370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT ALL - MIN( + CAST( + - col1 AS SIGNED ) ) * + COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - MIN ( + CAST ( + - col1 AS INTEGER ) ) * + COUNT ( * ) FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - - SUM( ALL + 53 ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7940
SELECT - - SUM ( ALL + 53 ) FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - MIN( ( + - col2 ) ) col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7941
SELECT - MIN ( ( + - col2 ) ) col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 86 * - col0 FROM tab0
----
60630
74820
825858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT + + 87 * + col0 FROM tab0 AS cor0
----
1305
7569
8439

query II rowsort
SELECT DISTINCT + + col0, + col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL - COUNT( * ) + 82 AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL - COUNT ( * ) + 82 AS col2 FROM tab1 AS cor0
----
79

query II rowsort
SELECT DISTINCT 42, col1 * + 39 AS col2 FROM tab1 AS cor0
----
42
1833
42
195
42
546

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
6

query I rowsort
SELECT - + 58 + - - 86 * - col1 FROM tab1 WHERE ( col0 ) = 39 + + + col0 + 60 + 52 * + col2
----

query I rowsort
SELECT + 35 + + 47 AS col1 FROM tab1
----
82
82
82

query III rowsort
SELECT * FROM tab2 WHERE - 25 * - - 9 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 50 + - 78 FROM tab0, tab1 AS cor0
----
-28

query I rowsort
SELECT + col1 FROM tab0 WHERE + - 30 * col1 BETWEEN NULL AND - 8
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 BETWEEN + + 83 AND - col2 + 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * + col1 - + + col1 * + + col2 FROM tab2
----
-3774
-8375
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + 82 + - COUNT( * ) + + + 52 * 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2465

skipif mysql # not compatible
query I rowsort label-7957
SELECT + 82 + - COUNT ( * ) + + + 52 * 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2465

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col1 ) * - 65 > - + col2 + - + 20 + - 84 + + 13 * + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 94 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7960
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) AND - + col0
----

skipif mysql # not compatible
query III rowsort label-7960
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) AND - + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 23 * - col2 + + col1 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
1362
1611
2222

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT - col2 DIV + 62 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT - col2 / + 62 AS col0 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT 73 * - 3 * - COUNT( * ) AS col1 FROM tab2
----
657

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT 73 * - 3 * - COUNT ( * ) AS col1 FROM tab2
----
657

query I rowsort
SELECT DISTINCT + col2 * - 74 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT - col2 * - 22 FROM tab0
----
1034
2178
220

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7967
SELECT ALL SUM( - + col1 ) * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL SUM ( - + col1 ) * + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + ( + + col2 ) ) * - col2 col1, col2 + col0 AS col2 FROM tab1
----
-3481
144
-4624
159
-9216
147

query I rowsort
SELECT + col1 * - ( + col1 ) AS col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ( col0 ) * col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT 76 + - 12 FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - - 34 * 60 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + 45 AND - 62 * + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT + 27 * + MAX( DISTINCT 98 ) FROM tab0 cor0
----
2646

skipif mysql # not compatible
query I rowsort label-7974
SELECT + 27 * + MAX ( DISTINCT 98 ) FROM tab0 cor0
----
2646

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7975
SELECT DISTINCT + COUNT( + - CAST( 34 AS DECIMAL ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT + COUNT ( + - CAST ( 34 AS REAL ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - 55 * + - 3 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 96 * + col2 ) IS NULL
----
165
165
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT MAX( ALL + ( col2 ) ) col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7977
SELECT MAX ( ALL + ( col2 ) ) col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL - + col2 * col0 * + 30 FROM tab2 AS cor0
----
-130500
-31740
-76800

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT + - MAX( col0 ) * 99 AS col1 FROM tab1 AS cor0
----
-9009

skipif mysql # not compatible
query I rowsort label-7979
SELECT + - MAX ( col0 ) * 99 AS col1 FROM tab1 AS cor0
----
-9009

query I rowsort
SELECT ALL - 2 * + - 35 FROM tab2 AS cor0
----
70
70
70

query II rowsort
SELECT ALL + col0 + - 55 AS col0, 27 FROM tab1 AS cor0
----
-4
27
30
27
36
27

query II rowsort
SELECT ALL + col1 + + col1 * col0, ( - + 70 ) AS col0 FROM tab1
----
430
-70
4324
-70
728
-70

query I rowsort
SELECT - col2 - - 71 AS col2 FROM tab2
----
13
31
48

query I rowsort
SELECT DISTINCT - 16 * - 11 + col2 FROM tab0
----
186
223
275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL MAX( DISTINCT - col0 ) - 34 + - - CAST( - - 65 AS SIGNED ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL MAX ( DISTINCT - col0 ) - 34 + - - CAST ( - - 65 AS INTEGER ) FROM tab2
----
-15

query I rowsort
SELECT + ( ( + col1 ) ) - + col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT - ( + - 5 ) - SUM( DISTINCT + col1 ) AS col1 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT - ( + - 5 ) - SUM ( DISTINCT + col1 ) AS col1 FROM tab1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT 65 - + - COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT 65 - + - COUNT ( * ) FROM tab1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7989
SELECT DISTINCT - - col0 AS col1, - 12 / + col2 AS col2 FROM tab0 WHERE NOT col2 IS NULL AND NOT col1 * - CAST( - + col0 AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7989
SELECT DISTINCT - - col0 AS col1, - 12 / + col2 AS col2 FROM tab0 WHERE NOT col2 IS NULL AND NOT col1 * - CAST ( - + col0 AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7990
SELECT ALL CAST( col1 AS SIGNED ) * col1 - col1 * - col0 - + ( + col1 ) - col1 - + 50, col1 col1 FROM tab0
----
2176
21
46
1
7564
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7990
SELECT ALL CAST ( col1 AS INTEGER ) * col1 - col1 * - col0 - + ( + col1 ) - col1 - + 50, col1 col1 FROM tab0
----
2176
21
46
1
7564
81

query I rowsort
SELECT col1 * + + 17 AS col0 FROM tab1 AS cor0
----
238
799
85

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab0 cor0 WHERE NOT ( NULL <> + ( col2 ) + - + 40 * col2 )
----

query I rowsort
SELECT - + col2 + - - col2 AS col2 FROM tab0 WHERE NOT 16 IS NULL
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7995
SELECT - - CAST( + 85 AS SIGNED ) AS col0, + col1 FROM tab0 AS cor0
----
85
1
85
21
85
81

skipif mysql # not compatible
query II rowsort label-7995
SELECT - - CAST ( + 85 AS INTEGER ) AS col0, + col1 FROM tab0 AS cor0
----
85
1
85
21
85
81

query I rowsort
SELECT ALL - + 51 FROM tab1 cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 80 NOT BETWEEN + - col1 AND - col0
----

query I rowsort
SELECT 77 * - + 65 + + + col0 FROM tab0 AS cor0
----
-4908
-4918
-4990

query I rowsort
SELECT ALL + col1 * + 75 + - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + 51
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8000
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( 47 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 * + - 68 + col0 NOT IN ( + 80 * - + 41 * + col0 + - + col2 - - - col1 )
----

query I rowsort
SELECT ALL + col2 * 34 FROM tab1
----
2006
2312
3264

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= col2
----

query I rowsort
SELECT DISTINCT + 37 * col0 FROM tab1 AS cor0
----
1887
3145
3367

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT MAX( DISTINCT 91 ) AS col2 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8006
SELECT MAX ( DISTINCT 91 ) AS col2 FROM tab2 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 29 IS NULL
----

query I rowsort
SELECT DISTINCT 95 * + col2 + + 91 FROM tab0
----
1041
4556
9496

query I rowsort
SELECT 32 * + 52 + + col1 + + col2 AS col1 FROM tab0 AS cor0
----
1695
1764
1792

query I rowsort
SELECT 92 * + col1 - - + 95 * + col2 + - 91 AS col2 FROM tab0 AS cor0
----
11826
2791
9406

query I rowsort
SELECT ALL + col0 * - ( + + 33 ) * - 74 + - + col1 FROM tab2 AS cor0
----
112281
156211
183083

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT - - SUM( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT - - SUM ( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) / + 5 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) / + 5 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * col0 - col0 AS col2 FROM tab1 cor0
----
4845
4930
6097

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8015
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( NOT CAST( NULL AS SIGNED ) + - col0 IS NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8015
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( NOT CAST ( NULL AS INTEGER ) + - col0 IS NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT DISTINCT + 4 DIV - col2 * - col2 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT + 4 / - col2 * - col2 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT + MIN( ALL - col2 ) FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) IS NOT NULL ) )
----
-96

skipif mysql # not compatible
query I rowsort label-8017
SELECT + MIN ( ALL - col2 ) FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) IS NOT NULL ) )
----
-96

query I rowsort
SELECT DISTINCT - col1 * - 42 AS col0 FROM tab0 AS cor0
----
3402
42
882

query I rowsort
SELECT - + 88 FROM tab1 WHERE + - col1 IS NOT NULL
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT DISTINCT + col1 DIV col2 + 67 AS col0 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + col1 / col2 + 67 AS col0 FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - ( + - COUNT( ALL - + col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8021
SELECT - ( + - COUNT ( ALL - + col0 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 + - + 28 + 23 FROM tab2
----
41
59
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8023
SELECT ALL - CAST( + - 79 AS SIGNED ) AS col0, MAX( - 22 ) FROM tab2
----
79
-22

skipif mysql # not compatible
query II rowsort label-8023
SELECT ALL - CAST ( + - 79 AS INTEGER ) AS col0, MAX ( - 22 ) FROM tab2
----
79
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT MIN( 88 ) AS col2 FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-8024
SELECT MIN ( 88 ) AS col2 FROM tab1 cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 83 + + + col0 + + col1 / 38 col0, + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + 62 / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8026
SELECT DISTINCT - col2 AS col0, CAST( NULL AS SIGNED ) * + col2 + col0 + col0 AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8026
SELECT DISTINCT - col2 AS col0, CAST ( NULL AS INTEGER ) * + col2 + col0 + col0 AS col2 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8027
SELECT + - SUM( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT + - SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT ALL + COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + - 45 + - - SUM( - - col1 ) FROM tab2 AS cor0 WHERE NOT - col2 - + - col0 / - col1 IS NULL
----
150

skipif mysql # not compatible
query I rowsort label-8029
SELECT + - 45 + - - SUM ( - - col1 ) FROM tab2 AS cor0 WHERE NOT - col2 - + - col0 / - col1 IS NULL
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8030
SELECT DISTINCT 86 DIV - + MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT 86 / - + MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT + 64 IN ( + 51, 67 )
----
-14
-47
-5

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ( + - 97 ) * + SUM( - + col2 ) FROM tab0
----
15132

skipif mysql # not compatible
query I rowsort label-8034
SELECT ( + - 97 ) * + SUM ( - + col2 ) FROM tab0
----
15132

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + 58 * + 8, 48 * - - col0 col2 FROM tab1
----
523
4080
532
4368
560
2448

query I rowsort
SELECT DISTINCT + + col0 - + 91 FROM tab1 AS cor0
----
-40
-6
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT ALL - CAST( + 36 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
-1692
-180
-504

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL - CAST ( + 36 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
-1692
-180
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 61 col0 FROM tab0 AS cor0
----
-5307
-5917
-915

query I rowsort
SELECT + col2 - + + col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL - col0 + + + 78 AS col1 FROM tab1 AS cor0
----
-13
-7
27

query I rowsort
SELECT ALL - - 76 * - + 48 * + + col2 FROM tab2 AS cor0
----
-145920
-211584
-83904

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ( + 0 ) * - COUNT( - col0 ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8043
SELECT ( + 0 ) * - COUNT ( - col0 ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 * 88 AS col1 FROM tab0
----
-4136
-8712
-880

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT ALL + 85 DIV + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL + 85 / + col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8046
SELECT COUNT( * ), 20 AS col0 FROM tab1 AS cor0
----
3
20

skipif mysql # not compatible
query II rowsort label-8046
SELECT COUNT ( * ), 20 AS col0 FROM tab1 AS cor0
----
3
20

query I rowsort
SELECT DISTINCT + col2 * + + ( col2 ) FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + 41 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * 90 / - 16 IS NULL
----
41
41
41

query I rowsort
SELECT ALL - 5 - + 4 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8050
SELECT DISTINCT - CAST( MAX( DISTINCT - 2 ) AS SIGNED ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT - CAST ( MAX ( DISTINCT - 2 ) AS INTEGER ) FROM tab0
----
2

query I rowsort
SELECT - ( + - ( col1 ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT + col0 * - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8053
SELECT - col2 * + col2 + + CAST( NULL AS DECIMAL ) * 11 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-8053
SELECT - col2 * + col2 + + CAST ( NULL AS REAL ) * 11 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 84 + + col1 + col1, col1 * col2 col0 FROM tab1
----
112
1344
178
3196
94
295

query I rowsort
SELECT DISTINCT - col0 + - - 13 AS col1 FROM tab1
----
-38
-72
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + - 66 + col0 col1, col1 FROM tab0
----
-36
81
108
21
128
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT ALL 76 DIV 1 AS col2 FROM tab1
----
76
76
76

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL 76 / 1 AS col2 FROM tab1
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8058
SELECT DISTINCT - 87 + col1 + col1 DIV - col2 AS col2 FROM tab2 AS cor0
----
-11
-21
-38

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT - 87 + col1 + col1 / - col2 AS col2 FROM tab2 AS cor0
----
-11
-21
-38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT + col2 AS col1 FROM tab1 WHERE NULL <> + + col1 + - - col0 + + 84 - ( - 44 ) * + + col0 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8060
SELECT + col2 AS col1 FROM tab1 WHERE NULL <> + + col1 + - - col0 + + 84 - ( - 44 ) * + + col0 / - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * - - 70 NOT BETWEEN - - 37 AND - 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT col2 DIV - 75 - - 44 + + col1 FROM tab2
----
111
121
95

skipif mysql # not compatible
query I rowsort label-8062
SELECT col2 / - 75 - - 44 + + col1 FROM tab2
----
111
121
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 23 col0 FROM tab0
----
110
120
38

query I rowsort
SELECT + 83 + col2 AS col2 FROM tab1 AS cor0
----
142
151
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - + col0 col2, col2 col2 FROM tab2 AS cor0 WHERE col2 * col1 IS NOT NULL
----
-128
40
-150
58
-92
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 35 - + col2 * 67 col0 FROM tab2 AS cor0
----
-1576
-2715
-3921

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= - ( + col1 ) - + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT col0 * + col1 / col0 / - - CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8068
SELECT col0 * + col1 / col0 / - - CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT + col1 IN ( + 37 * - + 97 + + - col2, col0 )
----
46
64
75

query I rowsort
SELECT DISTINCT + 51 * 65 FROM tab0
----
3315

query I rowsort
SELECT ALL col1 * 28 AS col0 FROM tab0
----
2268
28
588

query I rowsort
SELECT DISTINCT + 90 * + 11 * + col2 AS col0 FROM tab0
----
46530
98010
9900

query I rowsort
SELECT ALL + 57 * - + 48 AS col0 FROM tab2
----
-2736
-2736
-2736

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT + 14 DIV 41 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8074
SELECT + 14 / 41 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8075
SELECT ALL - - COUNT( * ) DIV 64 + - COUNT( * ) FROM tab1 WHERE + + 98 * - col2 * 14 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - - COUNT ( * ) / 64 + - COUNT ( * ) FROM tab1 WHERE + + 98 * - col2 * 14 IS NULL
----
0

query II rowsort
SELECT col2 AS col2, + ( 17 ) AS col0 FROM tab1
----
59
17
68
17
96
17

query I rowsort
SELECT - 70 FROM tab0 AS cor0 WHERE NOT col1 <= - - col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8078
SELECT ALL col0 DIV - 4 - + 99 * - 72 FROM tab2 AS cor0 WHERE ( + 14 ) + 96 IS NOT NULL
----
7110
7112
7117

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL col0 / - 4 - + 99 * - 72 FROM tab2 AS cor0 WHERE ( + 14 ) + 96 IS NOT NULL
----
7110
7112
7117

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 24 / col2 NOT IN ( + 9, - col1 * col0 + + + 59, + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + SUM( ALL col0 ) FROM tab2 cor0 WHERE col2 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT + SUM ( ALL col0 ) FROM tab2 cor0 WHERE col2 * - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8081
SELECT ALL - 52 + - - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL - 52 + - - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8082
SELECT ALL + ( - col0 ) AS col2, 95 + - col0 DIV CAST( + ( 8 ) AS SIGNED ) col0 FROM tab1
----
-51
89
-85
85
-91
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8082
SELECT ALL + ( - col0 ) AS col2, 95 + - col0 / CAST ( + ( 8 ) AS INTEGER ) col0 FROM tab1
----
-51
89
-85
85
-91
84

query I rowsort
SELECT DISTINCT col1 + - 26 AS col1 FROM tab1
----
-12
-21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT ALL 72 + 42 + + - ( col2 ) DIV + col0 FROM tab0
----
111
113
114

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL 72 + 42 + + - ( col2 ) / + col0 FROM tab0
----
111
113
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT COUNT( ALL + - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8085
SELECT COUNT ( ALL + - col2 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT ALL - COUNT( * ) FROM tab2 WHERE col0 <= - ( - col1 )
----
-2

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL - COUNT ( * ) FROM tab2 WHERE col0 <= - ( - col1 )
----
-2

query III rowsort
SELECT * FROM tab2 WHERE ( col0 + - + col0 / col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8088
SELECT DISTINCT + - ( - CAST( NULL AS SIGNED ) ) col0, + 79 col1 FROM tab2 AS cor0
----
NULL
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8088
SELECT DISTINCT + - ( - CAST ( NULL AS INTEGER ) ) col0, + 79 col1 FROM tab2 AS cor0
----
NULL
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT + + 24 DIV + + col2 + + 31 + + ( 44 ) FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-8089
SELECT + + 24 / + + col2 + + 31 + + ( 44 ) FROM tab1 AS cor0
----
75
75
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 * - - col0 / + col1 IS NULL
----

query I rowsort
SELECT + 71 * - 80 + - - col1 + - - col0 AS col1 FROM tab1 AS cor0
----
-5542
-5590
-5615

query II rowsort
SELECT col0 AS col2, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 21 <> + - ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT 15 NOT BETWEEN NULL AND - 15
----

query II rowsort
SELECT + col1, - 27 FROM tab2 cor0
----
51
-27
67
-27
77
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + + + 25 + + col0 col2 FROM tab0 AS cor0
----
-329
-6521
121

query II rowsort
SELECT + col2 * + + col1 * col0 AS col1, 74 * - 43 FROM tab2 AS cor0
----
197120
-3182
291450
-3182
53958
-3182

query I rowsort
SELECT col2 * col1 * - + 59 AS col1 FROM tab1 AS cor0
----
-17405
-188564
-79296

onlyif mysql # aggregate syntax: 
query II rowsort label-8100
SELECT ALL 62 AS col0, + SUM( ALL - col1 ) FROM tab1 AS cor0
----
62
-66

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL 62 AS col0, + SUM ( ALL - col1 ) FROM tab1 AS cor0
----
62
-66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 80 * - 58 IS NOT NULL
----

query I rowsort
SELECT 98 AS col0 FROM tab2 cor0
----
98
98
98

query I rowsort
SELECT col2 * + - 27 AS col0 FROM tab1
----
-1593
-1836
-2592

query I rowsort
SELECT - col1 * col2 FROM tab1 WHERE NOT + ( 58 ) BETWEEN col2 AND col0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT - ( - MAX( - col0 ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT - ( - MAX ( - col0 ) ) AS col1 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 79 + col2 col2 FROM tab2 AS cor0
----
102
119
137

query I rowsort
SELECT ALL 61 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # DIV for integer division: 
query I rowsort label-8108
SELECT DISTINCT col1 DIV + 90 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT col1 / + 90 FROM tab1
----
0

query I rowsort
SELECT 58 * col0 FROM tab1 AS cor0
----
2958
4930
5278

query I rowsort
SELECT + ( - 52 ) AS col2 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT col1 * + + 89 FROM tab2 AS cor0
----
4539
5963
6853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8112
SELECT CAST( 28 AS SIGNED ) + - COUNT( * ) + - 28 + - MAX( col2 ) DIV COUNT( * ) * + SUM( DISTINCT + col2 ) - + MAX( DISTINCT 36 ) FROM tab0 AS cor0
----
-5187

skipif mysql # not compatible
query I rowsort label-8112
SELECT CAST ( 28 AS INTEGER ) + - COUNT ( * ) + - 28 + - MAX ( col2 ) / COUNT ( * ) * + SUM ( DISTINCT + col2 ) - + MAX ( DISTINCT 36 ) FROM tab0 AS cor0
----
-5187

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT + col2 DIV - 6 + 82 + col1 AS col1 FROM tab2 AS cor0
----
130
140
153

skipif mysql # not compatible
query I rowsort label-8113
SELECT + col2 / - 6 + 82 + col1 AS col1 FROM tab2 AS cor0
----
130
140
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + 55 - - - 81
----

query I rowsort
SELECT ALL - + col2 * - - 49 FROM tab0 cor0
----
-2303
-4851
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8116
SELECT + - COUNT( * ) * COUNT( * ) + + - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT + - COUNT ( * ) * COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL ( ( + col0 ) ) + - - col2 AS col1 FROM tab2 cor0
----
104
133
69

query II rowsort
SELECT DISTINCT col2 * 25, + col0 AS col0 FROM tab2
----
1000
64
1450
75
575
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + + col1 ) col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8120
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 + + ( + 54 ) AS col2, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8120
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 + + ( + 54 ) AS col2, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( - col2 ) col1 FROM tab0 WHERE - + ( 74 ) / - - col0 + - col0 + - 27 IS NOT NULL
----
705
870
9603

query II rowsort
SELECT DISTINCT col0, 35 AS col2 FROM tab1
----
51
35
85
35
91
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8123
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) + - - col0 AND - col2
----

skipif mysql # not compatible
query III rowsort label-8123
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) + - - col0 AND - col2
----

query I rowsort
SELECT ALL + col1 * + col2 * 53 FROM tab0
----
11130
201771
5247

query I rowsort
SELECT ALL + + col1 * col0 + - col1 FROM tab1 cor0
----
420
4230
700

query I rowsort
SELECT DISTINCT + 70 * 58 + - col1 FROM tab0 AS cor0
----
3979
4039
4059

query I rowsort
SELECT 66 - - + 55 FROM tab0
----
121
121
121

query I rowsort
SELECT - col2 * - + col0 * - + col1 * + col2 FROM tab1 AS cor0
----
-1479425
-19776848
-6580224

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL - COUNT( + - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL - COUNT ( + - col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 40 AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 40 AND + - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 AS cor0 WHERE NOT col2 + + 61 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT MIN( ALL - 45 ) AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-8132
SELECT MIN ( ALL - 45 ) AS col1 FROM tab2
----
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 9 * - - col2 FROM tab2
----
207
360
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8135
SELECT - CAST( - 56 AS SIGNED ) FROM tab1
----
56
56
56

skipif mysql # not compatible
query I rowsort label-8135
SELECT - CAST ( - 56 AS INTEGER ) FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT - ( - - COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8136
SELECT - ( - - COUNT ( * ) ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT col2 DIV - 46 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT col2 / - 46 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8138
SELECT + - COUNT( * ) DIV + - COUNT( * ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8138
SELECT + - COUNT ( * ) / + - COUNT ( * ) FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT - + col1 * - - 75 FROM tab1 cor0
----
-1050
-3525
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8140
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8140
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT SUM( DISTINCT + ( col1 ) ) * COUNT( * ) col1 FROM tab0
----
309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8141
SELECT SUM ( DISTINCT + ( col1 ) ) * COUNT ( * ) col1 FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT COUNT( * ) * COUNT( * ) + 0 AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8142
SELECT COUNT ( * ) * COUNT ( * ) + 0 AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ( COUNT( * ) ) * - 31 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8143
SELECT ( COUNT ( * ) ) * - 31 FROM tab2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT + col1 DIV + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8144
SELECT + col1 / + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
1
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= 48
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT MAX( - col1 ) * + 12 FROM tab1 WHERE NOT col2 + + 34 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT MAX ( - col1 ) * + 12 FROM tab1 WHERE NOT col2 + + 34 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 14 - col1 * - col2 FROM tab0
----
113
224
3821

query I rowsort
SELECT ALL 9 * 90 AS col2 FROM tab2 WHERE + 96 / col1 + - 39 * + col1 < ( + col0 )
----
810
810
810

query I rowsort
SELECT + col1 * 27 AS col2 FROM tab1
----
1269
135
378

query I rowsort
SELECT DISTINCT + 88 * 24 FROM tab0
----
2112

query I rowsort
SELECT col2 * - 28 + col1 AS col0 FROM tab0
----
-1235
-259
-2771

query I rowsort
SELECT - col1 * 52 AS col1 FROM tab2
----
-2652
-3484
-4004

query I rowsort
SELECT - 92 * col2 FROM tab2
----
-2116
-3680
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT 37 * COUNT( * ) AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT 37 * COUNT ( * ) AS col1 FROM tab2
----
111

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 0 + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 - col0 col1 FROM tab1
----
-41
-47
-7

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE + 77 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT + 42 DIV - 70 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8162
SELECT + 42 / - 70 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL > - ( 82 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8164
SELECT ALL ( col1 ) DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL ( col1 ) / - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 - + 9 FROM tab1
----
-4
38
5

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 30 AS col2 FROM tab0 WHERE - 60 + + 22 NOT IN ( + col0 )
----
30
30
30

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * + 99 NOT BETWEEN ( NULL ) AND ( col2 / col0 )
----

query I rowsort
SELECT - 66 + + col1 AS col2 FROM tab0
----
-45
-65
15

query I rowsort
SELECT col2 + + 21 AS col1 FROM tab0 cor0
----
120
31
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT col0 - - col1 FROM tab2 AS cor0 WHERE ( col2 * CAST( NULL AS SIGNED ) ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8171
SELECT col0 - - col1 FROM tab2 AS cor0 WHERE ( col2 * CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT ALL + 79 + + COUNT( * ) DIV + SUM( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + 79 + + COUNT ( * ) / + SUM ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT - ( ( col2 ) ) DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8174
SELECT - ( ( col2 ) ) / col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT + 29 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL - col1 * - 32 FROM tab2 AS cor0
----
1632
2144
2464

query I rowsort
SELECT ALL 96 - col1 FROM tab2 AS cor0 WHERE - col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT - - MAX( ALL 84 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT - - MAX ( ALL 84 ) FROM tab1 AS cor0
----
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 49 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT ALL + 28 DIV 7 col1 FROM tab0
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8180
SELECT ALL + 28 / 7 col1 FROM tab0
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT DISTINCT 38 DIV + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT 38 / + col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 NOT IN ( - 11 * - col1 + + ( + col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8184
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( CAST( - col1 AS DECIMAL ) ) IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( CAST ( - col1 AS REAL ) ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL MAX( ALL - col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8185
SELECT ALL MAX ( ALL - col1 ) col2 FROM tab1
----
-5

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( 14 ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT ( - col1 ) + col1 * 16 AS col2 FROM tab0
----
1215
15
315

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * + col1 > ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 * - col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col1 + + 23 / + col2 > NULL
----

query I rowsort
SELECT DISTINCT + - 15 * + 94 * + col1 + 61 FROM tab1 cor0
----
-19679
-66209
-6989

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL COUNT( * ) + + - MIN( ALL 45 ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL COUNT ( * ) + + - MIN ( ALL 45 ) FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + MIN( DISTINCT 66 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8193
SELECT + MIN ( DISTINCT 66 ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT ALL - 89 + + col2 AS col1 FROM tab1 AS cor0
----
-21
-30
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT DISTINCT + col1 * + 27 FROM tab1 AS cor0 WHERE NOT col2 + + 97 * - CAST( 96 AS SIGNED ) = ( - col1 + col0 )
----
1269
135
378

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT + col1 * + 27 FROM tab1 AS cor0 WHERE NOT col2 + + 97 * - CAST ( 96 AS INTEGER ) = ( - col1 + col0 )
----
1269
135
378

query III rowsort
SELECT * FROM tab0 WHERE + - col0 + + col0 * - 62 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN ( - 56 * + col2 + col0 ) AND NULL
----

query I rowsort
SELECT ALL + ( + - 5 ) AS col1 FROM tab2 AS cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( col2 )
----

query I rowsort
SELECT - col1 + - 31 AS col0 FROM tab1 AS cor0
----
-36
-45
-78

query I rowsort
SELECT + + 84 + + - col0 FROM tab0 AS cor0
----
-13
-3
69

query I rowsort
SELECT 89 + - + col2 - + + 55 + + col0 * col2 AS col2 FROM tab1 cor0
----
4834
4990
6154

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT ALL + 49 * - col1 FROM tab0 AS cor0 WHERE NOT ( - + col1 ) <= ( NULL )
----

query I rowsort
SELECT - - col0 + + - 89 * - col0 * - col0 FROM tab1 AS cor0
----
-231438
-642940
-736918

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT DISTINCT - + 83 + + col0 * - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT - + 83 + + col0 * - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT DISTINCT 87 DIV - col2 + 92 FROM tab2 AS cor0
----
89
90
91

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT 87 / - col2 + 92 FROM tab2 AS cor0
----
89
90
91

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE ( + col2 * + col1 * 74 ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT DISTINCT - col2 AS col2, + 9 + + col0 + col0 FROM tab2 AS cor0
----
-23
101
-40
137
-58
159

query III rowsort
SELECT * FROM tab2 WHERE + - 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) + col1 + + col0 * ( - col2 ) AS col1 FROM tab0
----
-639
-9503
3183

query I rowsort
SELECT DISTINCT ( col1 ) - + - 82 FROM tab2
----
133
149
159

query I rowsort
SELECT ALL - col0 * col2 FROM tab1 WHERE - 73 <> NULL
----

query I rowsort
SELECT ALL 90 - + 23 + - - col2 + - - 17 * col2 AS col1 FROM tab0
----
1849
247
913

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL + - MAX( + 28 ) * + - 20 AS col1 FROM tab2 AS cor0
----
560

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + - MAX ( + 28 ) * + - 20 AS col1 FROM tab2 AS cor0
----
560

query I rowsort
SELECT + 41 AS col1 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) NOT BETWEEN col2 AND 2 )
----

query I rowsort
SELECT - 81 * + col1 - 16 - + col1 * + 67 FROM tab2 AS cor0
----
-11412
-7564
-9932

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL < + 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8223
SELECT ALL - 76 DIV + - col0 col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8223
SELECT ALL - 76 / + - col0 col0 FROM tab0 AS cor0
----
0
0
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 * col2 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 48 * + 79 <> ( + 79 - + + col0 - ( - col2 ) * + 79 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 83 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + col2 ) + - col1 IS NOT NULL
----

query I rowsort
SELECT col1 * - 95 AS col1 FROM tab1
----
-1330
-4465
-475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 * - - 87 * - 95 col2 FROM tab2
----
-652935

query I rowsort
SELECT + ( - ( + + col2 ) ) * col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT ALL 39 AS col1, + 58 AS col0 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
39
58
39
58
39
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8233
SELECT col2 * col2 * + CAST( + col0 AS SIGNED ), + col0 AS col0 FROM tab0
----
33135
15
8700
87
950697
97

skipif mysql # not compatible
query II rowsort label-8233
SELECT col2 * col2 * + CAST ( + col0 AS INTEGER ), + col0 AS col0 FROM tab0
----
33135
15
8700
87
950697
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL + MIN( 48 ) AS col1 FROM tab1 WHERE + + 86 + + col2 NOT IN ( col1 )
----
48

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + MIN ( 48 ) AS col1 FROM tab1 WHERE + + 86 + + col2 NOT IN ( col1 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL + CAST( NULL AS SIGNED ) + 17 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + CAST ( NULL AS INTEGER ) + 17 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 17 * col2 AS col1 FROM tab0
----
1683
170
799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8237
SELECT DISTINCT SUM( + col1 ) DIV - - 8 - 77 AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT SUM ( + col1 ) / - - 8 - 77 AS col0 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT ALL + col2, + col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + + COUNT( * ) + - + COUNT( + col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT + + COUNT ( * ) + - + COUNT ( + col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT DISTINCT + col2 + 66 DIV - - col2 AS col2 FROM tab0
----
16
48
99

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + col2 + 66 / - - col2 AS col2 FROM tab0
----
16
48
99

query I rowsort
SELECT ALL - 93 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT ALL 86 + - col2 FROM tab1 WHERE + - col2 * col0 BETWEEN ( + - col0 ) AND col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL - SUM( DISTINCT + ( + col0 ) ) FROM tab0 AS cor0 WHERE NOT ( 91 + - - col2 ) IS NULL
----
-199

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - SUM ( DISTINCT + ( + col0 ) ) FROM tab0 AS cor0 WHERE NOT ( 91 + - - col2 ) IS NULL
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - - col2 + - 87 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - - col2 + - 87 FROM tab0 cor0
----
NULL

query II rowsort
SELECT col2 * col1 + + ( ( - 65 ) ) AS col0, 30 AS col1 FROM tab0 cor0
----
145
30
34
30
3742
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT - + col0 - + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-8246
SELECT - + col0 - + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL - 28 * 40 + - - CAST( NULL AS SIGNED ) + - 29 / 53 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 33 + - + 7 * + - col0 )
----

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - 28 * 40 + - - CAST ( NULL AS INTEGER ) + - 29 / 53 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 33 + - + 7 * + - col0 )
----

query II rowsort
SELECT ALL - 23 AS col2, col1 FROM tab2
----
-23
51
-23
67
-23
77

query I rowsort
SELECT DISTINCT col2 + ( - - col2 ) FROM tab2
----
116
46
80

query I rowsort
SELECT + col1 * - 15 FROM tab1 WHERE ( + ( - - 6 ) IS NULL ) OR NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT + ( + 47 ) * - 21 * - - 10 - + SUM( DISTINCT - - 30 ) * 91 AS col0 FROM tab2
----
-12600

skipif mysql # not compatible
query I rowsort label-8251
SELECT + ( + 47 ) * - 21 * - - 10 - + SUM ( DISTINCT - - 30 ) * 91 AS col0 FROM tab2
----
-12600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8252
SELECT * FROM tab1 WHERE col1 + - 26 * + col2 * - col1 + + col0 + col1 BETWEEN - CAST( NULL AS SIGNED ) AND + col1 - col1
----

skipif mysql # not compatible
query III rowsort label-8252
SELECT * FROM tab1 WHERE col1 + - 26 * + col2 * - col1 + + col0 + col1 BETWEEN - CAST ( NULL AS INTEGER ) AND + col1 - col1
----

query II rowsort
SELECT DISTINCT col1 * + + 40 + - 49 AS col1, col0 AS col0 FROM tab0
----
-9
97
3191
15
791
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT ALL MIN( col2 ) + - 25 + - + CAST( + + COUNT( * ) AS SIGNED ) + + 27 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL MIN ( col2 ) + - 25 + - + CAST ( + + COUNT ( * ) AS INTEGER ) + + 27 AS col1 FROM tab0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + 57 * - + 21 AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 + + - col1 + 22 + + col1 * - ( + col2 ) AS col0 FROM tab2
----
-1179
-3095
-3873

query I rowsort
SELECT ALL + ( + 15 ) FROM tab2
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT DISTINCT + 67 * MAX( + + 96 ) FROM tab1 AS cor0
----
6432

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT + 67 * MAX ( + + 96 ) FROM tab1 AS cor0
----
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - MIN( - 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8260
SELECT - MIN ( - 62 ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT - + ( - 19 ) FROM tab2 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8262
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + col0 * + CAST( 36 AS SIGNED ) < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8262
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + col0 * + CAST ( 36 AS INTEGER ) < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8263
SELECT DISTINCT 48 DIV - - 16 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT 48 / - - 16 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT + - CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8264
SELECT + - CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT MAX( ALL - 27 ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT MAX ( ALL - 27 ) AS col0 FROM tab1 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT ALL 79 DIV + col0 + - - col2 + - col1 AS col2 FROM tab1 AS cor0
----
21
54
83

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL 79 / + col0 + - - col2 + - col1 AS col2 FROM tab1 AS cor0
----
21
54
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= - col0
----

query I rowsort
SELECT ALL ( + + ( 86 ) ) FROM tab1
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT 80 + - - col1 * + 5 + + - col0 + CAST( col1 AS SIGNED ) FROM tab1
----
113
25
271

skipif mysql # not compatible
query I rowsort label-8269
SELECT 80 + - - col1 * + 5 + + - col0 + CAST ( col1 AS INTEGER ) FROM tab1
----
113
25
271

query III rowsort
SELECT * FROM tab1 WHERE + 25 - - col1 + col2 NOT BETWEEN ( + + col2 - - + col2 / + 46 ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT DISTINCT + 22 col2, COUNT( DISTINCT 40 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
22
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8271
SELECT DISTINCT + 22 col2, COUNT ( DISTINCT 40 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
22
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT ALL col2 DIV - - ( 90 ) col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8272
SELECT ALL col2 / - - ( 90 ) col0 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT col2 * 11 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 * col0 - - + col0 ) IN ( 27 )
----
-12903
-33880
-42746

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT + col0 DIV - col2 FROM tab2 AS cor0 WHERE ( + col2 ) * + 12 IS NOT NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8274
SELECT + col0 / - col2 FROM tab2 AS cor0 WHERE ( + col2 ) * + 12 IS NOT NULL
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT + + ( + ( ( + 12 ) ) ) * COUNT( * ) AS col0 FROM tab1 WHERE 43 + + col0 IN ( - col2, ( + 26 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT + + ( + ( ( + 12 ) ) ) * COUNT ( * ) AS col0 FROM tab1 WHERE 43 + + col0 IN ( - col2, ( + 26 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT + - CAST( NULL AS SIGNED ) FROM tab0 WHERE + - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - - col1 col2 FROM tab1 AS cor0
----
51
60
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT CAST( + 83 AS SIGNED ) * + + ( col2 ) + 33 + - + 70 AS col0 FROM tab2 AS cor0
----
1872
3283
4777

skipif mysql # not compatible
query I rowsort label-8278
SELECT CAST ( + 83 AS INTEGER ) * + + ( col2 ) + 33 + - + 70 AS col0 FROM tab2 AS cor0
----
1872
3283
4777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE - 79 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE - 79 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( + 37 ) - - col2 FROM tab0 AS cor0
----
136
47
84

query I rowsort
SELECT ALL - 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT - COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT - COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( 72 ) + - + col0 FROM tab1 AS cor0
----
-13
-19
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 <= + + 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col1, - col1 FROM tab1 cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT DISTINCT + - col1 * - col0 * col2 + + col0 FROM tab1 AS cor0
----
25160
290927
68595

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col0 NOT BETWEEN col0 AND + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT DISTINCT + 17 DIV - col0 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8288
SELECT DISTINCT + 17 / - col0 col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 IN ( col1 - - + 52 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 69 * + 4 FROM tab2
----
276
276
276

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - 49, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT + - col1 FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8293
SELECT + - col1 FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT - COUNT( + col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 50 AND - + 30
----
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - COUNT ( + col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 50 AND - + 30
----
0

query II rowsort
SELECT DISTINCT col0 AS col2, - 83 FROM tab1 AS cor0
----
51
-83
85
-83
91
-83

query I rowsort
SELECT DISTINCT 45 * col2 AS col1 FROM tab1 AS cor0 WHERE 65 NOT BETWEEN + col0 * col2 * - 41 + + ( - col0 ) + + 83 / + col1 AND - - col2 + 41 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col2 FROM tab1 cor0
----
11
11
11

query I rowsort
SELECT ALL + - col2 + 40 AS col0 FROM tab0 AS cor0
----
-59
-7
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 cor0 WHERE NOT col1 = ( + col0 * 64 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT - - MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT - - MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT SUM( ALL - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8301
SELECT SUM ( ALL - col0 ) AS col1 FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 6 ) col1 FROM tab1
----
-6
-6
-6

query II rowsort
SELECT ALL + 1 AS col1, 24 FROM tab0 WHERE 67 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL AND NOT col2 IS NULL
----

query I rowsort
SELECT ALL + col2 + - col1 * + + col1 * col1 AS col0 FROM tab1 cor0
----
-103755
-2648
-66

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND NULL
----

query II rowsort
SELECT col2 + - ( + col1 ) AS col0, - col0 AS col1 FROM tab2
----
-28
-46
-37
-64
-9
-75

query I rowsort
SELECT ALL col1 * + col2 * + 26 + + - col1 * - col0 * - col1 + col2 + + col2 AS col0 FROM tab0
----
-32887
2675
661

query I rowsort
SELECT - 34 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT DISTINCT - - 93 AS col2 FROM tab2 AS cor0 WHERE - ( col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT + 23 - - col0 + - col1 DIV - 15 FROM tab2 cor0
----
102
72
92

skipif mysql # not compatible
query I rowsort label-8311
SELECT + 23 - - col0 + - col1 / - 15 FROM tab2 cor0
----
102
72
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT - MIN( - + 33 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - MIN ( - + 33 ) FROM tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 23 ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - ( - + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8314
SELECT - ( - + COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT DISTINCT + col2 DIV - 30 AS col2 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + col2 / - 30 AS col2 FROM tab1
----
-1
-2
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8316
SELECT 50 FROM tab2 WHERE NOT - CAST( + col2 AS SIGNED ) + + col0 + CAST( NULL AS DECIMAL ) NOT BETWEEN + col0 * + 61 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8316
SELECT 50 FROM tab2 WHERE NOT - CAST ( + col2 AS INTEGER ) + + col0 + CAST ( NULL AS REAL ) NOT BETWEEN + col0 * + 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT - SUM( + col2 ) * - 20 FROM tab0
----
3120

skipif mysql # not compatible
query I rowsort label-8317
SELECT - SUM ( + col2 ) * - 20 FROM tab0
----
3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT DISTINCT + CAST( - - 1 AS SIGNED ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT + CAST ( - - 1 AS INTEGER ) AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8319
SELECT DISTINCT 79 DIV - col1, + col0 FROM tab1
----
-1
91
-15
85
-5
51

skipif mysql # not compatible
query II rowsort label-8319
SELECT DISTINCT 79 / - col1, + col0 FROM tab1
----
-1
91
-15
85
-5
51

query I rowsort
SELECT - ( - - 15 ) FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2, 20 AS col0 FROM tab1
----
59
20
68
20
96
20

query I rowsort
SELECT - ( - 27 ) AS col1 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + col1 + - + 87 * - - ( - col0 ) + + col0 BETWEEN col0 * + col1 * col2 + - 61 + ( + - col1 ) AND NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT + ( + - COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8324
SELECT + ( + - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL col0, + 23 AS col1 FROM tab0 AS cor0
----
15
23
87
23
97
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT MAX( + - 73 ) AS col2, + SUM( DISTINCT - col1 ) FROM tab0 cor0
----
-73
-103

skipif mysql # not compatible
query II rowsort label-8326
SELECT MAX ( + - 73 ) AS col2, + SUM ( DISTINCT - col1 ) FROM tab0 cor0
----
-73
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT 44 * - MIN( ALL - col2 ) FROM tab0 AS cor0
----
4356

skipif mysql # not compatible
query I rowsort label-8328
SELECT 44 * - MIN ( ALL - col2 ) FROM tab0 AS cor0
----
4356

onlyif mysql # DIV for integer division: 
query I rowsort label-8329
SELECT - col0 DIV - col0 + - 49 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-8329
SELECT - col0 / - col0 + - 49 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8330
SELECT + CAST( NULL AS SIGNED ) * + CAST( COUNT( DISTINCT - - 43 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( COUNT ( DISTINCT - - 43 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 95 + + 12 FROM tab2 cor0
----
107
107
107

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + + 50 AND NOT ( NULL ) >= + col2 + + 64 - + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8333
SELECT * FROM tab0 AS cor0 WHERE + col2 >= ( + col2 * + - CAST( + + 95 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8333
SELECT * FROM tab0 AS cor0 WHERE + col2 >= ( + col2 * + - CAST ( + + 95 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 96 / - col1 * - + 62 - - + col0 AS col2, col2 FROM tab0 AS cor0 WHERE col2 * + - col0 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 52 + 63 + + col0 * col2 col1, 91 - - ( + col2 ) * - + col2 AS col2 FROM tab1
----
5011
-9125
5130
-3390
6303
-4533

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + + 74 = 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + COUNT( DISTINCT 81 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8338
SELECT + COUNT ( DISTINCT 81 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - COUNT( * ) * - + COUNT( 87 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8339
SELECT - COUNT ( * ) * - + COUNT ( 87 ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT - ( col0 ) - - 8 DIV + - 96 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8340
SELECT - ( col0 ) - - 8 / + - 96 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - 76 * - + col2 FROM tab0 AS cor0
----
3572
7524
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8342
SELECT DISTINCT - - 83 * + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - - 83 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8343
SELECT 98 / + - col1 / - ( + CAST( NULL AS SIGNED ) ) + - 71 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT 98 / + - col1 / - ( + CAST ( NULL AS INTEGER ) ) + - 71 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + 58 FROM tab1
----
117
126
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 - col2 col2 FROM tab1 AS cor0
----
-54
-63
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT ALL - + CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT ( - 84 IS NULL )
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT ( - 84 IS NULL )
----
-1
-21
-81

query I rowsort
SELECT - col2 * + + col0 * - - col1 AS col1 FROM tab1 cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 75 * + + col1 FROM tab0 AS cor0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - COUNT( * ) + MAX( DISTINCT - 82 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * col2 NOT BETWEEN col2 * - - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8350
SELECT - COUNT ( * ) + MAX ( DISTINCT - 82 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * col2 NOT BETWEEN col2 * - - col1 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + + col2 ) > NULL
----

query I rowsort
SELECT ALL - 65 / + + 31 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 + 68 IS NOT NULL
----

query I rowsort
SELECT 95 * - - 7 FROM tab2
----
665
665
665

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - 90 * + COUNT( * ) AS col0 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-8354
SELECT - 90 * + COUNT ( * ) AS col0 FROM tab2
----
-270

query I rowsort
SELECT - 56 * - col0 FROM tab2
----
2576
3584
4200

query II rowsort
SELECT col1 AS col0, + col1 * 3 FROM tab1
----
14
42
47
141
5
15

query II rowsort
SELECT + + 62, col0 FROM tab1 AS cor0
----
62
51
62
85
62
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / + col0 IN ( - - 99, - col1 + - - 43 + + col0 * - + col2 * 87 )
----

query I rowsort
SELECT DISTINCT col1 * - - col1 * + + col0 / + col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL 3 + - - 76 + - + col2 * col1 * col2 FROM tab1 AS cor0
----
-128945
-17326
-217249

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - 80 * 31 + - - COUNT( * ) FROM tab2
----
-2477

skipif mysql # not compatible
query I rowsort label-8361
SELECT - 80 * 31 + - - COUNT ( * ) FROM tab2
----
-2477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 86 col0 FROM tab2
----
-132
-150
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT - COUNT( * ) - 94 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-103

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT - COUNT ( * ) - 94 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT + - 22 * MIN( - 92 ) FROM tab2 AS cor0
----
2024

skipif mysql # not compatible
query I rowsort label-8364
SELECT + - 22 * MIN ( - 92 ) FROM tab2 AS cor0
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8365
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) BETWEEN + col2 * ( - + 48 ) AND - + col2 * + 13 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8365
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) BETWEEN + col2 * ( - + 48 ) AND - + col2 * + 13 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + 35 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT - 94 - - col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 94 - - col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 78 ) - + 41 FROM tab2
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT - MIN( DISTINCT - - col2 ) * 32 - COUNT( * ) + - ( + 12 ) FROM tab2
----
-751

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - MIN ( DISTINCT - - col2 ) * 32 - COUNT ( * ) + - ( + 12 ) FROM tab2
----
-751

query I rowsort
SELECT col1 / - + 58 FROM tab2 WHERE + 4 + + col1 IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 13 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3468
-4611
-9203

query I rowsort
SELECT 32 + - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 + - 18 FROM tab0 AS cor0
----
-105
-115
-33

query I rowsort
SELECT DISTINCT 99 FROM tab2 WHERE NOT NULL <> ( + - col2 ) + 71 + + col0 * + 87
----

query I rowsort
SELECT 4 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL + col1 * + + col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8378
SELECT * FROM tab0 cor0 WHERE NOT 66 * CAST( - col2 AS SIGNED ) NOT BETWEEN + 95 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8378
SELECT * FROM tab0 cor0 WHERE NOT 66 * CAST ( - col2 AS INTEGER ) NOT BETWEEN + 95 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 52 <= ( + 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( NULL ) BETWEEN NULL AND - 91 * 18 * col2 )
----

query I rowsort
SELECT col2 * - col0 FROM tab1 WHERE NOT ( 25 + + col2 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - col0 + 44 AS col2, + 55 * + + 95 - + - col1 - - col0 AS col2 FROM tab2 AS cor0
----
-2
5322
-20
5366
-31
5367

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - COUNT( * ) + + - 65 AS col1 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8385
SELECT - COUNT ( * ) + + - 65 AS col1 FROM tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / + - 2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / + - 2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 10 + + 4 FROM tab1 cor0
----
-6
-6
-6

query I rowsort
SELECT ALL + col1 * + col1 FROM tab2 WHERE - col2 > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT - 63 + - col2 * col1 AS col2 FROM tab2 WHERE ( NULL ) <> + 16 * - ( + CAST( - col2 AS SIGNED ) ) / + 85
----

skipif mysql # not compatible
query I rowsort label-8389
SELECT - 63 + - col2 * col1 AS col2 FROM tab2 WHERE ( NULL ) <> + 16 * - ( + CAST ( - col2 AS INTEGER ) ) / + 85
----

query I rowsort
SELECT DISTINCT + col0 + + + 89 * + col0 FROM tab1
----
4590
7650
8190

query I rowsort
SELECT ALL + col2 - - - col1 - col2 * - 23 FROM tab0
----
1047
219
2375

query I rowsort
SELECT DISTINCT col2 + - - 95 - - 37 - + col1 * - col0 * - + 18 * + 73 FROM tab0
----
-127227
-1596331
-2400536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22, + col2 col2 FROM tab1
----
22
59
22
68
22
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 - - - 81 FROM tab2 AS cor0
----
-132
-148
-158

query I rowsort
SELECT DISTINCT - - col0 - 9 AS col2 FROM tab1 AS cor0
----
42
76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT MAX( DISTINCT + 73 ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-8397
SELECT MAX ( DISTINCT + 73 ) AS col0 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT ALL + - CAST( + - 45 AS SIGNED ) FROM tab2 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL + - CAST ( + - 45 AS INTEGER ) FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL - SUM( DISTINCT 7 ) * + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - SUM ( DISTINCT 7 ) * + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
63

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 AS cor0 WHERE - col2 * col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8402
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - col0 AS SIGNED ) NOT BETWEEN - CAST( NULL AS SIGNED ) + - col1 - + col1 / - col0 AND - - col2 + + - 10
----

skipif mysql # not compatible
query III rowsort label-8402
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - col0 AS INTEGER ) NOT BETWEEN - CAST ( NULL AS INTEGER ) + - col1 - + col1 / - col0 AND - - col2 + + - 10
----

query I rowsort
SELECT ALL col1 * + col1 * 99 FROM tab1
----
19404
218691
2475

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT 76 DIV col1 AS col2 FROM tab0
----
0
3
76

skipif mysql # not compatible
query I rowsort label-8404
SELECT 76 / col1 AS col2 FROM tab0
----
0
3
76

query I rowsort
SELECT ALL + ( col2 ) * + - col1 - + col0 FROM tab0
----
-196
-297
-3822

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 21 < NULL
----

query I rowsort
SELECT - 78 * - - 46 FROM tab0
----
-3588
-3588
-3588

query I rowsort
SELECT ALL - col2 * - col2 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 19 FROM tab1 WHERE NOT + 60 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - col1 * - col1 FROM tab2
----
132651
300763
456533

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT ALL - ( - 74 ) DIV 99 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - ( - 74 ) / 99 + + col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL - col2 AS col0, + 48 FROM tab0 AS cor0
----
-10
48
-47
48
-99
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NOT - + col2 <= NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT + COUNT( ALL - 0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + COUNT ( ALL - 0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT SUM( 6 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT SUM ( 6 ) FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - 67 + - COUNT( * ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8416
SELECT - 67 + - COUNT ( * ) FROM tab1 AS cor0
----
-70

query III rowsort
SELECT * FROM tab2 WHERE col0 + + + 23 BETWEEN NULL AND - col0 * + + 59 * + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT COUNT( ALL - col1 ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8418
SELECT COUNT ( ALL - col1 ) + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT 71 + - col0 * col0 FROM tab1
----
-2530
-7154
-8210

query I rowsort
SELECT - + col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query II rowsort
SELECT ALL + col2 AS col2, + col0 * + 75 FROM tab0 WHERE NULL BETWEEN col0 * + 45 - - ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT 91 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8422
SELECT 91 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL COUNT( ALL + col2 ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8423
SELECT ALL COUNT ( ALL + col2 ) col1 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - - 85 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT MIN( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8425
SELECT MIN ( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 - - - col0 + col1 * - ( - 48 ) col2 FROM tab0 AS cor0
----
28
3950
998

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND - col0 * col1 * + col2 + col2
----

query II rowsort
SELECT + col1 - col0, 69 AS col2 FROM tab0 cor0
----
-66
69
-96
69
66
69

query I rowsort
SELECT DISTINCT ( - col1 ) * - 78 - + 25 + - + 75 * + col1 AS col1 FROM tab2
----
128
176
206

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL = + ( + + col0 ) )
----

query II rowsort
SELECT DISTINCT - col2 AS col0, - 14 AS col1 FROM tab0 WHERE ( ( NULL ) IS NULL )
----
-10
-14
-47
-14
-99
-14

query I rowsort
SELECT col1 + 61 AS col2 FROM tab1
----
108
66
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 39 + col2 col0 FROM tab2
----
119
155
85

query II rowsort
SELECT col2, 72 FROM tab1 WHERE - col2 - + + col2 IS NOT NULL
----
59
72
68
72
96
72

query I rowsort
SELECT ALL - col0 + 44 FROM tab1
----
-41
-47
-7

query I rowsort
SELECT DISTINCT + 13 - + + col1 AS col0 FROM tab0 cor0
----
-68
-8
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - col0 - + + 40 IS NULL
----

query II rowsort
SELECT DISTINCT + + col2, 70 + - + col0 * + - ( + - col0 ) * 1 + - 52 * col1 * - 3 + col0 AS col1 FROM tab2 AS cor0
----
23
5956
40
8050
58
4972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query II rowsort
SELECT ALL + col0, col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col1, 14 - col1 col0 FROM tab2 AS cor0
----
46
-37
64
-63
75
-53

query II rowsort
SELECT - 32 AS col0, col2 + + 45 AS col0 FROM tab0 AS cor0
----
-32
144
-32
55
-32
92

query I rowsort
SELECT ALL + - 12 * - 73 FROM tab0 AS cor0
----
876
876
876

query I rowsort
SELECT - 92 AS col2 FROM tab0 WHERE NOT + 58 + + + col1 IS NULL
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL MIN( + + 86 ) col0 FROM tab1
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8446
SELECT ALL MIN ( + + 86 ) col0 FROM tab1
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT - 60 IS NULL
----
15
87
97

query II rowsort
SELECT - col1 + + + 95 AS col1, 42 AS col2 FROM tab0
----
14
42
74
42
94
42

query I rowsort
SELECT - 8 * + ( + col2 ) * + + col1 + col2 AS col0 FROM tab2
----
-24600
-31030
-9361

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT + - COUNT( DISTINCT + 93 ) * - MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8450
SELECT + - COUNT ( DISTINCT + 93 ) * - MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 87 <= NULL
----

query I rowsort
SELECT DISTINCT + + col2 * col1 * col2 + - 67 * + + col0 + - col1 FROM tab2 AS cor0
----
118835
220296
23846

query I rowsort
SELECT - 35 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT + - 54 - 91 AS col2 FROM tab0 AS cor0
----
-145

query II rowsort
SELECT DISTINCT - col0 * - col0 + col0, 8 AS col1 FROM tab2 cor0
----
2162
8
4160
8
5700
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + 57 * - COUNT( * ) + - 75 AS col0 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-8456
SELECT + 57 * - COUNT ( * ) + - 75 AS col0 FROM tab0 AS cor0
----
-246

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IS NULL OR NOT NULL > + col0 + - + col1 + + 27 - 9
----

query I rowsort
SELECT ALL + 36 * + - col2 FROM tab1 AS cor0
----
-2124
-2448
-3456

query I rowsort
SELECT ALL + col1 * + 13 FROM tab0 cor0
----
1053
13
273

query I rowsort
SELECT ALL - 48 * col2 + - col2 * - col0 + - ( col0 ) + ( - + ( - col1 ) ) AS col1 FROM tab2 cor0
----
-41
1558
653

query I rowsort
SELECT DISTINCT 85 * col2 * 19 FROM tab2 AS cor0
----
37145
64600
93670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - ( - - col0 ) AND + - col1
----

query I rowsort
SELECT - 0 * + col2 AS col0 FROM tab2 WHERE NULL <> - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT - - COUNT( ( - col0 ) ) AS col0 FROM tab1 WHERE NOT + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - - COUNT ( ( - col0 ) ) AS col0 FROM tab1 WHERE NOT + + col1 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT ALL 51 * + CAST( SUM( + + 3 ) AS SIGNED ) FROM tab2
----
459

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL 51 * + CAST ( SUM ( + + 3 ) AS INTEGER ) FROM tab2
----
459

query I rowsort
SELECT - ( - 55 ) AS col1 FROM tab0
----
55
55
55

query I rowsort
SELECT + col0 FROM tab1 WHERE + col0 IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + + col2 col0 FROM tab1
----
137
146
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT + SUM( + 96 ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-8470
SELECT + SUM ( + 96 ) AS col2 FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT - ( + SUM( - 46 ) ) AS col2 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-8471
SELECT - ( + SUM ( - 46 ) ) AS col2 FROM tab1
----
138

query I rowsort
SELECT - 49 * - + col1 * - + col1 FROM tab0 AS cor0
----
-21609
-321489
-49

query I rowsort
SELECT DISTINCT - - 60 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8474
SELECT - COUNT( * ) DIV - + COUNT( CAST( - - col0 AS SIGNED ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8474
SELECT - COUNT ( * ) / - + COUNT ( CAST ( - - col0 AS INTEGER ) ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT DISTINCT CAST( - 83 AS SIGNED ) FROM tab2 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT CAST ( - 83 AS INTEGER ) FROM tab2 cor0
----
-83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 51 IS NULL
----

query II rowsort
SELECT ALL - col2 AS col1, - 61 AS col0 FROM tab0 AS cor0
----
-10
-61
-47
-61
-99
-61

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col1 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8479
SELECT + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col1 * - col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT DISTINCT + 8 + CAST( NULL AS SIGNED ) - - + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT + 8 + CAST ( NULL AS INTEGER ) - - + col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( - 78 ) FROM tab2
----
-78

query I rowsort
SELECT + ( + ( + col1 ) ) * + col0 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT + 22 DIV + - 46 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT + 22 / + - 46 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT + COUNT( * ) * - 25 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8484
SELECT + COUNT ( * ) * - 25 FROM tab2
----
-75

query II rowsort
SELECT DISTINCT - col2, + col1 FROM tab1
----
-59
5
-68
47
-96
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 > col2 * + 98
----

query I rowsort
SELECT ALL - - 85 * col1 FROM tab1 AS cor0
----
1190
3995
425

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 65, 67 )
----

query I rowsort
SELECT ALL - 69 + + - col2 AS col2 FROM tab0 AS cor0
----
-116
-168
-79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 63 * + 51 AS col0 FROM tab0 WHERE col1 NOT IN ( - col1, 30, 46, - + 88 )
----
3213
3213
3213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT DISTINCT MIN( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT MIN ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + + 79 * + 25 AS col1 FROM tab1 AS cor0
----
1975
1975
1975

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT ALL 63 DIV - ( col0 ) - + 64 FROM tab2 AS cor0
----
-64
-64
-65

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL 63 / - ( col0 ) - + 64 FROM tab2 AS cor0
----
-64
-64
-65

query I rowsort
SELECT + col1 - - 56 FROM tab2 AS cor0
----
107
123
133

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - 22 + 23 + ( + 7 ) * - 26 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - + 24 - COUNT( * ) * + - 63 + + - COUNT( * ) FROM tab2 cor0
----
162

skipif mysql # not compatible
query I rowsort label-8497
SELECT - + 24 - COUNT ( * ) * + - 63 + + - COUNT ( * ) FROM tab2 cor0
----
162

query I rowsort
SELECT + - 55 - - + ( - - col1 ) FROM tab2 AS cor0
----
-4
12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - 94 + col1 AS col0 FROM tab0
----
-13
-73
-93

query I rowsort
SELECT DISTINCT - 76 * - col1 * - 15 FROM tab0
----
-1140
-23940
-92340

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL COUNT( DISTINCT 47 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL COUNT ( DISTINCT 47 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT + - 32 * col0 * + col1 AS col2 FROM tab1 AS cor0
----
-13600
-136864
-22848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8504
SELECT ALL - 34 / col0 + + CAST( NULL AS SIGNED ), col2 * col0 AS col0 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
query II rowsort label-8504
SELECT ALL - 34 / col0 + + CAST ( NULL AS INTEGER ), col2 * col0 AS col0 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE 75 > 70
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT + 13 * - COUNT( * ) + + SUM( 91 ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
780

skipif mysql # not compatible
query I rowsort label-8506
SELECT + 13 * - COUNT ( * ) + + SUM ( 91 ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
780

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT ALL - 65 DIV 64 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - 65 / 64 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * + col0 / + 23 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8509
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( - CAST( NULL AS SIGNED ), 57, col0 * - - col1 + + 98 + - 10 )
----

skipif mysql # not compatible
query III rowsort label-8509
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( - CAST ( NULL AS INTEGER ), 57, col0 * - - col1 + + 98 + - 10 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT ALL 63 DIV + ( + COUNT( * ) ) - + - 75 AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL 63 / + ( + COUNT ( * ) ) - + - 75 AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + COUNT( * ) * - 43 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-8511
SELECT + COUNT ( * ) * - 43 FROM tab0 AS cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8512
SELECT CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - ( + 75 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 + - ( + 75 ) IS NULL
----
-3

query I rowsort
SELECT ALL - - col1 * + + col2 * + col0 + col2 + - 92 FROM tab0 AS cor0
----
18188
57060
9610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT + + col0 + - - 67 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT + + col0 + - - 67 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col1 * - 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT col1 DIV - + col0 + - + col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8517
SELECT col1 / - + col0 + - + col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - 42 + - col2 FROM tab2
----
-100
-65
-82

query I rowsort
SELECT ALL 0 + - - col2 * - - 23 FROM tab1
----
1357
1564
2208

query I rowsort
SELECT DISTINCT - 48 + + 50 AS col1 FROM tab1
----
2

query I rowsort
SELECT + 88 + 56 FROM tab1
----
144
144
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 7 col0 FROM tab1
----
-52
-61
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, + col0 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL + 51 * - CAST( + - 12 AS SIGNED ) AS col2 FROM tab2 cor0
----
612
612
612

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + 51 * - CAST ( + - 12 AS INTEGER ) AS col2 FROM tab2 cor0
----
612
612
612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 45 col2 FROM tab1 cor0
----
-14
-23
-51

query I rowsort
SELECT DISTINCT - 63 + - col0 * + + col0 AS col2 FROM tab2
----
-2179
-4159
-5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + + 94 + 8 col1 FROM tab1
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 * + ( + col2 ) * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 / - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT DISTINCT + 57 - COUNT( + col2 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT + 57 - COUNT ( + col2 ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL - col0 * - 77 AS col1 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT DISTINCT - ( - 3 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT + CAST( - 60 AS SIGNED ) AS col2 FROM tab2
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8533
SELECT + CAST ( - 60 AS INTEGER ) AS col2 FROM tab2
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8534
SELECT + COUNT( * ) * - COUNT( * ) AS col2, - 40 AS col0 FROM tab1
----
-9
-40

skipif mysql # not compatible
query II rowsort label-8534
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, - 40 AS col0 FROM tab1
----
-9
-40

query II rowsort
SELECT + 17 AS col0, col1 FROM tab2 WHERE NOT - - ( + col2 ) >= + ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col2 ) col2, - col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT MIN( DISTINCT - + col1 ) * - COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT MIN ( DISTINCT - + col1 ) * - COUNT ( * ) FROM tab0
----
243

query I rowsort
SELECT ALL - 14 * - col0 * 29 AS col1 FROM tab1
----
20706
34510
36946

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 93 * - col2 * col1 / + col1 * - 86 + 99 < NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col2 FROM tab1 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL + MIN( ALL + 77 ) AS col1 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL + MIN ( ALL + 77 ) AS col1 FROM tab0 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 93 ) col2 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT DISTINCT - - 32 * + COUNT( - - col2 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT - - 32 * + COUNT ( - - col2 ) FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + 10 * COUNT( * ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 10 * COUNT ( * ) AS col2 FROM tab1
----
30

query I rowsort
SELECT - + 53 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8546
SELECT 13 + - - 74 + - - 58 AS col1, - CAST( NULL AS DECIMAL ) FROM tab2
----
145
NULL
145
NULL
145
NULL

skipif mysql # not compatible
query II rowsort label-8546
SELECT 13 + - - 74 + - - 58 AS col1, - CAST ( NULL AS REAL ) FROM tab2
----
145
NULL
145
NULL
145
NULL

query I rowsort
SELECT ALL col2 * + 16 * - - col1 FROM tab1
----
21504
4720
51136

query I rowsort
SELECT DISTINCT 91 * + - col1 FROM tab0
----
-1911
-7371
-91

query I rowsort
SELECT DISTINCT - 35 * + 71 FROM tab1
----
-2485

query I rowsort
SELECT ALL col1 + + 34 FROM tab2 AS cor0
----
101
111
85

query II rowsort
SELECT + 44 AS col1, 5 FROM tab0 AS cor0
----
44
5
44
5
44
5

query I rowsort
SELECT ALL col1 + - + col1 + + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - col2 * - col1 + col0 FROM tab1
----
1395
3287
380

query I rowsort
SELECT col1 * + + 94 * - - 69 AS col0 FROM tab2
----
330786
434562
499422

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT DISTINCT - col2 DIV + - col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT - col2 / + - col1 AS col0 FROM tab1
----
1
11
6

query II rowsort
SELECT col0 * - col0 AS col0, - col1 * - col2 * + col2 AS col2 FROM tab1
----
-2601
129024
-7225
17405
-8281
217328

query I rowsort
SELECT 25 + col2 FROM tab2
----
48
65
83

query I rowsort
SELECT - - 67 FROM tab0 WHERE ( + + col2 ) * - col1 + 44 < - + col1
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT col2 + - - 68 DIV - - col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-8559
SELECT col2 + - - 68 / - - col2 FROM tab2
----
25
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col1 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT + COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8561
SELECT + COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8562
SELECT + COUNT( * ) AS col2, 44 AS col0 FROM tab0 AS cor0
----
3
44

skipif mysql # not compatible
query II rowsort label-8562
SELECT + COUNT ( * ) AS col2, 44 AS col0 FROM tab0 AS cor0
----
3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL COUNT( - - 77 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL COUNT ( - - 77 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 47 > NULL
----

query I rowsort
SELECT + col2 * col0 + + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
3404
7488
9375

query I rowsort
SELECT 90 * col0 AS col2 FROM tab0
----
1350
7830
8730

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / - col0 = NULL
----

query II rowsort
SELECT col2 AS col0, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + 81 * - col1 FROM tab0
----
-1701
-6561
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 80, - col0 col2 FROM tab2 cor0
----
80
-46
80
-64
80
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT + 53 AS col1, ( + - COUNT( * ) ) FROM tab0 AS cor0
----
53
-3

skipif mysql # not compatible
query II rowsort label-8571
SELECT + 53 AS col1, ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
53
-3

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
51
67
77

query II rowsort
SELECT col2, + col1 + + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
31
47
128
99
100

query I rowsort
SELECT + col2 * + - col2 + - col2 * 18 + + col0 FROM tab1 AS cor0
----
-10893
-4458
-5757

query I rowsort
SELECT + + col2 + + ( - + col1 ) * ( + + col1 ) AS col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

query II rowsort
SELECT DISTINCT - + col1 * - col2, col0 AS col1 FROM tab0 cor0
----
210
87
3807
15
99
97

query I rowsort
SELECT ALL - - col1 + 54 * col1 AS col2 FROM tab2 AS cor0
----
2805
3685
4235

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 + + col1 * - - col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - + col2 * - col1 * - col0 + - 59 col1 FROM tab1
----
-2131434
-26466135
-3495803

query I rowsort
SELECT ALL - col1 + - + 56 FROM tab0
----
-137
-57
-77

query I rowsort
SELECT col0 * - 87 AS col1 FROM tab2
----
-4002
-5568
-6525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT DISTINCT - 20 + - col2 * ( - CAST( + col2 AS SIGNED ) ) FROM tab2
----
1580
3344
509

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT - 20 + - col2 * ( - CAST ( + col2 AS INTEGER ) ) FROM tab2
----
1580
3344
509

query II rowsort
SELECT col2 AS col1, col0 - - + col1 FROM tab1
----
59
90
68
138
96
65

query II rowsort
SELECT + + 26 AS col2, + 23 AS col0 FROM tab1 cor0
----
26
23
26
23
26
23

query I rowsort
SELECT col1 - 43 FROM tab0
----
-22
-42
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT COUNT( * ) * + COUNT( + 75 ) col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8586
SELECT COUNT ( * ) * + COUNT ( + 75 ) col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT 53 * - MAX( col0 ) AS col2 FROM tab2
----
-3975

skipif mysql # not compatible
query I rowsort label-8587
SELECT 53 * - MAX ( col0 ) AS col2 FROM tab2
----
-3975

query I rowsort
SELECT col1 * col2 - + col2 AS col1 FROM tab2
----
1150
3040
3828

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 93 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * - col2 ) NOT BETWEEN NULL AND 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT - 51 * COUNT( * ) FROM tab2 WHERE NOT col2 + + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - 51 * COUNT ( * ) FROM tab2 WHERE NOT col2 + + col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8592
SELECT * FROM tab2 WHERE NOT NULL IN ( 5 * ( - CAST( NULL AS SIGNED ) ) - + col2 )
----

skipif mysql # not compatible
query III rowsort label-8592
SELECT * FROM tab2 WHERE NOT NULL IN ( 5 * ( - CAST ( NULL AS INTEGER ) ) - + col2 )
----

query I rowsort
SELECT - col0 * col1 AS col0 FROM tab2 WHERE 93 IS NOT NULL
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT IN ( + col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT - ( - COUNT( * ) ) + - 13 col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8595
SELECT - ( - COUNT ( * ) ) + - 13 col0 FROM tab0
----
-10

query I rowsort
SELECT col1 * - 69 - - col2 AS col0 FROM tab0
----
-1439
-5542
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT - COUNT( DISTINCT col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8597
SELECT - COUNT ( DISTINCT col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
225
7569
9409

query III rowsort
SELECT * FROM tab2 WHERE + 55 * 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - COUNT( * ) - MAX( DISTINCT + 99 + col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT - COUNT ( * ) - MAX ( DISTINCT + 99 + col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col0 * - col1 )
----

query I rowsort
SELECT + 19 * 88 + col2 FROM tab0
----
1682
1719
1771

query I rowsort
SELECT - 53 + + col1 AS col2 FROM tab0
----
-32
-52
28

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT - SUM( ALL 62 ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8605
SELECT - SUM ( ALL 62 ) FROM tab2 AS cor0
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE ( NULL ) <= + 6
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - 39 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL SUM( DISTINCT col0 ) + - 70 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL SUM ( DISTINCT col0 ) + - 70 FROM tab2 AS cor0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT 97 + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 41 + + 90 < ( NULL )
----
97

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT 97 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 41 + + 90 < ( NULL )
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 / 60 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8611
SELECT + ( + CAST( - 43 AS DECIMAL ) ) AS col0 FROM tab0 WHERE NULL NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-8611
SELECT + ( + CAST ( - 43 AS REAL ) ) AS col0 FROM tab0 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL - MAX( - 36 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - MAX ( - 36 ) FROM tab1
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 / + col2 ) = + ( + 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT - CAST( NULL AS SIGNED ) / - 3 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT - CAST ( NULL AS INTEGER ) / - 3 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( - ( col2 ) ) >= + col0 * + 80
----
0

skipif mysql # not compatible
query I rowsort label-8616
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( - ( col2 ) ) >= + col0 * + 80
----
0

query I rowsort
SELECT + ( - 48 ) AS col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT 44 < 88
----

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT 44 < 88
----

query I rowsort
SELECT DISTINCT col2 + 93 FROM tab2 cor0
----
116
133
151

query I rowsort
SELECT ALL + 66 * col1 AS col1 FROM tab0 AS cor0
----
1386
5346
66

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL IN ( - 89 + 50 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT - col0 - - - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT - col0 - - - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 27 * col0 - + 69 AS col0 FROM tab1
----
-132261
-135474
-167145

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + col0 * col1 ) = ( + 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT ALL - col1 * - 16 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - col1 * - 16 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT DISTINCT col1 * - CAST( col2 * + 40 AS SIGNED ) + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT col1 * - CAST ( col2 * + 40 AS INTEGER ) + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col2 NOT BETWEEN - col1 / - 53 AND col1
----
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8628
SELECT COUNT( * ) DIV - ( - 81 ) * 60 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8628
SELECT COUNT ( * ) / - ( - 81 ) * 60 FROM tab0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab2 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT DISTINCT + 19 AS col1, - COUNT( ( + 64 ) ) FROM tab2
----
19
-3

skipif mysql # not compatible
query II rowsort label-8630
SELECT DISTINCT + 19 AS col1, - COUNT ( ( + 64 ) ) FROM tab2
----
19
-3

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( col1 + col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( - 20 + + col2 ) < NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( + 0 ) <> - 2 OR NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + MAX( col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 4 - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT + MAX ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 4 - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT + 64 * - COUNT( * ) + - ( 57 ) FROM tab1 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 64 * - COUNT ( * ) + - ( 57 ) FROM tab1 cor0
----
-249

query I rowsort
SELECT - col2 * + - 14 FROM tab1 AS cor0
----
1344
826
952

query I rowsort
SELECT - col0 + + 94 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT ALL + + col2 DIV - - 26 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + + col2 / - - 26 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT ALL - 65 AS col2 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL - 65 AS col2 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-65
-65
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - 40 BETWEEN 76 * - col0 + + col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8641
SELECT DISTINCT - COUNT( - col1 ) DIV - - 88 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT - COUNT ( - col1 ) / - - 88 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT + COUNT( * ) * - COUNT( * ) - 43 AS col1 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8642
SELECT + COUNT ( * ) * - COUNT ( * ) - 43 AS col1 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8643
SELECT DISTINCT + COUNT( * ) DIV - 64 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT + COUNT ( * ) / - 64 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT 0 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT MIN( + col1 ) col0 FROM tab0 AS cor0 WHERE NOT ( - 54 * 67 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8645
SELECT MIN ( + col1 ) col0 FROM tab0 AS cor0 WHERE NOT ( - 54 * 67 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8646
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + + CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 + col2 AS col0 FROM tab1 WHERE ( - 53 + ( col1 ) ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 82 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8649
SELECT - CAST( col0 AS DECIMAL ) AS col0 FROM tab2 WHERE NOT col1 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8649
SELECT - CAST ( col0 AS REAL ) AS col0 FROM tab2 WHERE NOT col1 <= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * + - 84 FROM tab2
----
-1932
-3360
-4872

query I rowsort
SELECT + col0 + - col0 * - col2 FROM tab0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT + MAX( DISTINCT + - 41 ) AS col2 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-8652
SELECT + MAX ( DISTINCT + - 41 ) AS col2 FROM tab1
----
-41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( ( + 26 ) * col0 NOT BETWEEN col2 AND NULL ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN + col1 AND ( + col1 + - 30 * 24 )
----

query III rowsort
SELECT * FROM tab1 WHERE 33 <= ( NULL )
----

query I rowsort
SELECT + col0 + + 10 AS col1 FROM tab1 AS cor0
----
101
61
95

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab0 AS cor0 WHERE - + 19 IS NULL AND NOT + 22 BETWEEN ( + col1 * - col0 ) AND ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( + - col2 - + col2 + - 61 ) AND NOT + col1 NOT BETWEEN ( + col2 ) AND col1
----

query I rowsort
SELECT + + col1 + + + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query II rowsort label-8660
SELECT DISTINCT 28, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
28
-3

skipif mysql # not compatible
query II rowsort label-8660
SELECT DISTINCT 28, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
28
-3

query I rowsort
SELECT ALL 45 * + - 67 AS col0 FROM tab2 AS cor0
----
-3015
-3015
-3015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8662
SELECT - 4 AS col2, CAST( NULL AS SIGNED ) + col1 - + - col2 * col2 FROM tab0
----
-4
NULL
-4
NULL
-4
NULL

skipif mysql # not compatible
query II rowsort label-8662
SELECT - 4 AS col2, CAST ( NULL AS INTEGER ) + col1 - + - col2 * col2 FROM tab0
----
-4
NULL
-4
NULL
-4
NULL

query II rowsort
SELECT ALL - col0 + + 54 + - col2 * 28 AS col1, + col1 * - - col0 AS col1 FROM tab0
----
-1277
1215
-2815
97
-313
1827

query I rowsort
SELECT - col2 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT 46 * - 4 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9774036ad473adf81ced40cdeb46022c

query I rowsort
SELECT ALL + 8 + 71 AS col0 FROM tab1
----
79
79
79

query II rowsort
SELECT ALL - 70 * col1 AS col1, 58 AS col0 FROM tab2
----
-3570
58
-4690
58
-5390
58

query I rowsort
SELECT + + col0 - col2 * + 84 AS col1 FROM tab2 AS cor0
----
-1886
-3296
-4797

query I rowsort
SELECT + - col1 * - col2 - col1 AS col2 FROM tab0 AS cor0
----
189
3726
98

query II rowsort
SELECT DISTINCT + 84 * + 85, + col2 FROM tab2 cor0
----
7140
23
7140
40
7140
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 53 - - 21 <> + 11 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - 53 * - + col1 FROM tab2 AS cor0
----
137853
237917
314237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT DISTINCT ( col0 ) * - CAST( NULL AS SIGNED ) * + + col1 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT ( col0 ) * - CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT ALL + + CAST( NULL AS SIGNED ) * + + 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + + CAST ( NULL AS INTEGER ) * + + 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 44 col1 FROM tab0 AS cor0 WHERE col2 <= + col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - + COUNT( ALL + + ( - col1 ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8676
SELECT - + COUNT ( ALL + + ( - col1 ) ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT DISTINCT 51 DIV - + ( col0 ) + + 88 FROM tab1 cor0
----
87
88

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT 51 / - + ( col0 ) + + 88 FROM tab1 cor0
----
87
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8678
SELECT DISTINCT - MIN( + ( - col1 ) ) AS col2, + COUNT( * ) FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-8678
SELECT DISTINCT - MIN ( + ( - col1 ) ) AS col2, + COUNT ( * ) FROM tab1
----
47
3

query I rowsort
SELECT DISTINCT + col2 * - + col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT MAX( + - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8680
SELECT MAX ( + - col0 ) AS col1 FROM tab1
----
-51

query II rowsort
SELECT ALL col2, col1 + - + col2 FROM tab1 AS cor0
----
59
-54
68
-21
96
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT DISTINCT - + 72 DIV + col0 FROM tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT - + 72 / + col0 FROM tab0 AS cor0
----
-4
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + 69 + MIN( ALL 69 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8684
SELECT + 69 + MIN ( ALL 69 ) FROM tab1 AS cor0
----
138

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) BETWEEN NULL AND 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT + + col0 / + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL >= 48 / - + col1
----

skipif mysql # not compatible
query I rowsort label-8686
SELECT + + col0 / + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL >= 48 / - + col1
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 70 AND - 18 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8688
SELECT + + CAST( + 24 AS SIGNED ) col0, + 34 * - - col0 * + - CAST( + col1 AS SIGNED ) DIV + - col1 FROM tab2 AS cor0
----
24
1564
24
2176
24
2550

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8688
SELECT + + CAST ( + 24 AS INTEGER ) col0, + 34 * - - col0 * + - CAST ( + col1 AS INTEGER ) / + - col1 FROM tab2 AS cor0
----
24
1564
24
2176
24
2550

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IN ( - 87 )
----

query I rowsort
SELECT + + AVG ( col1 ) AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT 30 * - col0 FROM tab2 AS cor0 WHERE ( + col2 IN ( 20 ) ) OR NOT ( NULL ) < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT COUNT( * ) - + COUNT( * ) * + + COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8692
SELECT COUNT ( * ) - + COUNT ( * ) * + + COUNT ( * ) FROM tab2 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT ALL - col0 * - col2 + - CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
1081
2600
4408

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - col0 * - col2 + - CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
1081
2600
4408

query I rowsort
SELECT - 22 * col1 + + 32 * + 40 * + 12 * 3 AS col2 FROM tab2
----
44386
44606
44958

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - 70 + - + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 32 col2, col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL - COUNT( * ) * - 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL - COUNT ( * ) * - 72 FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 / - col0 + + ( - 15 ) + - col0 < - col0
----
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 / - col0 + + ( - 15 ) + - col0 < - col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8700
SELECT ALL - COUNT( * ) AS col1, + 83 AS col0 FROM tab1 AS cor0
----
-3
83

skipif mysql # not compatible
query II rowsort label-8700
SELECT ALL - COUNT ( * ) AS col1, + 83 AS col0 FROM tab1 AS cor0
----
-3
83

query II rowsort
SELECT DISTINCT col0 AS col2, 54 AS col1 FROM tab2 AS cor0 WHERE - 37 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 28 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8703
SELECT DISTINCT + col0 * + col1 AS col2, - col1 DIV - col1 FROM tab1
----
425
1
4277
1
714
1

skipif mysql # not compatible
query II rowsort label-8703
SELECT DISTINCT + col0 * + col1 AS col2, - col1 / - col1 FROM tab1
----
425
1
4277
1
714
1

query I rowsort
SELECT DISTINCT + col1 * - 63 AS col1 FROM tab2 AS cor0
----
-3213
-4221
-4851

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT + + ( + 4 ) * - ( + 27 ) AS col1 FROM tab2 AS cor0
----
-108
-108
-108

query I rowsort
SELECT DISTINCT - 66 * col0 * - ( col1 ) + - + 47 - col1 AS col0 FROM tab2 AS cor0
----
154738
325124
331536

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( - - col1 ) * col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 68 * - + col0 + - col0 FROM tab2 AS cor0
----
-3174
-4416
-5175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 46, - col0 col1 FROM tab2 AS cor0
----
46
-46
46
-64
46
-75

query II rowsort
SELECT + + 80, col1 AS col1 FROM tab2 AS cor0
----
80
51
80
67
80
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL + SUM( ALL 7 ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + SUM ( ALL 7 ) AS col2 FROM tab2 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + 40 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( 52 ) <= + col0 * + col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL - col0 * + 29 AS col1 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # DIV for integer division: 
query I rowsort label-8719
SELECT 28 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8719
SELECT 28 / col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - + col2 + 99 AS col1 FROM tab1 AS cor0
----
3
31
40

query II rowsort
SELECT - col0 * - col2, 23 AS col1 FROM tab0 AS cor0
----
705
23
870
23
9603
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 col2 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT + 43 + - 42 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8724
SELECT ALL + + col2 - - - col0 + + - col0 + 35 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0 WHERE NOT NULL <> - 53
----

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL + + col2 - - - col0 + + - col0 + 35 * CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0 WHERE NOT NULL <> - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT DISTINCT + + CAST( 94 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
94

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + + CAST ( 94 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
94

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN + col1 * + 26 AND 96
----

query II rowsort
SELECT + ( - 18 ) + - 4 AS col2, 70 + col1 AS col0 FROM tab2 AS cor0
----
-22
121
-22
137
-22
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT - MAX( DISTINCT + col1 ) * 16 + + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-811

skipif mysql # not compatible
query I rowsort label-8728
SELECT - MAX ( DISTINCT + col1 ) * 16 + + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-811

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 16 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT DISTINCT - col0 * + + 25 - 21 + - + ( col1 ) * col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - col0 * + + 25 - 21 + - + ( col1 ) * col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + - col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 * - col2 * - col2 * + col1 ) AND 7 * col0
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE col0 = + + col1 * 44
----

query I rowsort
SELECT col2 * 48 AS col2 FROM tab2
----
1104
1920
2784

query I rowsort
SELECT - + 29 AS col1 FROM tab1 AS cor0
----
-29
-29
-29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + 51 * - col2 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > - col0
----
0

query I rowsort
SELECT ALL + col0 * + 42 AS col0 FROM tab0
----
3654
4074
630

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 12 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL - + SUM( DISTINCT col2 ) AS col1 FROM tab0 WHERE NOT - + col0 + - - col1 IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL - + SUM ( DISTINCT col2 ) AS col1 FROM tab0 WHERE NOT - + col0 + - - col1 IS NULL
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT - MAX( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8741
SELECT DISTINCT - MAX ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
-58

query II rowsort
SELECT 96, 28 AS col1 FROM tab2 AS cor0
----
96
28
96
28
96
28

query I rowsort
SELECT ALL - - 0 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT ALL CAST( - col2 AS SIGNED ) + 54 FROM tab2
----
-4
14
31

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL CAST ( - col2 AS INTEGER ) + 54 FROM tab2
----
-4
14
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - 64 * - COUNT( * ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-8745
SELECT - 64 * - COUNT ( * ) FROM tab0
----
192

query II rowsort
SELECT - col0 AS col2, col1 + 52 AS col2 FROM tab2
----
-46
103
-64
129
-75
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL COUNT( * ) + - ( 21 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL COUNT ( * ) + - ( 21 ) FROM tab0
----
-18

query II rowsort
SELECT ALL col1, ( + 24 ) AS col2 FROM tab1
----
14
24
47
24
5
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + col1 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 * + 41 * - 67 + - + col1 * - + col2 FROM tab1 AS cor0
----
-138753
-233200
-246781

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT + MAX( + - ( - 73 ) ) * + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-657

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + MAX ( + - ( - 73 ) ) * + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-657

query I rowsort
SELECT + 4 + - 71 AS col2 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT ALL 52 + - - 89, - COUNT( * ) AS col0 FROM tab2
----
141
-3

skipif mysql # not compatible
query II rowsort label-8754
SELECT ALL 52 + - - 89, - COUNT ( * ) AS col0 FROM tab2
----
141
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8755
SELECT - col1 * CAST( NULL AS SIGNED ), - 84 - + - col2 + - - col2 AS col0 FROM tab2
----
NULL
-38
NULL
-4
NULL
32

skipif mysql # not compatible
query II rowsort label-8755
SELECT - col1 * CAST ( NULL AS INTEGER ), - 84 - + - col2 + - - col2 AS col0 FROM tab2
----
NULL
-38
NULL
-4
NULL
32

query I rowsort
SELECT DISTINCT + - 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-99

query III rowsort
SELECT * FROM tab2 WHERE + 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL + - CAST( NULL AS SIGNED ) + + COUNT( * ) + + - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + - COUNT ( * ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - - 94 + - + ( - col0 ) FROM tab1 cor0 WHERE - col2 >= 57
----

query I rowsort
SELECT - col0 - + 67 FROM tab2 AS cor0
----
-113
-131
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT - SUM( ( - col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8761
SELECT - SUM ( ( - col1 ) ) FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL - col2 * + col1 - + col0 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
-1219
51
-3144
77
-3961
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8765
SELECT - CAST( - + col2 AS SIGNED ) DIV + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8765
SELECT - CAST ( - + col2 AS INTEGER ) / + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab0 cor0 WHERE NULL IN ( ( - 75 ) * col0 - + 5 + + 53 * - + col2, 69 + - col1 )
----

query II rowsort
SELECT 62, + col0 AS col2 FROM tab1
----
62
51
62
85
62
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8768
SELECT DISTINCT - 99 AS col0, - SUM( ALL + CAST( NULL AS SIGNED ) ) * COUNT( * ) * 15 - + COUNT( * ) AS col1 FROM tab0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-8768
SELECT DISTINCT - 99 AS col0, - SUM ( ALL + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 15 - + COUNT ( * ) AS col1 FROM tab0
----
-99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8769
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) > + - 7 * - col1 - - - 67
----

skipif mysql # not compatible
query III rowsort label-8769
SELECT DISTINCT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) > + - 7 * - col1 - - - 67
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col0 = NULL )
----

query I rowsort
SELECT ALL - + 60 + + - col0 FROM tab0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-147
-157
-75

query II rowsort
SELECT - col0 AS col2, col2 * col1 AS col1 FROM tab0 AS cor0
----
-15
3807
-87
210
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 85 col2, + col2 * + 24 AS col2 FROM tab0 AS cor0
----
85
1128
85
2376
85
240

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT - MIN( + col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8774
SELECT - MIN ( + col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT - MIN( ALL - 53 ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8775
SELECT - MIN ( ALL - 53 ) FROM tab2 AS cor0
----
53

query I rowsort
SELECT col2 * + ( + + 87 ) FROM tab2 cor0
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8777
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT + col0 DIV - 68 + + ( + + 90 ) col2 FROM tab2 AS cor0
----
89
90
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8778
SELECT + col0 / - 68 + + ( + + 90 ) col2 FROM tab2 AS cor0
----
89
90
90

query I rowsort
SELECT DISTINCT 74 + - col2 FROM tab1 AS cor0
----
-22
15
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT - - col1 AS col2 FROM tab1 AS cor0 WHERE + 77 + + col1 BETWEEN 51 AND + CAST( col2 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-8780
SELECT - - col1 AS col2 FROM tab1 AS cor0 WHERE + 77 + + col1 BETWEEN 51 AND + CAST ( col2 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT COUNT( * ) + + 90 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8781
SELECT COUNT ( * ) + + 90 FROM tab2 AS cor0
----
93

query I rowsort
SELECT 95 AS col1 FROM tab0 AS cor0 WHERE col1 >= - - col0
----
95

query I rowsort
SELECT DISTINCT - col2 + - col1 + - - col0 AS col1 FROM tab1 AS cor0
----
-24
-59
21

query I rowsort
SELECT ALL + col1 + col2 * - 80 AS col0 FROM tab0 AS cor0
----
-3679
-779
-7919

query I rowsort
SELECT DISTINCT + col2 * + 19 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 1 AS col1 FROM tab0 WHERE NULL IN ( - col1, + col1 * + + col2 - + col1 - + col1 + - - col0 * - ( col2 ) )
----

query II rowsort
SELECT + - ( + col1 ) * 35 AS col2, col1 / - 45 + + 21 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT ALL - 18 + col0 * ( + col1 ) FROM tab2 AS cor0
----
2328
4910
5007

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 - 70 FROM tab2
----
-24
-6
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + 98 * + + col1 * ( - 11 ) BETWEEN + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT + + COUNT( * ) AS col0, - 17 FROM tab2 AS cor0
----
3
-17

skipif mysql # not compatible
query II rowsort label-8793
SELECT + + COUNT ( * ) AS col0, - 17 FROM tab2 AS cor0
----
3
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT ALL 15 + - col0 * CAST( col1 AS SIGNED ) * ( - col0 ) * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL 15 + - col0 * CAST ( col1 AS INTEGER ) * ( - col0 ) * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + 93 col2 FROM tab1 AS cor0
----
5487
6324
8928

query I rowsort
SELECT ALL + col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-8797
SELECT + COUNT( * ), + COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8797
SELECT + COUNT ( * ), + COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0
0

query I rowsort
SELECT ALL 39 * ( - + 51 ) AS col0 FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
-1989
-1989
-1989

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 95 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT col0 DIV + 6 FROM tab1 AS cor0
----
14
15
8

skipif mysql # not compatible
query I rowsort label-8800
SELECT col0 / + 6 FROM tab1 AS cor0
----
14
15
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN - + 94 * - col2 + + col2 + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 79 - + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT DISTINCT - col1 DIV + 31 - + 27 AS col2 FROM tab0 AS cor0
----
-27
-29

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT - col1 / + 31 - + 27 AS col2 FROM tab0 AS cor0
----
-27
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT - MIN( + + col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8804
SELECT - MIN ( + + col2 ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE NOT + ( - 62 ) * + col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT 19 * + + MIN( + - ( + col0 ) ) AS col2 FROM tab0
----
-1843

skipif mysql # not compatible
query I rowsort label-8806
SELECT 19 * + + MIN ( + - ( + col0 ) ) AS col2 FROM tab0
----
-1843

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL ( MIN( col0 ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL ( MIN ( col0 ) ) AS col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT + col0 * + ( - + col2 ) AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT DISTINCT col2 * - + col2 DIV + col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT col2 * - + col2 / + col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - col1 * - col1 * + + col0 * - + 76 AS col2 FROM tab1
----
-15277444
-161500
-759696

query I rowsort
SELECT ALL - + 8 FROM tab0 cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 84 FROM tab0 AS cor0 WHERE NOT - col2 * - + 30 + + - col0 IS NULL
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 IN ( + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT 36 DIV + - col0 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8815
SELECT 36 / + - col0 AS col2 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT + col2 + + + col2 + + + col2 * + col1 col1 FROM tab1 AS cor0 WHERE + col1 * - col1 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8816
SELECT + col2 + + + col2 + + + col2 * + col1 col1 FROM tab1 AS cor0 WHERE + col1 * - col1 <> CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8817
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - col2 + + 87 * + col0 + - col1 * - 40 FROM tab2 AS cor0
----
NULL
6019
NULL
8608
NULL
9147

skipif mysql # not compatible
query II rowsort label-8817
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - col2 + + 87 * + col0 + - col1 * - 40 FROM tab2 AS cor0
----
NULL
6019
NULL
8608
NULL
9147

query II rowsort
SELECT - 56 * ( + 92 ) AS col2, - col0 * col1 FROM tab2 AS cor0
----
-5152
-2346
-5152
-4928
-5152
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT - MAX( + 70 ) AS col0 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8819
SELECT - MAX ( + 70 ) AS col0 FROM tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT COUNT( * ) * - + 24 * + + ( 34 ) FROM tab2 AS cor0
----
-2448

skipif mysql # not compatible
query I rowsort label-8820
SELECT COUNT ( * ) * - + 24 * + + ( 34 ) FROM tab2 AS cor0
----
-2448

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT COUNT( * ) * + ( + COUNT( DISTINCT + col0 ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8821
SELECT COUNT ( * ) * + ( + COUNT ( DISTINCT + col0 ) ) AS col1 FROM tab1
----
9

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE + 95 - + col2 * col2 * + col1 IS NULL
----

query I rowsort
SELECT ALL col2 * + - 13 + - + col1 AS col0 FROM tab0
----
-1288
-151
-692

query I rowsort
SELECT col2 + + + col0 * - ( col1 ) + + 71 * + + col2 + + col2 FROM tab0
----
-1097
2216
7130

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 81 / + 32 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - - col1 ) - + 54 + - + col0 FROM tab0 AS cor0
----
-120
-150
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col2 BETWEEN 11 AND - 73
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT + COUNT( * ), + 57 col0 FROM tab0 AS cor0 WHERE NULL IN ( 0 / col0, col0, col0, - - col0 )
----
0
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8828
SELECT + COUNT ( * ), + 57 col0 FROM tab0 AS cor0 WHERE NULL IN ( 0 / col0, col0, col0, - - col0 )
----
0
57

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE 47 * 43 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 94 IS NOT NULL
----

query I rowsort
SELECT col2 * 84 AS col1 FROM tab2
----
1932
3360
4872

query I rowsort
SELECT DISTINCT + + col1 + - + col1 FROM tab0 WHERE NOT + - 16 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 6 * ( 6 ) * + - 51 FROM tab2
----
1836

query II rowsort
SELECT + 91 AS col0, col1 + col2 AS col1 FROM tab1 AS cor0
----
91
110
91
115
91
64

query I rowsort
SELECT DISTINCT + - col0 * 68 FROM tab0 AS cor0
----
-1020
-5916
-6596

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + ( col1 ) * col0 + + col2 - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT + + COUNT( * ) * + ( + + SUM( col0 ) ) * - - MIN( + ( - - col1 ) ) + + COUNT( ALL col0 ) + 37 AS col1 FROM tab1 AS cor0
----
3445

skipif mysql # not compatible
query I rowsort label-8837
SELECT + + COUNT ( * ) * + ( + + SUM ( col0 ) ) * - - MIN ( + ( - - col1 ) ) + + COUNT ( ALL col0 ) + 37 AS col1 FROM tab1 AS cor0
----
3445

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT - - ( MIN( ALL + 18 ) ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - - ( MIN ( ALL + 18 ) ) FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT - MIN( DISTINCT - 94 ) * + 3 AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-8839
SELECT - MIN ( DISTINCT - 94 ) * + 3 AS col1 FROM tab1
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col1 AS col1, - 7 col1, - col0 FROM tab0
----
9 values hashing to 072c7c21af74a83dbf33aefa2b42e216

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - col1 * + - 72 BETWEEN - - 29 AND col0 / + 58 + + col2
----
51
67
77

query II rowsort
SELECT DISTINCT col2 AS col1, col1 + ( - col0 ) AS col2 FROM tab2
----
23
5
40
13
58
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT - 59 AS col1, - 3 + - - SUM( DISTINCT - col1 ) FROM tab1
----
-59
-69

skipif mysql # not compatible
query II rowsort label-8843
SELECT - 59 AS col1, - 3 + - - SUM ( DISTINCT - col1 ) FROM tab1
----
-59
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8844
SELECT * FROM tab0 WHERE NOT NULL <> - - CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8844
SELECT * FROM tab0 WHERE NOT NULL <> - - CAST ( + - col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 * + + 75 FROM tab1
----
-4425
-5100
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - col2 * - 28
----

query I rowsort
SELECT DISTINCT - col2 * 57 AS col2 FROM tab0
----
-2679
-5643
-570

query I rowsort
SELECT ALL + col1 * + - 30 FROM tab0
----
-2430
-30
-630

query I rowsort
SELECT + + 31 * - + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-3007
-37665
-56637

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8851
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 * CAST( - - 35 AS SIGNED ) * - 56 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8851
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 * CAST ( - - 35 AS INTEGER ) * - 56 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT COUNT( * ) + ( - 71 ) col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8852
SELECT DISTINCT COUNT ( * ) + ( - 71 ) col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8853
SELECT - MAX( ALL col2 ) col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8853
SELECT - MAX ( ALL col2 ) col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-96
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 30 / + - col2 + col1 + + col2 + + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + 11 FROM tab1 AS cor0
----
16
25
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) * col2 * - + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) * col2 * - + col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 17 + - + col1 AS col1 FROM tab1 cor0
----
-30
12
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT + + col2 + + CAST( + + col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8858
SELECT + + col2 + + CAST ( + + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT + 25 + - ( col0 ) FROM tab0 AS cor0
----
-62
-72
10

query I rowsort
SELECT ALL - col2 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * + col2 * col2 + col0 * - + ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8862
SELECT DISTINCT 19 + - - 85 DIV + ( MAX( DISTINCT + 81 ) ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT 19 + - - 85 / + ( MAX ( DISTINCT + 81 ) ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT - + 72 / col2 FROM tab2 WHERE NULL <= + - 37
----

query I rowsort
SELECT DISTINCT + col2 + - 5 FROM tab1
----
54
63
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8865
SELECT ALL - COUNT( * ) + - CAST( 51 AS SIGNED ) AS col2, + COUNT( - col2 ) AS col1 FROM tab1
----
-54
3

skipif mysql # not compatible
query II rowsort label-8865
SELECT ALL - COUNT ( * ) + - CAST ( 51 AS INTEGER ) AS col2, + COUNT ( - col2 ) AS col1 FROM tab1
----
-54
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8866
SELECT DISTINCT * FROM tab0 WHERE + CAST( - 83 AS DECIMAL ) * + + col0 - + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8866
SELECT DISTINCT * FROM tab0 WHERE + CAST ( - 83 AS REAL ) * + + col0 - + col0 IS NULL
----

query I rowsort
SELECT + col0 + col2 AS col0 FROM tab1 WHERE - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8868
SELECT ALL * FROM tab2 WHERE + col0 + - CAST( NULL AS SIGNED ) + col1 * - 6 * col2 * + + col0 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8868
SELECT ALL * FROM tab2 WHERE + col0 + - CAST ( NULL AS INTEGER ) + col1 * - 6 * col2 * + + col0 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 94 - + - col0 * col0 AS col1 FROM tab1
----
2507
7131
8187

query I rowsort
SELECT + - ( - col1 ) * - 39 - - 88 * - col1 + 99 FROM tab0 AS cor0
----
-10188
-2568
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-8871
SELECT DISTINCT 70 - 77 DIV - col1 AS col1, + col0 FROM tab1 AS cor0
----
71
91
75
51
85
85

skipif mysql # not compatible
query II rowsort label-8871
SELECT DISTINCT 70 - 77 / - col1 AS col1, + col0 FROM tab1 AS cor0
----
71
91
75
51
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + COUNT( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0 WHERE 43 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8872
SELECT + COUNT ( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0 WHERE 43 IS NOT NULL
----
3

query I rowsort
SELECT - 60 * - col2 * + col0 AS col2 FROM tab0 AS cor0
----
42300
52200
576180

query I rowsort
SELECT - ( - + col1 ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL CAST( + + 45 AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL CAST ( + + 45 AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0
----
-135

query I rowsort
SELECT DISTINCT - 59 * col1 * col2 AS col1 FROM tab2 AS cor0
----
-181720
-229274
-69207

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 20 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT ALL + col2 DIV 67 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + col2 / 67 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8879
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 + - col2 + - col2 AS col1, + 27 / - col1 FROM tab0 AS cor0 WHERE 39 + col2 = + col0 - col2
----

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 + - col2 + - col2 AS col1, + 27 / - col1 FROM tab0 AS cor0 WHERE 39 + col2 = + col0 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - - SUM( DISTINCT - - col1 ) * - COUNT( * ) col2 FROM tab1 cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8880
SELECT - - SUM ( DISTINCT - - col1 ) * - COUNT ( * ) col2 FROM tab1 cor0
----
-198

query II rowsort
SELECT ALL 89, 10 AS col1 FROM tab1
----
89
10
89
10
89
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT DISTINCT + CAST( NULL AS SIGNED ) * MIN( + - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * MIN ( + - col2 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT SUM( + col2 ) * + COUNT( * ) AS col0 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT SUM ( + col2 ) * + COUNT ( * ) AS col0 FROM tab0
----
468

query I rowsort
SELECT 42 * col0 * - 20 FROM tab1
----
-42840
-71400
-76440

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + COUNT( * ) * 4 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8885
SELECT + COUNT ( * ) * 4 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT COUNT( * ) * - - 66 * - COUNT( * ), 60 + 29 AS col1 FROM tab1
----
-594
89

skipif mysql # not compatible
query II rowsort label-8886
SELECT COUNT ( * ) * - - 66 * - COUNT ( * ), 60 + 29 AS col1 FROM tab1
----
-594
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + 85 ) col1 FROM tab1
----
-5015
-5780
-8160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT DISTINCT CAST( - 37 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT CAST ( - 37 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT - col1 + + col1 * 91 FROM tab2
----
4590
6030
6930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8890
SELECT DISTINCT - CAST( NULL AS SIGNED ), col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8890
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL 55 * - COUNT( DISTINCT + 84 ) + MIN( - - col1 ) AS col2 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL 55 * - COUNT ( DISTINCT + 84 ) + MIN ( - - col1 ) AS col2 FROM tab0
----
-54

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - ( + - ( + 86 ) ) - + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8893
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1, CAST( - - 56 AS SIGNED ) * - 90 + - 92 + + col2 + - 20 FROM tab2 AS cor0
----
NULL
-5094
NULL
-5112
NULL
-5129

skipif mysql # not compatible
query II rowsort label-8893
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1, CAST ( - - 56 AS INTEGER ) * - 90 + - 92 + + col2 + - 20 FROM tab2 AS cor0
----
NULL
-5094
NULL
-5112
NULL
-5129

query I rowsort
SELECT DISTINCT - col0 * - - 86 AS col2 FROM tab1 AS cor0
----
-4386
-7310
-7826

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8895
SELECT 15 - CAST( NULL AS DECIMAL ) + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT 15 - CAST ( NULL AS REAL ) + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 60 * 43 FROM tab2 WHERE + col1 <> - 85
----
2580
2580
2580

query I rowsort
SELECT - 79 + - col1 AS col1 FROM tab2
----
-130
-146
-156

query II rowsort
SELECT 77, col2 + ( 99 ) AS col0 FROM tab2 WHERE NULL <> + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT ALL - col0 + - - CAST( + 1 AS SIGNED ) FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL - col0 + - - CAST ( + 1 AS INTEGER ) FROM tab2
----
-45
-63
-74

query I rowsort
SELECT 64 + - col0 AS col2 FROM tab1
----
-21
-27
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8901
SELECT DISTINCT - - CAST( 87 AS SIGNED ) * - COUNT( * ) - 24 col1, - 72 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
-24
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8901
SELECT DISTINCT - - CAST ( 87 AS INTEGER ) * - COUNT ( * ) - 24 col1, - 72 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
-24
-72

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE - 57 IS NULL
----

query II rowsort
SELECT ALL - col2, col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8904
SELECT ALL - + CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT - - COUNT( col0 ) FROM tab1 WHERE NOT ( - + col0 ) < + + col1
----
0

skipif mysql # not compatible
query I rowsort label-8905
SELECT - - COUNT ( col0 ) FROM tab1 WHERE NOT ( - + col0 ) < + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT + MIN( ALL - 3 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8906
SELECT + MIN ( ALL - 3 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL + + 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT - + MIN( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8908
SELECT - + MIN ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 39 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8910
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) * + col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8910
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) * + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT ( - + ( - MAX( + col2 ) ) ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT ( - + ( - MAX ( + col2 ) ) ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL - 19 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col2 AS col1, + 60 FROM tab1 AS cor0
----
59
60
68
60
96
60

onlyif mysql # DIV for integer division: 
query II rowsort label-8914
SELECT DISTINCT - col1 AS col0, + ( - - 25 ) DIV - - col1 col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8914
SELECT DISTINCT - col1 AS col0, + ( - - 25 ) / - - col1 col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 81 col2, - 28 FROM tab2 cor0
----
81
-28
81
-28
81
-28

query I rowsort
SELECT ALL - 27 * - col0 AS col1 FROM tab1
----
1377
2295
2457

query I rowsort
SELECT col1 + - - 3 + 26 AS col0 FROM tab1
----
34
43
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 67 col2 FROM tab1
----
-8
1
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8919
SELECT ALL + COUNT( 56 ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8919
SELECT ALL + COUNT ( 56 ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 31 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT DISTINCT - 18 + ( COUNT( * ) ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT - 18 + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col2 FROM tab2 WHERE ( - col0 ) IS NULL
----

query II rowsort
SELECT + - col0 * + ( + - 41 ) + col0 + + col1, ( + col0 ) FROM tab1 AS cor0
----
2156
51
3575
85
3869
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8924
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col1 FROM tab2 AS cor0 WHERE NOT + 20 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8924
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col1 FROM tab2 AS cor0 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - + + col1 AS col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - 71 + - 70 + - - col1 + + 13 FROM tab2 AS cor0
----
-51
-61
-77

query I rowsort
SELECT - col2 * - 17 + + 24 FROM tab0 AS cor0 WHERE col1 - - 15 * - col2 = NULL
----

query I rowsort
SELECT DISTINCT col1 * col2 * + col1 + + - col1 AS col2 FROM tab0 cor0
----
308286
4389
98

query I rowsort
SELECT DISTINCT + 69 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT + 61 - COUNT( + col1 ) AS col0 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT + 61 - COUNT ( + col1 ) AS col0 FROM tab0
----
58

query I rowsort
SELECT 92 - + - 73 AS col2 FROM tab2
----
165
165
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT - SUM( - ( + + 5 ) ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8932
SELECT - SUM ( - ( + + 5 ) ) FROM tab1
----
15

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 62 + - + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 99 + 84 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT 56 * + 28 * + COUNT( * ) col2 FROM tab2
----
4704

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8937
SELECT 56 * + 28 * + COUNT ( * ) col2 FROM tab2
----
4704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT - CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8938
SELECT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ( - - 33 ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - + 62 AS col1 FROM tab0 AS cor0
----
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col1 <> NULL
----

query II rowsort
SELECT ALL col0, - col2 - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 + 61 FROM tab0
----
142
62
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + - 17 < NULL
----

query I rowsort
SELECT col0 + + ( - + 81 ) FROM tab0
----
-66
16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT DISTINCT + - MAX( - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT + - MAX ( - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT ALL + + COUNT( * ) + - CAST( MAX( DISTINCT + col1 ) AS SIGNED ) + + 50 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + + COUNT ( * ) + - CAST ( MAX ( DISTINCT + col1 ) AS INTEGER ) + + 50 FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT COUNT( * ) + + 37 AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8948
SELECT COUNT ( * ) + + 37 AS col2 FROM tab2 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8949
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8949
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 43 AND NULL
----

query II rowsort
SELECT ALL + - col2 - - col0 AS col0, col0 + - 5 FROM tab0 AS cor0
----
-2
92
-32
10
77
82

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * - col1 - + col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT ALL - - 10 * 72 AS col2 FROM tab1 cor0
----
720
720
720

query I rowsort
SELECT DISTINCT - 17 + + - col0 FROM tab0 AS cor0
----
-104
-114
-32

query I rowsort
SELECT - + col1 - + + 60 FROM tab0 AS cor0
----
-141
-61
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + col1 * + col2 col1 FROM tab1 AS cor0
----
-1428
-3186
-7872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT + SUM( DISTINCT - CAST( - 34 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8958
SELECT + SUM ( DISTINCT - CAST ( - 34 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
34

query II rowsort
SELECT + col2 AS col2, + col1 AS col2 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT ALL + col0 * + 39 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1794
2496
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT DISTINCT 1 DIV - + COUNT( * ) * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT 1 / - + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT ( col2 ) DIV - col2 + + 71 AS col1 FROM tab0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-8962
SELECT ( col2 ) / - col2 + + 71 AS col1 FROM tab0
----
70
70
70

query I rowsort
SELECT + + 27 * - col0 * 37 AS col2 FROM tab2 cor0
----
-45954
-63936
-74925

query I rowsort
SELECT DISTINCT - ( + + 96 ) FROM tab2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8965
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - 17 - col1 AND col0 / + CAST( - col1 AS SIGNED ) / + col1 + + - col1
----

skipif mysql # not compatible
query III rowsort label-8965
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - 17 - col1 AND col0 / + CAST ( - col1 AS INTEGER ) / + col1 + + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 col0, - col0 FROM tab2
----
2
-46
2
-64
2
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - COUNT( DISTINCT + 80 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8967
SELECT - COUNT ( DISTINCT + 80 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8968
SELECT + ( - SUM( + + col2 ) ) DIV 28 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8968
SELECT + ( - SUM ( + + col2 ) ) / 28 FROM tab1 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 37 < - col2
----

query II rowsort
SELECT - col1 AS col0, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT - - col0 * - col1 * + 79 + - col0 FROM tab0 AS cor0
----
-144420
-7760
-96000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col0 col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT 14 + - col2 AS col0, + col2 + 58 FROM tab0
----
-33
105
-85
157
4
68

query I rowsort
SELECT ALL 92 + - col1 AS col2 FROM tab2
----
15
25
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT COUNT( * ) + + 80 + + 70 * - + 76 AS col2 FROM tab1
----
-5237

skipif mysql # not compatible
query I rowsort label-8975
SELECT COUNT ( * ) + + 80 + + 70 * - + 76 AS col2 FROM tab1
----
-5237

query I rowsort
SELECT - col2 FROM tab2 WHERE 5 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT SUM( ALL - col0 ) + + MIN( + col0 ) FROM tab0
----
-184

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT SUM ( ALL - col0 ) + + MIN ( + col0 ) FROM tab0
----
-184

query I rowsort
SELECT DISTINCT - col0 * + - col2 + + ( - 45 ) + + col2 + + col1 FROM tab2
----
1087
2632
4430

query I rowsort
SELECT + col0 * - col2 * col2 * - col0 AS col2 FROM tab2
----
1119364
18922500
6553600

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT col2 DIV - - col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8980
SELECT col2 / - - col1 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT - col0 - + col0 + + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-198
-229
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - col1 * - col0 col2, - 56 + - col1 * col1 + - + col2 FROM tab0
----
1296
-6664
1848
-507
98
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8983
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) * + COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8983
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + ( col0 ) < NULL AND NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + + 36 + 58 + 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 19 NOT BETWEEN NULL AND + 90 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 99 + + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 84 * + - col0 AS col1 FROM tab2 AS cor0
----
-3864
-5376
-6300

query I rowsort
SELECT DISTINCT - 50 * + col0 + - ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-4263
-4753
-735

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT ALL + + 39 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + + 39 / col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + col2 * + 90, 46 + col0 )
----

query I rowsort
SELECT ALL - + 72 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 45 IS NOT NULL
----

query II rowsort
SELECT ALL - 24 AS col2, col1 FROM tab1 cor0
----
-24
14
-24
47
-24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT COUNT( * ) * + - 68 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-8996
SELECT COUNT ( * ) * + - 68 FROM tab0
----
-204

query I rowsort
SELECT ALL - 63 FROM tab2 WHERE NOT col0 + - - col2 - - 40 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT - col2 DIV + col0 * + col1 * + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT - col2 / + col0 * + col1 * + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - 96 * + COUNT( * ) AS col2 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-8999
SELECT - 96 * + COUNT ( * ) AS col2 FROM tab0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL COUNT( * ) * 8 AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL COUNT ( * ) * 8 AS col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT - 1 + - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT - 1 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT 38 NOT BETWEEN col2 * - col2 AND 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT - 32 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9004
SELECT DISTINCT + + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT + + col2 / - col0 AS col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT - COUNT( DISTINCT - + col0 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT - COUNT ( DISTINCT - + col0 ) AS col1 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 + 80 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN NULL AND ( col1 )
----
0

query II rowsort
SELECT ALL 58 * + col1 * - col1 + ( 8 ) AS col2, - col2 - - - 13 FROM tab2 AS cor0
----
-150850
-36
-260354
-71
-343874
-53

query I rowsort
SELECT DISTINCT + col0 + 60 FROM tab0 WHERE + 80 >= NULL
----

query I rowsort
SELECT DISTINCT + 40 + + 26 * col0 FROM tab2 WHERE - - 75 = + + 56 + - - col0
----

query I rowsort
SELECT DISTINCT - 71 + + - col1 + col1 FROM tab0
----
-71

query I rowsort
SELECT ALL 50 * - - col2 + col0 FROM tab2
----
1196
2064
2975

query I rowsort
SELECT - 2 * col2 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) BETWEEN - + ( + 38 ) AND col1 / + + col1 * + - col0 * + 5 AND NOT + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) BETWEEN - + ( + 38 ) AND col1 / + + col1 * + - col0 * + 5 AND NOT + col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT - col2 + - + CAST( + col0 AS SIGNED ) + - 52 FROM tab0
----
-114
-149
-248

skipif mysql # not compatible
query I rowsort label-9015
SELECT - col2 + - + CAST ( + col0 AS INTEGER ) + - 52 FROM tab0
----
-114
-149
-248

query I rowsort
SELECT - 0 + - 22 * - + col1 AS col0 FROM tab1
----
1034
110
308

query II rowsort
SELECT DISTINCT col2, + 88 + - + col2 AS col1 FROM tab1 AS cor0
----
59
29
68
20
96
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT + 35, COUNT( + 64 ) AS col0 FROM tab2 AS cor0
----
35
3

skipif mysql # not compatible
query II rowsort label-9018
SELECT + 35, COUNT ( + 64 ) AS col0 FROM tab2 AS cor0
----
35
3

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN + - 20 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 48 + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL - ( - COUNT( * ) ) * ( - 99 ) + + - 36 AS col0 FROM tab2 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL - ( - COUNT ( * ) ) * ( - 99 ) + + - 36 AS col0 FROM tab2 AS cor0
----
-333

query I rowsort
SELECT + 91 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 57 * 1 AS col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT 17 + SUM( col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT 17 + SUM ( col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT + col1 * + + col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
210
87
3807
15
99
97

query I rowsort
SELECT DISTINCT col0 * + 87 * + col0 * + - ( + - col0 ) FROM tab2
----
22806528
36703125
8468232

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL + MIN( - col1 ) * - 71 FROM tab2
----
5467

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + MIN ( - col1 ) * - 71 FROM tab2
----
5467

query I rowsort
SELECT - ( - 92 ) AS col0 FROM tab0
----
92
92
92

query I rowsort
SELECT DISTINCT + - ( + 21 ) FROM tab0 AS cor0 WHERE 60 NOT BETWEEN - + col0 AND NULL
----

query II rowsort
SELECT DISTINCT - 87 * - col1 * - col1 AS col0, - col1 * - col1 FROM tab1 AS cor0
----
-17052
196
-192183
2209
-2175
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL - 58 * - COUNT( * ) AS col1 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 58 * - COUNT ( * ) AS col1 FROM tab0
----
174

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT col0 NOT IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9033
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT ( - col1 ) <= CAST( - col1 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT ( - col1 ) <= CAST ( - col1 AS REAL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 41 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL + ( SUM( ALL col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL + ( SUM ( ALL col2 ) ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT COUNT( * ) * + 90 AS col2 FROM tab0 WHERE NOT NULL IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9036
SELECT COUNT ( * ) * + 90 AS col2 FROM tab0 WHERE NOT NULL IN ( + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT ALL CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE col0 NOT IN ( 3 + 95 )
----
3

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE col0 NOT IN ( 3 + 95 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT COUNT( * ) * 9 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9039
SELECT COUNT ( * ) * 9 FROM tab1
----
27

query I rowsort
SELECT + col1 * 37 AS col2 FROM tab0
----
2997
37
777

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 66 FROM tab0
----
147
67
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9043
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col1 * col2 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col1 * col2 >= ( NULL )
----

query I rowsort
SELECT ALL col0 + col1 * 72 FROM tab0
----
1599
169
5847

query I rowsort
SELECT + 91 * col1 AS col0 FROM tab0
----
1911
7371
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT - 80 + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-9046
SELECT - 80 + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
-89

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 * col1 AND + col0
----

query I rowsort
SELECT - col1 * + ( - col1 ) AS col0 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= - col1 / col2 + + 89 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT AVG ( DISTINCT 95 ) AS col0 FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN + 6 + col1 AND CAST( NULL AS SIGNED ) * col1 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT AVG ( DISTINCT 95 ) AS col0 FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN + 6 + col1 AND CAST ( NULL AS INTEGER ) * col1 + + 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9051
SELECT CAST( NULL AS DECIMAL ) - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT col2 - ( col0 + 87 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9051
SELECT CAST ( NULL AS REAL ) - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT col2 - ( col0 + 87 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + 41 * - 22 - col1 AND + col0 - - 82
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 76 * 40 >= NULL
----

query I rowsort
SELECT 59 FROM tab1 WHERE NOT col2 * + col2 > ( - 2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL - COUNT( * ) * 91 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - COUNT ( * ) * 91 FROM tab2
----
-273

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - col1 + - col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT col2 + col0 FROM tab2 WHERE ( col1 ) NOT IN ( col2 * + col0 )
----
104
133
69

query I rowsort
SELECT + 91 FROM tab0 WHERE + 18 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 IN ( 20 + - 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT + COUNT( * ) - SUM( - 87 ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT + COUNT ( * ) - SUM ( - 87 ) FROM tab2 AS cor0
----
264

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - col0 ) AND - col0 * 53
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 74 <> ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9063
SELECT ALL + 32 DIV + MIN( ALL - 94 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + 32 / + MIN ( ALL - 94 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9064
SELECT * FROM tab0 WHERE NOT ( - col2 / col1 + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9064
SELECT * FROM tab0 WHERE NOT ( - col2 / col1 + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT SUM( col2 ) FROM tab0 WHERE NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT SUM ( col2 ) FROM tab0 WHERE NULL < ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL COUNT( DISTINCT col1 ) FROM tab2 WHERE ( col1 ) < + 81 * col1
----
3

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL COUNT ( DISTINCT col1 ) FROM tab2 WHERE ( col1 ) < + 81 * col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT - - MIN( DISTINCT 71 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT - - MIN ( DISTINCT 71 ) FROM tab0 AS cor0
----
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9069
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND ( 86 )
----

skipif mysql # not compatible
query III rowsort label-9069
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND ( 86 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( col0 ) ) col1 FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 50 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col2 * col1 + - col2 / col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + col0 ) * + col1 AND NULL
----

query I rowsort
SELECT + 8 * - - 40 FROM tab0
----
320
320
320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT + - SUM( ALL + col1 ) col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9077
SELECT + - SUM ( ALL + col1 ) col2 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT DISTINCT - CAST( + 47 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT - CAST ( + 47 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( col0 * col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT - col0 + - col1 / col1 FROM tab0 AS cor0 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) / - 98 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9080
SELECT - col0 + - col1 / col1 FROM tab0 AS cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) / - 98 >= NULL
----

query I rowsort
SELECT ALL - + 47 + - - 7 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + col2 + + + col0 - 94 FROM tab2 AS cor0
----
-25
10
39

query I rowsort
SELECT + 1 - + 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT - 88 + - col1 * - col2 + ( - 39 ) AS col2 FROM tab1
----
1217
168
3069

query I rowsort
SELECT ALL col1 + + - col2 * - col0 + + 74 AS col1 FROM tab0
----
860
965
9678

query I rowsort
SELECT ALL - - 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
49

query I rowsort
SELECT ALL + ( ( - + col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - col0 / col0 + + ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND - 14
----

query I rowsort
SELECT - col2 + + col1 AS col0 FROM tab0 AS cor0 WHERE 54 + + col2 + col0 * 71 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 + + col0 ) IS NULL
----

query I rowsort
SELECT ALL col1 + + + col0 AS col0 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT - - 28 - + COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9094
SELECT - - 28 - + COUNT ( * ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL + COUNT( * ) + - + 68 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL + COUNT ( * ) + - + 68 FROM tab2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT ALL col0 * + - 0 + + col2 DIV col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL col0 * + - 0 + + col2 / col0 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT 10 AS col2 FROM tab2 WHERE col2 - col1 * 34 NOT IN ( - 20 )
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT SUM( DISTINCT + + col1 ) + - ( - COUNT( * ) ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT SUM ( DISTINCT + + col1 ) + - ( - COUNT ( * ) ) AS col0 FROM tab1
----
69

query I rowsort
SELECT DISTINCT 64 * col1 - + 93 AS col0 FROM tab0
----
-29
1251
5091

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 * + ( col0 ) AND ( col2 * + 28 )
----

query I rowsort
SELECT DISTINCT + 61 * - col1 * 77 AS col0 FROM tab1
----
-220759
-23485
-65758

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( + + col0 )
----

query I rowsort
SELECT DISTINCT - 37 * - + 48 FROM tab2 AS cor0
----
1776

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT - - SUM( + - 65 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - - SUM ( + - 65 ) AS col1 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 11 ) * + col2 col0 FROM tab1 AS cor0
----
1056
649
748

query I rowsort
SELECT DISTINCT + 82 * - col2 AS col1 FROM tab0 cor0 WHERE NOT ( ( - 84 ) NOT IN ( + 65 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col2 * + 1 ) NOT BETWEEN + col0 AND - col2 + + col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 38 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT MIN( ALL 88 ) AS col1 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-9110
SELECT MIN ( ALL 88 ) AS col1 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT COUNT( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 80 ) AND - ( + + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-9111
SELECT COUNT ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 80 ) AND - ( + + 93 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT DISTINCT - 13 DIV + col2 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - 13 / + col2 FROM tab0 cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ALL + MIN( ALL + col0 ) * - + SUM( - 56 ) - + SUM( ALL col0 ) FROM tab1 AS cor0
----
8341

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL + MIN ( ALL + col0 ) * - + SUM ( - 56 ) - + SUM ( ALL col0 ) FROM tab1 AS cor0
----
8341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT - CAST( NULL AS SIGNED ) + + - col1 / + - col2 + col1 col1 FROM tab1 cor0 WHERE NOT + 97 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9114
SELECT - CAST ( NULL AS INTEGER ) + + - col1 / + - col2 + col1 col1 FROM tab1 cor0 WHERE NOT + 97 >= NULL
----

query II rowsort
SELECT ALL + 52, + col2 AS col2 FROM tab0 AS cor0
----
52
10
52
47
52
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9116
SELECT * FROM tab1 WHERE NOT + ( - 83 ) + - col2 * - - 64 + - CAST( NULL AS SIGNED ) IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9116
SELECT * FROM tab1 WHERE NOT + ( - 83 ) + - col2 * - - 64 + - CAST ( NULL AS INTEGER ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT MIN( 40 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT MIN ( 40 ) FROM tab0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT ALL ( - col0 ) AS col2 FROM tab1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL ( - col0 ) AS col2 FROM tab1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT + col0, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 * + col1 + + + col2 - col0 / col1 NOT BETWEEN + ( col0 ) AND col1
----

query II rowsort
SELECT DISTINCT + 20 AS col2, - 1 AS col0 FROM tab1
----
20
-1

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT + 33 >= col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT - SUM( + 40 ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT - SUM ( + 40 ) FROM tab2 AS cor0
----
-120

query II rowsort
SELECT 16, + 28 AS col1 FROM tab1 AS cor0
----
16
28
16
28
16
28

query I rowsort
SELECT ALL + + col1 * - 75 FROM tab1 AS cor0
----
-1050
-3525
-375

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col1 * - - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9128
SELECT ( - col1 ) / - 95 * - + col2 * + CAST( NULL AS DECIMAL ) / + col1 + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ( - col1 ) / - 95 * - + col2 * + CAST ( NULL AS REAL ) / + col1 + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL - - COUNT( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL - - COUNT ( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT col1 + - - 13 + + col1 FROM tab0 cor0 WHERE - 13 / 48 * + col2 * 88 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 IN ( col2 )
----

query I rowsort
SELECT + 36 + + + 50 * - + ( + 8 ) AS col1 FROM tab0 AS cor0
----
-364
-364
-364

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9134
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 96 ) NOT IN ( - - CAST( - col0 AS DECIMAL ) - - + col0 - - 43 + ( col2 + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-9134
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 96 ) NOT IN ( - - CAST ( - col0 AS REAL ) - - + col0 - - 43 + ( col2 + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL + COUNT( * ) * 61 - + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL + COUNT ( * ) * 61 - + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
180

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - ( - + col1 ) ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + + 97 FROM tab0
----
118
178
98

query I rowsort
SELECT DISTINCT 36 + col0 FROM tab2 WHERE - col1 * - col0 * + + col0 + - ( col2 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col2 + 85 FROM tab1
----
-11
17
26

query I rowsort
SELECT ALL 92 - - ( - 27 ) AS col1 FROM tab0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9141
SELECT - ( + col2 ) DIV - col0 - + ( - CAST( - 30 AS SIGNED ) ) FROM tab0
----
-27
-29
-30

skipif mysql # not compatible
query I rowsort label-9141
SELECT - ( + col2 ) / - col0 - + ( - CAST ( - 30 AS INTEGER ) ) FROM tab0
----
-27
-29
-30

query I rowsort
SELECT ALL 58 - + + col2 FROM tab0
----
-41
11
48

query I rowsort
SELECT DISTINCT 76 - col1 * - col0 FROM tab2
----
2422
5004
5101

query I rowsort
SELECT - 6 * - - col1 AS col0 FROM tab1 AS cor0
----
-282
-30
-84

query I rowsort
SELECT ALL 74 * col0 AS col2 FROM tab2 cor0
----
3404
4736
5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT + 78 FROM tab2 AS cor0 WHERE NOT ( + CAST( 59 AS SIGNED ) ) BETWEEN NULL AND col2
----
78
78
78

skipif mysql # not compatible
query I rowsort label-9146
SELECT + 78 FROM tab2 AS cor0 WHERE NOT ( + CAST ( 59 AS INTEGER ) ) BETWEEN NULL AND col2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL COUNT( * ) * + 47 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL COUNT ( * ) * + 47 FROM tab0 AS cor0
----
141

onlyif mysql # DIV for integer division: 
query II rowsort label-9148
SELECT - 39 AS col1, 79 DIV + + ( + - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-39
-1
-39
-1
-39
-1

skipif mysql # not compatible
query II rowsort label-9148
SELECT - 39 AS col1, 79 / + + ( + - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-39
-1
-39
-1
-39
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 38 + col2 IS NOT NULL
----

query I rowsort
SELECT - 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query II rowsort
SELECT ALL ( col0 ) * + col2 + + 95 AS col1, - col0 FROM tab0
----
800
-15
965
-87
9698
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 49 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 13 AS col2 FROM tab0 cor0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT ALL - 47 + MIN( - + col0 ) DIV 52 AS col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL - 47 + MIN ( - + col0 ) / 52 AS col0 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT - - col2 * - col0 FROM tab2 AS cor0 WHERE NOT + col1 * + - col2 * - - col1 IS NULL
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + - col2 + + col1 * - + 63 AS col2 FROM tab2 AS cor0
----
-3236
-4279
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT COUNT( * ) * - COUNT( + 37 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9157
SELECT COUNT ( * ) * - COUNT ( + 37 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL + 94 * - ( COUNT( - - col2 ) ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL + 94 * - ( COUNT ( - - col2 ) ) FROM tab1
----
-282

query I rowsort
SELECT DISTINCT col1 * + + 38 AS col0 FROM tab0
----
3078
38
798

query II rowsort
SELECT + col2, 92 AS col0 FROM tab0
----
10
92
47
92
99
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9161
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND 38
----

skipif mysql # not compatible
query III rowsort label-9161
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE + - col2 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9163
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 / CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9163
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 / CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - col1 * - ( - col0 ) AS col2 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT col0 + 78 - + col2 + - 49 + + - 53 - - + col2 FROM tab0 AS cor0
----
-9
63
73

query I rowsort
SELECT DISTINCT - 96 + + ( - col0 ) FROM tab2 WHERE NULL IS NULL
----
-142
-160
-171

query I rowsort
SELECT DISTINCT col2 + - + col1 AS col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9169
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 44 + - CAST( NULL AS SIGNED ) + + - 10 AND ( + col2 ) * + 19 * CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9169
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 44 + - CAST ( NULL AS INTEGER ) + + - 10 AND ( + col2 ) * + 19 * CAST ( col0 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9170
SELECT - 35 col1, - 52 - + col1 + col1 DIV + col0 FROM tab0 AS cor0
----
-35
-128
-35
-53
-35
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9170
SELECT - 35 col1, - 52 - + col1 + col1 / + col0 FROM tab0 AS cor0
----
-35
-128
-35
-53
-35
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 IN ( - ( + + ( - ( + 86 ) ) ) ) AND ( - col1 - + 42 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 IN ( - ( + + ( - ( + 86 ) ) ) ) AND ( - col1 - + 42 ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL - + COUNT( * ) * - MAX( ALL - 24 ) AS col0 FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - + COUNT ( * ) * - MAX ( ALL - 24 ) AS col0 FROM tab1 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL - 93 + + MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
-190

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL - 93 + + MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT DISTINCT col2 * CAST( - + col2 AS SIGNED ) * + - 61 * - 95 AS col1 FROM tab0 AS cor0
----
-12801155
-56796795
-579500

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT col2 * CAST ( - + col2 AS INTEGER ) * + - 61 * - 95 AS col1 FROM tab0 AS cor0
----
-12801155
-56796795
-579500

query I rowsort
SELECT - - 24 + - + col2 FROM tab0 AS cor0
----
-23
-75
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9176
SELECT + + col0 * + CAST( NULL AS DECIMAL ) * + col1 + + - ( + 61 ) - + 34 / - col0 / - + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT + + col0 * + CAST ( NULL AS REAL ) * + col1 + + - ( + 61 ) - + 34 / - col0 / - + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT 6 + + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT 6 + + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + + col1 + - - col1 * - col2 + - 52 FROM tab1
----
-1286
-283
-3133

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * ( + col1 ) + + + 29 IS NULL
----

query I rowsort
SELECT ALL + 75 FROM tab0, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 13 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT DISTINCT + 75, - COUNT( * ) col1 FROM tab0 AS cor0 WHERE 64 IS NULL
----
75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9182
SELECT DISTINCT + 75, - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE 64 IS NULL
----
75
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9183
SELECT DISTINCT + - 95 * + 76 * + MIN( CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
555940

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + - 95 * + 76 * + MIN ( CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
555940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col1 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( 38, col1, + - col1 )
----

query I rowsort
SELECT 3 * col2 AS col1 FROM tab1
----
177
204
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - + MAX( - col1 ) FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT - + MAX ( - col1 ) FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query II rowsort
SELECT col0, - col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
15
-47
87
-10
97
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT DISTINCT - 38 DIV - - col2 col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9188
SELECT DISTINCT - 38 / - - col2 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 10 AS col0 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9190
SELECT DISTINCT col1 + - ( + 55 ) DIV + CAST( - - 83 AS SIGNED ), 76 AS col2 FROM tab0 AS cor0 WHERE col1 NOT IN ( - + col1 )
----
1
76
21
76
81
76

skipif mysql # not compatible
query II rowsort label-9190
SELECT DISTINCT col1 + - ( + 55 ) / + CAST ( - - 83 AS INTEGER ), 76 AS col2 FROM tab0 AS cor0 WHERE col1 NOT IN ( - + col1 )
----
1
76
21
76
81
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT 44 * + + COUNT( * ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9191
SELECT 44 * + + COUNT ( * ) FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL - SUM( - 7 ) AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL - SUM ( - 7 ) AS col2 FROM tab0 AS cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + ( - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - col1 + 71 AS col0 FROM tab1 AS cor0
----
-1273
-224
-3125

query II rowsort
SELECT - col0 * col1 + + col1, 11 - - col0 AS col2 FROM tab0 AS cor0
----
-1134
26
-1806
98
-96
108

query I rowsort
SELECT 96 + + col1 AS col2 FROM tab1 AS cor0
----
101
110
143

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT DISTINCT - MAX( col2 ) * - - 66 AS col0 FROM tab2
----
-3828

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - MAX ( col2 ) * - - 66 AS col0 FROM tab2
----
-3828

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) / + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - col1 + + 31 AS col1 FROM tab2
----
-2570
-4458
-5898

query III rowsort
SELECT * FROM tab0 WHERE - ( col2 ) < ( - + col0 ) - - col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE - 99 IN ( - - 84 )
----

query I rowsort
SELECT 13 * - col1 * col0 FROM tab0 AS cor0
----
-1261
-15795
-23751

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + - col0 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - COUNT( * ) + + SUM( ALL + 34 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9206
SELECT - COUNT ( * ) + + SUM ( ALL + 34 ) FROM tab2 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 15 + - + 29 AS col1 FROM tab0 AS cor0
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 69 col2 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL col0 - + - col1 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + col2 + + col2 / + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT + - col1 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9212
SELECT + - col1 / - col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 51 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9215
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, - COUNT( * ) AS col1 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9215
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, - COUNT ( * ) AS col1 FROM tab0
----
NULL
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 47 + 56 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT + 32 * - - ( CAST( NULL AS SIGNED ) ) * col0 * + col1 + 77 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT + 32 * - - ( CAST ( NULL AS INTEGER ) ) * col0 * + col1 + 77 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 96 * + col1 FROM tab0
----
2016
7776
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND - 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT 72 DIV - - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9220
SELECT 72 / - - col2 FROM tab1
----
0
1
1

query I rowsort
SELECT 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT 20 * - - 92 AS col1 FROM tab2
----
1840
1840
1840

query I rowsort
SELECT ( 1 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT 14 * - 72 * col1 * + 17 FROM tab0 AS cor0
----
-1388016
-17136
-359856

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9225
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( + col2 ) ) col2 FROM tab0 cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + 76 + + 31, col1 col0 FROM tab2 AS cor0
----
-3465
51
-4833
77
-5669
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 62 * + col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL = col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT ALL + col1 + - col1 DIV col2 AS col2 FROM tab0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + col1 + - col1 / col2 AS col2 FROM tab0
----
1
19
80

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT IN ( - 68, + col1 + + col2 + - col2, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT ALL col0 + 23 DIV - 9 + - + 33 + - col1 FROM tab0
----
-101
31
61

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL col0 + 23 / - 9 + - + 33 + - col1 FROM tab0
----
-101
31
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT + col2 + + col2 - + - 23 FROM tab2 WHERE + 32 * - col1 * col2 + - ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + + 53 AS col2 FROM tab1
----
104
138
144

query I rowsort
SELECT + ( - col0 ) + - col2 + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-195
-76
19

query I rowsort
SELECT + 14 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 94 < - + ( 2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT 66 * + MAX( - col1 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT 66 * + MAX ( - col1 ) FROM tab0 AS cor0
----
-66

query I rowsort
SELECT - 66 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - ( + COUNT( * ) ) * - - 33 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9242
SELECT - ( + COUNT ( * ) ) * - - 33 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT + 9 DIV - 20 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9243
SELECT + 9 / - 20 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - ( - - 54 ) FROM tab1
----
-54
-54
-54

query I rowsort
SELECT DISTINCT - col2 + + ( + 16 ) AS col1 FROM tab2 AS cor0
----
-24
-42
-7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + + col1 * + 65 IN ( - - col2, 0 * + - col0 + - col2, 56, - - 49 * - 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + MAX( col1 ) col2 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9247
SELECT + MAX ( col1 ) col2 FROM tab2
----
77

query II rowsort
SELECT DISTINCT - 69, col1 FROM tab2 AS cor0
----
-69
51
-69
67
-69
77

query I rowsort
SELECT col0 + 48 + 25 AS col0 FROM tab1 AS cor0
----
124
158
164

query I rowsort
SELECT + + col2 + + - 78 AS col0 FROM tab0 AS cor0
----
-31
-68
21

query I rowsort
SELECT DISTINCT + - 39 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT ALL - 91 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - 91 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + col1 + - + col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT col1 * + 76 - - col2 NOT IN ( - col2, col0 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9255
SELECT - ( + + CAST( NULL AS SIGNED ) ), + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9255
SELECT - ( + + CAST ( NULL AS INTEGER ) ), + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL + 20 - 21 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + MAX( ALL - ( col0 ) ) - + 38 AS col0 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9257
SELECT + MAX ( ALL - ( col0 ) ) - + 38 AS col0 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT COUNT( * ) - 58 - - 28 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9258
SELECT COUNT ( * ) - 58 - - 28 FROM tab1 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - + col2 ) * - 7 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT IN ( ( - col0 ), col2 * + 80, - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT - CAST( 73 AS SIGNED ) AS col0 FROM tab1
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-9261
SELECT - CAST ( 73 AS INTEGER ) AS col0 FROM tab1
----
-73
-73
-73

query I rowsort
SELECT ALL - 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9263
SELECT ALL 6 AS col0, CAST( NULL AS SIGNED ) * + - col2 AS col2 FROM tab0
----
6
NULL
6
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-9263
SELECT ALL 6 AS col0, CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab0
----
6
NULL
6
NULL
6
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 * - 78 NOT BETWEEN + 99 * + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT DISTINCT + COUNT( * ) * + - SUM( - col1 ) col0, + 79 AS col0 FROM tab2 AS cor0
----
585
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9265
SELECT DISTINCT + COUNT ( * ) * + - SUM ( - col1 ) col0, + 79 AS col0 FROM tab2 AS cor0
----
585
79

query I rowsort
SELECT DISTINCT 27 * + + col2 AS col2 FROM tab2 AS cor0
----
1080
1566
621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col2, col1 col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT DISTINCT - col2, ( - 60 ) AS col1 FROM tab2 AS cor0
----
-23
-60
-40
-60
-58
-60

query I rowsort
SELECT ALL - 28 - - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-5
12
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT + 91 DIV - ( - col0 ) AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9270
SELECT + 91 / - ( - col0 ) AS col1 FROM tab0
----
0
1
6

query I rowsort
SELECT - 58 * 38 FROM tab1
----
-2204
-2204
-2204

query I rowsort
SELECT col1 * - col1 * + 34 * + - col2 FROM tab2
----
2033982
8063440
8852308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9273
SELECT 67 * 8 AS col1, ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) FROM tab0
----
536
NULL

skipif mysql # not compatible
query II rowsort label-9273
SELECT 67 * 8 AS col1, ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
536
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9274
SELECT - COUNT( * ) DIV MAX( DISTINCT 59 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9274
SELECT - COUNT ( * ) / MAX ( DISTINCT 59 ) AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT ALL MIN( + + col2 ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL MIN ( + + col2 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9277
SELECT CAST( NULL AS DECIMAL ) + 20 * - col1 * + + col0 * col1 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT CAST ( NULL AS REAL ) + 20 * - col1 * + + col0 * col1 * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL - MAX( ALL + 16 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - MAX ( ALL + 16 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - 11 * - + col1 * + + col1 FROM tab0 AS cor0
----
11
4851
72171

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9281
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( - col2 AS SIGNED ) ) - + col0 + - col1 IN ( + 11, ( col1 ) )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-9281
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( - col2 AS INTEGER ) ) - + col0 + - col1 IN ( + 11, ( col1 ) )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT 9 + - + 75 * - - COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT 9 + - + 75 * - - COUNT ( * ) FROM tab0
----
-216

query I rowsort
SELECT 58 + + 96 FROM tab0
----
154
154
154

query I rowsort
SELECT 48 + - - col0 AS col0 FROM tab0
----
135
145
63

query II rowsort
SELECT DISTINCT col0 AS col1, - 83 FROM tab2 WHERE + col1 + + ( + 62 ) IS NOT NULL
----
46
-83
64
-83
75
-83

query I rowsort
SELECT 89 + col2 AS col2 FROM tab0
----
136
188
99

query I rowsort
SELECT DISTINCT + col1 + col2 + 76 AS col2 FROM tab1
----
140
186
191

query I rowsort
SELECT DISTINCT - col2 + + col1 + - col1 * + + 77 FROM tab0 WHERE NOT NULL = col2 * - col0
----

query I rowsort
SELECT ALL 48 - + - col1 FROM tab0
----
129
49
69

query I rowsort
SELECT DISTINCT - ( + 23 ) * - + col0 FROM tab2 cor0
----
1058
1472
1725

query I rowsort
SELECT DISTINCT - + col0 - - ( - + col2 ) - - + col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - + col2 * + - 74 * - 28 AS col0 FROM tab0 AS cor0
----
-205128
-20720
-97384

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9293
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 49 = - CAST( NULL AS SIGNED ) * - 68
----

skipif mysql # not compatible
query III rowsort label-9293
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 49 = - CAST ( NULL AS INTEGER ) * - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT - - 48 + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT - - 48 + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
57

query II rowsort
SELECT DISTINCT + ( - col1 ) AS col0, col2 * col1 AS col2 FROM tab2
----
-51
1173
-67
3886
-77
3080

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT DISTINCT - + COUNT( DISTINCT - 24 ) DIV - 8 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9297
SELECT DISTINCT - + COUNT ( DISTINCT - 24 ) / - 8 col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT + 42 + COUNT( * ) AS col0, COUNT( * ) * - ( - 69 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 39, col2 )
----
42
0

skipif mysql # not compatible
query II rowsort label-9298
SELECT + 42 + COUNT ( * ) AS col0, COUNT ( * ) * - ( - 69 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 39, col2 )
----
42
0

query I rowsort
SELECT ALL + - 87 * 63 + - col2 AS col0 FROM tab0 AS cor0
----
-5491
-5528
-5580

query II rowsort
SELECT - col1 * + 43 * + + col2, ( 28 ) AS col2 FROM tab2 AS cor0
----
-132440
28
-167098
28
-50439
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * - 66 + + - ( + + 73 ) AS col0 FROM tab1 AS cor0
----
-3175
-403
-997

onlyif mysql # DIV for integer division: 
query II rowsort label-9303
SELECT ALL col0 AS col1, col1 DIV - col1 AS col0 FROM tab2
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-9303
SELECT ALL col0 AS col1, col1 / - col1 AS col0 FROM tab2
----
46
-1
64
-1
75
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 + - 1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND + 14 + + col0 + + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT DISTINCT 55 * + col0 DIV - col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT 55 * + col0 / - col0 FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT MAX( DISTINCT - + col2 ) * - + ( MAX( DISTINCT + - 47 ) ) FROM tab0
----
-470

skipif mysql # not compatible
query I rowsort label-9307
SELECT MAX ( DISTINCT - + col2 ) * - + ( MAX ( DISTINCT + - 47 ) ) FROM tab0
----
-470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9308
SELECT ALL + 85 DIV - COUNT( * ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + 85 / - COUNT ( * ) FROM tab0 AS cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT + col1 DIV + 44 AS col2 FROM tab1 AS cor0 WHERE NOT + 74 + - 11 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9309
SELECT + col1 / + 44 AS col2 FROM tab1 AS cor0 WHERE NOT + 74 + - 11 IS NULL
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 * col0 + - - 81 + - 53 col2, - 45 + + col2 FROM tab1 AS cor0
----
4924
51
5043
14
6216
23

query I rowsort
SELECT DISTINCT col0 + col2 * + + col1 * + col2 AS col1 FROM tab0
----
178944
2187
9898

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - COUNT( * ) + 88 AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - COUNT ( * ) + 88 AS col0 FROM tab1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - SUM( DISTINCT + - 84 ) + + COUNT( * ) * - COUNT( * ) + - - 65 FROM tab0 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-9313
SELECT - SUM ( DISTINCT + - 84 ) + + COUNT ( * ) * - COUNT ( * ) + - - 65 FROM tab0 AS cor0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT + + MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + + MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT 42 + + 49 AS col2 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT - + 71 + + ( 43 ) FROM tab0 AS cor0
----
-28
-28
-28

query III rowsort
SELECT * FROM tab1 cor0 WHERE 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9318
SELECT col2 + + - 68, - CAST( - col0 AS SIGNED ) + - - col2 col2 FROM tab2 AS cor0
----
-10
133
-28
104
-45
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9318
SELECT col2 + + - 68, - CAST ( - col0 AS INTEGER ) + - - col2 col2 FROM tab2 AS cor0
----
-10
133
-28
104
-45
69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 6 + + 35 * - 77 FROM tab2 AS cor0
----
-2689
-2689
-2689

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT DISTINCT col0 DIV col2 + + col1 + - + col0 FROM tab2 AS cor0
----
-7
14
7

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT col0 / col2 + + col1 + - + col0 FROM tab2 AS cor0
----
-7
14
7

query I rowsort
SELECT ALL + col2 + + ( col2 ) FROM tab1
----
118
136
192

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN + ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 19 * + 13 * + col1 FROM tab1
----
11609
1235
3458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT ALL + + CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + + CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, col2 + 46 AS col1 FROM tab1
----
14
142
47
114
5
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT MAX( DISTINCT ( + - col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9327
SELECT MAX ( DISTINCT ( + - col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT + COUNT( * ) * - 77 AS col1 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + COUNT ( * ) * - 77 AS col1 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT DISTINCT 92 * + + 34 + + col0 FROM tab0 cor0
----
3143
3215
3225

query I rowsort
SELECT DISTINCT + col2 - + + col1 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT - 79 * - 45 * - col2 AS col1 FROM tab1
----
-209745
-241740
-341280

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT COUNT( DISTINCT - col0 ) * + 90 AS col1 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT COUNT ( DISTINCT - col0 ) * + 90 AS col1 FROM tab2
----
270

query I rowsort
SELECT DISTINCT + col2 + + col0 * + ( + + 42 ) AS col1 FROM tab0
----
3664
4173
677

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - + col2, col1 col2 FROM tab1
----
-3481
5
-4624
47
-9216
14

query II rowsort
SELECT DISTINCT + 24 * + 36, + col0 FROM tab2
----
864
46
864
64
864
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9336
SELECT col1 DIV - + CAST( + col0 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT col1 / - + CAST ( + col0 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT ALL - 91 DIV + COUNT( * ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL - 91 / + COUNT ( * ) FROM tab1
----
-30

query I rowsort
SELECT 34 FROM tab0 WHERE NOT - 93 IS NOT NULL
----

query II rowsort
SELECT - col1, col1 * + 54 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 43 * + 69 * + col1 AS col1 FROM tab2 AS cor0
----
151317
198789
228459

query I rowsort
SELECT ALL + col2 * + + col1 - - - 54 AS col0 FROM tab0 AS cor0
----
156
3753
45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT 40 * + COUNT( * ) col2 FROM tab0 cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9343
SELECT DISTINCT 40 * + COUNT ( * ) col2 FROM tab0 cor0
----
120

query I rowsort
SELECT ALL + col2 + + col0 * col0 * - 50 AS col0 FROM tab1 AS cor0
----
-129954
-361191
-413982

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - + MIN( ALL col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - + MIN ( ALL col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9346
SELECT 9 DIV - 8 + - MAX( DISTINCT 4 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9346
SELECT 9 / - 8 + - MAX ( DISTINCT 4 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL - + col2 + 43 + + col2 * + col1 FROM tab2 AS cor0
----
1193
3083
3871

query I rowsort
SELECT - col2 + 12 FROM tab1
----
-47
-56
-84

query II rowsort
SELECT ALL 45 AS col0, 33 FROM tab2 AS cor0
----
45
33
45
33
45
33

query I rowsort
SELECT DISTINCT + - 91 + AVG ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT COUNT( * ) - + ( - COUNT( DISTINCT + col0 ) ) AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9351
SELECT COUNT ( * ) - + ( - COUNT ( DISTINCT + col0 ) ) AS col2 FROM tab2 cor0
----
6

query I rowsort
SELECT + - col1 - - 86 FROM tab1 cor0
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT MAX( + 92 ) + 93 FROM tab1 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9353
SELECT MAX ( + 92 ) + 93 FROM tab1 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9354
SELECT DISTINCT - col1 * col2 + - col2 + - - 54 * ( col2 ) * - - CAST( - 22 AS SIGNED ) - + col1 + - col1 - ( - col2 ) + - col2 * + col1 AS col0, 48 FROM tab0
----
-117812
48
-12342
48
-63612
48

skipif mysql # not compatible
query II rowsort label-9354
SELECT DISTINCT - col1 * col2 + - col2 + - - 54 * ( col2 ) * - - CAST ( - 22 AS INTEGER ) - + col1 + - col1 - ( - col2 ) + - col2 * + col1 AS col0, 48 FROM tab0
----
-117812
48
-12342
48
-63612
48

query I rowsort
SELECT ( + 95 ) + col2 AS col1 FROM tab1
----
154
163
191

query I rowsort
SELECT + col0 + - col0 + + - col0 - - 5 * + 64 * - + col1 FROM tab0
----
-25935
-417
-6807

query III rowsort
SELECT * FROM tab0 WHERE - 92 < NULL
----

query I rowsort
SELECT + 17 + + - col2 FROM tab0
----
-30
-82
7

query III rowsort
SELECT * FROM tab1 WHERE + 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9360
SELECT - + col2 / col1 - + CAST( NULL AS SIGNED ) AS col2, - 29 FROM tab2 WHERE NULL IS NULL
----
NULL
-29
NULL
-29
NULL
-29

skipif mysql # not compatible
query II rowsort label-9360
SELECT - + col2 / col1 - + CAST ( NULL AS INTEGER ) AS col2, - 29 FROM tab2 WHERE NULL IS NULL
----
NULL
-29
NULL
-29
NULL
-29

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 83 - - col1 AS col1 FROM tab2
----
134
150
160

query I rowsort
SELECT ALL + ( + 45 ) AS col1 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT - + 7 AS col2 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - ( - 88 ) FROM tab0 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9366
SELECT + - CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) / + 57 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + - CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) / + 57 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + 4
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 ) WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, col2 FROM tab1 WHERE NOT - col1 >= - - col0
----
51
96
85
59
91
68

query II rowsort
SELECT col2, ( col1 ) FROM tab2 cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ( - 19 ) / col0 + + + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - 43 AS col0 FROM tab0 AS cor0
----
43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 * - 92 * + 24 * 75 FROM tab2 AS cor0
----
-10598400
-12420000
-7617600

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - COUNT( * ) + + 59 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-9375
SELECT - COUNT ( * ) + + 59 FROM tab2
----
56

query II rowsort
SELECT 39 + + col1 AS col2, 23 FROM tab2
----
106
23
116
23
90
23

query III rowsort
SELECT * FROM tab0 WHERE ( NULL = ( - + 14 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT DISTINCT - col0 * - CAST( - col1 AS SIGNED ) FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) IS NOT NULL )
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT - col0 * - CAST ( - col1 AS INTEGER ) FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NOT NULL )
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + ( - 99 ) * + COUNT( * ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-9379
SELECT + ( - 99 ) * + COUNT ( * ) FROM tab1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COUNT( * ) * 5 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-9380
SELECT COUNT ( * ) * 5 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
15

query I rowsort
SELECT ALL - col1 + + ( - col2 ) FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT DISTINCT - + col0 + - 69 + col1 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT - + col0 + - 69 + col1 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND 9
----

query I rowsort
SELECT + + 75 + + - col2 * + - col1 + 3 * - - col1 AS col1 FROM tab2 AS cor0
----
1401
3386
4162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT ALL - + CAST( NULL AS SIGNED ) - - 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-9385
SELECT ALL - + CAST ( NULL AS INTEGER ) - - col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - - col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col1 * - 46 - + + 7 FROM tab0 AS cor0
----
-3733
-53
-973

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT + MAX( DISTINCT - + col0 ) AS col0 FROM tab0 cor0 WHERE NOT 8 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT + MAX ( DISTINCT - + col0 ) AS col0 FROM tab0 cor0 WHERE NOT 8 IS NOT NULL
----
NULL

query II rowsort
SELECT + col2 * - ( - col0 ), - col2 AS col1 FROM tab2 AS cor0
----
1058
-23
2560
-40
4350
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-9390
SELECT + col0, - col1 DIV - col2 - - - col2 FROM tab0
----
15
-46
87
-8
97
-99

skipif mysql # not compatible
query II rowsort label-9390
SELECT + col0, - col1 / - col2 - - - col2 FROM tab0
----
15
-46
87
-8
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT ( col0 ) * - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + ( - - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + ( - - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( ( - col2 IS NOT NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 8 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9396
SELECT - CAST( - + 76 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-9396
SELECT - CAST ( - + 76 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 93 * + 33 FROM tab2
----
3069
3069
3069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 92 ) col0 FROM tab0
----
92
92
92

query II rowsort
SELECT - 34 AS col1, 43 * - col2 AS col1 FROM tab0
----
-34
-2021
-34
-4257
-34
-430

query I rowsort
SELECT DISTINCT + 29 + - col1 AS col2 FROM tab1
----
-18
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT DISTINCT + MAX( DISTINCT + ( + 61 ) ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT + MAX ( DISTINCT + ( + 61 ) ) FROM tab2
----
61

query I rowsort
SELECT - col2 * - 52 + ( - 28 ) AS col2 FROM tab2
----
1168
2052
2988

query I rowsort
SELECT ALL - - ( + + 86 ) FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT - col1 + - + col1 + + 74 FROM tab0 AS cor0
----
-88
32
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT ALL CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 0, + col0 + col2 AS col2 FROM tab2
----
0
104
0
133
0
69

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + - 1 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8 col2, 60 * col2 * + ( + + 65 ) FROM tab0
----
-8
183300
-8
386100
-8
39000

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT + + SUM( ALL 53 ) - - - 27 col1 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9410
SELECT + + SUM ( ALL 53 ) - - - 27 col1 FROM tab2 AS cor0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT - - 61 * - col2 / - - col0 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT - - 61 * - col2 / - - col0 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + - col0 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * col1 col1 FROM tab1 AS cor0
----
210
705
75

query II rowsort
SELECT DISTINCT + 59, col2 FROM tab0 AS cor0
----
59
10
59
47
59
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT - CAST( NULL AS SIGNED ) * 49 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT - CAST ( NULL AS INTEGER ) * 49 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9416
SELECT - col2 * 94 DIV 24 AS col1, + col2 AS col0 FROM tab0
----
-184
47
-387
99
-39
10

skipif mysql # not compatible
query II rowsort label-9416
SELECT - col2 * 94 / 24 AS col1, + col2 AS col0 FROM tab0
----
-184
47
-387
99
-39
10

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <> - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 BETWEEN NULL AND + col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL + 91 * - ( - COUNT( * ) ) * + + COUNT( * ) AS col1 FROM tab2
----
819

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL + 91 * - ( - COUNT ( * ) ) * + + COUNT ( * ) AS col1 FROM tab2
----
819

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9420
SELECT * FROM tab1 WHERE NOT NULL <> - col0 * + - col1 * - CAST( 88 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9420
SELECT * FROM tab1 WHERE NOT NULL <> - col0 * + - col1 * - CAST ( 88 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NULL > - col0
----

query I rowsort
SELECT ( + col2 ) * - - col0 AS col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT 29 + + - 67 * + - ( + col1 ) + + + 3 FROM tab0 AS cor0 WHERE NOT - col1 * - col0 >= - col1
----

query I rowsort
SELECT + + col2 * + + col1 + 28 + col1 AS col1 FROM tab1 AS cor0
----
1386
3271
328

onlyif mysql # aggregate syntax: 
query II rowsort label-9426
SELECT DISTINCT COUNT( * ), 53 col1 FROM tab0 AS cor0
----
3
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9426
SELECT DISTINCT COUNT ( * ), 53 col1 FROM tab0 AS cor0
----
3
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 22 + + col1 * - 87 + - 4 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + + col1 * - col1 * + + ( - - col0 ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-119646
-336675
-379456

query I rowsort
SELECT - col1 + + - col2 * - col1 + col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE + 76 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE + 76 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT DISTINCT col2 + col0 DIV 99 * - 4 * + 53 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT col2 + col0 / 99 * - 4 * + 53 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE + 15 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9432
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE + 15 IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL BETWEEN - - col0 + - col1 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT COUNT( * ) * ( 50 ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-9434
SELECT COUNT ( * ) * ( 50 ) FROM tab2
----
150

query I rowsort
SELECT ALL - - col1 * + 57 * - 13 AS col2 FROM tab0 cor0
----
-15561
-60021
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT - COUNT( * ) * - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9436
SELECT - COUNT ( * ) * - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL - MIN( DISTINCT + + 14 ) AS col2 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - MIN ( DISTINCT + + 14 ) AS col2 FROM tab2 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT DISTINCT col0 + col1 DIV - + col0 FROM tab0 AS cor0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT col0 + col1 / - + col0 FROM tab0 AS cor0
----
10
87
97

query I rowsort
SELECT ALL - 3 + - - 34 AS col0 FROM tab2 AS cor0
----
31
31
31

query III rowsort
SELECT * FROM tab0 WHERE NULL > - + ( - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * - col2 col1 FROM tab1 cor0
----
-1248
-767
-884

query I rowsort
SELECT ALL col2 * + col2 * + 56 FROM tab0 AS cor0
----
123704
548856
5600

query I rowsort
SELECT DISTINCT - col2 * - ( + col0 ) + + 15 * - + col1 * + - 34 AS col2 FROM tab1 AS cor0
----
12036
30158
7565

query I rowsort
SELECT ALL + - 2 * 61 + - col2 AS col1 FROM tab0 AS cor0
----
-132
-169
-221

query II rowsort
SELECT col1 AS col1, - 47 AS col0 FROM tab0
----
1
-47
21
-47
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT CAST( NULL AS SIGNED ) / - 70 * + CAST( - - 98 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT CAST ( NULL AS INTEGER ) / - 70 * + CAST ( - - 98 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col0 ) * col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT DISTINCT + col2 * - ( CAST( - - 57 AS SIGNED ) ) AS col0 FROM tab0
----
-2679
-5643
-570

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + col2 * - ( CAST ( - - 57 AS INTEGER ) ) AS col0 FROM tab0
----
-2679
-5643
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col0 col1 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT DISTINCT + MAX( DISTINCT + 29 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + MAX ( DISTINCT + 29 ) FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL COUNT( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT 70 + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-9453
SELECT 70 + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
70

query I rowsort
SELECT 44 + col1 AS col1 FROM tab0
----
125
45
65

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 52 AND 41 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL - col0 / - col2 + - CAST( NULL AS SIGNED ) + col0 / + col2 * - 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - col0 / - col2 + - CAST ( NULL AS INTEGER ) + col0 / + col2 * - 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9458
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) AS col1, col2 + ( + CAST( - col2 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9458
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) AS col1, col2 + ( + CAST ( - col2 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + 7 ) AND NULL
----

query I rowsort
SELECT ALL - + col0 * + 60 FROM tab2 AS cor0 WHERE + col0 + + col0 IS NULL
----

query II rowsort
SELECT 11, col2 FROM tab0
----
11
10
11
47
11
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT - CAST( NULL AS SIGNED ) + - col2 + + - 62 - + 35 + + + CAST( - col1 AS SIGNED ) + + 52 * + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT - CAST ( NULL AS INTEGER ) + - col2 + + - 62 - + 35 + + + CAST ( - col1 AS INTEGER ) + + 52 * + + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 31 + - - 69 FROM tab1
----
100
100
100

query I rowsort
SELECT - 92 + - ( + 55 ) AS col2 FROM tab2
----
-147
-147
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + + 16 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 16 col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - COUNT( * ) FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9467
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + 88 + - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 > - ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT + + col1 DIV - - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9469
SELECT + + col1 / - - col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 13 + col1 * col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4290
438
727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT ALL + 46 - col2 * CAST( NULL AS SIGNED ) FROM tab1 WHERE + 72 * - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + 46 - col2 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 72 * - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 11 * - col1 + col2 * 50 FROM tab1
----
2883
2895
4646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT DISTINCT col0 FROM tab0 WHERE col2 IN ( 4 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT col0 FROM tab0 WHERE col2 IN ( 4 + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 / - 82 ) NOT IN ( + 27 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 9 + col0 FROM tab2
----
55
73
84

query I rowsort
SELECT - col2 + col0 AS col0 FROM tab0 WHERE NOT ( 80 ) NOT BETWEEN ( - 69 ) AND ( ( 42 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * - 22 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT + 6 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + col1 * 93 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9478
SELECT + 6 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + col1 * 93 ) IS NOT NULL
----

query I rowsort
SELECT ALL 22 + col0 FROM tab0
----
109
119
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( + 97 + - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( + 97 + - 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9481
SELECT - CAST( CAST( 31 AS DECIMAL ) AS SIGNED ) col0 FROM tab1
----
-31
-31
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9481
SELECT - CAST ( CAST ( 31 AS REAL ) AS INTEGER ) col0 FROM tab1
----
-31
-31
-31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / 54 < ( NULL )
----

query I rowsort
SELECT + ( 88 ) AS col2 FROM tab0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL SUM( 45 ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL SUM ( 45 ) FROM tab0
----
135

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT SUM( ALL + 85 ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT SUM ( ALL + 85 ) FROM tab2
----
255

query I rowsort
SELECT 27 + 30 AS col1 FROM tab0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT + 96 + MIN( 85 ) FROM tab1
----
181

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT + 96 + MIN ( 85 ) FROM tab1
----
181

query I rowsort
SELECT DISTINCT 55 * col2 + + col0 FROM tab1
----
3330
3831
5331

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT ALL - col2 DIV + col2 - - col0 AS col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL - col2 / + col2 - - col0 AS col1 FROM tab1
----
50
84
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT DISTINCT col2 DIV + col2 FROM tab1 WHERE ( 89 ) NOT IN ( + col1 * col2 )
----
1

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT col2 / + col2 FROM tab1 WHERE ( 89 ) NOT IN ( + col1 * col2 )
----
1

query I rowsort
SELECT col0 FROM tab0 WHERE NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + SUM( 17 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9493
SELECT + SUM ( 17 ) FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 30 col0 FROM tab2 AS cor0
----
1530
2010
2310

query I rowsort
SELECT ALL ( col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( ( - col2 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( 64 )
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( 64 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL col2 FROM tab2 WHERE - 96 > col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL col2 FROM tab2 WHERE - 96 > col1 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( 45 * + 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 + col0 * col1 AS col2 FROM tab1 cor0
----
3906
8901
9930

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT + + col1 * col2 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1345
296
3197

skipif mysql # not compatible
query I rowsort label-9504
SELECT + + col1 * col2 + col1 / col1 AS col2 FROM tab1 AS cor0
----
1345
296
3197

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col0 + - 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT - col1 DIV 9 + col1 AS col1 FROM tab0 AS cor0
----
1
19
72

skipif mysql # not compatible
query I rowsort label-9506
SELECT - col1 / 9 + col1 AS col1 FROM tab0 AS cor0
----
1
19
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 72 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + COUNT( * ) + 54 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9508
SELECT + COUNT ( * ) + 54 FROM tab1 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT + col0 + col2 DIV - col2 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-9509
SELECT + col0 + col2 / - col2 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT DISTINCT col2 / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + - MAX( DISTINCT + col2 ) + 85 * 2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + - MAX ( DISTINCT + col2 ) + 85 * 2 FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND - 38 + ( 50 + - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= ( - col1 ) + 78
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT DISTINCT + 36 DIV - + 63 - + col1 * col1 AS col0 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT + 36 / - + 63 - + col1 * col1 AS col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT - COUNT( * ) * 98 + 36 * - 80 AS col0 FROM tab2
----
-3174

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT - COUNT ( * ) * 98 + 36 * - 80 AS col0 FROM tab2
----
-3174

query III rowsort
SELECT * FROM tab2 WHERE + 54 + 78 / col0 IN ( col0 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * - 54 col2 FROM tab0 WHERE + col1 NOT BETWEEN - 94 / + ( - col2 ) + + col2 AND + ( + col2 )
----
-270
-270
-270

query I rowsort
SELECT col2 * - 97 AS col2 FROM tab2
----
-2231
-3880
-5626

query I rowsort
SELECT DISTINCT + col0 + + 9 FROM tab0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 71 - + 19 IS NULL
----

query I rowsort
SELECT ALL + 85 - + + col2 FROM tab0
----
-14
38
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT SUM( ALL - + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9522
SELECT SUM ( ALL - + col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT ( - col0 ) * col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col2 * - col0 - + col2 FROM tab0
----
-752
-880
-9702

query I rowsort
SELECT col1 - + 95 AS col2 FROM tab2 AS cor0
----
-18
-28
-44

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9526
SELECT - CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) + + col1 / + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) + + col1 / + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 24 + 15 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT DISTINCT + MAX( + CAST( - col0 AS SIGNED ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT + MAX ( + CAST ( - col0 AS INTEGER ) ) FROM tab2
----
-46

query II rowsort
SELECT ALL col1, col0 + + 74 AS col1 FROM tab0
----
1
171
21
161
81
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT - + MIN( + 17 ) FROM tab0 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9530
SELECT - + MIN ( + 17 ) FROM tab0 cor0
----
-17

query II rowsort
SELECT col1 AS col1, + col1 * + col1 AS col1 FROM tab1 cor0
----
14
196
47
2209
5
25

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( col1 / col0 * - ( - 66 * col1 ) ) AND ( + col1 / - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - SUM( + col0 ) col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9533
SELECT - SUM ( + col0 ) col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT + 45 * - - col2 * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 4 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT 79 * 10 * - - 20 FROM tab2
----
15800

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT - SUM( + col0 ) FROM tab0 WHERE NOT ( col2 ) IS NULL
----
-199

skipif mysql # not compatible
query I rowsort label-9537
SELECT - SUM ( + col0 ) FROM tab0 WHERE NOT ( col2 ) IS NULL
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT ALL - ( col1 ) + - 85 + - col2 FROM tab1 AS cor0
----
-149
-195
-200

query I rowsort
SELECT DISTINCT 71 + - col2 * + - col2 AS col0 FROM tab1 AS cor0
----
3552
4695
9287

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL - COUNT( * ) - + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

query I rowsort
SELECT col0 * - col2 FROM tab0 AS cor0 WHERE col0 >= 68
----
-870
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 36 * + col2 = 2
----

query I rowsort
SELECT - col2 - + 51 + + col1 FROM tab1 cor0
----
-105
-133
-72

query I rowsort
SELECT DISTINCT + 97 * - + col1 + - ( + + 95 ) + 79 * - 43 AS col1 FROM tab2 AS cor0
----
-10961
-8439
-9991

query I rowsort
SELECT - 22 - + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
1322
273
3174

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + 51 + - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + 51 + - COUNT ( * ) FROM tab1
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * - 77 + - - col0 + - col1 * - 89 - col1 * - ( col1 ) col1 FROM tab0
----
-737
12861
1473

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT 41 * COUNT( * ) + + 67 AS col2 FROM tab2
----
190

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT 41 * COUNT ( * ) + + 67 AS col2 FROM tab2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT - 19 - + COUNT( * ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - 19 - + COUNT ( * ) FROM tab1
----
-22

query I rowsort
SELECT DISTINCT 5 - - 42 AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 47 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT ALL + col1 DIV 96 FROM tab1 AS cor0 WHERE NOT col0 + - col2 DIV - + col1 BETWEEN + col2 AND + col2 * 35 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + col1 / 96 FROM tab1 AS cor0 WHERE NOT col0 + - col2 / - + col1 BETWEEN + col2 AND + col2 * 35 + + col2
----
0

query I rowsort
SELECT ALL - + col0 * - 21 FROM tab1 AS cor0
----
1071
1785
1911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * - 5 + col1 col2 FROM tab2 AS cor0
----
-378
-388
-404

query I rowsort
SELECT DISTINCT - col0 * - 95 + - - col2 - - col2 * col2 * - col0 FROM tab1 AS cor0
----
-287751
-412071
-465075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9558
SELECT ALL ( - - 0 ) DIV COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9558
SELECT ALL ( - - 0 ) / COUNT ( * ) col0 FROM tab0
----
0

query I rowsort
SELECT - 84 * + col1 FROM tab0
----
-1764
-6804
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT + COUNT( * ) * + COUNT( * ) col0, + COUNT( * ) FROM tab0
----
9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9560
SELECT + COUNT ( * ) * + COUNT ( * ) col0, + COUNT ( * ) FROM tab0
----
9
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col2 FROM tab0 WHERE NOT 81 * + 69 * + 36 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + 72
----

query I rowsort
SELECT ALL + 24 AS col0 FROM tab2 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col0 FROM tab0 AS cor0
----
77

query II rowsort
SELECT - 36 * + col0, + col0 FROM tab2 AS cor0
----
-1656
46
-2304
64
-2700
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col1 + - ( + col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ( - - COUNT( * ) ) * - + 2 AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9567
SELECT ( - - COUNT ( * ) ) * - + 2 AS col1 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col1 FROM tab1 cor0
----
75
75
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( + ( - ( col0 ) ) * col1 * col1 * + 56 )
----

query I rowsort
SELECT ALL 71 FROM tab1 WHERE NOT NULL = + 40
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - + 87
----

query II rowsort
SELECT DISTINCT + + col0 AS col0, + 18 FROM tab1 AS cor0
----
51
18
85
18
91
18

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND + + col2
----

query I rowsort
SELECT 41 FROM tab0 cor0 WHERE col0 + + + col2 * + ( - + 72 ) + 27 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT DISTINCT - col2 + col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - col2 + col0 / + col2 AS col0 FROM tab1 AS cor0
----
-58
-67
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT AVG ( DISTINCT - col2 ) / + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT AVG ( DISTINCT - col2 ) / + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9577
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9577
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT + MIN( + ( + + col1 ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + MIN ( + ( + + col1 ) ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT - 81 * - + col1 * + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
17010
308367
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT - COUNT( ALL + col2 ) + - - 18 AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9580
SELECT - COUNT ( ALL + col2 ) + - - 18 AS col2 FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT DISTINCT ( + - ( col1 ) ) * - + 39 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT ( + - ( col1 ) ) * - + 39 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( ( ( - 70 ) ) ) ) NOT IN ( + 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - 21 col0 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT DISTINCT - + col2 * + + col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - + col2 * + + 45 - + col1 FROM tab0 AS cor0
----
-2196
-4456
-471

query I rowsort
SELECT ALL - col0 * - col2 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT ALL + ( - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL + ( - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT - MAX( DISTINCT + - col2 ) * + 42 FROM tab1 cor0
----
2478

skipif mysql # not compatible
query I rowsort label-9588
SELECT - MAX ( DISTINCT + - col2 ) * + 42 FROM tab1 cor0
----
2478

query I rowsort
SELECT DISTINCT - col0 * + col0 * - 57 FROM tab0 AS cor0 WHERE NOT NULL <> ( 23 * + col0 )
----

query I rowsort
SELECT DISTINCT + col0 + + 73 + col2 AS col1 FROM tab2
----
142
177
206

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT + 2 - + 19 + - col0 DIV 95 FROM tab0
----
-17
-17
-18

skipif mysql # not compatible
query I rowsort label-9591
SELECT + 2 - + 19 + - col0 / 95 FROM tab0
----
-17
-17
-18

query I rowsort
SELECT ALL - col2 + 56 AS col0 FROM tab0
----
-43
46
9

query I rowsort
SELECT ALL + ( - col2 ) - + col1 AS col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL + col1 + - 13 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT DISTINCT COUNT( * ) AS col0, MIN( - col2 ) + ( + + COUNT( * ) ) + + 18 + - + 85 * + COUNT( * ) AS col0 FROM tab0
----
3
-333

skipif mysql # not compatible
query II rowsort label-9595
SELECT DISTINCT COUNT ( * ) AS col0, MIN ( - col2 ) + ( + + COUNT ( * ) ) + + 18 + - + 85 * + COUNT ( * ) AS col0 FROM tab0
----
3
-333

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( NOT ( col0 IN ( col0 * - + ( - col1 ) ) ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 * + col2 / 67 <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col0, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 - col2 NOT BETWEEN col2 * - 30 AND NULL
----

query I rowsort
SELECT ALL 93 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT + - 76 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT DISTINCT - col2 * - 16 * - - 83 * + 89 FROM tab2 AS cor0
----
2718416
4727680
6855136

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 17 / + 49 + - - col1 < col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT MAX( DISTINCT + 58 ) AS col0 FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-9603
SELECT MAX ( DISTINCT + 58 ) AS col0 FROM tab0 cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9604
SELECT ALL - - COUNT( - + col1 ), COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9604
SELECT ALL - - COUNT ( - + col1 ), COUNT ( * ) FROM tab1 cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9605
SELECT ALL - 20 / col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - 20 / col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 80 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - ( MIN( DISTINCT + col1 ) ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
153

skipif mysql # not compatible
query I rowsort label-9607
SELECT - ( MIN ( DISTINCT + col1 ) ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
153

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - 81 IN ( col0, + 1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 71 ) / - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 34 * col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT MIN( DISTINCT - + 36 ) * - ( + COUNT( - - 91 ) ) * + + MAX( - + 59 ) AS col0, COUNT( * ) * + 45 + + 24 FROM tab1
----
-6372
159

skipif mysql # not compatible
query II rowsort label-9611
SELECT MIN ( DISTINCT - + 36 ) * - ( + COUNT ( - - 91 ) ) * + + MAX ( - + 59 ) AS col0, COUNT ( * ) * + 45 + + 24 FROM tab1
----
-6372
159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9612
SELECT col1 * + col2 + + + CAST( - col0 AS SIGNED ) DIV - col1 col1, + 19 FROM tab2
----
1173
19
3080
19
3887
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9612
SELECT col1 * + col2 + + + CAST ( - col0 AS INTEGER ) / - col1 col1, + 19 FROM tab2
----
1173
19
3080
19
3887
19

query I rowsort
SELECT ALL col1 * + 46 FROM tab1
----
2162
230
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT DISTINCT col0 / + col1 + CAST( NULL AS SIGNED ) * + col0 * + col2 - - 64 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT col0 / + col1 + CAST ( NULL AS INTEGER ) * + col0 * + col2 - - 64 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT CAST( - - 8 AS SIGNED ) + - col2 AS col0 FROM tab1 AS cor0
----
-51
-60
-88

skipif mysql # not compatible
query I rowsort label-9615
SELECT CAST ( - - 8 AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0
----
-51
-60
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + - col2 * col2 * + - col1 + + col0 IS NOT NULL OR + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 1 - - 61 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT - - 20 - - + 16 * - 84 FROM tab2 AS cor0
----
-1324
-1324
-1324

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 32 * + ( col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL ( + + COUNT( * ) ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9620
SELECT ALL ( + + COUNT ( * ) ) col1 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + 72 col2 FROM tab2 AS cor0
----
118
136
147

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 * + col1, - col1, - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT - ( - - ( + col2 ) ) * + col1 + + 65 * - 0 DIV + - col2 + + col0 + - col2 FROM tab1 AS cor0
----
-1389
-269
-3173

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT - ( - - ( + col2 ) ) * + col1 + + 65 * - 0 / + - col2 + + col0 + - col2 FROM tab1 AS cor0
----
-1389
-269
-3173

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0, - col2, + + 24, 89 )
----

query II rowsort
SELECT - ( + + col2 ) + - 29, col2 AS col0 FROM tab2 cor0
----
-52
23
-69
40
-87
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT MIN( DISTINCT col1 ) + + 82 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-9626
SELECT MIN ( DISTINCT col1 ) + + 82 FROM tab0
----
83

query I rowsort
SELECT ALL - 82 * - col0 FROM tab1
----
4182
6970
7462

query II rowsort
SELECT DISTINCT 65 * + - col2, + col2 + + ( - + col0 ) AS col2 FROM tab1
----
-3835
-26
-4420
-23
-6240
45

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE - - 2 BETWEEN - 11 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> + + ( - col1 ) + + col2 - - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT ALL - col1 * - - CAST( 22 AS SIGNED ) FROM tab2 AS cor0
----
-1122
-1474
-1694

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL - col1 * - - CAST ( 22 AS INTEGER ) FROM tab2 AS cor0
----
-1122
-1474
-1694

query I rowsort
SELECT DISTINCT + ( + 18 ) FROM tab1 AS cor0
----
18

query I rowsort
SELECT + col2 * ( 23 ) FROM tab1 AS cor0
----
1357
1564
2208

query I rowsort
SELECT col2 * - 55 AS col2 FROM tab1 AS cor0
----
-3245
-3740
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT - COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9635
SELECT - COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - ( - 65 ) FROM tab2
----
65

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 7 * - + 24 > col1 )
----

query I rowsort
SELECT - - col1 AS col1 FROM tab0 WHERE NOT ( - + col1 ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT + 3 + 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9640
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) + - 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9640
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) + - 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT + + COUNT( * ), - 47 AS col1 FROM tab0 AS cor0
----
3
-47

skipif mysql # not compatible
query II rowsort label-9641
SELECT + + COUNT ( * ), - 47 AS col1 FROM tab0 AS cor0
----
3
-47

query I rowsort
SELECT + 72 * + 66 FROM tab1 AS cor0 WHERE + 7 IS NOT NULL OR NOT NULL NOT BETWEEN ( col2 * - + 57 + + col1 + - 66 / - 90 ) AND + 77
----
4752
4752
4752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9643
SELECT - col1 AS col0, 41 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9643
SELECT - col1 AS col0, 41 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT DISTINCT col1 * + 57 * 90 AS col1 FROM tab0 AS cor0
----
107730
415530
5130

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 47 * + - 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - 95 FROM tab0 AS cor0 WHERE ( NULL ) > ( + col0 / + col1 )
----

query I rowsort
SELECT - col0 + - + 56 AS col1 FROM tab0 cor0
----
-143
-153
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL 54 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL 54 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT + 18 + - col1 AS col2 FROM tab0 AS cor0
----
-3
-63
17

query II rowsort
SELECT ALL - ( + 64 ) * + 5 * + col1, 29 + 58 AS col2 FROM tab0 WHERE NULL <> + + col0 * - col1 + col2
----

query I rowsort
SELECT DISTINCT col2 * ( - - col2 ) * col2 FROM tab2
----
12167
195112
64000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT + COUNT( * ) + - CAST( - SUM( 87 ) AS SIGNED ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-9652
SELECT + COUNT ( * ) + - CAST ( - SUM ( 87 ) AS INTEGER ) FROM tab0
----
264

query III rowsort
SELECT ALL * FROM tab1 WHERE 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 2 FROM tab1 WHERE + 90 + col0 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9655
SELECT COUNT( * ) DIV 17 * + 43 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT COUNT ( * ) / 17 * + 43 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT MIN( ALL + + 75 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT MIN ( ALL + + 75 ) AS col2 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 + + - col0 col1 FROM tab2
----
-6
23
5

query III rowsort
SELECT * FROM tab0 WHERE col1 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 55 + + + col2 AS col0 FROM tab0
----
-45
-8
44

query II rowsort
SELECT DISTINCT ( - col1 ) AS col1, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL - + MAX( DISTINCT - col1 ) + - AVG ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT ( + ( + col1 ) ) NOT BETWEEN ( + col1 + + 86 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - + MAX ( DISTINCT - col1 ) + - AVG ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT ( + ( + col1 ) ) NOT BETWEEN ( + col1 + + 86 ) AND ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + + col0 * + col1
----

query II rowsort
SELECT ALL col1 AS col1, + 90 AS col1 FROM tab2
----
51
90
67
90
77
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT + ( COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NOT + col0 IS NOT NULL )
----
-9

skipif mysql # not compatible
query I rowsort label-9665
SELECT + ( COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NOT + col0 IS NOT NULL )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT ALL - 54 * + ( 62 ), + COUNT( ALL - col1 ) col2 FROM tab1
----
-3348
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9666
SELECT ALL - 54 * + ( 62 ), + COUNT ( ALL - col1 ) col2 FROM tab1
----
-3348
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT ALL col2 * col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL col2 * col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col1, 76 FROM tab0
----
15
76
87
76
97
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9669
SELECT 64, - MIN( + col2 ) AS col2 FROM tab2
----
64
-23

skipif mysql # not compatible
query II rowsort label-9669
SELECT 64, - MIN ( + col2 ) AS col2 FROM tab2
----
64
-23

query I rowsort
SELECT ALL + 15 * - col0 AS col0 FROM tab0 cor0
----
-1305
-1455
-225

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( 8 )
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9673
SELECT MAX( ALL - 36 ) * + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9673
SELECT MAX ( ALL - 36 ) * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
108

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT - SUM( - 9 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - SUM ( - 9 ) FROM tab2
----
27

query I rowsort
SELECT - col2 + - + 30 FROM tab2
----
-53
-70
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT 65 + MAX( + col2 ) FROM tab1
----
161

skipif mysql # not compatible
query I rowsort label-9677
SELECT 65 + MAX ( + col2 ) FROM tab1
----
161

query I rowsort
SELECT ALL col0 * + + 15 + - + 44 * - - 2 AS col1 FROM tab2
----
1037
602
872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + 63 * - col2 col2 FROM tab2
----
1472
2560
3712

query II rowsort
SELECT DISTINCT - 24 AS col1, 45 * + - col0 FROM tab0
----
-24
-3915
-24
-4365
-24
-675

query I rowsort
SELECT col0 + - 19 AS col1 FROM tab0
----
-4
68
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + + col0 - 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT + + 6 DIV - 22 + - - col2 col0 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9683
SELECT + + 6 / - 22 + - - col2 col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9684
SELECT - + COUNT( * ) DIV - 1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9684
SELECT - + COUNT ( * ) / - 1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL MIN( DISTINCT - - col2 ) * - COUNT( * ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL MIN ( DISTINCT - - col2 ) * - COUNT ( * ) FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9686
SELECT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT + 88 + + 8 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT 15 FROM tab2, tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - 15 * - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-1215
-15
-315

query II rowsort
SELECT ALL - - 61 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
61
-10
61
-47
61
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - MIN( + 20 ) AS col2 FROM tab2 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-9691
SELECT - MIN ( + 20 ) AS col2 FROM tab2 cor0
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-9692
SELECT col1 DIV + col1 AS col1, col1 FROM tab1
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-9692
SELECT col1 / + col1 AS col1, col1 FROM tab1
----
1
14
1
47
1
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT BETWEEN + - 89 * - - 88 AND ( - 52 )
----

query I rowsort
SELECT - col0 * - col2 * + col1 * col1 * + ( + 0 ) FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT ALL 98 DIV + 48 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL 98 / + 48 FROM tab2
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 17 + col2 <= + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + ( col1 ) * + + 28 FROM tab2 WHERE NOT - col2 NOT BETWEEN + 15 - ( - 91 ) AND - + 69 + + col1 + - 85
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / - ( + ( - col1 ) ) IN ( col0 * + + 35 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT ALL + col1 DIV + col1 FROM tab0 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + col1 / + col1 FROM tab0 WHERE NULL IS NULL
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + col0 < ( NULL ) )
----

query I rowsort
SELECT + - ( - 79 ) AS col2 FROM tab0 cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col1 FROM tab2 cor0
----
32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - 31 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - 31 ) IS NULL
----
0

query II rowsort
SELECT ALL col1 + - 11 * col0 AS col1, - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1066
0
-84
0
-936
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col0 col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - 33 + + col0 FROM tab2 AS cor0
----
13
31
42

query I rowsort
SELECT col1 + - + 98 AS col0 FROM tab2 AS cor0
----
-21
-31
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE CAST( 47 AS SIGNED ) / + CAST( + col1 AS SIGNED ) IN ( - 9, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE CAST ( 47 AS INTEGER ) / + CAST ( + col1 AS INTEGER ) IN ( - 9, col0 )
----
0

query I rowsort
SELECT DISTINCT + + ( col1 ) AS col0 FROM tab1 WHERE ( ( NOT + + ( + 57 ) + - + col2 IS NULL ) )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT + SUM( ALL - 48 ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-9711
SELECT + SUM ( ALL - 48 ) FROM tab2
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9712
SELECT ALL CAST( - ( - - col0 ) AS SIGNED ) * - col1 + - + col1 - 92 AS col0 FROM tab0
----
1042
1714
4

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL CAST ( - ( - - col0 ) AS INTEGER ) * - col1 + - + col1 - 92 AS col0 FROM tab0
----
1042
1714
4

query I rowsort
SELECT ALL - - col2 * - - col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT - + 43 - 67 DIV - col0 AS col2 FROM tab1 AS cor0
----
-42
-43
-43

skipif mysql # not compatible
query I rowsort label-9714
SELECT - + 43 - 67 / - col0 AS col2 FROM tab1 AS cor0
----
-42
-43
-43

query I rowsort
SELECT DISTINCT - col0 + + 85 FROM tab1 AS cor0
----
-6
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL - + COUNT( * ) * - 96 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - + COUNT ( * ) * - 96 FROM tab1 AS cor0
----
288

query I rowsort
SELECT 13 + + col0 - + col2 FROM tab1
----
-32
36
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT DISTINCT ( COUNT( DISTINCT col1 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT ( COUNT ( DISTINCT col1 ) ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT ALL + CAST( - - col1 AS SIGNED ) * + col0 + - - col0 * - ( col0 ) * col2 * - ( + col2 ) FROM tab2 AS cor0
----
1121710
18927525
6558528

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + CAST ( - - col1 AS INTEGER ) * + col0 + - - col0 * - ( col0 ) * col2 * - ( + col2 ) FROM tab2 AS cor0
----
1121710
18927525
6558528

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT + - MIN( + + col2 ) col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9720
SELECT + - MIN ( + + col2 ) col0 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= - - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 70 AS col0, + ( ( 49 ) ) FROM tab1 AS cor0
----
70
49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 44 IS NOT NULL
----

query I rowsort
SELECT ALL - + 38 AS col1 FROM tab0 AS cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 AS cor0 WHERE 41 = + 56
----

query I rowsort
SELECT - 49 * + col1 FROM tab2
----
-2499
-3283
-3773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 5 col0, col1 FROM tab2
----
5
51
5
67
5
77

query II rowsort
SELECT DISTINCT col2, - ( - - col0 ) AS col0 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT DISTINCT - MAX( + - 12 ) FROM tab0 WHERE col2 - - CAST( + 39 AS SIGNED ) / col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - MAX ( + - 12 ) FROM tab0 WHERE col2 - - CAST ( + 39 AS INTEGER ) / col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9730
SELECT - col1 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-9730
SELECT - col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( CAST( + col0 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9731
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( CAST ( + col0 AS INTEGER ) ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 85 * - col2 col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

query I rowsort
SELECT ALL - + col2 + col2 * col0 FROM tab0 cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 / + + col0 * + 37 NOT IN ( + + col1 * 34 )
----
0

skipif mysql # not compatible
query I rowsort label-9734
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 / + + col0 * + 37 NOT IN ( + + col1 * 34 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9735
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - + col1 AND - 22 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9735
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - + col1 AND - 22 / CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 * 10 col1, + col1 AS col1 FROM tab1
----
680
14
680
47
680
5

query I rowsort
SELECT DISTINCT 91 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( + 41 ) <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col2 FROM tab1 cor0
----
40

query II rowsort
SELECT DISTINCT + + col2 + 83, + col1 FROM tab0 AS cor0
----
130
81
182
1
93
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 96 col1 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT ALL + col0 + 96 AS col0 FROM tab2 AS cor0
----
142
160
171

query I rowsort
SELECT DISTINCT - 66 * - 96 FROM tab2 AS cor0
----
6336

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE - col0 + + col1 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9745
SELECT ALL - - MAX( DISTINCT - col0 ) AS col0, 83 FROM tab1 AS cor0
----
-51
83

skipif mysql # not compatible
query II rowsort label-9745
SELECT ALL - - MAX ( DISTINCT - col0 ) AS col0, 83 FROM tab1 AS cor0
----
-51
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9746
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + - COUNT( DISTINCT - + 65 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + - COUNT ( DISTINCT - + 65 ) FROM tab2
----
NULL

query I rowsort
SELECT + 34 + + 56 AS col2 FROM tab2
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + ( col2 ) * - 57 * - 47 col1 FROM tab1
----
158002
182104
257088

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - ( - COUNT( * ) ) + + ( + - COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT - ( - COUNT ( * ) ) + + ( + - COUNT ( * ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 + + col0 + + col2 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 - + col2 + - + col0 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9752
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9752
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL - - COUNT( * ) - - AVG ( DISTINCT - col0 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - - COUNT ( * ) - - AVG ( DISTINCT - col0 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + + 11 AS col0 FROM tab1 AS cor0
----
1001
561
935

query I rowsort
SELECT DISTINCT 28 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
106596
2772
5880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col0 FROM tab0
----
77
77
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL + 20 * MAX( - col0 ) AS col0 FROM tab1
----
-1020

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + 20 * MAX ( - col0 ) AS col0 FROM tab1
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL + SUM( DISTINCT - 36 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL + SUM ( DISTINCT - 36 ) FROM tab2 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 38 ) col0 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL CAST( NULL AS SIGNED ) / COUNT( ALL - col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL CAST ( NULL AS INTEGER ) / COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT MAX( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9762
SELECT MAX ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - col2 * - col1 * col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT - col0 * 49 FROM tab1
----
-2499
-4165
-4459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * col0 col1 FROM tab2
----
197120
291450
53958

query II rowsort
SELECT DISTINCT col1, 51 AS col2 FROM tab0
----
1
51
21
51
81
51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + 8
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 4 >= + ( + - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / - col0 NOT BETWEEN - + col1 AND 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT - - MAX( - 35 ) FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9770
SELECT - - MAX ( - 35 ) FROM tab2 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 34 col0 FROM tab2 cor0
----
34
34
34

query II rowsort
SELECT ALL - col0 * col2 + 77, - ( col2 ) AS col1 FROM tab0 AS cor0
----
-628
-47
-793
-10
-9526
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL 66 + COUNT( + 29 ) + + COUNT( * ) + - COUNT( DISTINCT + - 19 ) * + - COUNT( * ) AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL 66 + COUNT ( + 29 ) + + COUNT ( * ) + - COUNT ( DISTINCT + - 19 ) * + - COUNT ( * ) AS col1 FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL 87 * - + 7 + - - COUNT( * ) AS col1 FROM tab0
----
-606

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL 87 * - + 7 + - - COUNT ( * ) AS col1 FROM tab0
----
-606

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT 39 + - ( 27 ) DIV col1 AS col0 FROM tab1 AS cor0
----
34
38
39

skipif mysql # not compatible
query I rowsort label-9776
SELECT 39 + - ( 27 ) / col1 AS col0 FROM tab1 AS cor0
----
34
38
39

query I rowsort
SELECT DISTINCT - - ( + col0 ) * + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - COUNT( * ) + - 58 + - COUNT( * ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9778
SELECT - COUNT ( * ) + - 58 + - COUNT ( * ) FROM tab1 AS cor0
----
-64

query I rowsort
SELECT ALL col0 + 50 * - - col0 - col0 AS col2 FROM tab1 AS cor0
----
2550
4250
4550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9780
SELECT DISTINCT + ( - COUNT( * ) ) DIV 41 + + + 45 AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT + ( - COUNT ( * ) ) / 41 + + + 45 AS col0 FROM tab1
----
45

query III rowsort
SELECT * FROM tab2 WHERE + ( + 98 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9782
SELECT DISTINCT col2 * - + col2 DIV - col2 + + - col0 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT col2 * - + col2 / - col2 + + - col0 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9783
SELECT + col0 - col0 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT + col0 - col0 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - + col0 - + + col0 AS col0 FROM tab1
----
-135
-165
-88

query I rowsort
SELECT col0 - - - 46 AS col2 FROM tab1
----
39
45
5

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT NULL BETWEEN ( NULL ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT + + CAST( + + col1 AS SIGNED ) - + ( - 21 ) AS col1 FROM tab0 AS cor0
----
102
22
42

skipif mysql # not compatible
query I rowsort label-9787
SELECT + + CAST ( + + col1 AS INTEGER ) - + ( - 21 ) AS col1 FROM tab0 AS cor0
----
102
22
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * + col0 col2 FROM tab2 AS cor0
----
2162
3008
3525

query I rowsort
SELECT DISTINCT + col2 * + 70 + - 14 AS col0 FROM tab2 AS cor0
----
1596
2786
4046

onlyif mysql # DIV for integer division: 
query I rowsort label-9790
SELECT ALL + - 76 DIV + 37 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + - 76 / + 37 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9791
SELECT - CAST( NULL AS SIGNED ), col1 DIV col0 * + col0 col0 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9791
SELECT - CAST ( NULL AS INTEGER ), col1 / col0 * + col0 col0 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT ALL - - 79 AS col0 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9793
SELECT DISTINCT 84 AS col1, + MAX( ALL + col0 ) DIV COUNT( * ) FROM tab1 cor0
----
84
30

skipif mysql # not compatible
query II rowsort label-9793
SELECT DISTINCT 84 AS col1, + MAX ( ALL + col0 ) / COUNT ( * ) FROM tab1 cor0
----
84
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + ( + + 27 ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT + 89 * + + col1 AS col0 FROM tab2
----
4539
5963
6853

query II rowsort
SELECT ALL ( 29 ) AS col1, 33 FROM tab0
----
29
33
29
33
29
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT - SUM( + col2 ) DIV - + 94 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9798
SELECT - SUM ( + col2 ) / - + 94 FROM tab2
----
1

query I rowsort
SELECT ( - col1 ) * + - col2 AS col0 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT 97 * - - COUNT( * ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-9800
SELECT 97 * - - COUNT ( * ) FROM tab1
----
291

query I rowsort
SELECT + 23 * - 19 * 69 FROM tab2
----
-30153
-30153
-30153

query II rowsort
SELECT DISTINCT col0 * col0, - col0 - + + col1 AS col0 FROM tab0
----
225
-96
7569
-108
9409
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 - + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL - MAX( DISTINCT + 85 ) col0 FROM tab2
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9804
SELECT ALL - MAX ( DISTINCT + 85 ) col0 FROM tab2
----
-85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NULL ) = NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT - COUNT( * ) * - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-9806
SELECT - COUNT ( * ) * - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT - 24 * - 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74b2f8923b51890fe851797145e403cd

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT DISTINCT col0 DIV col0 + + 85 AS col2 FROM tab2 cor0
----
86

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT col0 / col0 + + 85 AS col2 FROM tab2 cor0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9809
SELECT - COUNT( * ) + + SUM( - 43 ), CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
-132
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9809
SELECT - COUNT ( * ) + + SUM ( - 43 ), CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
-132
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IS NULL AND - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL - - COUNT( * ) + - 1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL - - COUNT ( * ) + - 1 FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT - 11 * + + 27 - col1 + + 17 + + 16 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT - 11 * + + 27 - col1 + + 17 + + 16 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL 7 + + - col1 - + col1 AS col1 FROM tab2
----
-127
-147
-95

query I rowsort
SELECT - 60 + - col2 FROM tab0
----
-107
-159
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT COUNT( * ) + COUNT( ALL col2 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9816
SELECT COUNT ( * ) + COUNT ( ALL col2 ) AS col0 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL + col1 * col0 + - - CAST( col0 AS SIGNED ) FROM tab1
----
4368
510
765

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL + col1 * col0 + - - CAST ( col0 AS INTEGER ) FROM tab1
----
4368
510
765

query I rowsort
SELECT DISTINCT col2 - - ( + - col0 ) FROM tab0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query II rowsort label-9819
SELECT 58 AS col0, col0 DIV col2 AS col0 FROM tab2
----
58
1
58
1
58
2

skipif mysql # not compatible
query II rowsort label-9819
SELECT 58 AS col0, col0 / col2 AS col0 FROM tab2
----
58
1
58
1
58
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9820
SELECT DISTINCT - 47, + CAST( - col0 AS SIGNED ) col0 FROM tab2
----
-47
-46
-47
-64
-47
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9820
SELECT DISTINCT - 47, + CAST ( - col0 AS INTEGER ) col0 FROM tab2
----
-47
-46
-47
-64
-47
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col0 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9822
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0, 89 FROM tab0 AS cor0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-9822
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, 89 FROM tab0 AS cor0
----
NULL
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9823
SELECT 93 * 50 DIV 18 * + ( COUNT( ALL col0 ) ) FROM tab0
----
774

skipif mysql # not compatible
query I rowsort label-9823
SELECT 93 * 50 / 18 * + ( COUNT ( ALL col0 ) ) FROM tab0
----
774

query II rowsort
SELECT - col0 * + - 15 AS col1, col1 FROM tab0
----
1305
21
1455
1
225
81

query I rowsort
SELECT ALL col1 * + - ( 69 ) FROM tab1
----
-3243
-345
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL + 93 * - + 45 * MAX( + - col0 ) FROM tab1
----
213435

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL + 93 * - + 45 * MAX ( + - col0 ) FROM tab1
----
213435

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT IN ( - col0 )
----

query II rowsort
SELECT 15, - col1 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + 57 + - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 + - 34 / - col0 - + col1 - + 76 * 22 col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9831
SELECT - - MAX( DISTINCT - 76 ), - 47 DIV - - CAST( 90 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-76
0

skipif mysql # not compatible
query II rowsort label-9831
SELECT - - MAX ( DISTINCT - 76 ), - 47 / - - CAST ( 90 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-76
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT ALL - CAST( + col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9832
SELECT ALL - CAST ( + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9833
SELECT SUM( CAST( col2 AS SIGNED ) ) DIV 18 + + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9833
SELECT SUM ( CAST ( col2 AS INTEGER ) ) / 18 + + COUNT ( * ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT + col1 + 1, col1 FROM tab2 AS cor0
----
52
51
68
67
78
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT - + ( + + COUNT( ALL + + 85 ) ) + MAX( - col2 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9835
SELECT - + ( + + COUNT ( ALL + + 85 ) ) + MAX ( - col2 ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT + ( - ( - 69 ) ) + - 8 FROM tab0 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT 25 + - COUNT( * ) + + COUNT( DISTINCT - + col1 ) col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9837
SELECT 25 + - COUNT ( * ) + + COUNT ( DISTINCT - + col1 ) col0 FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT + + 81 * + col0 FROM tab1 AS cor0 WHERE - 77 IS NOT NULL
----
4131
6885
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT - 94 * + col0 + - col0 * 51 + CAST( - 31 AS SIGNED ) AS col0 FROM tab2 WHERE NOT - col2 NOT IN ( + col2 + col1, 38 )
----

skipif mysql # not compatible
query I rowsort label-9839
SELECT - 94 * + col0 + - col0 * 51 + CAST ( - 31 AS INTEGER ) AS col0 FROM tab2 WHERE NOT - col2 NOT IN ( + col2 + col1, 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT + 42 * - MIN( + col0 ) FROM tab0
----
-630

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + 42 * - MIN ( + col0 ) FROM tab0
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT MAX( ALL col1 ) + - SUM( ALL - ( + ( + col0 ) ) ) FROM tab1
----
274

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT MAX ( ALL col1 ) + - SUM ( ALL - ( + ( + col0 ) ) ) FROM tab1
----
274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 46 col0 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT 87 * - - 22 FROM tab1
----
1914
1914
1914

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT DISTINCT 99 DIV + + col1 FROM tab1
----
19
2
7

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT 99 / + + col1 FROM tab1
----
19
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT - + COUNT( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT - + COUNT ( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 < - ( + + col2 ) * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + - MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9847
SELECT + - MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9848
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT - + 19 - 53 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT col1 + col1 + ( + + 7 ) * - + 48 FROM tab2
----
-182
-202
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9851
SELECT ALL - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9852
SELECT - COUNT( * ) * 45 + COUNT( * ) * + 92 DIV - + 92 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9852
SELECT - COUNT ( * ) * 45 + COUNT ( * ) * + 92 / - + 92 FROM tab2 AS cor0
----
-138

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 16 > 95
----

query II rowsort
SELECT DISTINCT - 29 * - col1, col1 FROM tab0 AS cor0
----
2349
81
29
1
609
21

query I rowsort
SELECT + 38 * col0 * + + col2 FROM tab0 AS cor0
----
26790
33060
364914

query I rowsort
SELECT - 43 * + col2 - + col0 AS col1 FROM tab0 AS cor0
----
-2036
-4354
-517

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 NOT IN ( - 53 - + + 15 + - 54, - 50, - - 69, 44 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + + - col2 + - col1 - + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT ALL 70 DIV - - 66 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL 70 / - - 66 AS col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL + SUM( DISTINCT col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL + SUM ( DISTINCT col2 ) FROM tab1
----
223

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 + - ( col1 ) IS NULL
----

query II rowsort
SELECT ALL col1 AS col0, + col1 * - + 87 AS col1 FROM tab0
----
1
-87
21
-1827
81
-7047

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT - COUNT( * ) * - 51 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - COUNT ( * ) * - 51 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT MIN( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT MIN ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = col2
----
NULL

query I rowsort
SELECT - 75 * + col1 AS col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

query I rowsort
SELECT DISTINCT - 77 * - col0 FROM tab0
----
1155
6699
7469

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> + col1 * - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL - MAX( - - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - MAX ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + - COUNT( DISTINCT + + 30 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9869
SELECT + - COUNT ( DISTINCT + + 30 ) AS col1 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT ALL - + col1 AS col0, - col2 - + col1 * + col2 AS col1 FROM tab1 cor0
----
-14
-1440
-47
-3264
-5
-354

query II rowsort
SELECT + 72 AS col0, 0 + - col0 * 67 * + 12 AS col2 FROM tab0 AS cor0
----
72
-12060
72
-69948
72
-77988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL - CAST( - col1 AS SIGNED ) + - 69 * col0 * col1 + + + 41 + - col2 AS col0 FROM tab0 cor0
----
-126011
-6750
-83760

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL - CAST ( - col1 AS INTEGER ) + - 69 * col0 * col1 + + + 41 + - col2 AS col0 FROM tab0 cor0
----
-126011
-6750
-83760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT col2 + - ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 8 * - ( + + col0 ), col0 + + - 11 * + + 38 - - ( col1 ) + + col2 + - ( + col1 ) / col2 + ( + 90 ) + - col0 + + + 54 + 98 + - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9873
SELECT col2 + - ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 8 * - ( + + col0 ), col0 + + - 11 * + + 38 - - ( col1 ) + + col2 + - ( + col1 ) / col2 + ( + 90 ) + - col0 + + + 54 + 98 + - CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 + - + col2 AS col0 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9875
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9875
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT - COUNT( * ) + + 10 AS col2 FROM tab1 WHERE - col0 IN ( - col0, + col0 )
----
7

skipif mysql # not compatible
query I rowsort label-9876
SELECT - COUNT ( * ) + + 10 AS col2 FROM tab1 WHERE - col0 IN ( - col0, + col0 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT ALL - 54 + 29 - - COUNT( * ), COUNT( * ) AS col1 FROM tab1
----
-22
3

skipif mysql # not compatible
query II rowsort label-9877
SELECT ALL - 54 + 29 - - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
-22
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + 42 + COUNT( col2 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9878
SELECT + 42 + COUNT ( col2 ) FROM tab2
----
45

query I rowsort
SELECT - 31 * - col0 * col0 + col0 AS col1 FROM tab1
----
224060
256802
80682

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT 95 - - COUNT( * ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT 95 - - COUNT ( * ) FROM tab1
----
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + col2 * + col1 + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 5 FROM tab1 WHERE - ( - col0 ) / col0 + - 32 IS NOT NULL
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT ALL - 72 DIV 32 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - 72 / 32 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT DISTINCT + + ( - - COUNT( * ) ) * + + 99 AS col2 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT + + ( - - COUNT ( * ) ) * + + 99 AS col2 FROM tab2 AS cor0
----
297

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 52 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 11 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT + 48 DIV + ( + col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9888
SELECT + 48 / + ( + col2 ) FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT DISTINCT - 54 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT - 54 / - col2 FROM tab1
----
0

query I rowsort
SELECT + + 94 * 29 FROM tab2 WHERE NOT - 97 + - col1 >= + - 60
----
2726
2726
2726

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT + col1 * + col2 DIV - + col2 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9891
SELECT + col1 * + col2 / - + col2 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT 31 + - 36 AS col1 FROM tab0 AS cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * 98 - - - 72 col2 FROM tab1 cor0
----
5715
6639
9350

query I rowsort
SELECT + 6 + - + col0 FROM tab1 AS cor0
----
-45
-79
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT - MAX( + - col0 ) + CAST( + + COUNT( * ) AS SIGNED ) + + 59 * 28 + + 17 AS col0 FROM tab2 AS cor0
----
1718

skipif mysql # not compatible
query I rowsort label-9895
SELECT - MAX ( + - col0 ) + CAST ( + + COUNT ( * ) AS INTEGER ) + + 59 * 28 + + 17 AS col0 FROM tab2 AS cor0
----
1718

query I rowsort
SELECT ALL + + col2 + 85 + + 89 AS col0 FROM tab1 AS cor0
----
233
242
270

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9897
SELECT + col0 + + col1 + CAST( NULL AS DECIMAL ), - col1 DIV + 52 col0 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9897
SELECT + col0 + + col1 + CAST ( NULL AS REAL ), - col1 / + 52 col0 FROM tab2 AS cor0
----
NULL
-1
NULL
-1
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9898
SELECT ALL - SUM( DISTINCT + - col0 ) + - CAST( NULL AS SIGNED ) AS col1, + SUM( ( col1 ) ) FROM tab1 AS cor0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-9898
SELECT ALL - SUM ( DISTINCT + - col0 ) + - CAST ( NULL AS INTEGER ) AS col1, + SUM ( ( col1 ) ) FROM tab1 AS cor0
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT DISTINCT - 88 + - 35 - - MIN( + 9 ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT - 88 + - 35 - - MIN ( + 9 ) FROM tab2
----
-114

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND - - 29
----

query I rowsort
SELECT ALL + col2 + + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - + - 74 * - - col0 FROM tab1
----
3825
6375
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT 35 - COUNT( * ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9903
SELECT 35 - COUNT ( * ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT - ( - 64 ) * - col1 AS col0 FROM tab2 AS cor0
----
-3264
-4288
-4928

query II rowsort
SELECT - ( - - col1 ), - col1 FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9906
SELECT + col0 * - CAST( NULL AS DECIMAL ) 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-9906
SELECT + col0 * - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - + 85 + - col0 + - + col2 IS NOT NULL
----

query II rowsort
SELECT 72 * + 31 AS col0, col2 AS col1 FROM tab2 AS cor0
----
2232
23
2232
40
2232
58

query II rowsort
SELECT - 83 * 16, col1 + 38 * - col1 AS col1 FROM tab0 AS cor0
----
-1328
-2997
-1328
-37
-1328
-777

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT ALL + MIN( + 92 ) AS col0, 21 AS col0 FROM tab0 cor0
----
92
21

skipif mysql # not compatible
query II rowsort label-9910
SELECT ALL + MIN ( + 92 ) AS col0, 21 AS col0 FROM tab0 cor0
----
92
21

onlyif mysql # DIV for integer division: 
query II rowsort label-9911
SELECT ALL + - 32 DIV col0 * col1 * + + col2 - col1 + col0 - 22 + 84 AS col0, col1 col2 FROM tab2 WHERE NOT + + 83 IS NULL
----
49
77
57
51
70
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9911
SELECT ALL + - 32 / col0 * col1 * + + col2 - col1 + col0 - 22 + 84 AS col0, col1 col2 FROM tab2 WHERE NOT + + 83 IS NULL
----
49
77
57
51
70
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT - 97 DIV - col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9912
SELECT - 97 / - col1 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT ALL COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9913
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT 49 * + col1 * ( - col2 ) AS col1 FROM tab1
----
-14455
-156604
-65856

onlyif mysql # aggregate syntax: 
query II rowsort label-9915
SELECT 33 col1, COUNT( * ) * - 83 FROM tab2
----
33
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9915
SELECT 33 col1, COUNT ( * ) * - 83 FROM tab2
----
33
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL - COUNT( * ) * 31 AS col0 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL - COUNT ( * ) * 31 AS col0 FROM tab2
----
-93

query I rowsort
SELECT ( ( + 23 ) ) AS col0 FROM tab0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col1 FROM tab2 WHERE ( col2 / + col0 <= - col1 )
----

query I rowsort
SELECT + ( - col0 ) FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT - ( - - col0 ) <> NULL OR ( NOT ( NOT ( NOT ( NULL ) >= + - ( col1 ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9920
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT - ( - - col0 ) <> NULL OR ( NOT ( NOT ( NOT ( NULL ) >= + - ( col1 ) ) ) )
----
0

query I rowsort
SELECT DISTINCT + ( + - 35 ) FROM tab0 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + - 24 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - MIN( ALL col2 ) + + 41 AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9923
SELECT - MIN ( ALL col2 ) + + 41 AS col2 FROM tab2 AS cor0
----
18

query I rowsort
SELECT ALL col0 + ( - 30 ) * col0 FROM tab0
----
-2523
-2813
-435

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * + col1 >= ( col2 * 68 )
----

query I rowsort
SELECT DISTINCT col1 + - 5 FROM tab1
----
0
42
9

query I rowsort
SELECT col0 FROM tab0 WHERE col2 + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( ( 74 ) ) * + col2 FROM tab1
----
4366
5032
7104

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT MIN( + 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-9930
SELECT MIN ( + 43 ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL + 64 - COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL + 64 - COUNT ( * ) AS col0 FROM tab2
----
61

query I rowsort
SELECT - 54 + col2 AS col0 FROM tab0
----
-44
-7
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9933
SELECT + CAST( NULL AS DECIMAL ) * 39 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT + CAST ( NULL AS REAL ) * 39 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + 85 col1 FROM tab1
----
4675
4675
4675

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + col1 NOT IN ( - col1 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 44 * col1 FROM tab0
----
3564
44
924

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT COUNT( * ) + 91 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9937
SELECT COUNT ( * ) + 91 FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT COUNT( * ) * - 51 AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-9938
SELECT COUNT ( * ) * - 51 AS col2 FROM tab0
----
-153

query I rowsort
SELECT DISTINCT + col1 * 12 FROM tab0
----
12
252
972

query I rowsort
SELECT ALL + col1 * + 38 FROM tab2 WHERE ( - col1 * + col2 ) IS NOT NULL
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT 50 + + COUNT( * ) AS col0 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-9941
SELECT 50 + + COUNT ( * ) AS col0 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL + MIN( ALL - col2 ) * + SUM( ALL col1 + - ( col0 ) ) FROM tab0
----
9504

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL + MIN ( ALL - col2 ) * + SUM ( ALL col1 + - ( col0 ) ) FROM tab0
----
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL 24 + COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL 24 + COUNT ( * ) FROM tab2
----
27

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 18 * col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT DISTINCT + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT ALL - ( + CAST( 72 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - ( + CAST ( 72 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0 cor0 WHERE NOT col2 > + col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT 83 DIV + 30 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9949
SELECT 83 / + 30 AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT DISTINCT 56 + - col1 * - col1 FROM tab2
----
2657
4545
5985

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9951
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 ) WHERE NOT ( - 13 * + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9951
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 ) WHERE NOT ( - 13 * + CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 35 / - 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT - 64 / col0 FROM tab2 WHERE NOT - CAST( + col1 AS SIGNED ) * col0 NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-9953
SELECT - 64 / col0 FROM tab2 WHERE NOT - CAST ( + col1 AS INTEGER ) * col0 NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 85 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9955
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 64 * ( + CAST( - col1 AS DECIMAL ) ) IN ( + col2 / - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9955
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 64 * ( + CAST ( - col1 AS REAL ) ) IN ( + col2 / - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT MIN( - 72 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9959
SELECT MIN ( - 72 ) AS col2 FROM tab2
----
-72

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT col1 NOT IN ( 85 + + ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT MIN( ALL 12 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9961
SELECT MIN ( ALL 12 ) AS col1 FROM tab2
----
12

query I rowsort
SELECT DISTINCT ( 82 ) * - 84 FROM tab1
----
-6888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE + col0 + col0 IS NULL
----

query I rowsort
SELECT ALL 8 * 21 * - col0 FROM tab1
----
-14280
-15288
-8568

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 31 = NULL
----

query I rowsort
SELECT DISTINCT + 68 FROM tab1 WHERE NOT NULL IS NOT NULL
----
68

query I rowsort
SELECT ALL - 12 * ( 11 ) AS col1 FROM tab0 AS cor0
----
-132
-132
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT + + COUNT( * ) DIV 70 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + + COUNT ( * ) / 70 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT 3 * col0 AS col1 FROM tab0 AS cor0
----
261
291
45

query I rowsort
SELECT - 88 * + col2 + 58 AS col1 FROM tab0 AS cor0
----
-4078
-822
-8654

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 - - col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 + - ( 4 ) * col2 AS col2 FROM tab2 AS cor0
----
-138
-224
-307

query I rowsort
SELECT ALL + 49 + col0 AS col1 FROM tab2
----
113
124
95

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 10 - 28 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + 68 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9975
SELECT + 68 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL - col0 + - 5 FROM tab2 AS cor0
----
-51
-69
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT + - col1 * + CAST( - - 88 AS SIGNED ) * col0 + - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT + - col1 * + CAST ( - - 88 AS INTEGER ) * col0 + - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL - + CAST( + COUNT( ALL - 42 ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - + CAST ( + COUNT ( ALL - 42 ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT + MAX( - 39 ) AS col0 FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9979
SELECT + MAX ( - 39 ) AS col0 FROM tab2 cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - SUM( + col0 ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT - SUM ( + col0 ) col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT + ( + MAX( ALL col1 ) ) + - 91 FROM tab2 AS cor0 WHERE NULL <= 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT + ( + MAX ( ALL col1 ) ) + - 91 FROM tab2 AS cor0 WHERE NULL <= 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT ALL - - 98 DIV + col1 + col2 + + col0 DIV - col0 FROM tab0 AS cor0
----
13
196
47

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - - 98 / + col1 + col2 + + col0 / - col0 FROM tab0 AS cor0
----
13
196
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> ( + col1 * + ( col0 ) * col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + ( col1 ) NOT IN ( 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL + COUNT( * ) FROM tab2 WHERE + 59 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + COUNT ( * ) FROM tab2 WHERE + 59 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - 37 - + col2 AS col1 FROM tab1
----
-105
-133
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - - 74
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 76 ) BETWEEN col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9989
SELECT * FROM tab2 WHERE ( - - col2 / - col1 * - CAST( NULL AS SIGNED ) - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9989
SELECT * FROM tab2 WHERE ( - - col2 / - col1 * - CAST ( NULL AS INTEGER ) - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * + col1 + col2 FROM tab1
----
2277
292
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 65 - + 98 col0, 21 AS col2 FROM tab0
----
-33
21
-33
21
-33
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT DISTINCT col2 * - col0 + + col1 + - - col2 DIV - col1 AS col0 FROM tab0
----
-624
-849
-9701

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT col2 * - col0 + + col1 + - - col2 / - col1 AS col0 FROM tab0
----
-624
-849
-9701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + + col1 col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 12 * - col0 + col2 FROM tab0 cor0
----
-1034
-1065
-133

query I rowsort
SELECT + col2 + - col0 * + col2 + + col1 FROM tab1 AS cor0
----
-4786
-4951
-6073

query I rowsort
SELECT DISTINCT - col0 - 80 / + 39 FROM tab0 WHERE NOT + 82 * + - 29 * 12 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 55 )
----

query II rowsort
SELECT - + col2 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

