hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 24 + col1 AS col1 FROM tab2 AS cor0
----
101
75
91

query I rowsort
SELECT ALL - + ( - 4 ) - - col1 AS col0 FROM tab2 AS cor0
----
55
71
81

query I rowsort
SELECT ALL + col1 - 74 FROM tab0
----
-53
-73
7

query II rowsort
SELECT DISTINCT + 63 AS col2, 8 FROM tab2
----
63
8

query I rowsort
SELECT - 55 * - + col2 AS col2 FROM tab2
----
1265
2200
3190

query II rowsort
SELECT - col0 AS col0, + col0 * - 14 FROM tab1
----
-51
-714
-85
-1190
-91
-1274

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) >= col0
----
0

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) >= col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-11
SELECT ALL - + 70 AS col0, + COUNT( - + col2 ) AS col2 FROM tab0 AS cor0
----
-70
3

skipif mysql # not compatible
query II rowsort label-11
SELECT ALL - + 70 AS col0, + COUNT ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-70
3

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

query I rowsort
SELECT ALL + + 66 FROM tab0 WHERE + + col0 * + col0 NOT BETWEEN - col2 AND + col1
----
66
66
66

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 57 NOT IN ( + - col0 / + 64 - + col1, + col1 ) OR NOT + ( col0 ) = NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 29 - + col0 AS col1 FROM tab1 WHERE NOT - + 63 IS NULL
----
-22
-56
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col2 FROM tab1
----
50
50
50

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

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

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

query I rowsort
SELECT ALL - col1 * 50 + - col1 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT DISTINCT 76 + + + 43 AS col0 FROM tab2 AS cor0
----
119

query I rowsort
SELECT ALL - col0 / 76 AS col1 FROM tab1 AS cor0 WHERE - col2 + + 69 IS NULL
----

query I rowsort
SELECT ALL - col1 + + + col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + - col0 col0 FROM tab2 cor0
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT COUNT( * ) + - - 86 col1 FROM tab0 cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-25
SELECT DISTINCT COUNT ( * ) + - - 86 col1 FROM tab0 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT + - 99 + - MAX( - - col0 ) - - COUNT( * ) FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT + - 99 + - MAX ( - - col0 ) - - COUNT ( * ) FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT + 67 + - col0 + - col2 FROM tab1 AS cor0
----
-77
-80
-92

query I rowsort
SELECT - + col1 + + 7 AS col2 FROM tab2 AS cor0
----
-44
-60
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT COUNT( * ) + + MIN( + + ( - + ( + 70 ) ) ) AS col1 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-30
SELECT COUNT ( * ) + + MIN ( + + ( - + ( + 70 ) ) ) AS col1 FROM tab1
----
-67

query I rowsort
SELECT 64 + - 60 * - col2 FROM tab0
----
2884
6004
664

query I rowsort
SELECT - col2 + - + 15 AS col2 FROM tab0
----
-114
-25
-62

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

query I rowsort
SELECT + 57 * + col2 AS col1 FROM tab1
----
3363
3876
5472

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

query I rowsort
SELECT ALL - col2 * - ( 54 ) * + col2 FROM tab1
----
187974
249696
497664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-37
SELECT - COUNT( * ) * - - 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-37
SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 + - + col1 + 85 AS col0 FROM tab0 cor0
----
151
181
19

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

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT + col1 - 2 * - col2 FROM tab1 AS cor0
----
123
183
206

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 71 - col2 * + + col2 IS NOT NULL
----

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

query II rowsort
SELECT - col0 * - col2 * 92 AS col2, col2 * col1 - col2 - - - col1 * - col1 * col2 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT - COUNT ( * ) / 72 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL - COUNT( * ) col2 FROM tab1 AS cor0 WHERE ( + col0 ) >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-48
SELECT ALL - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE ( + col0 ) >= NULL
----
0

query I rowsort
SELECT DISTINCT + 32 - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 32 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT - - ( - 99 ) FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT ALL + 13 DIV + + col1 + + + ( - col2 ) FROM tab1 AS cor0
----
-57
-68
-96

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL + 13 / + + col1 + + + ( - col2 ) FROM tab1 AS cor0
----
-57
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT + COUNT( * ) AS col2, + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1
----
3
9

skipif mysql # not compatible
query II rowsort label-52
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1
----
3
9

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab0, tab1 cor0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT + col1 * col2 DIV + 25 AS col2 FROM tab0
----
152
3
8

skipif mysql # not compatible
query I rowsort label-54
SELECT + col1 * col2 / + 25 AS col2 FROM tab0
----
152
3
8

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col0 FROM tab2
----
51
67
77

query II rowsort
SELECT col2 AS col2, 50 AS col1 FROM tab0
----
10
50
47
50
99
50

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

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

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

query II rowsort
SELECT col2 AS col0, col2 + - - col1 FROM tab0 cor0
----
10
31
47
128
99
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col0 * - 23 AS col1, col2 * - 84 AS col1, 27 col2 FROM tab0 cor0 WHERE NOT + 47 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 AS col0, + col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT - - COUNT( * ) - 58 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

skipif mysql # not compatible
query I rowsort label-63
SELECT - - COUNT ( * ) - 58 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT DISTINCT col1 DIV col0 - + col1 + - col0 DIV - - 93 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT col1 / col0 - + col1 + - col0 / - - 93 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-50
-67
-76

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

query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab1 AS cor0 WHERE NOT - 91 BETWEEN - + col2 * + 9 AND 26
----

query I rowsort
SELECT ALL - 34 + 53 AS col1 FROM tab1 cor0 WHERE + col2 NOT BETWEEN 89 AND NULL
----
19
19

query I rowsort
SELECT + - ( + col0 ) FROM tab2 AS cor0 WHERE - col1 = + - col1
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col0 ) col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-73
SELECT + 8 - - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) * - - 54 / - MIN( col1 ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-73
SELECT + 8 - - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) * - - 54 / - MIN ( col1 ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-74
SELECT ALL * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) <> + 66
----

skipif mysql # not compatible
query III rowsort label-74
SELECT ALL * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) <> + 66
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-75
SELECT - CAST( + + 36 AS SIGNED ) - + col1 + + - 2 AS col1 FROM tab1
----
-43
-52
-85

skipif mysql # not compatible
query I rowsort label-75
SELECT - CAST ( + + 36 AS INTEGER ) - + col1 + + - 2 AS col1 FROM tab1
----
-43
-52
-85

query II rowsort
SELECT col0 + - col2 / ( 21 ) * 67, 0 AS col0 FROM tab0 WHERE - 89 > NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-77
SELECT col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ALL 75 * COUNT( * ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL 75 * COUNT ( * ) FROM tab0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 / col1 + - - 2 + - - col1 * + ( + - 64 ) * col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-79
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 / col1 + - - 2 + - - col1 * + ( + - 64 ) * col2 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-80
SELECT ALL - SUM( + col2 ) DIV - + 62 + + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL - SUM ( + col2 ) / - + 62 + + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - - 28 + + 57 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT - col1 * col1 + - 19 + - + col0 AS col0 FROM tab2 cor0
----
-2666
-4583
-6012

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT + + 19 DIV - 66 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-85
SELECT + + 19 / - 66 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT - 34 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 35, 81 )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 99 * - 67 FROM tab0 AS cor0
----
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT COUNT( ALL - + 4 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT COUNT ( ALL - + 4 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 2 FROM tab2 cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 76 col2 FROM tab1 AS cor0
----
4484
5168
7296

query I rowsort
SELECT DISTINCT 46 * 57 AS col0 FROM tab1
----
2622

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

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

query II rowsort
SELECT ALL - col1 * col2, col1 FROM tab0
----
-210
21
-3807
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + 8 col2 FROM tab2
----
38
56
67

query II rowsort
SELECT - col2 AS col1, col0 FROM tab2 WHERE NOT - - col0 - 3 + + col0 + col2 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT col2 + - + col2 * + 18 FROM tab1
----
-1003
-1156
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT DISTINCT col0 + + 46 DIV + col1 - + + 83 AS col2 FROM tab1 AS cor0
----
-29
11
8

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT col0 + + 46 / + col1 - + + 83 AS col2 FROM tab1 AS cor0
----
-29
11
8

query I rowsort
SELECT ALL + 65 + - - col2 FROM tab0 cor0
----
112
164
75

query I rowsort
SELECT ALL 64 AS col0 FROM tab2 cor0
----
64
64
64

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

query I rowsort
SELECT DISTINCT - col0 + + - col2 + - 53 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + ( + 19 )
----

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

query II rowsort
SELECT DISTINCT - + col1 * + col2 * - col1 - - 11 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
110
-97
308378
-15
4421
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT ALL + 92 - col1 DIV 4 FROM tab1 AS cor0
----
81
89
91

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + 92 - col1 / 4 FROM tab1 AS cor0
----
81
89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT 15 + COUNT( * ) AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-110
SELECT 15 + COUNT ( * ) AS col1 FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-111
SELECT * FROM tab0 WHERE NULL <> - + CAST( NULL AS SIGNED ) / 61 + - 29 / - col2 + + col0
----

skipif mysql # not compatible
query III rowsort label-111
SELECT * FROM tab0 WHERE NULL <> - + CAST ( NULL AS INTEGER ) / 61 + - 29 / - col2 + + col0
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-113
SELECT ALL 98 + - - ( ( - COUNT( * ) ) ), 38 AS col0 FROM tab0
----
95
38

skipif mysql # not compatible
query II rowsort label-113
SELECT ALL 98 + - - ( ( - COUNT ( * ) ) ), 38 AS col0 FROM tab0
----
95
38

onlyif mysql # aggregate syntax: 
query II rowsort label-114
SELECT ALL + MIN( + - 5 ), ( - - 92 ) col2 FROM tab1 cor0
----
-5
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-114
SELECT ALL + MIN ( + - 5 ), ( - - 92 ) col2 FROM tab1 cor0
----
-5
92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-116
SELECT - - 92 * - + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-4324
-9108
-920

skipif mysql # not compatible
query I rowsort label-116
SELECT - - 92 * - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * + 55 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * + 55 + + col0 IS NOT NULL
----
0

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

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

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

query I rowsort
SELECT 62 * 47 AS col1 FROM tab1 cor0
----
2914
2914
2914

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL - 19 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL - 19 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT col0 * - - 24 AS col1 FROM tab0
----
2088
2328
360

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

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

query I rowsort
SELECT - + 29 + + col0 + 12 AS col2 FROM tab0 AS cor0
----
-2
70
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-125
SELECT + CAST( 83 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
134
168
174

skipif mysql # not compatible
query I rowsort label-125
SELECT + CAST ( 83 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
134
168
174

query I rowsort
SELECT - - 59 + - - col1 * col2 AS col0 FROM tab0 AS cor0
----
158
269
3866

query I rowsort
SELECT 44 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query II rowsort label-128
SELECT + COUNT( * ) * + - 65 AS col1, - 47 FROM tab1
----
-195
-47

skipif mysql # not compatible
query II rowsort label-128
SELECT + COUNT ( * ) * + - 65 AS col1, - 47 FROM tab1
----
-195
-47

query I rowsort
SELECT ALL - - 23 * + col1 + - col1 FROM tab0 AS cor0
----
1782
22
462

query I rowsort
SELECT - + 14 * + + 52 AS col0 FROM tab0 cor0
----
-728
-728
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT 43 - + MIN( + col2 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-131
SELECT 43 - + MIN ( + col2 ) FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT DISTINCT - + 97 + - SUM( + col2 ) - + 8 AS col2 FROM tab0 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - + 97 + - SUM ( + col2 ) - + 8 AS col2 FROM tab0 cor0
----
-261

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-133
SELECT - 81 - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT - 81 - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 84 - + + 16 AS col2 FROM tab0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT + COUNT( * ) * - 35 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-135
SELECT + COUNT ( * ) * - 35 FROM tab2
----
-105

query I rowsort
SELECT 33 * + 75 FROM tab1
----
2475
2475
2475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + - 55 * - - col1 AS col0 FROM tab0 AS cor0
----
-1155
-4455
-55

query II rowsort
SELECT ALL + 43 AS col1, 11 FROM tab1 AS cor0
----
43
11
43
11
43
11

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT - + COUNT( DISTINCT + col2 ) + 72 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
72

skipif mysql # not compatible
query I rowsort label-140
SELECT - + COUNT ( DISTINCT + col2 ) + 72 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19 + + + col1 col0, col0 col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT ALL + COUNT( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( CAST( col2 AS SIGNED ) ) <= - col0
----
3

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL + COUNT ( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( CAST ( col2 AS INTEGER ) ) <= - col0
----
3

query I rowsort
SELECT ALL - - 92 AS col1 FROM tab0 cor0
----
92
92
92

query I rowsort
SELECT ALL + col0 * + col2 + - - col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT ALL col0 * + col0 + - - 27 + col2 FROM tab1 cor0
----
2724
7311
8376

query I rowsort
SELECT DISTINCT - col0 * - - 27 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 / - ( col1 ) ) <= NULL
----

query I rowsort
SELECT col0 + 32 FROM tab0
----
119
129
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-149
SELECT DISTINCT * FROM tab2 WHERE col1 * - col1 / - col1 * + col2 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-149
SELECT DISTINCT * FROM tab2 WHERE col1 * - col1 / - col1 * + col2 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 1 + + col0 + - - 1 FROM tab1
----
51
85
91

query I rowsort
SELECT + col2 * - - col1 + + ( - - col0 ) FROM tab2
----
1219
3144
3961

query I rowsort
SELECT col2 * - col2 + + - col0 FROM tab1
----
-3566
-4715
-9267

query II rowsort
SELECT + + col1, + 15 FROM tab1 WHERE NULL IS NULL
----
14
15
47
15
5
15

query I rowsort
SELECT + col0 * + col0 + + + 9 FROM tab0
----
234
7578
9418

query I rowsort
SELECT ALL - 86 + - 51 FROM tab0
----
-137
-137
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT ALL MAX( ALL col0 ) + 41 * - COUNT( * ) AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL MAX ( ALL col0 ) + 41 * - COUNT ( * ) AS col1 FROM tab0
----
-26

query I rowsort
SELECT DISTINCT + 10 + col1 AS col2 FROM tab2 AS cor0
----
61
77
87

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

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

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

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

query I rowsort
SELECT col1 * + + 37 - + - col1 * - 40 FROM tab1 WHERE - 36 + - col1 + - + col2 IS NOT NULL
----
-141
-15
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT DISTINCT 41 DIV - col2 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-162
SELECT DISTINCT 41 / - col2 col2 FROM tab1
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-163
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - + col0 col2 FROM tab2
----
-13
-5
8

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

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

query I rowsort
SELECT ALL + - col0 * - col0 + col2 FROM tab0 cor0
----
272
7579
9508

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-167
SELECT col2 + - - col1 - - col0 DIV + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
110
116
65

skipif mysql # not compatible
query I rowsort label-167
SELECT col2 + - - col1 - - col0 / + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
110
116
65

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

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

query I rowsort
SELECT DISTINCT 73 - + col0 FROM tab0 AS cor0
----
-14
-24
58

query I rowsort
SELECT col2 * - ( - 83 ) FROM tab2
----
1909
3320
4814

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

skipif mysql # not compatible
query I rowsort label-171
SELECT ( ( COUNT ( * ) ) ) FROM tab2
----
3

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

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

query I rowsort
SELECT ALL 93 * - - 53 FROM tab0
----
4929
4929
4929

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-176
SELECT + - SUM( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT col1 * + col1 >= NULL
----
NULL

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

query I rowsort
SELECT - col1 * col0 + + 76 FROM tab0 AS cor0
----
-1139
-1751
-21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 29 IS NOT NULL
----

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

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

query I rowsort
SELECT - 8 * 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < ( 39 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-182
SELECT COUNT( * ), 95 * - COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
-855

skipif mysql # not compatible
query II rowsort label-182
SELECT COUNT ( * ), 95 * - COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT 88 + + COUNT( * ) AS col1 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-183
SELECT 88 + + COUNT ( * ) AS col1 FROM tab2
----
91

query I rowsort
SELECT ALL + 9 FROM tab2 AS cor0 WHERE NOT - col1 <> - col2
----

query I rowsort
SELECT ALL + + col2 + - 11 AS col1 FROM tab2 cor0
----
12
29
47

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

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

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

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

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

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

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

query II rowsort
SELECT + col1, col2 * + 39 AS col0 FROM tab2 cor0
----
51
897
67
2262
77
1560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT - COUNT( - 62 ) * + 71 * - 7 + + 16 FROM tab0 AS cor0
----
1507

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - COUNT ( - 62 ) * + 71 * - 7 + + 16 FROM tab0 AS cor0
----
1507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-193
SELECT - + 65 * - - MIN( DISTINCT - - col0 ) + CAST( NULL AS SIGNED ) / SUM( ALL - 6 ) + + AVG ( DISTINCT - + col2 ), - 65 AS col2 FROM tab2 AS cor0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-193
SELECT - + 65 * - - MIN ( DISTINCT - - col0 ) + CAST ( NULL AS INTEGER ) / SUM ( ALL - 6 ) + + AVG ( DISTINCT - + col2 ), - 65 AS col2 FROM tab2 AS cor0
----
NULL
-65

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE + - col2 / + - 58 <= NULL
----

query I rowsort
SELECT + + col2 AS col2 FROM tab1 WHERE NULL > + 28 * - + col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT - - 43 + - MAX( ALL - col1 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-196
SELECT - - 43 + - MAX ( ALL - col1 ) FROM tab0 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 1 + - col1 AS col2, 21 + col1 col0 FROM tab2 AS cor0
----
-50
72
-66
88
-76
98

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

query I rowsort
SELECT ( 79 ) + - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
21
39
56

query I rowsort
SELECT + 84 + + 57 AS col0 FROM tab0 AS cor0
----
141
141
141

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE - 51 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT + 53 * + - COUNT ( * ) FROM tab2
----
-159

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT + 29 + COUNT( * ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT + 29 + COUNT ( * ) FROM tab1 AS cor0
----
32

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN 76 AND NULL
----

query II rowsort
SELECT - + 45 AS col1, + 18 AS col1 FROM tab1 AS cor0
----
-45
18
-45
18
-45
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-210
SELECT DISTINCT COUNT( * ) DIV CAST( + MAX( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
0

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

query II rowsort
SELECT DISTINCT col1, 39 * - 32 + - 64 FROM tab2 AS cor0
----
51
-1312
67
-1312
77
-1312

query II rowsort
SELECT ALL + col1 AS col1, 72 + + col2 AS col2 FROM tab0 WHERE NOT - - 66 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT - MAX( + - 11 ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-213
SELECT - MAX ( + - 11 ) AS col2 FROM tab2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT DISTINCT - col0 * col1 DIV - - col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - col0 * col1 / - - col1 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 96 col2 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT ALL - 92 * - col2 AS col1 FROM tab2
----
2116
3680
5336

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

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

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

query I rowsort
SELECT + 29 * 25 - - - col0 + + col0 AS col1 FROM tab2 AS cor0
----
725
725
725

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

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

query I rowsort
SELECT ALL 88 * + - 89 FROM tab0
----
-7832
-7832
-7832

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

skipif mysql # not compatible
query III rowsort label-222
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT DISTINCT + MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT col0 + + 22 FROM tab1
----
107
113
73

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

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

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

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

query I rowsort
SELECT - + 22 * - col2 - + - col0 + - 5 + + col1 AS col2 FROM tab2 AS cor0
----
1016
1413
598

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL = NULL
----
0

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

query I rowsort
SELECT ALL + - 52 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-233
SELECT ALL + COUNT( * ) DIV - 16 FROM tab0 cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + COUNT ( * ) / - 16 FROM tab0 cor0 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-234
SELECT ( - + SUM( ALL + CAST( NULL AS DECIMAL ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT ( - + SUM ( ALL + CAST ( NULL AS REAL ) ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 24 AS col2, + 20 col2 FROM tab2
----
24
20

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

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

query II rowsort
SELECT col0 AS col1, col2 * + - 40 + - col2 + + 43 AS col1 FROM tab2
----
46
-900
64
-1597
75
-2335

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

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

query II rowsort
SELECT col2, col2 * - + 98 FROM tab1
----
59
-5782
68
-6664
96
-9408

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-242
SELECT + - col0 DIV col2 * col1 AS col2, col1 - + + 86 + + ( - - 49 ) col1 FROM tab2 cor0
----
-102
14
-67
30
-77
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-242
SELECT + - col0 / col2 * col1 AS col2, col1 - + + 86 + + ( - - 49 ) col1 FROM tab2 cor0
----
-102
14
-67
30
-77
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-243
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-243
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-244
SELECT ALL ( + - 26 ) + + CAST( + 58 AS SIGNED ) AS col1, + COUNT( * ) AS col0 FROM tab0
----
32
3

skipif mysql # not compatible
query II rowsort label-244
SELECT ALL ( + - 26 ) + + CAST ( + 58 AS INTEGER ) AS col1, + COUNT ( * ) AS col0 FROM tab0
----
32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL + MIN( + 48 ) + 35 AS col0 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL + MIN ( + 48 ) + 35 AS col0 FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ALL COUNT( * ) + 68 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL COUNT ( * ) + 68 FROM tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT - ( COUNT( + 70 ) ) * + - 33 + COUNT( * ) + - 37 AS col1 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT - ( COUNT ( + 70 ) ) * + - 33 + COUNT ( * ) + - 37 AS col1 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT ALL - 94 * + 9 * COUNT( * ) FROM tab0 AS cor0
----
-2538

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL - 94 * + 9 * COUNT ( * ) FROM tab0 AS cor0
----
-2538

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

query II rowsort
SELECT + + col2, 9 AS col1 FROM tab1 cor0
----
59
9
68
9
96
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT ALL + + 80 * ( + 64 ) + COUNT( DISTINCT 63 ) FROM tab0 AS cor0
----
5121

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL + + 80 * ( + 64 ) + COUNT ( DISTINCT 63 ) FROM tab0 AS cor0
----
5121

query I rowsort
SELECT ALL - 57 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT 50 * COUNT( * ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-254
SELECT 50 * COUNT ( * ) FROM tab2 AS cor0
----
150

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

query I rowsort
SELECT 77 + + col1 AS col2 FROM tab2
----
128
144
154

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-258
SELECT ALL + - CAST( + COUNT( * ) AS SIGNED ) - - MIN( - 20 ) * - + 44 * - 25 * + 83 AS col0, SUM( + 51 ) AS col2 FROM tab1 AS cor0
----
-1826003
153

skipif mysql # not compatible
query II rowsort label-258
SELECT ALL + - CAST ( + COUNT ( * ) AS INTEGER ) - - MIN ( - 20 ) * - + 44 * - 25 * + 83 AS col0, SUM ( + 51 ) AS col2 FROM tab1 AS cor0
----
-1826003
153

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL - COUNT( * ) + - + 51 * - 90 AS col2 FROM tab1 AS cor0
----
4587

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL - COUNT ( * ) + - + 51 * - 90 AS col2 FROM tab1 AS cor0
----
4587

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

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

query II rowsort
SELECT - col1 AS col2, + col0 AS col2 FROM tab0
----
-1
97
-21
87
-81
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT - - MIN( + 92 ) col0 FROM tab0 cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-264
SELECT - - MIN ( + 92 ) col0 FROM tab0 cor0
----
92

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

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

query I rowsort
SELECT ALL + + 45 * + + 59 AS col0 FROM tab1 AS cor0
----
2655
2655
2655

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT ( + - COUNT( * ) ) * + - 63 AS col0 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT ( + - COUNT ( * ) ) * + - 63 AS col0 FROM tab0
----
189

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT DISTINCT - 58 DIV + COUNT( * ) + + 25 + + - 88 col0 FROM tab1
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-272
SELECT DISTINCT - 58 / + COUNT ( * ) + + 25 + + - 88 col0 FROM tab1
----
-82

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-275
SELECT + - col1 + + - CAST( + col1 AS SIGNED ) AS col2, - 16 FROM tab1 AS cor0
----
-10
-16
-28
-16
-94
-16

skipif mysql # not compatible
query II rowsort label-275
SELECT + - col1 + + - CAST ( + col1 AS INTEGER ) AS col2, - 16 FROM tab1 AS cor0
----
-10
-16
-28
-16
-94
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT ALL + col0 + + col0 DIV col2 * - col2 FROM tab0 cor0
----
15
7
97

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL + col0 + + col0 / col2 * - col2 FROM tab0 cor0
----
15
7
97

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

query I rowsort
SELECT - col0 + - 98 + + col1 * - col2 FROM tab0 cor0 WHERE NULL >= 45 + 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT ALL - col2 DIV - - 32 + - col1 * + col2 FROM tab1 AS cor0
----
-1347
-296
-3198

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - col2 / - - 32 + - col1 * + col2 FROM tab1 AS cor0
----
-1347
-296
-3198

query I rowsort
SELECT ( + col2 ) + + + col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT - + col1 + + 54 AS col2 FROM tab0 AS cor0
----
-27
33
53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT 39 * - + 62 * - COUNT( DISTINCT - col1 ) FROM tab0
----
7254

skipif mysql # not compatible
query I rowsort label-283
SELECT 39 * - + 62 * - COUNT ( DISTINCT - col1 ) FROM tab0
----
7254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 col1, 31 col0 FROM tab2
----
68
31
68
31
68
31

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

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT - col2 * col0 IS NULL
----
15
87
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-288
SELECT ALL MAX( - 0 ) DIV - + COUNT( * ) + - ( - SUM( DISTINCT + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL MAX ( - 0 ) / - + COUNT ( * ) + - ( - SUM ( DISTINCT + col2 ) ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT + ( COUNT( * ) ) AS col0, 58 FROM tab1 WHERE 11 + + - col0 IS NULL
----
0
58

skipif mysql # not compatible
query II rowsort label-289
SELECT + ( COUNT ( * ) ) AS col0, 58 FROM tab1 WHERE 11 + + - col0 IS NULL
----
0
58

query I rowsort
SELECT ALL - + col0 + - 74 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
-125
-159
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-291
SELECT + 54 col1, + CAST( + 72 AS SIGNED ) AS col0 FROM tab2
----
54
72
54
72
54
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-291
SELECT + 54 col1, + CAST ( + 72 AS INTEGER ) AS col0 FROM tab2
----
54
72
54
72
54
72

query II rowsort
SELECT ALL + col2 AS col1, 44 * + - col1 + + - 40 * - + col0 FROM tab1 AS cor0
----
59
3180
68
1572
96
1424

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

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - col0 <> NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 > - col2
----
87
21
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT col0 DIV - - 43 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-298
SELECT col0 / - - 43 FROM tab0 AS cor0
----
0
2
2

query I rowsort
SELECT + + 44 * + + 53 FROM tab0 AS cor0
----
2332
2332
2332

query II rowsort
SELECT + col1, col1 * 63 FROM tab0
----
1
63
21
1323
81
5103

query II rowsort
SELECT ALL 37 AS col0, col0 FROM tab0
----
37
15
37
87
37
97

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - + col0 NOT BETWEEN - 76 AND NULL
----
1
21

query II rowsort
SELECT - 92, + col1 FROM tab2
----
-92
51
-92
67
-92
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 + + col1 col1 FROM tab1
----
106
139
97

query I rowsort
SELECT ALL - col2 + + ( + col0 ) FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + 54 * + col2 AS col2 FROM tab0
----
2538
5346
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15 + + col1 + - 56, 78 + + + 68 col0 FROM tab1 AS cor0
----
-27
146
-36
146
6
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT + 75 + + AVG ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-308
SELECT + 75 + + AVG ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 24 * 87 FROM tab2
----
2088
2088
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT DISTINCT 4 * - MAX( col1 ) - + 92 col0 FROM tab2
----
-400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-310
SELECT DISTINCT 4 * - MAX ( col1 ) - + 92 col0 FROM tab2
----
-400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-311
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN ( + CAST( NULL AS SIGNED ) + 59 / - 17 ) AND col0
----

skipif mysql # not compatible
query III rowsort label-311
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN ( + CAST ( NULL AS INTEGER ) + 59 / - 17 ) AND col0
----

query I rowsort
SELECT - 65 + col2 * + col2 FROM tab1
----
3416
4559
9151

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL COUNT( * ) + 69 AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL COUNT ( * ) + 69 AS col0 FROM tab1
----
72

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT col2 > col1 + - col1
----

query I rowsort
SELECT DISTINCT - col0 * col0 + + 34 FROM tab1
----
-2567
-7191
-8247

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

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-317
SELECT - col2 * 76 FROM tab2 WHERE 74 BETWEEN ( col0 ) AND ( + CAST( NULL AS SIGNED ) * + 42 )
----

skipif mysql # not compatible
query I rowsort label-317
SELECT - col2 * 76 FROM tab2 WHERE 74 BETWEEN ( col0 ) AND ( + CAST ( NULL AS INTEGER ) * + 42 )
----

query III rowsort
SELECT * FROM tab0 WHERE 77 IN ( 56 )
----

query I rowsort
SELECT - ( + col0 ) FROM tab0 WHERE NOT + ( - 67 ) + 70 IN ( + 13 )
----
-15
-87
-97

query I rowsort
SELECT + col0 / - col1 + col1 * + col1 AS col2 FROM tab0 WHERE NULL < ( NULL )
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 25 NOT BETWEEN NULL AND - ( + 75 ) + + col1 * + col1
----

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

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

query I rowsort
SELECT col2 - + 85 * + col2 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT + col2 * col0 AS col1 FROM tab1 WHERE NOT 35 * 63 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 58 + + col0 AS col2 FROM tab1
----
109
143
149

query III rowsort
SELECT * FROM tab2 WHERE - 96 + - 21 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 7 FROM tab1 WHERE NULL >= - 1
----

query I rowsort
SELECT DISTINCT - col0 - col2 * 72 FROM tab0
----
-3399
-7225
-807

query III rowsort
SELECT ALL * FROM tab2 WHERE 89 * col0 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-331
SELECT ALL 48 DIV col0 AS col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL 48 / col0 AS col0 FROM tab0
----
0
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT - 38 DIV + 15 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-332
SELECT - 38 / + 15 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT ALL - 18 + 61 AS col0 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT + COUNT( * ) * 89 AS col2 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-334
SELECT + COUNT ( * ) * 89 AS col2 FROM tab1
----
267

query I rowsort
SELECT DISTINCT 65 * col1 + col1 FROM tab1
----
3102
330
924

query I rowsort
SELECT - col1 * col2 FROM tab1 AS cor0 WHERE NOT col1 * + col0 = - 66 + col0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL + 58 * MIN( ALL col0 ) AS col0 FROM tab2 AS cor0
----
2668

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + 58 * MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
2668

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * - 82 col1 FROM tab0
----
6888
6888
6888

query I rowsort
SELECT + 75 * 79 AS col2 FROM tab2 AS cor0
----
5925
5925
5925

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col1 FROM tab2 cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * + col0 col0 FROM tab1 AS cor0
----
3111
5185
5551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT ALL CAST( col1 AS SIGNED ) * 34 + 26 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1624
196
502

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL CAST ( col1 AS INTEGER ) * 34 + 26 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1624
196
502

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

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

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

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

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

query I rowsort
SELECT col0 + 25 + - 22 * 9 FROM tab0
----
-158
-76
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 70 * - col2 + 26 col0 FROM tab0
----
-49324
-60874
-672184

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT col1 + - col0 DIV - col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-351
SELECT col1 + - col0 / - col0 FROM tab2
----
52
68
78

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

query I rowsort
SELECT - 2 + col2 * 16 FROM tab0
----
158
1582
750

query I rowsort
SELECT DISTINCT ( + + col0 ) + 96 AS col2 FROM tab1
----
147
181
187

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

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

query I rowsort
SELECT DISTINCT - col2 + + col1 + - 70 * col1 * + 52 AS col0 FROM tab2 cor0
----
-185612
-243871
-280243

query I rowsort
SELECT DISTINCT + - 40 - - + col0 FROM tab1 AS cor0
----
11
45
51

query I rowsort
SELECT col1 + + 69 AS col2 FROM tab2 AS cor0
----
120
136
146

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

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

query I rowsort
SELECT + col2 + + ( - - col2 ) AS col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT - + col1 * + col2 + - + 89 FROM tab0 cor0
----
-188
-299
-3896

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

query II rowsort
SELECT + 27 AS col1, col2 * - col0 * - col1 + - 35 FROM tab0 AS cor0
----
27
18235
27
57070
27
9568

query I rowsort
SELECT AVG ( ALL col1 ) FROM tab0 WHERE ( - col1 ) <= NULL
----
NULL

query I rowsort
SELECT - col2 * + 92 AS col1 FROM tab0
----
-4324
-9108
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - - col0 col1, - col2 + + 58 FROM tab2
----
-1058
35
-2560
18
-4350
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-368
SELECT * FROM tab1 WHERE col0 >= - 85 * + col0 + CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-368
SELECT * FROM tab1 WHERE col0 >= - 85 * + col0 + CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL - ( MAX( - col0 ) ) * - COUNT( 11 ) * 71 AS col0 FROM tab0
----
-3195

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL - ( MAX ( - col0 ) ) * - COUNT ( 11 ) * 71 AS col0 FROM tab0
----
-3195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT NULL BETWEEN - col0 AND NULL
----

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

query I rowsort
SELECT - 96 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN - 86 * col0 AND - col2 )
----

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

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT + 69 / col1 * + col0 FROM tab2 AS cor0
----
0
46
75

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT SUM( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT 13 NOT BETWEEN - col2 + - col0 + 38 AND + col2 * col0
----
-66

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT SUM ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT 13 NOT BETWEEN - col2 + - col0 + 38 AND + col2 * col0
----
-66

query I rowsort
SELECT ALL ( col2 ) * 76 FROM tab2 cor0 WHERE + 18 <= ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + 92 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-377
SELECT DISTINCT * FROM tab1 WHERE 52 = - + col1 / - CAST( NULL AS SIGNED ) + 61
----

skipif mysql # not compatible
query III rowsort label-377
SELECT DISTINCT * FROM tab1 WHERE 52 = - + col1 / - CAST ( NULL AS INTEGER ) + 61
----

query I rowsort
SELECT 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ( + + 28 ) * 76 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
2128
2128
2128

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT ALL - 44 DIV + col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - 44 / + col0 FROM tab0 AS cor0
----
-2
0
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL + SUM( + ( - + ( ( - 82 ) ) ) ) col2 FROM tab2
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-385
SELECT ALL + SUM ( + ( - + ( ( - 82 ) ) ) ) col2 FROM tab2
----
246

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 - 85 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-387
SELECT ALL - COUNT( * ) DIV - COUNT( * ) + + ( + 40 ) AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL - COUNT ( * ) / - COUNT ( * ) + + ( + 40 ) AS col0 FROM tab0
----
41

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

skipif mysql # not compatible
query I rowsort label-388
SELECT COUNT ( ALL + col0 ) FROM tab0
----
3

query I rowsort
SELECT + + ( + - 88 ) * - col2 FROM tab1 WHERE + - col0 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 + - 61 FROM tab0
----
1154
1766
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-393
SELECT - col1 * 52 + 74 + CAST( 23 AS SIGNED ) + + + 80 AS col1 FROM tab1 AS cor0
----
-2267
-551
-83

skipif mysql # not compatible
query I rowsort label-393
SELECT - col1 * 52 + 74 + CAST ( 23 AS INTEGER ) + + + 80 AS col1 FROM tab1 AS cor0
----
-2267
-551
-83

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 25 IS NOT NULL
----

query II rowsort
SELECT 84 - - - col1, - col1 AS col1 FROM tab0 AS cor0
----
3
-81
63
-21
83
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT - - 18 DIV - 51 - - col0 + - - 18 DIV - + ( + 15 ) AS col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-397
SELECT - - 18 / - 51 - - col0 + - - 18 / - + ( + 15 ) AS col0 FROM tab2 AS cor0
----
45
63
74

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-223

query III rowsort
SELECT * FROM tab1 cor0 WHERE 53 + + col1 - + col2 + + - ( 80 ) <= NULL
----

query I rowsort
SELECT DISTINCT - + col2 * - col1 - + + col1 * + - col1 AS col2 FROM tab1 AS cor0
----
1540
320
5405

query I rowsort
SELECT ALL - 80 * col0 * + + col0 + + - col1 FROM tab0 cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT ALL - col0 * col2 * + 54 FROM tab2 AS cor0
----
-138240
-234900
-57132

query I rowsort
SELECT + 90 * + col0 FROM tab0
----
1350
7830
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT - MAX( ALL col2 ) * COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-406
SELECT - MAX ( ALL col2 ) * COUNT ( * ) FROM tab0
----
-297

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - ( + 24 ) * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT SUM( ALL + + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-408
SELECT SUM ( ALL + + col1 ) AS col2 FROM tab1
----
66

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT DISTINCT 84 * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT 84 * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 13 col1 FROM tab0
----
-1131
-1261
-195

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-416
SELECT DISTINCT col0 * col2 DIV 77 FROM tab0
----
11
124
9

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT col0 * col2 / 77 FROM tab0
----
11
124
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( - col2 * col1 ) NOT BETWEEN - col1 * + 83 AND 60
----
-3

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( - col2 * col1 ) NOT BETWEEN - col1 * + 83 AND 60
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT SUM( 52 ) * - 94 AS col0 FROM tab1 AS cor0
----
-14664

skipif mysql # not compatible
query I rowsort label-419
SELECT SUM ( 52 ) * - 94 AS col0 FROM tab1 AS cor0
----
-14664

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

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

query I rowsort
SELECT + col0 + - - 25 * - 18 * ( + col0 ) + col1 + col2 AS col0 FROM tab0
----
-39032
-43453
-6607

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

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL + COUNT ( DISTINCT + ( + + 36 ) ) * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + 43 + - 16 - + 5 AS col2 FROM tab1
----
22
22
22

query I rowsort
SELECT ALL - col1 * - 48 FROM tab0
----
1008
3888
48

query I rowsort
SELECT ( + col2 ) + 84 FROM tab0
----
131
183
94

query I rowsort
SELECT DISTINCT - 25 * + col0 FROM tab0
----
-2175
-2425
-375

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

query I rowsort
SELECT - 9 + + + 4 FROM tab2
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT + CAST( - - 84 AS SIGNED ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-430
SELECT + CAST ( - - 84 AS INTEGER ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND NULL
----

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

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

query II rowsort
SELECT 82, - ( + col1 ) AS col2 FROM tab0 WHERE + - col0 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 57 col0 FROM tab1
----
116
125
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE CAST( + - col0 AS SIGNED ) IS NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 68 col2, col2 * col2 * - col2 FROM tab1 AS cor0
----
-68
-205379
-68
-314432
-68
-884736

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-437
SELECT ALL - + 39, + 48 DIV col0 + 91 + col0 AS col2 FROM tab1 AS cor0
----
-39
142
-39
176
-39
182

skipif mysql # not compatible
query II rowsort label-437
SELECT ALL - + 39, + 48 / col0 + 91 + col0 AS col2 FROM tab1 AS cor0
----
-39
142
-39
176
-39
182

query I rowsort
SELECT DISTINCT - col2 * - 95 + 88 AS col2 FROM tab1 AS cor0
----
5693
6548
9208

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

query II rowsort
SELECT DISTINCT 1, col2 AS col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ALL + - MIN( - ( + 59 ) ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL + - MIN ( - ( + 59 ) ) FROM tab0 AS cor0
----
59

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 > + + 79
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL 81 * COUNT( * ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL 81 * COUNT ( * ) AS col0 FROM tab0
----
243

query I rowsort
SELECT + 47 * + - col1 FROM tab2
----
-2397
-3149
-3619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT SUM( DISTINCT + col1 ) * 52 * + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
30420

skipif mysql # not compatible
query I rowsort label-450
SELECT SUM ( DISTINCT + col1 ) * 52 * + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
30420

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

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

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

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

query I rowsort
SELECT ALL + 41 * 68 AS col0 FROM tab1 AS cor0
----
2788
2788
2788

query I rowsort
SELECT + - 19 * + 75 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7d3abfbefb7a996adbd22f2f0e824e44

query I rowsort
SELECT - col1 * - + ( - + 56 ) FROM tab2 AS cor0
----
-2856
-3752
-4312

query I rowsort
SELECT DISTINCT - + 10 * + 16 FROM tab2 AS cor0
----
-160

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

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

query I rowsort
SELECT ( 83 ) * col1 FROM tab1 AS cor0
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL COUNT( * ) * - 1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL COUNT ( * ) * - 1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-461
SELECT DISTINCT - col1 DIV col0 * - col1 * + col0, - col1 * + col0 AS col2 FROM tab0 AS cor0
----
0
-1827
0
-97
6075
-1215

skipif mysql # not compatible
query II rowsort label-461
SELECT DISTINCT - col1 / col0 * - col1 * + col0, - col1 * + col0 AS col2 FROM tab0 AS cor0
----
0
-1827
0
-97
6075
-1215

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > + 64
----

query I rowsort
SELECT DISTINCT - col2 * col1 + ( + col0 ) AS col2 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT ALL + col0 + - col2 - - - col0 FROM tab2
----
-23
-40
-58

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

query I rowsort
SELECT ALL col2 + - + col0 * + col2 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-468
SELECT DISTINCT + + col1 / - CAST( NULL AS SIGNED ) - + col1 - + 94 AS col2, col0 AS col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-468
SELECT DISTINCT + + col1 / - CAST ( NULL AS INTEGER ) - + col1 - + 94 AS col2, col0 AS col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT + + col0 + + 51 FROM tab1 AS cor0
----
102
136
142

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 > - col0
----

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

query I rowsort
SELECT + 31 + 90 AS col2 FROM tab1 AS cor0
----
121
121
121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 >= + + 71 / - 85 + + col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) >= col0 + - - col0
----
0

skipif mysql # not compatible
query I rowsort label-474
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) >= col0 + - - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT ALL + - col2 DIV - 36 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + - col2 / - 36 FROM tab1 AS cor0
----
1
1
2

query II rowsort
SELECT - col0 + + col2, col2 AS col0 FROM tab1 AS cor0
----
-23
68
-26
59
45
96

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + + col1 * 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-481
SELECT + COUNT( * ) DIV + 17 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-481
SELECT + COUNT ( * ) / + 17 col2 FROM tab2
----
0

query I rowsort
SELECT ALL - + col2 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - + 30 AND + col0 * 2 + ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 68 * + col1 + + - 30 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT - + 81 * + col0 AS col1 FROM tab1 AS cor0
----
-4131
-6885
-7371

query I rowsort
SELECT 66 AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN - 41 AND col0
----

query II rowsort
SELECT - col1 AS col2, col1 * + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-51
-53958
-67
-291450
-77
-197120

query I rowsort
SELECT - 11 FROM tab1 AS cor0 WHERE NOT + col1 * + 45 + - ( - 54 ) + + col1 * + col1 * + col1 * + col1 * + 18 * col1 <> NULL
----

query II rowsort
SELECT DISTINCT col1, + col2 * + col2 FROM tab0
----
1
9801
21
100
81
2209

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + 2 * 49 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT ( - 57 ) AS col2 FROM tab1
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT + 98 * - 25 * + COUNT( * ) FROM tab2
----
-7350

skipif mysql # not compatible
query I rowsort label-494
SELECT + 98 * - 25 * + COUNT ( * ) FROM tab2
----
-7350

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 * 98 AS col1 FROM tab1
----
14
-1372
47
-4606
5
-490

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

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

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

query II rowsort
SELECT ALL + 30 AS col1, - 25 * - ( - - col0 ) AS col0 FROM tab1 cor0
----
30
1275
30
2125
30
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL - COUNT( * ) * - 67 * MIN( ALL - 65 ) + + COUNT( * ) FROM tab0 AS cor0
----
-13062

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - COUNT ( * ) * - 67 * MIN ( ALL - 65 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-13062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-500
SELECT ALL ( - 0 ) + + SUM( ALL - CAST( 86 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-258

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL ( - 0 ) + + SUM ( ALL - CAST ( 86 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-258

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NOT 92 IS NULL
----
10
47
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-505
SELECT col2 * + 9 + - col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
184
NULL
320
NULL
464
NULL

skipif mysql # not compatible
query II rowsort label-505
SELECT col2 * + 9 + - col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
184
NULL
320
NULL
464
NULL

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

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

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

query I rowsort
SELECT DISTINCT ( 44 ) * + col1 + + 28 AS col1 FROM tab1
----
2096
248
644

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT 81 DIV + - col1 FROM tab1
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-509
SELECT 81 / + - col1 FROM tab1
----
-1
-16
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-510
SELECT * FROM tab0 WHERE ( NOT + CAST( - col2 AS DECIMAL ) BETWEEN NULL AND + - CAST( ( - 80 ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-510
SELECT * FROM tab0 WHERE ( NOT + CAST ( - col2 AS REAL ) BETWEEN NULL AND + - CAST ( ( - 80 ) AS REAL ) )
----

query II rowsort
SELECT DISTINCT col1 AS col0, col0 * - 8 FROM tab1
----
14
-408
47
-728
5
-680

query I rowsort
SELECT ALL + col0 - - col2 * + col1 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

query II rowsort
SELECT ALL - col0, col1 + - - col2 AS col1 FROM tab0
----
-15
128
-87
31
-97
100

query I rowsort
SELECT col0 - + + col0 * + col1 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT - 97 - col0 AS col1 FROM tab0 AS cor0
----
-112
-184
-194

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 26 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 83 * - + 39 * col0 AS col0 FROM tab1
----
165087
275145
294567

query I rowsort
SELECT + ( + col0 ) * - - 77 FROM tab0 cor0 WHERE NOT col2 > col2
----
1155
6699
7469

query I rowsort
SELECT DISTINCT - col1 + - 28 AS col0 FROM tab0 AS cor0 WHERE NOT 65 IS NOT NULL
----

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

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

query I rowsort
SELECT col2 * - + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT DISTINCT + MIN( - + ( 64 ) ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT + MIN ( - + ( 64 ) ) FROM tab2
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT - col0 + - col0 / ( + col0 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 ) BETWEEN - col2 AND 86
----
91
47
68

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

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

query I rowsort
SELECT 71 + + + col1 FROM tab1 cor0
----
118
76
85

query I rowsort
SELECT - col0 * - col2 + - - 65 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
-425
1632
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT DISTINCT - + col0 + - 59 + - col0 AS col0 FROM tab1 cor0 WHERE NOT ( col0 * - CAST( NULL AS SIGNED ) - - + col0 ) NOT IN ( + col2 + - col1 - col1, + col1, col0 * - col1 * - 96 )
----

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - + col0 + - 59 + - col0 AS col0 FROM tab1 cor0 WHERE NOT ( col0 * - CAST ( NULL AS INTEGER ) - - + col0 ) NOT IN ( + col2 + - col1 - col1, + col1, col0 * - col1 * - 96 )
----

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

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

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

query II rowsort
SELECT + + 75, col0 AS col2 FROM tab1 AS cor0
----
75
51
75
85
75
91

query II rowsort
SELECT - + 58 AS col0, + 56 AS col0 FROM tab2 AS cor0
----
-58
56
-58
56
-58
56

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT - - COUNT( - 76 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-535
SELECT - - COUNT ( - 76 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 * - col0 + - 82 AS col2 FROM tab0 AS cor0
----
-787
-952
-9685

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

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

query I rowsort
SELECT DISTINCT + + 66 FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND + 49 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ALL - 81 * - COUNT( * ) - 82 AS col2 FROM tab2 cor0
----
161

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL - 81 * - COUNT ( * ) - 82 AS col2 FROM tab2 cor0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT DISTINCT - + COUNT( 50 ) col0 FROM tab1 AS cor0
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT + 82 - - 29 FROM tab2 WHERE NULL <> + + CAST( NULL AS SIGNED ) + - + ( + - 5 ) / - - col1
----

skipif mysql # not compatible
query I rowsort label-541
SELECT + 82 - - 29 FROM tab2 WHERE NULL <> + + CAST ( NULL AS INTEGER ) + - + ( + - 5 ) / - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-542
SELECT * FROM tab0 WHERE - col0 + col0 < - col1 * - ( - col2 ) / + CAST( NULL AS SIGNED ) + + - col0 - + 49
----

skipif mysql # not compatible
query III rowsort label-542
SELECT * FROM tab0 WHERE - col0 + col0 < - col1 * - ( - col2 ) / + CAST ( NULL AS INTEGER ) + + - col0 - + 49
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - 12 col0 FROM tab2
----
38
38
38

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

query I rowsort
SELECT + col0 + - 75 + col0 + col0 * col0 AS col2 FROM tab1
----
2628
7320
8388

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 82 NOT BETWEEN - ( - + 31 ) - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-549
SELECT ALL + COUNT( * ), - 60 col2 FROM tab2
----
3
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-549
SELECT ALL + COUNT ( * ), - 60 col2 FROM tab2
----
3
-60

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

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

query I rowsort
SELECT - col1 * 76 + - 86 AS col2 FROM tab2 AS cor0
----
-3962
-5178
-5938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-552
SELECT ALL 12 * + MIN( + col0 ) * + - 57 * + 56 + 25 DIV COUNT( * ) col0 FROM tab1 AS cor0
----
-1953496

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-552
SELECT ALL 12 * + MIN ( + col0 ) * + - 57 * + 56 + 25 / COUNT ( * ) col0 FROM tab1 AS cor0
----
-1953496

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, - col2 * + + col0 AS col1 FROM tab0 AS cor0
----
1
-9603
21
-870
81
-705

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-559
SELECT ALL + - col1 AS col1, col0 DIV + 64 FROM tab0 cor0
----
-1
1
-21
1
-81
0

skipif mysql # not compatible
query II rowsort label-559
SELECT ALL + - col1 AS col1, col0 / + 64 FROM tab0 cor0
----
-1
1
-21
1
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT DISTINCT + + SUM( col0 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT + + SUM ( col0 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
681

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 <= ( + + col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT - 84 + + col1 + col2 * - 7 * 79 AS col2 FROM tab1
----
-32706
-37641
-53158

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

query I rowsort
SELECT DISTINCT 72 * + - 24 FROM tab2
----
-1728

query II rowsort
SELECT + col1 + + col1, col1 FROM tab1
----
10
5
28
14
94
47

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT ALL 17 DIV + - col1 col1 FROM tab0
----
-17
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-566
SELECT ALL 17 / + - col1 col1 FROM tab0
----
-17
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-568
SELECT - CAST( - col2 AS SIGNED ) DIV 72 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-568
SELECT - CAST ( - col2 AS INTEGER ) / 72 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-569
SELECT 59 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-569
SELECT 59 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 8 + + 93 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT col1 + 18 FROM tab1 AS cor0
----
23
32
65

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-574
SELECT col2 / col0 * CAST ( NULL AS INTEGER ) + - - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col1 * - - 48 + + col2 + - 54 NOT BETWEEN + 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT MAX( ALL - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-576
SELECT MAX ( ALL - - col2 ) FROM tab1
----
96

query II rowsort
SELECT DISTINCT 13 AS col1, 64 AS col2 FROM tab1
----
13
64

query III rowsort
SELECT * FROM tab2 WHERE ( - 70 ) * + col2 + - col2 IS NULL
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1 * + col1 col1, - 53 * - + ( + + col2 ) AS col1, col1 + - col0 col2 FROM tab2
----
9 values hashing to 629d68ca70859ca38988a62c26b3698d

query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab1
----
-67

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL < + col0 / col2
----

query I rowsort
SELECT - - col2 * + col2 + ( + col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
-1661
-1817
-3328

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 81 * - col1 AS col1 FROM tab0 AS cor0
----
-1701
-6561
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT DISTINCT + col0 DIV col1 + 55 FROM tab2 AS cor0
----
55
56

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT + col0 / col1 + 55 FROM tab2 AS cor0
----
55
56

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL COUNT( * ) * - + 96 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL COUNT ( * ) * - + 96 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-285

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

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT DISTINCT COUNT( * ) * 73 AS col2 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT COUNT ( * ) * 73 AS col2 FROM tab1
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-594
SELECT - col2 * - + CAST( NULL AS SIGNED ), + col0 AS col1 FROM tab0 WHERE NOT + col2 * - col0 * col2 <= + 93
----

skipif mysql # not compatible
query II rowsort label-594
SELECT - col2 * - + CAST ( NULL AS INTEGER ), + col0 AS col1 FROM tab0 WHERE NOT + col2 * - col0 * col2 <= + 93
----

query I rowsort
SELECT ALL - col0 * + 37 AS col1 FROM tab0
----
-3219
-3589
-555

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 68 * ( col0 ) <= + col2
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-597
SELECT + COUNT ( * ) + + 79 col2 FROM tab1 cor0
----
82

query I rowsort
SELECT ALL - 36 * - col0 AS col0 FROM tab1 AS cor0
----
1836
3060
3276

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT + col1 + col2 + 64 * + 53 * + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
274880
3492
71263

skipif mysql # not compatible
query I rowsort label-601
SELECT + col1 + col2 + 64 * + 53 * + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
274880
3492
71263

query I rowsort
SELECT + col2 + + 4 * - col2 FROM tab0 AS cor0
----
-141
-297
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT ALL + 27 DIV - - col2 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL + 27 / - - col2 FROM tab0 cor0
----
0
0
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + SUM( + - 13 ) AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + SUM ( + - 13 ) AS col2 FROM tab0
----
-39

query I rowsort
SELECT DISTINCT - 0 + col1 + 91 FROM tab1
----
105
138
96

onlyif mysql # DIV for integer division: 
query I rowsort label-607
SELECT + 39 DIV - 67 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-607
SELECT + 39 / - 67 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT - + col0 DIV col1 * - col0 FROM tab0 AS cor0
----
0
348
9409

skipif mysql # not compatible
query I rowsort label-608
SELECT - + col0 / col1 * - col0 FROM tab0 AS cor0
----
0
348
9409

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

query II rowsort
SELECT DISTINCT - col1 + col1 AS col0, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT ALL + ( + col0 ) / - - 20 FROM tab2 AS cor0 WHERE NULL IN ( 40 ) AND ( NOT 58 + + ( - 71 ) NOT IN ( + col2, 63 ) )
----

query II rowsort
SELECT + col0 - col2, + ( - + col1 ) * 26 AS col0 FROM tab0 AS cor0
----
-2
-26
-32
-2106
77
-546

query I rowsort
SELECT + 70 - - col1 FROM tab1 AS cor0
----
117
75
84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT 35 * ( - COUNT( DISTINCT col0 ) ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-616
SELECT 35 * ( - COUNT ( DISTINCT col0 ) ) FROM tab0
----
-105

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

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

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

skipif mysql # not compatible
query I rowsort label-618
SELECT - COUNT ( ALL col1 ) / + - 75 FROM tab1
----
0

query II rowsort
SELECT + 54, - 22 AS col2 FROM tab0 AS cor0
----
54
-22
54
-22
54
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT SUM( ALL - 18 ) AS col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-620
SELECT SUM ( ALL - 18 ) AS col1 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT + SUM( 87 ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-621
SELECT + SUM ( 87 ) FROM tab1
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-622
SELECT - - 87 DIV + COUNT( * ) FROM tab2 AS cor0
----
29

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

query I rowsort
SELECT + col1 / - col0 FROM tab0 cor0 WHERE NOT NULL = NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-624
SELECT - - MAX ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-51

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

query I rowsort
SELECT + + 24 * - col1 * - + 67 FROM tab0 AS cor0
----
130248
1608
33768

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 * - - col1 * - - col0 NOT BETWEEN col1 AND - col2
----

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

query I rowsort
SELECT ALL + 50 * col1 FROM tab2
----
2550
3350
3850

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

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

query I rowsort
SELECT DISTINCT 71 * - ( - ( - + col2 ) ) AS col1 FROM tab0 WHERE 66 IS NOT NULL
----
-3337
-7029
-710

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT col2 DIV col1 + - 85 FROM tab1
----
-74
-79
-84

skipif mysql # not compatible
query I rowsort label-632
SELECT col2 / col1 + - 85 FROM tab1
----
-74
-79
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-633
SELECT + CAST( + + col1 AS DECIMAL ) / - col1 / col1 - col1 AS col2, - col1 * + 43 FROM tab1 WHERE - + col1 + - col1 * + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-633
SELECT + CAST ( + + col1 AS REAL ) / - col1 / col1 - col1 AS col2, - col1 * + 43 FROM tab1 WHERE - + col1 + - col1 * + col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT - 58 + ( - 19 ) - + - 3 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT - 58 + ( - 19 ) - + - 3 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 <= NULL
----

query I rowsort
SELECT ALL + - ( - col2 ) * col1 * col1 AS col1 FROM tab2 AS cor0 WHERE + ( 74 ) >= col1
----
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-638
SELECT ALL - col0 + - - 31 + + - col0 AS col0, - CAST( NULL AS SIGNED ) + + col2 * 73 * col1 * CAST( NULL AS SIGNED ) * 30 FROM tab0 AS cor0
----
-143
NULL
-163
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL - col0 + - - 31 + + - col0 AS col0, - CAST ( NULL AS INTEGER ) + + col2 * 73 * col1 * CAST ( NULL AS INTEGER ) * 30 FROM tab0 AS cor0
----
-143
NULL
-163
NULL
1
NULL

query I rowsort
SELECT - + col0 + + 96 FROM tab0 AS cor0
----
-1
81
9

query I rowsort
SELECT DISTINCT + + 85 - + col0 AS col0 FROM tab1 AS cor0
----
-6
0
34

query I rowsort
SELECT ALL col1 + - 17 AS col0 FROM tab1 AS cor0
----
-12
-3
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-642
SELECT - - col1 * + col0 - + 20 DIV - ( CAST( col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
1216
1827
97

skipif mysql # not compatible
query I rowsort label-642
SELECT - - col1 * + col0 - + 20 / - ( CAST ( col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
1216
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT ALL 97 DIV - + 4 FROM tab2
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL 97 / - + 4 FROM tab2
----
-24
-24
-24

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

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

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

query I rowsort
SELECT col2 * + - 74 + + 91 + col0 AS col0 FROM tab2 AS cor0
----
-1565
-2805
-4126

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

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT - + 72 DIV col1 * col0 FROM tab2 cor0
----
-46
-75
0

skipif mysql # not compatible
query I rowsort label-648
SELECT - + 72 / col1 * col0 FROM tab2 cor0
----
-46
-75
0

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

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

query II rowsort
SELECT DISTINCT col2, ( + col1 ) * - + 96 AS col0 FROM tab2
----
23
-4896
40
-7392
58
-6432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT - CAST( - AVG ( ALL - 78 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-651
SELECT - CAST ( - AVG ( ALL - 78 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 + col0 col2 FROM tab1 AS cor0
----
147
181
187

query II rowsort
SELECT ALL + + 45 * + col1 * + - 38, + col2 FROM tab0 AS cor0
----
-138510
47
-1710
99
-35910
10

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

query I rowsort
SELECT col1 * - - col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT 2 + 73 FROM tab1
----
75
75
75

query I rowsort
SELECT DISTINCT 60 + + col1 AS col2 FROM tab1
----
107
65
74

query I rowsort
SELECT 97 - - ( - col0 ) FROM tab0
----
0
10
82

query II rowsort
SELECT ALL - 91 * + + col0 AS col1, col0 FROM tab2 AS cor0
----
-4186
46
-5824
64
-6825
75

query I rowsort
SELECT ALL + col0 + + col1 * + - col0 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT + col1 * col2 DIV 67 + + + col0 FROM tab1 AS cor0
----
138
71
89

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT + col1 * col2 / 67 + + + col0 FROM tab1 AS cor0
----
138
71
89

query I rowsort
SELECT ALL - + 50 AS col1 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL - MIN( col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - MIN ( col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - MAX( col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * - col0 / + - col1 + - 73 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-666
SELECT - MAX ( col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * - col0 / + - col1 + - 73 IS NULL
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - + SUM( ALL + 91 ) AS col1 FROM tab1 WHERE NOT NULL > - 70 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT - + SUM ( ALL + 91 ) AS col1 FROM tab1 WHERE NOT NULL > - 70 + - 48
----
NULL

query II rowsort
SELECT + col2 AS col0, 9 + - 73 AS col0 FROM tab2
----
23
-64
40
-64
58
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-670
SELECT col1 DIV - - CAST( - 75 AS SIGNED ) AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-670
SELECT col1 / - - CAST ( - 75 AS INTEGER ) AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL col1 * 22 AS col1 FROM tab2
----
1122
1474
1694

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT DISTINCT + 99 DIV + 61 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + 99 / + 61 AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-673
SELECT - 92 * col0 * + + col2 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-235520
NULL
-400200
NULL
-97336
NULL

skipif mysql # not compatible
query II rowsort label-673
SELECT - 92 * col0 * + + col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-235520
NULL
-400200
NULL
-97336
NULL

query I rowsort
SELECT ALL + col1 * - col0 - - ( - 72 ) FROM tab2 AS cor0
----
-2418
-5000
-5097

query I rowsort
SELECT + 96 * col0 AS col0 FROM tab1 AS cor0
----
4896
8160
8736

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

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

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab2 cor0
----
-51
-67
-77

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= - col1 + - 14
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-681
SELECT ALL + 79 DIV + 99 * + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL + 79 / + 99 * + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / + - 29 / + + 84 >= NULL
----

query I rowsort
SELECT + ( - col2 ) * 4 AS col1 FROM tab0 AS cor0
----
-188
-396
-40

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

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

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

query II rowsort
SELECT - 32 * + + 36 * - - col1 + 47 + + - col0 + - col0 + + col0, + col0 AS col1 FROM tab1 AS cor0
----
-16132
51
-54188
91
-5798
85

query I rowsort
SELECT - col1 + - 57 AS col2 FROM tab1 AS cor0
----
-104
-62
-71

query I rowsort
SELECT - 98 + - - col1 FROM tab0
----
-17
-77
-97

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 43 * - - col2 + - - 50 <> - ( - 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-693
SELECT DISTINCT - ( - CAST( - col1 AS SIGNED ) ) * col2 + 95 AS col1, col1 AS col1 FROM tab1
----
-1249
14
-200
5
-3101
47

skipif mysql # not compatible
query II rowsort label-693
SELECT DISTINCT - ( - CAST ( - col1 AS INTEGER ) ) * col2 + 95 AS col1, col1 AS col1 FROM tab1
----
-1249
14
-200
5
-3101
47

query I rowsort
SELECT ALL 98 + + - col1 AS col0 FROM tab2
----
21
31
47

query I rowsort
SELECT ALL - + 23 - + col0 AS col2 FROM tab0 AS cor0
----
-110
-120
-38

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

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

query I rowsort
SELECT + col1 - + col2 * + col1 * + col1 FROM tab2 AS cor0
----
-237083
-260295
-59772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT col2 * CAST( col1 AS SIGNED ) + - - col0 - - + col0 * col2 * - - 57 AS col0 FROM tab2
----
149064
251911
61525

skipif mysql # not compatible
query I rowsort label-699
SELECT col2 * CAST ( col1 AS INTEGER ) + - - col0 - - + col0 * col2 * - - 57 AS col0 FROM tab2
----
149064
251911
61525

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( 51 ) ) = NULL
----

query I rowsort
SELECT - 79 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT 81 * + COUNT( * ) + - 52 FROM tab2 AS cor0
----
191

skipif mysql # not compatible
query I rowsort label-702
SELECT 81 * + COUNT ( * ) + - 52 FROM tab2 AS cor0
----
191

query I rowsort
SELECT DISTINCT col1 * 0 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col0 FROM tab1 AS cor0 WHERE col1 BETWEEN + + col1 AND NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 * + - col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT MIN( ( - col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-710
SELECT MIN ( ( - col0 ) ) FROM tab0 AS cor0
----
-97

query II rowsort
SELECT DISTINCT + col2 * col2, - col2 AS col0 FROM tab1
----
3481
-59
4624
-68
9216
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-712
SELECT MAX( DISTINCT col1 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-712
SELECT MAX ( DISTINCT col1 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
47
NULL

query I rowsort
SELECT ALL 44 * + + 71 FROM tab0
----
3124
3124
3124

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

skipif mysql # not compatible
query I rowsort label-714
SELECT - MIN ( ( + 0 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE 71 = NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE col0 + - 18 BETWEEN NULL AND 16
----

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

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

query I rowsort
SELECT + ( - col1 ) * - + 8 * + col1 FROM tab1 AS cor0
----
1568
17672
200

query I rowsort
SELECT ALL - col1 + 13 + col0 AS col0 FROM tab1 AS cor0
----
50
57
93

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

query II rowsort
SELECT + col1 * + col1 * - col2, + 94 AS col0 FROM tab2 AS cor0
----
-237160
94
-260362
94
-59823
94

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

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

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

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

query I rowsort
SELECT - col2 * - 64 * + 7 AS col1 FROM tab0 AS cor0
----
21056
44352
4480

query I rowsort
SELECT ALL + 47 + - col2 AS col1 FROM tab2 cor0
----
-11
24
7

query I rowsort
SELECT + 4 * + 73 FROM tab2 AS cor0
----
292
292
292

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= - - col0 * 90
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT ALL - 32 / + col2 * + CAST( NULL AS SIGNED ) / + col0 * ( - col1 ) * + col0 + + col1 + + 13 - + ( ( ( + - col1 ) ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - 32 / + col2 * + CAST ( NULL AS INTEGER ) / + col0 * ( - col1 ) * + col0 + + col1 + + 13 - + ( ( ( + - col1 ) ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 32 ) FROM tab2
----
-32
-32
-32

query I rowsort
SELECT - col2 + - 77 AS col1 FROM tab0
----
-124
-176
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + 37 + 81 * MAX( + + col1 ) AS col0 FROM tab2 AS cor0
----
6274

skipif mysql # not compatible
query I rowsort label-735
SELECT + 37 + 81 * MAX ( + + col1 ) AS col0 FROM tab2 AS cor0
----
6274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-736
SELECT DISTINCT + - 15 + col1 FROM tab0 cor0 WHERE col2 * - - CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT + - 15 + col1 FROM tab0 cor0 WHERE col2 * - - CAST ( + + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - + SUM( + 50 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-737
SELECT - + SUM ( + 50 ) FROM tab0 AS cor0
----
-150

query I rowsort
SELECT ALL 50 - - col1 FROM tab0 AS cor0
----
131
51
71

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

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

skipif mysql # not compatible
query I rowsort label-740
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 10 IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-741
SELECT + + COUNT( * ) DIV + SUM( ALL 88 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT + + COUNT ( * ) / + SUM ( ALL 88 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT SUM( ALL + 50 ) col2 FROM tab0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-742
SELECT SUM ( ALL + 50 ) col2 FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT + 94 AS col0, COUNT( * ) AS col2 FROM tab1
----
94
3

skipif mysql # not compatible
query II rowsort label-743
SELECT + 94 AS col0, COUNT ( * ) AS col2 FROM tab1
----
94
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT DISTINCT CAST( - AVG ( + col1 ) AS SIGNED ) AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT CAST ( - AVG ( + col1 ) AS INTEGER ) AS col2 FROM tab0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-745
SELECT + 68 * + + CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT + 68 * + + CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col2 FROM tab0
----
NULL

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

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

query I rowsort
SELECT + 27 * 37 FROM tab0 AS cor0
----
999
999
999

query I rowsort
SELECT - 41 * + 63 + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-2648
-2673
-2721

onlyif mysql # aggregate syntax: 
query II rowsort label-749
SELECT ( 28 ) AS col2, COUNT( * ) FROM tab1
----
28
3

skipif mysql # not compatible
query II rowsort label-749
SELECT ( 28 ) AS col2, COUNT ( * ) FROM tab1
----
28
3

query I rowsort
SELECT + 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT + col0 * - + col1 + - 20 DIV - 29 + - + col2 + + 50 + col1 * + col0 * + + col1 FROM tab2 AS cor0
----
117327
331642
374538

skipif mysql # not compatible
query I rowsort label-751
SELECT + col0 * - + col1 + - 20 / - 29 + - + col2 + + 50 + col1 * + col0 * + + col1 FROM tab2 AS cor0
----
117327
331642
374538

query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 FROM tab2 AS cor0
----
1173
3080
3886

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

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

query II rowsort
SELECT DISTINCT col1, + 65 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

query I rowsort
SELECT + 27 AS col1 FROM tab2 WHERE col0 BETWEEN NULL AND - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT - 60 * - COUNT( ALL + + 35 ) AS col2 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-758
SELECT - 60 * - COUNT ( ALL + + 35 ) AS col2 FROM tab0
----
180

query I rowsort
SELECT - 7 + - 46 AS col2 FROM tab2 WHERE NULL IS NULL
----
-53
-53
-53

query I rowsort
SELECT + col1 * - + col2 * + + 51 AS col2 FROM tab2
----
-157080
-198186
-59823

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

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

query I rowsort
SELECT ALL 29 - col1 FROM tab2 cor0
----
-22
-38
-48

query I rowsort
SELECT - col1 * 63 AS col2 FROM tab1 AS cor0
----
-2961
-315
-882

query II rowsort
SELECT col0, - 54 + + - col2 FROM tab1 AS cor0
----
51
-150
85
-113
91
-122

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

query I rowsort
SELECT DISTINCT - 9 + - 97 FROM tab2
----
-106

query I rowsort
SELECT ALL col1 / 86 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 27 )
----

query I rowsort
SELECT ( - col1 ) * 70 + + 19 AS col0 FROM tab2
----
-3551
-4671
-5371

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 15 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-773
SELECT - MIN ( ALL 43 ) AS col2 FROM tab1
----
-43

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + 12 < + col1 - + col2 * col2
----

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL <> col1 / 74
----

query I rowsort
SELECT + col1 * - 66 FROM tab1 WHERE NOT col2 <> ( 97 * 86 + - col0 / + col0 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NULL <= 66
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL COUNT( * ) * 38 col2 FROM tab1
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-780
SELECT ALL COUNT ( * ) * 38 col2 FROM tab1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT SUM( + col1 ) * 48 + - COUNT( * ) col2 FROM tab0 WHERE NULL IS NULL
----
4941

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-781
SELECT SUM ( + col1 ) * 48 + - COUNT ( * ) col2 FROM tab0 WHERE NULL IS NULL
----
4941

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + 18 / col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + 18 / col2 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT COUNT( * ) * + 10 AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT COUNT ( * ) * + 10 AS col2 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-784
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * ( + 23 / col2 ) + 36 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-784
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * ( + 23 / col2 ) + 36 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 92 col0 FROM tab1 AS cor0
----
106
139
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT - col0 > ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT - col0 > ( - col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT - col2 DIV 90 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-788
SELECT DISTINCT - col2 / 90 col1 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL COUNT( 77 ) * 49 + - 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
421

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL COUNT ( 77 ) * 49 + - 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-791
SELECT + 36 * COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 WHERE NOT NULL = ( + 92 + CAST( NULL AS SIGNED ) * 90 )
----
0

skipif mysql # not compatible
query I rowsort label-791
SELECT + 36 * COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 WHERE NOT NULL = ( + 92 + CAST ( NULL AS INTEGER ) * 90 )
----
0

query I rowsort
SELECT DISTINCT + ( + col2 ) * - 19 + col0 AS col1 FROM tab1 AS cor0
----
-1036
-1201
-1773

query I rowsort
SELECT DISTINCT - + col2 + + 86 FROM tab0 AS cor0
----
-13
39
76

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-795
SELECT - + CAST( NULL AS DECIMAL ) * 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-795
SELECT - + CAST ( NULL AS REAL ) * 10 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 + col1 >= 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - COUNT( * ) - 74 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-798
SELECT - COUNT ( * ) - 74 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-799
SELECT + ( ( COUNT( * ) ) ) * + 35 - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-799
SELECT + ( ( COUNT ( * ) ) ) * + 35 - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
108

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IN ( 43 * - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT - - COUNT( * ) - 56 AS col2 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-802
SELECT - - COUNT ( * ) - 56 AS col2 FROM tab1 AS cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT ALL - 32 DIV 23 + + ( + 60 ) AS col0 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL - 32 / 23 + + ( + 60 ) AS col0 FROM tab1 AS cor0
----
59
59
59

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

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

query I rowsort
SELECT + 45 - col0 * col2 FROM tab0 AS cor0
----
-660
-825
-9558

query I rowsort
SELECT DISTINCT col0 - - 33 AS col1 FROM tab0 AS cor0
----
120
130
48

query I rowsort
SELECT + 99 * - col0 AS col2 FROM tab1 AS cor0 WHERE + 92 / - col2 IS NOT NULL
----
-5049
-8415
-9009

query I rowsort
SELECT ALL 70 FROM tab2 AS cor0 WHERE NOT - col1 + + col2 IN ( col1 )
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-809
SELECT + 24 FROM tab0 WHERE + 49 / + CAST( 44 * - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-809
SELECT + 24 FROM tab0 WHERE + 49 / + CAST ( 44 * - col2 AS INTEGER ) IS NULL
----

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

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

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

query I rowsort
SELECT col0 + - + 81 * - col0 FROM tab0
----
1230
7134
7954

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

query I rowsort
SELECT DISTINCT col2 * 55 AS col2 FROM tab1
----
3245
3740
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL + 57 * + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + 57 * + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT - COUNT( * ) * 64 FROM tab0 AS cor0 WHERE NOT ( col1 + col0 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-817
SELECT - COUNT ( * ) * 64 FROM tab0 AS cor0 WHERE NOT ( col1 + col0 ) > NULL
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT 47 DIV SUM( 83 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-819
SELECT 47 / SUM ( 83 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT ALL MIN( ALL + 29 ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL MIN ( ALL + 29 ) FROM tab0
----
29

query I rowsort
SELECT - 74 * - - 83 AS col0 FROM tab0
----
-6142
-6142
-6142

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT ALL SUM( ALL col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL SUM ( ALL col2 ) AS col0 FROM tab1
----
223

query II rowsort
SELECT DISTINCT col2, + col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT ALL MAX( ALL col1 ) + - 4 FROM tab1 AS cor0 WHERE NOT - col1 * - 30 * 77 + - CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL MAX ( ALL col1 ) + - 4 FROM tab1 AS cor0 WHERE NOT - col1 * - 30 * 77 + - CAST ( NULL AS INTEGER ) IS NULL
----
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( + col1 + + col2 * + 16 ) > - 49 OR NOT ( NULL ) <= ( - col2 * 49 + + 98 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 13 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
13
-46
13
-64
13
-75

query II rowsort
SELECT col1, - col0 + + 50 FROM tab1 AS cor0
----
14
-1
47
-41
5
-35

query I rowsort
SELECT + 47 * col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
2397
3149
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT SUM( - + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-831
SELECT SUM ( - + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-199

query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IN ( + 91 * - 67 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT - 14 + - COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-834
SELECT - 14 + - COUNT ( * ) FROM tab1 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - - col2 IS NULL
----

query I rowsort
SELECT - col1 + + - ( + + col1 ) + col0 FROM tab0
----
-147
45
95

query I rowsort
SELECT 6 + + ( col2 ) + + col2 + + col2 * - 13 AS col1 FROM tab1
----
-1050
-643
-742

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( - 10 * 87 / col1 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL - MIN( col0 ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL - MIN ( col0 ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT ALL - col2 + 14 - + + col0 FROM tab1 AS cor0
----
-130
-133
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 cor0 WHERE 24 NOT IN ( col0 / - ( + col2 ) * + ( col1 ) )
----
23
40
58

query II rowsort
SELECT DISTINCT 70 AS col0, 37 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
70
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-845
SELECT + 47 - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-845
SELECT + 47 - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2
----
46

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-847
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * 66 + + 86 * col0 + col2 FROM tab1 AS cor0
----
10996
5406
7699

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT DISTINCT - COUNT( * ) - SUM( - col2 ) col2 FROM tab2 AS cor0
----
118

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

query I rowsort
SELECT ALL + 61 + - col0 FROM tab0 cor0
----
-26
-36
46

query I rowsort
SELECT ALL 39 - - - ( + col1 ) FROM tab1 AS cor0
----
-8
25
34

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

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

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

query II rowsort
SELECT DISTINCT col2 - + + 48, col2 FROM tab1
----
11
59
20
68
48
96

query I rowsort
SELECT 93 * - col0 FROM tab1 WHERE ( NOT + 79 = ( col0 ) )
----
-4743
-7905
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT + COUNT( * ) * - - MAX( - col2 ) AS col2 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-856
SELECT + COUNT ( * ) * - - MAX ( - col2 ) AS col2 FROM tab0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - + 86 col0, - 54 - 11 * + col2 FROM tab0
----
-4042
-571
-8514
-1143
-860
-164

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

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

skipif mysql # not compatible
query III rowsort label-859
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 * col0 * - CAST ( NULL AS REAL ) ) <> NULL
----

query I rowsort
SELECT ALL + col1 * + col0 * col0 AS col1 FROM tab0
----
158949
18225
9409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( col0 / - col0 IS NOT NULL )
----
0

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

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

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

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

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

query II rowsort
SELECT - 18 AS col2, col0 * + col0 + 66 FROM tab2 AS cor0
----
-18
2182
-18
4162
-18
5691

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT - COUNT( * ) * - MIN( 49 ) AS col1 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-867
SELECT - COUNT ( * ) * - MIN ( 49 ) AS col1 FROM tab1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT ALL ( + 67 ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
603

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL ( + 67 ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
603

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

onlyif mysql # aggregate syntax: 
query II rowsort label-870
SELECT ALL MAX( + 63 ), 20 AS col2 FROM tab1
----
63
20

skipif mysql # not compatible
query II rowsort label-870
SELECT ALL MAX ( + 63 ), 20 AS col2 FROM tab1
----
63
20

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

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 * + 72 * - 90 * 24 IS NOT NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + - SUM( ALL - 9 ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-874
SELECT + - SUM ( ALL - 9 ) FROM tab2 cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, + col2 * + col1 + - - col1 col0 FROM tab2
----
51
1224
67
3953
77
3157

query II rowsort
SELECT - 36 AS col2, col0 AS col0 FROM tab1 WHERE NULL > NULL
----

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

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

query I rowsort
SELECT ALL col0 + - 61 AS col2 FROM tab1
----
-10
24
30

query I rowsort
SELECT ALL 58 * - col1 FROM tab1
----
-2726
-290
-812

query II rowsort
SELECT ALL col2 + col2 * + - 16 AS col2, - col1 AS col0 FROM tab0
----
-1485
-1
-150
-21
-705
-81

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-882
SELECT DISTINCT - MIN( col2 ) + COUNT( * ) AS col0, + COUNT( * ) DIV - 21 AS col2 FROM tab2
----
-20
0

skipif mysql # not compatible
query II rowsort label-882
SELECT DISTINCT - MIN ( col2 ) + COUNT ( * ) AS col0, + COUNT ( * ) / - 21 AS col2 FROM tab2
----
-20
0

query I rowsort
SELECT + col1 * - + 27 + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-357
1620
72

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT ALL - 30 DIV - + ( 82 ) + - col1 + + 5 + col1 AS col0 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - 30 / - + ( 82 ) + - col1 + + 5 + col1 AS col0 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-885
SELECT DISTINCT + col0 - - - col1 DIV + 16 FROM tab2 AS cor0
----
43
60
71

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT + col0 - - - col1 / + 16 FROM tab2 AS cor0
----
43
60
71

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

skipif mysql # not compatible
query I rowsort label-886
SELECT COUNT ( * ) * - - 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
36

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

query I rowsort
SELECT - + ( col2 ) FROM tab2 WHERE NULL >= - col2 + - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT + MAX( DISTINCT col1 ) col1 FROM tab1 WHERE + - col0 * col2 * + - col2 * - col0 / - - col1 * col1 + + + col2 + - col1 IN ( + col2 + + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-889
SELECT DISTINCT + MAX ( DISTINCT col1 ) col1 FROM tab1 WHERE + - col0 * col2 * + - col2 * - col0 / - - col1 * col1 + + + col2 + - col1 IN ( + col2 + + col2 )
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + col2 - 1 AS col1 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT col0 * + 88 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
4048
5632
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT DISTINCT - + COUNT( + 18 ) - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT - + COUNT ( + 18 ) - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT 93 * + col2 - + + col0 + + - 17 AS col2 FROM tab0 AS cor0
----
4339
826
9093

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 32 * + col0 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL does not promote INTEGER (32-bit) results
query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col1 * col2 * - + 86 * - 70 * - - 93 * - + col2 / + 33 > col0 + - col0
----
10
47
99

query II rowsort
SELECT - 38 AS col0, col2 * + col2 AS col1 FROM tab2
----
-38
1600
-38
3364
-38
529

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT col1 = - ( + 9 )
----
10
47
99

query I rowsort
SELECT ALL 76 * 52 FROM tab2
----
3952
3952
3952

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE 95 * - col1 IN ( + + col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT DISTINCT - COUNT( * ) * - + 50 AS col0 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT - COUNT ( * ) * - + 50 AS col0 FROM tab2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT COUNT( * ) * + 91 AS col1 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-905
SELECT COUNT ( * ) * + 91 AS col1 FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 IN ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-906
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 IN ( col1 )
----
-3

query I rowsort
SELECT + col2 * col0 + - + col1 AS col1 FROM tab0 cor0
----
624
849
9602

query I rowsort
SELECT ALL 37 AS col1 FROM tab1 cor0
----
37
37
37

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

query I rowsort
SELECT 47 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

query II rowsort
SELECT col1 AS col0, + 34 AS col2 FROM tab2
----
51
34
67
34
77
34

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT ALL - col1 * col0 + + col1 + + 61 DIV - - col0 AS col2 FROM tab2 AS cor0
----
-2294
-4851
-4958

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - col1 * col0 + + col1 + + 61 / - - col0 AS col2 FROM tab2 AS cor0
----
-2294
-4851
-4958

query I rowsort
SELECT DISTINCT - 99 + - - 28 FROM tab1 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT ALL - - COUNT( DISTINCT + 10 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL - - COUNT ( DISTINCT + 10 ) FROM tab1 AS cor0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT + 67 DIV + 64 + + - col0 AS col1 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-917
SELECT + 67 / + 64 + + - col0 AS col1 FROM tab1 AS cor0
----
-50
-84
-90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL + ( + - MAX( - col2 ) ) FROM tab1 WHERE NOT - col0 * - + 56 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + ( + - MAX ( - col2 ) ) FROM tab1 WHERE NOT - col0 * - + 56 IS NULL
----
59

query I rowsort
SELECT ALL col2 + 16 * - - col0 FROM tab1
----
1419
1524
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 + + + 57 - - - 1 col2 FROM tab1 WHERE NULL < 34 + - col1
----

query I rowsort
SELECT ALL + col1 + - 69 FROM tab0
----
-48
-68
12

query I rowsort
SELECT DISTINCT - + 54 + 3 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE col1 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + col2 / + col2 * col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN - - 68 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT 74 + + MAX( ( - - 34 ) ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-928
SELECT 74 + + MAX ( ( - - 34 ) ) FROM tab2
----
108

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

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

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

query II rowsort
SELECT DISTINCT + col0 AS col1, col1 * 22 + col1 FROM tab0 AS cor0
----
15
1863
87
483
97
23

query II rowsort
SELECT 93 AS col1, 22 * + col1 FROM tab1 cor0
----
93
1034
93
110
93
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-933
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( + + col1 AS SIGNED ) + - 75 + + - 8 * + + col0 >= - ( + 15 )
----
3

skipif mysql # not compatible
query I rowsort label-933
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( + + col1 AS INTEGER ) + - 75 + + - 8 * + + col0 >= - ( + 15 )
----
3

query I rowsort
SELECT - 5 * - col2 * - 49 AS col2 FROM tab0
----
-11515
-24255
-2450

query II rowsort
SELECT DISTINCT col2 * - - col0, col0 AS col1 FROM tab2
----
1058
46
2560
64
4350
75

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT 23 IS NULL
----
-10
-47
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT 91 * - COUNT( * ) col1 FROM tab0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-938
SELECT DISTINCT 91 * - COUNT ( * ) col1 FROM tab0
----
-273

query II rowsort
SELECT - 19 * col2 AS col2, + 87 AS col1 FROM tab0 cor0
----
-1881
87
-190
87
-893
87

onlyif mysql # aggregate syntax: 
query II rowsort label-940
SELECT ALL + MAX( - 74 ), 28 AS col1 FROM tab0, tab2 AS cor0
----
-74
28

skipif mysql # not compatible
query II rowsort label-940
SELECT ALL + MAX ( - 74 ), 28 AS col1 FROM tab0, tab2 AS cor0
----
-74
28

query I rowsort
SELECT DISTINCT + 92 FROM tab1 WHERE 94 NOT IN ( - - 60, - col1 / col2 * - col1 / + 48 )
----
92

query I rowsort
SELECT ALL - col0 + - 29 FROM tab1
----
-114
-120
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT CAST( + col0 AS SIGNED ) * col0 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-944
SELECT CAST ( + col0 AS INTEGER ) * col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT col2 * - col1 * - + col2 + - + 66 + 51 - + col0 FROM tab2 AS cor0
----
123121
225298
26918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT DISTINCT CAST( ( - + 74 ) AS SIGNED ) * - - 64 * + 43 AS col2 FROM tab1 AS cor0
----
-203648

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT CAST ( ( - + 74 ) AS INTEGER ) * - - 64 * + 43 AS col2 FROM tab1 AS cor0
----
-203648

query I rowsort
SELECT + 60 * + - 77 * 69 FROM tab1 AS cor0
----
-318780
-318780
-318780

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 cor0 WHERE NOT 25 + - 79 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * + col0 * - ( - + 44 ) * - - ( - + 96 ) + - col2 + - + col2 col0 FROM tab2 AS cor0
----
-10543184
-12355316
-7577902

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

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

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + + CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT - 92 DIV + - col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-953
SELECT - 92 / + - col2 FROM tab2
----
1
2
4

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-955
SELECT - col2 DIV + - col2 + + col0 + + col2, - 80 * - - CAST( + 55 AS SIGNED ) AS col0 FROM tab1
----
145
-4400
148
-4400
160
-4400

skipif mysql # not compatible
query II rowsort label-955
SELECT - col2 / + - col2 + + col0 + + col2, - 80 * - - CAST ( + 55 AS INTEGER ) AS col0 FROM tab1
----
145
-4400
148
-4400
160
-4400

query I rowsort
SELECT DISTINCT col2 * + col0 + col2 * + col0 FROM tab2
----
2116
5120
8700

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 - + col1 IS NULL AND ( NOT NULL > col2 )
----

query I rowsort
SELECT + col1 + 46 - col0 AS col1 FROM tab2
----
38
51
59

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT ALL + 38 DIV - + col1 + col1 AS col1 FROM tab0 AS cor0
----
-37
20
81

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + 38 / - + col1 + col1 AS col1 FROM tab0 AS cor0
----
-37
20
81

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT DISTINCT - 38 DIV + 62 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - 38 / + 62 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-961
SELECT * FROM tab2 AS cor0 WHERE 86 BETWEEN - 40 / + col0 AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-961
SELECT * FROM tab2 AS cor0 WHERE 86 BETWEEN - 40 / + col0 AND + CAST ( NULL AS REAL )
----

query I rowsort
SELECT - - 49 + - 28 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - COUNT( * ) * + 60 * 79 AS col0 FROM tab2 AS cor0
----
-14220

skipif mysql # not compatible
query I rowsort label-963
SELECT - COUNT ( * ) * + 60 * 79 AS col0 FROM tab2 AS cor0
----
-14220

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + 68 * col2 >= NULL
----

query I rowsort
SELECT + 52 * 66 * - - ( + 76 ) FROM tab0 AS cor0
----
260832
260832
260832

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT MIN( 70 ) col0 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-968
SELECT MIN ( 70 ) col0 FROM tab0
----
70

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

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

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

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

query I rowsort
SELECT 11 FROM tab0 WHERE NOT ( 10 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT - CAST( - 8 AS SIGNED ) FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-972
SELECT - CAST ( - 8 AS INTEGER ) FROM tab2
----
8
8
8

onlyif mysql # DIV for integer division: 
query II rowsort label-973
SELECT + col1, + 58 DIV 7 FROM tab2
----
51
8
67
8
77
8

skipif mysql # not compatible
query II rowsort label-973
SELECT + col1, + 58 / 7 FROM tab2
----
51
8
67
8
77
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 89 >= + - 25
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / col1 >= NULL
----

query I rowsort
SELECT - ( 64 ) AS col2 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT 67 + + + col1 IN ( - - 66 )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT + col0 DIV 19 AS col0 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-978
SELECT + col0 / 19 AS col0 FROM tab2
----
2
3
3

query I rowsort
SELECT ALL + 35 * + - ( col0 ) FROM tab0
----
-3045
-3395
-525

query I rowsort
SELECT - col2 + + col0 * - + 85 FROM tab0 cor0
----
-1322
-7405
-8344

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT ALL 99 DIV - col0 + - + col1 AS col1 FROM tab0 AS cor0
----
-2
-22
-87

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL 99 / - col0 + - + col1 AS col1 FROM tab0 AS cor0
----
-2
-22
-87

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-986
SELECT ALL COUNT( CAST( NULL AS DECIMAL ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL COUNT ( CAST ( NULL AS REAL ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab2
----
90
90
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-988
SELECT + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE ( - + 44 ) + col0 > + - ( col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT + + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE ( - + 44 ) + col0 > + - ( col1 )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 + + - 60 * + col2 col0 FROM tab1
----
-3604
-4144
-5824

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE col2 + + - ( + 18 ) * ( + col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT COUNT( * ) col2 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-991
SELECT COUNT ( * ) col2 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT COUNT( * ) - - + MAX( DISTINCT 5 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-992
SELECT COUNT ( * ) - - + MAX ( DISTINCT 5 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
14

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

skipif mysql # not compatible
query I rowsort label-993
SELECT + CAST ( 9 AS INTEGER ) / - col2 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-994
SELECT COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
-3

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

query I rowsort
SELECT - - 13 * + - ( - + col0 ) * + col2 FROM tab1 cor0
----
63648
65195
80444

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - MIN( + + 46 ) col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-997
SELECT - MIN ( + + 46 ) col0 FROM tab0 AS cor0
----
-46

query II rowsort
SELECT - 45, col2 AS col2 FROM tab0 AS cor0
----
-45
10
-45
47
-45
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-999
SELECT DISTINCT - - CAST( col0 AS SIGNED ), 83 AS col0 FROM tab1 WHERE 60 + - col0 - + 86 IS NOT NULL
----
51
83
85
83
91
83

skipif mysql # not compatible
query II rowsort label-999
SELECT DISTINCT - - CAST ( col0 AS INTEGER ), 83 AS col0 FROM tab1 WHERE 60 + - col0 - + 86 IS NOT NULL
----
51
83
85
83
91
83

query I rowsort
SELECT ALL - ( - - 43 ) FROM tab1
----
-43
-43
-43

query I rowsort
SELECT DISTINCT col2 * 51 * - col2 FROM tab0
----
-112659
-499851
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT 95 / - 14 * - col2 <= col0 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-1002
SELECT ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT 95 / - 14 * - col2 <= col0 * + col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 57 IN ( - col1, 9, + + col2 / + 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + + col0 col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - col0 * + - 43 * col2 + col2 AS col0 FROM tab0
----
30362
37420
413028

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT - 64 + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

skipif mysql # not compatible
query I rowsort label-1007
SELECT - 64 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + 23 AND + 82
----

query I rowsort
SELECT ALL 22 + 38 * col0 + - col1 FROM tab1 AS cor0
----
1946
3247
3433

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT ALL - col1 * col1 AS col2 FROM tab0 AS cor0 WHERE col2 * CAST( NULL AS SIGNED ) BETWEEN - 3 AND col0
----

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL - col1 * col1 AS col2 FROM tab0 AS cor0 WHERE col2 * CAST ( NULL AS INTEGER ) BETWEEN - 3 AND col0
----

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

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT SUM ( ALL + col0 ) - COUNT ( * ) AS col1 FROM tab2 cor0
----
182

query II rowsort
SELECT ALL - - 82, col0 AS col2 FROM tab1 AS cor0
----
82
51
82
85
82
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + 54
----

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

query I rowsort
SELECT + 92 + + col0 * - + 33 FROM tab0
----
-2779
-3109
-403

query I rowsort
SELECT DISTINCT - col2 + + 77 + + col1 FROM tab0
----
-21
111
88

query I rowsort
SELECT col2 + + + 82 * + col1 FROM tab2
----
4205
5552
6354

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT + MIN( ALL 45 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-1020
SELECT + MIN ( ALL 45 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT + COUNT( * ) AS col1, 82 FROM tab0
----
3
82

skipif mysql # not compatible
query II rowsort label-1021
SELECT + COUNT ( * ) AS col1, 82 FROM tab0
----
3
82

query I rowsort
SELECT ALL + 80 * + 11 FROM tab1
----
880
880
880

query I rowsort
SELECT ( - - col2 ) AS col2 FROM tab1
----
59
68
96

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

skipif mysql # not compatible
query I rowsort label-1024
SELECT + + col0 / 71 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT + - col1 DIV + 79 * + + col0 * + col1 + + col1 - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-1025
SELECT + - col1 / + 79 * + + col0 * + col1 + + col1 - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

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

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

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

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

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

query I rowsort
SELECT col0 + + 48 FROM tab1
----
133
139
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT 89 + + + 58 * - COUNT( * ) AS col2 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-1030
SELECT 89 + + + 58 * - COUNT ( * ) AS col2 FROM tab2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT DISTINCT + col1 * + - CAST( - col1 AS SIGNED ) FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + col1 * + - CAST ( - col1 AS INTEGER ) FROM tab2
----
2601
4489
5929

query II rowsort
SELECT ALL col0 + + col0, ( + + 58 ) AS col0 FROM tab1
----
102
58
170
58
182
58

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE + 89 * - - ( - + 9 ) * + 95 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + 1 * + 57 FROM tab1
----
57

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

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - MAX ( DISTINCT + col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT ALL - COUNT( * ) FROM tab0 WHERE + col2 * CAST( + col2 AS SIGNED ) NOT IN ( - col1, - 93 * - col1, - - 98 )
----
-3

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + col2 * CAST ( + col2 AS INTEGER ) NOT IN ( - col1, - 93 * - col1, - - 98 )
----
-3

query II rowsort
SELECT col1, + 15 FROM tab0
----
1
15
21
15
81
15

query I rowsort
SELECT ALL col0 + + + col2 - + - 77 * - ( - col2 ) FROM tab2 AS cor0
----
1840
3184
4599

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

query II rowsort
SELECT + col2 AS col0, 2 * 24 AS col2 FROM tab1 AS cor0
----
59
48
68
48
96
48

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE NOT - 27 + + ( - 32 ) + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1042
SELECT + + SUM( DISTINCT col1 ) * 52 DIV + 33 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-1042
SELECT + + SUM ( DISTINCT col1 ) * 52 / + 33 FROM tab0 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT + COUNT( * ) * + - ( 77 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-1043
SELECT + COUNT ( * ) * + - ( 77 ) FROM tab0
----
-231

query I rowsort
SELECT ALL + 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1045
SELECT * FROM tab0 cor0 WHERE col0 - + col0 + ( - CAST( - - 48 AS SIGNED ) ) IN ( - + 55 - - - col0 )
----

skipif mysql # not compatible
query III rowsort label-1045
SELECT * FROM tab0 cor0 WHERE col0 - + col0 + ( - CAST ( - - 48 AS INTEGER ) ) IN ( - + 55 - - - col0 )
----

query II rowsort
SELECT + ( + - col2 ) AS col0, + col1 * + 41 * col2 AS col1 FROM tab0 cor0
----
-10
8610
-47
156087
-99
4059

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

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

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

query II rowsort
SELECT col1, col1 * + col1 * + col0 FROM tab1
----
14
9996
47
201019
5
2125

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT + 20 * - SUM( ALL 41 ) AS col0, COUNT( - - 88 ) AS col0 FROM tab2
----
-2460
3

skipif mysql # not compatible
query II rowsort label-1051
SELECT + 20 * - SUM ( ALL 41 ) AS col0, COUNT ( - - 88 ) AS col0 FROM tab2
----
-2460
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL - SUM( ALL + + 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - SUM ( ALL + + 16 ) FROM tab1
----
-48

query I rowsort
SELECT DISTINCT col2 * + - col1 * col2 - col1 * + 32 * - - col1 AS col2 FROM tab1
----
-135296
-18205
-288016

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT COUNT( * ) DIV - 20 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1055
SELECT COUNT ( * ) / - 20 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT - 41 * + + SUM( DISTINCT 44 ) * 31 AS col0 FROM tab2
----
-55924

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - 41 * + + SUM ( DISTINCT 44 ) * 31 AS col0 FROM tab2
----
-55924

query II rowsort
SELECT ALL - 43 AS col1, 78 FROM tab0 AS cor0
----
-43
78
-43
78
-43
78

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * + col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1059
SELECT - - COUNT ( 34 ) AS col2 FROM tab0 AS cor0
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1061
SELECT + ( CAST( col2 AS SIGNED ) ) AS col1, + 43 FROM tab2 AS cor0
----
23
43
40
43
58
43

skipif mysql # not compatible
query II rowsort label-1061
SELECT + ( CAST ( col2 AS INTEGER ) ) AS col1, + 43 FROM tab2 AS cor0
----
23
43
40
43
58
43

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

query I rowsort
SELECT + 81 * + - col0 AS col2 FROM tab0 AS cor0
----
-1215
-7047
-7857

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT + 86 DIV + 57 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1064
SELECT + 86 / + 57 AS col1 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND + 82 <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT + COUNT( * ) * - 32 AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1067
SELECT + COUNT ( * ) * - 32 AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1068
SELECT + COUNT( * ) DIV + COUNT( * ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-1068
SELECT + COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
1
3

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL <> 72
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT ALL ( 73 ) * - CAST( + + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL ( 73 ) * - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) AS col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT col0 + - + col2 AS col2 FROM tab2 WHERE NOT - 0 + + col0 + - 1 IS NULL
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1074
SELECT * FROM tab1 WHERE + + 51 + CAST( NULL AS SIGNED ) / + col1 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1074
SELECT * FROM tab1 WHERE + + 51 + CAST ( NULL AS INTEGER ) / + col1 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT - 13 * COUNT( * ) * 77 + - COUNT( DISTINCT - col1 ) + - MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3011

skipif mysql # not compatible
query I rowsort label-1075
SELECT - 13 * COUNT ( * ) * 77 + - COUNT ( DISTINCT - col1 ) + - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3011

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1076
SELECT + col1 + + ( - col0 ) col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-37
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1076
SELECT + col1 + + ( - col0 ) col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-37
NULL
-44
NULL
-80
NULL

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

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

query I rowsort
SELECT + 21 + 16 AS col1 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1079
SELECT DISTINCT col1 AS col1, CAST( - 70 AS SIGNED ) AS col1 FROM tab0 cor0
----
1
-70
21
-70
81
-70

skipif mysql # not compatible
query II rowsort label-1079
SELECT DISTINCT col1 AS col1, CAST ( - 70 AS INTEGER ) AS col1 FROM tab0 cor0
----
1
-70
21
-70
81
-70

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1081
SELECT * FROM tab1 WHERE - CAST( + 43 AS SIGNED ) * ( - col2 ) NOT IN ( + col0, - col2 + - CAST( NULL AS SIGNED ), col1, + + 18 + + 50 + 10 )
----

skipif mysql # not compatible
query III rowsort label-1081
SELECT * FROM tab1 WHERE - CAST ( + 43 AS INTEGER ) * ( - col2 ) NOT IN ( + col0, - col2 + - CAST ( NULL AS INTEGER ), col1, + + 18 + + 50 + 10 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT ALL SUM( - + col0 ) DIV 65 * + - COUNT( * ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1082
SELECT ALL SUM ( - + col0 ) / 65 * + - COUNT ( * ) col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1083
SELECT ALL * FROM tab0 WHERE NOT ( - + col2 ) BETWEEN CAST( NULL AS SIGNED ) AND col2 * + - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1083
SELECT ALL * FROM tab0 WHERE NOT ( - + col2 ) BETWEEN CAST ( NULL AS INTEGER ) AND col2 * + - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 < - + col0 - + + ( 27 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 < col0
----
87
21
10

query II rowsort
SELECT col1 - - col0 AS col2, col2 FROM tab0 AS cor0
----
108
10
96
47
98
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT DISTINCT - - COUNT( * ) - 4 col0 FROM tab2 AS cor0
----
-1

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

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

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

query II rowsort
SELECT ALL 37, - col1 * - 52 AS col2 FROM tab0 AS cor0
----
37
1092
37
4212
37
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT - 32 * + MIN( - col1 ) / - 27 * - COUNT( * ) FROM tab1 WHERE NOT + 29 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT - 32 * + MIN ( - col1 ) / - 27 * - COUNT ( * ) FROM tab1 WHERE NOT + 29 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT MIN( ALL + col2 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1093
SELECT MIN ( ALL + col2 ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1094
SELECT - ( + col0 ) * - ( 31 ) * - col0 AS col1, col0 + + + ( - + col2 ) * - - col0 DIV 34 * - 0 col1 FROM tab0
----
-234639
87
-291679
97
-6975
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1094
SELECT - ( + col0 ) * - ( 31 ) * - col0 AS col1, col0 + + + ( - + col2 ) * - - col0 / 34 * - 0 col1 FROM tab0
----
-234639
87
-291679
97
-6975
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT - col0 * - - col1 * CAST( - col1 AS SIGNED ) + + 44 * col0 FROM tab2 AS cor0
----
121670
339975
382272

skipif mysql # not compatible
query I rowsort label-1095
SELECT - col0 * - - col1 * CAST ( - col1 AS INTEGER ) + + 44 * col0 FROM tab2 AS cor0
----
121670
339975
382272

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + 31 + 70 <= ( + col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT col1 * + 30 + + 44 AS col2 FROM tab2 AS cor0
----
1574
2054
2354

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

query I rowsort
SELECT ALL 94 * + 98 + + col1 FROM tab2 AS cor0
----
9263
9279
9289

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT DISTINCT + + col1 DIV - 33 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + + col1 / - 33 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT - COUNT( * ) + 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-1101
SELECT - COUNT ( * ) + 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 35 / + col0 * col1 * + col2 - - col2 * 36 IS NOT NULL
----

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

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

query I rowsort
SELECT 95 * - 96 AS col0 FROM tab1
----
-9120
-9120
-9120

query II rowsort
SELECT - col1 AS col2, 10 * - col2 AS col1 FROM tab1
----
-14
-960
-47
-680
-5
-590

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 < - 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT 3 + + + col0 AS col2 FROM tab2 cor0
----
49
67
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 63 col1 FROM tab2 AS cor0
----
114
130
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 8 * - col1 AS col1, col0 + + col2 col2 FROM tab2
----
-408
69
-536
133
-616
104

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT ALL + col0 + 1 + + + 23 DIV + col0 * col2 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + col0 + 1 + + + 23 / + col0 * col2 FROM tab1
----
52
86
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1114
SELECT DISTINCT - 69 + + COUNT( DISTINCT + CAST( + col1 AS SIGNED ) ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT - 69 + + COUNT ( DISTINCT + CAST ( + col1 AS INTEGER ) ) FROM tab0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1115
SELECT + 35 + col1, - CAST( NULL AS SIGNED ) * - + col2 * - col0 * - col0 + 25 AS col0 FROM tab1
----
40
NULL
49
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-1115
SELECT + 35 + col1, - CAST ( NULL AS INTEGER ) * - + col2 * - col0 * - col0 + 25 AS col0 FROM tab1
----
40
NULL
49
NULL
82
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT col0 DIV + 48 + - 19 FROM tab1
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-1116
SELECT col0 / + 48 + - 19 FROM tab1
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT MAX( ALL 25 ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT MAX ( ALL 25 ) FROM tab0
----
25

query I rowsort
SELECT ALL 68 + + - 77 + - col1 AS col2 FROM tab0
----
-10
-30
-90

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + 34 * - - col0 IS NULL
----

query I rowsort
SELECT - - ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL <= + col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1121
SELECT ALL - 42 + + col0 AS col1, - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-27
15
45
87
55
97

skipif mysql # not compatible
query II rowsort label-1121
SELECT ALL - 42 + + col0 AS col1, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-27
15
45
87
55
97

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

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

query I rowsort
SELECT ALL - col0 * + - 36 + 14 FROM tab1 WHERE NOT + + col1 NOT BETWEEN + col1 AND - 75
----

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 25 * - col0 NOT BETWEEN + ( col0 ) + - col2 AND + 46 * col1
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT ALL - MAX( DISTINCT col1 ) AS col0, - 41 FROM tab1
----
-47
-41

skipif mysql # not compatible
query II rowsort label-1128
SELECT ALL - MAX ( DISTINCT col1 ) AS col0, - 41 FROM tab1
----
-47
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT - 6, COUNT( col1 ) AS col2 FROM tab1
----
-6
3

skipif mysql # not compatible
query II rowsort label-1129
SELECT - 6, COUNT ( col1 ) AS col2 FROM tab1
----
-6
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1130
SELECT COUNT( * ) AS col0, + 87 AS col1 FROM tab2
----
3
87

skipif mysql # not compatible
query II rowsort label-1130
SELECT COUNT ( * ) AS col0, + 87 AS col1 FROM tab2
----
3
87

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT ALL AVG ( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL AVG ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

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

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

query I rowsort
SELECT - - 41 AS col2 FROM tab2 cor0
----
41
41
41

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < + 86 * 10
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL + COUNT( DISTINCT + + 25 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + COUNT ( DISTINCT + + 25 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1140
SELECT - CAST( - col1 AS SIGNED ) * - col0 - + col2 AS col2 FROM tab2
----
-2369
-4968
-5083

skipif mysql # not compatible
query I rowsort label-1140
SELECT - CAST ( - col1 AS INTEGER ) * - col0 - + col2 AS col2 FROM tab2
----
-2369
-4968
-5083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col1 + col2 FROM tab0
----
-10
31
-47
128
-99
100

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 * - col2 * 46 + + col2 IS NULL
----

query I rowsort
SELECT ALL + 40 + - col2 FROM tab1
----
-19
-28
-56

query I rowsort
SELECT DISTINCT col1 + + 29 FROM tab1
----
34
43
76

onlyif mysql # DIV for integer division: 
query II rowsort label-1145
SELECT col0 + - col0 DIV col0, - col1 + col0 AS col1 FROM tab1
----
50
37
84
80
90
44

skipif mysql # not compatible
query II rowsort label-1145
SELECT col0 + - col0 / col0, - col1 + col0 AS col1 FROM tab1
----
50
37
84
80
90
44

query I rowsort
SELECT ALL + col1 * - 74 + - col2 FROM tab0
----
-1564
-173
-6041

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT - 66 DIV + ( - + col1 ) + - col0 + - + col0 * - col1 FROM tab1
----
353
4187
667

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT - 66 / + ( - + col1 ) + - col0 + - + col0 * - col1 FROM tab1
----
353
4187
667

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * + + col0 / - 16 <> - 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 13 + + col1 + + - 6 FROM tab0
----
-18
2
62

query I rowsort
SELECT DISTINCT - 16 / 23 FROM tab2 AS cor0 WHERE - + col1 + + 59 IS NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - ( + - col2 ) + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1157
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT SUM( DISTINCT - 12 ) AS col1 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT SUM ( DISTINCT - 12 ) AS col1 FROM tab1 AS cor0
----
-12

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

query II rowsort
SELECT DISTINCT col0, - col0 + - col2 * + - 56 AS col0 FROM tab2
----
46
1242
64
2176
75
3173

query II rowsort
SELECT - 26 AS col0, col0 FROM tab1
----
-26
51
-26
85
-26
91

query I rowsort
SELECT col2 + - col0 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 90 * + - col0 - - 39 < 97 * - 61 + + - 78
----

query I rowsort
SELECT 23 * - col0 AS col2 FROM tab1
----
-1173
-1955
-2093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 57, + 13 * - + 10 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL - 24 / + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - 24 / + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT 72 * - ( - 14 ) AS col0 FROM tab2
----
1008
1008
1008

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT + col2 * + col1 + - 52 + - - col2 DIV - col2 FROM tab0 AS cor0
----
157
3754
46

skipif mysql # not compatible
query I rowsort label-1172
SELECT + col2 * + col1 + - 52 + - - col2 / - col2 FROM tab0 AS cor0
----
157
3754
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col0 * 36, col2 col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <= + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 43 + - + 99 * + + col1 AS col1 FROM tab1
----
-1343
-452
-4610

query I rowsort
SELECT + 35 * + + col2 FROM tab2
----
1400
2030
805

query I rowsort
SELECT ALL col1 * 18 + + col2 * - ( + 22 ) FROM tab1
----
-1208
-1860
-650

query III rowsort
SELECT + col1 AS col1, col2, ( - 32 ) * col1 AS col2 FROM tab1
----
9 values hashing to f2458a35dad5a5cc3d719c20b8326d43

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

query I rowsort
SELECT ALL + - col2 + + - 56 AS col1 FROM tab1 AS cor0
----
-115
-124
-152

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + ( col0 ) + + - col0 AND - + col0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT - - col0 DIV + - 69 + - col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-1182
SELECT - - col0 / + - 69 + - col1 FROM tab2 AS cor0
----
-51
-68
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL COUNT( * ) - + 88 FROM tab1 AS cor0 WHERE - col0 = - - 37
----
-88

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL COUNT ( * ) - + 88 FROM tab1 AS cor0 WHERE - col0 = - - 37
----
-88

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - SUM( + - col0 ) * + 75 col1 FROM tab2
----
13875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1185
SELECT - SUM ( + - col0 ) * + 75 col1 FROM tab2
----
13875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - col0 col2, col0 * 51 AS col0 FROM tab2
----
-17
3825
-23
2346
-24
3264

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1188
SELECT DISTINCT + col2 + CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + col2 + CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
117
125
74

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

query I rowsort
SELECT - col0 - + col0 - + + 68 * col1 FROM tab0 cor0
----
-1602
-262
-5538

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT - col1 + - col1 IN ( + - col0, + col0, 79 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - MIN( 3 ) AS col2 FROM tab1 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT - MIN ( 3 ) AS col2 FROM tab1 WHERE NULL = NULL
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1193
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT DISTINCT 10 * - SUM( - 2 ) AS col2, + 38 + - + COUNT( - col0 ) - - - 53 col1 FROM tab2 cor0
----
60
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1194
SELECT DISTINCT 10 * - SUM ( - 2 ) AS col2, + 38 + - + COUNT ( - col0 ) - - - 53 col1 FROM tab2 cor0
----
60
-18

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * - 42 AS col1 FROM tab0
----
-1974
-4158
-420

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

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT COUNT ( - 40 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL 35 * 19 AS col2 FROM tab0
----
665
665
665

query I rowsort
SELECT DISTINCT - 97 * - 86 FROM tab2
----
8342

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

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - COUNT ( * ) / SUM ( DISTINCT + col1 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( ( 50 ), + 5 * + + col1 )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1207
SELECT + ( MIN( CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + 22 + + col2 AS col1 FROM tab0 AS cor0
----
121
32
69

query I rowsort
SELECT + col2 + - col1 + - 73 AS col1 FROM tab2 AS cor0
----
-101
-110
-82

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

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

query I rowsort
SELECT DISTINCT + col2 + + 91 AS col0 FROM tab0 AS cor0
----
101
138
190

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

query I rowsort
SELECT DISTINCT + col2 + - + col1 + col1 * col1 * col2 AS col2 FROM tab0 cor0
----
197
308333
4399

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT + 50 + COUNT( * ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + 50 + COUNT ( * ) FROM tab2 AS cor0
----
53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT - 72 DIV + + col2 - - - 81 + col0 AS col1 FROM tab2 AS cor0
----
-18
-38
-7

skipif mysql # not compatible
query I rowsort label-1216
SELECT - 72 / + + col2 - - - 81 + col0 AS col1 FROM tab2 AS cor0
----
-18
-38
-7

query I rowsort
SELECT ALL + + col2 * - 28 FROM tab1 AS cor0
----
-1652
-1904
-2688

query I rowsort
SELECT - col0 * 38 AS col0 FROM tab0 AS cor0
----
-3306
-3686
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 45 - + col2, - col1 * - + col2 col1, col1 + + col2 AS col2 FROM tab1
----
9 values hashing to 1b92f2a7bf19cb8deff0fe40cdcc21b2

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

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

query I rowsort
SELECT col0 * 66 + - col2 FROM tab1
----
3270
5551
5938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT DISTINCT col2 + - + CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT col2 + - + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - + ( + 85 ) - + col0 AS col2 FROM tab0 AS cor0
----
-100
-172
-182

query II rowsort
SELECT ALL - col2 AS col2, col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + - 86 * + col2 AS col2 FROM tab0 AS cor0
----
-4042
-8514
-860

query I rowsort
SELECT DISTINCT + col1 * + col1 * 2 AS col1 FROM tab1
----
392
4418
50

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 91 + - + 50 IN ( - col2, 65 * - col2 * - - col0, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 94 FROM tab2 AS cor0 WHERE ( + col2 ) * - - col0 * 76 - - ( 86 ) / 43 IS NOT NULL
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1230
SELECT * FROM tab0 WHERE NOT - - col2 + - CAST( - - col0 AS SIGNED ) * col1 * - - col0 < - + ( + col2 ) * + 59
----

skipif mysql # not compatible
query III rowsort label-1230
SELECT * FROM tab0 WHERE NOT - - col2 + - CAST ( - - col0 AS INTEGER ) * col1 * - - col0 < - + ( + col2 ) * + 59
----

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

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

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

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

query I rowsort
SELECT DISTINCT ( 61 ) * - col0 FROM tab1
----
-3111
-5185
-5551

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 81 >= - 92
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + - col0 BETWEEN - - 16 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT ALL - col2 DIV - - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - col2 / - - col2 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT 31 * - COUNT( * ) * - COUNT( ALL 64 ) * - 64 col0 FROM tab0
----
-17856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1237
SELECT 31 * - COUNT ( * ) * - COUNT ( ALL 64 ) * - 64 col0 FROM tab0
----
-17856

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

query II rowsort
SELECT - col1 AS col2, - col2 * col2 * col2 * - + col1 * + 60 AS col2 FROM tab2
----
-51
37231020
-67
784350240
-77
295680000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT DISTINCT + ( MAX( DISTINCT - col2 ) ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT + ( MAX ( DISTINCT - col2 ) ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
177

query I rowsort
SELECT DISTINCT + 2 * 48 AS col1 FROM tab1
----
96

query I rowsort
SELECT 71 + 91 AS col1 FROM tab0
----
162
162
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT - SUM( col0 ) + + 24 AS col1 FROM tab1 WHERE NOT ( + 10 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT - SUM ( col0 ) + + 24 AS col1 FROM tab1 WHERE NOT ( + 10 ) = NULL
----
NULL

query I rowsort
SELECT DISTINCT + 43 - col2 FROM tab0
----
-4
-56
33

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1248
SELECT * FROM tab2 WHERE NOT - col1 <= ( + 15 + - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-1248
SELECT * FROM tab2 WHERE NOT - col1 <= ( + 15 + - ( CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT - 63 * + 54 FROM tab1
----
-3402
-3402
-3402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT DISTINCT CAST( col0 AS SIGNED ) + + col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col1 FROM tab2
----
141
142
97

query I rowsort
SELECT + ( col0 ) - 71 AS col2 FROM tab2
----
-25
-7
4

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

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

query I rowsort
SELECT + col0 * 30 FROM tab0 WHERE NULL IN ( 41 )
----

query I rowsort
SELECT DISTINCT 98 * col1 AS col0 FROM tab0
----
2058
7938
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT COUNT( * ) * - 5 AS col1 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-1256
SELECT COUNT ( * ) * - 5 AS col1 FROM tab2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT COUNT( - 75 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT COUNT ( - 75 ) FROM tab1
----
3

query I rowsort
SELECT ALL 31 / col1 AS col1 FROM tab1 WHERE NOT ( NULL ) < ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + 22 NOT IN ( + 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col1 FROM tab0 WHERE + 65 IS NOT NULL
----
-64
-64
-64

query I rowsort
SELECT ALL col1 * - 14 FROM tab1
----
-196
-658
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL - MAX( + 10 ) * + 28 FROM tab1
----
-280

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL - MAX ( + 10 ) * + 28 FROM tab1
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT - 85 DIV col2 AS col0 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1263
SELECT - 85 / col2 AS col0 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + ( - col0 ) - + col1 AS col2 FROM tab1
----
-138
-65
-90

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 8 ) > col1 * 65 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 86 < ( col2 )
----
51
14
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT + SUM( - col2 ) FROM tab2 WHERE NOT col2 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT + SUM ( - col2 ) FROM tab2 WHERE NOT col2 / col2 IS NOT NULL
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 53 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1272
SELECT - 1 * - COUNT ( * ) AS col0 FROM tab0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-1275
SELECT - + ( - SUM ( - col0 ) ) FROM tab2 cor0
----
-185

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + - col1 AS col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT - AVG ( DISTINCT + col2 ) * - 93 - - 26 FROM tab1 WHERE NOT col1 + 80 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT ALL + MIN( DISTINCT 37 ) DIV COUNT( DISTINCT + col1 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL + MIN ( DISTINCT 37 ) / COUNT ( DISTINCT + col1 ) AS col1 FROM tab2
----
12

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

query I rowsort
SELECT DISTINCT col0 * col1 + col1 AS col2 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab2 AS cor0 WHERE - 92 / - col2 IS NOT NULL
----
35

query I rowsort
SELECT + col1 + + col2 + col1 AS col0 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT + - 24 + col1 * - col0 FROM tab0 AS cor0
----
-121
-1239
-1851

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL AND NOT + ( col1 ) * col1 NOT BETWEEN ( - col1 ) AND 40
----
-59

query I rowsort
SELECT - + col1 + 46 * 53 AS col0 FROM tab1 AS cor0
----
2391
2424
2433

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( 14 + 13 / + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 81 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + + 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT 79 * + - CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1294
SELECT 17 AS col0 FROM tab2 AS cor0 WHERE col0 > ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1294
SELECT 17 AS col0 FROM tab2 AS cor0 WHERE col0 > ( - CAST ( NULL AS REAL ) )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1295
SELECT + ( + - COUNT ( * ) ) * - 64 col1 FROM tab2 AS cor0
----
192

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 8 col0 FROM tab2 AS cor0
----
54
72
83

query II rowsort
SELECT + + col0 AS col1, ( - - col1 ) - - 61 FROM tab1 AS cor0
----
51
75
85
66
91
108

query II rowsort
SELECT 8, 44 - + col0 AS col2 FROM tab1 AS cor0
----
8
-41
8
-47
8
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT COUNT( * ) - - 80 - 51 * + 30 FROM tab2 AS cor0
----
-1447

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT COUNT ( * ) - - 80 - 51 * + 30 FROM tab2 AS cor0
----
-1447

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT - - 19 DIV + ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-19
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT - - 19 / + ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-19
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT col0 - col1 + col2 DIV + ( + col1 ) FROM tab0 AS cor0
----
-66
195
66

skipif mysql # not compatible
query I rowsort label-1303
SELECT col0 - col1 + col2 / + ( + col1 ) FROM tab0 AS cor0
----
-66
195
66

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

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

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

query I rowsort
SELECT ALL - col0 * - col2 - - 74 + + 51 * col2 FROM tab1
----
8098
9730
9866

query III rowsort
SELECT * FROM tab2 WHERE + col0 / 6 - - 89 IS NULL
----

query I rowsort
SELECT - col2 + + - 10 AS col2 FROM tab1
----
-106
-69
-78

query I rowsort
SELECT + ( 69 ) + col2 FROM tab2 WHERE ( - + 77 ) IS NOT NULL
----
109
127
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT col2 + + col1 DIV - col1 col1 FROM tab1
----
58
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1310
SELECT col2 + + col1 / - col1 col1 FROM tab1
----
58
67
95

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

query I rowsort
SELECT col1 * - col0 + + - 97 FROM tab2 AS cor0
----
-2443
-5025
-5122

onlyif mysql # DIV for integer division: 
query I rowsort label-1313
SELECT DISTINCT + 77 DIV + 68 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT + 77 / + 68 FROM tab1 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1315
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 87 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-1316
SELECT * FROM tab0 WHERE NOT + 87 DIV - + col1 NOT IN ( - 4 )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-1316
SELECT * FROM tab0 WHERE NOT + 87 / - + col1 NOT IN ( - 4 )
----
87
21
10

query I rowsort
SELECT - ( + ( ( - col1 ) ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 74 / + - col0 BETWEEN + col0 AND + col0
----
14
47
5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-1319
SELECT + COUNT ( * ) / + COUNT ( * ) * + MAX ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT DISTINCT - SUM( - + 79 ) FROM tab0 cor0
----
237

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT - SUM ( - + 79 ) FROM tab0 cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT DISTINCT CAST( + + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1321
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col1 * + col1 + - 48 + + col0 AS col0 FROM tab1
----
199
2252
62

query I rowsort
SELECT ALL - 16 AS col2 FROM tab1 WHERE - - 7 IS NOT NULL
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - 35 + - col1 + - - col1 * col0 * + ( + 73 ) FROM tab2
----
171172
359632
366723

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT MIN ( + col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT ALL - col1 + - 46 FROM tab1
----
-51
-60
-93

query I rowsort
SELECT ALL + + col2 + + col0 * 95 AS col1 FROM tab2 AS cor0
----
4393
6120
7183

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE col2 + + col2 + + - 8 / + ( - + 62 ) = NULL AND ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT COUNT( * ) + - 87 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-1331
SELECT COUNT ( * ) + - 87 FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1332
SELECT DISTINCT col1 / + col0 / + col1 / 32 * CAST( NULL AS SIGNED ) + + 97 + + 56 * + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT col1 / + col0 / + col1 / 32 * CAST ( NULL AS INTEGER ) + + 97 + + 56 * + col1 FROM tab2
----
NULL

query I rowsort
SELECT + 58 * 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be885d25b3616d991ecce3d1c918b3bf

query II rowsort
SELECT ALL - 84 + col2 AS col2, ( + ( - col1 ) ) * - 78 + + 77 FROM tab2 AS cor0
----
-26
5303
-44
6083
-61
4055

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT DISTINCT + MIN( + col1 ) - - COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + MIN ( + col1 ) - - COUNT ( * ) FROM tab2 AS cor0
----
54

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1339
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT - col1 + - col0 <> - 13
----

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT - col1 + - col0 <> - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL COUNT( - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL COUNT ( - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 WHERE NOT + - 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL + ( MIN( - 85 ) ) * 24 + - COUNT( col0 ) FROM tab1
----
-2043

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL + ( MIN ( - 85 ) ) * 24 + - COUNT ( col0 ) FROM tab1
----
-2043

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT COUNT( * ) * - 89 AS col1 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT COUNT ( * ) * - 89 AS col1 FROM tab0
----
-267

query I rowsort
SELECT DISTINCT col1 - 64 - + col1 FROM tab0 WHERE NOT - col0 IN ( col0 * + - 85 )
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT ALL + 83 DIV - 41 col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1346
SELECT ALL + 83 / - 41 col2 FROM tab2 AS cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 0 IS NOT NULL
----

query II rowsort
SELECT - col2, - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-59
25
-68
2209
-96
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1349
SELECT - 58 DIV - - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-6

skipif mysql # not compatible
query I rowsort label-1349
SELECT - 58 / - - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT MAX( DISTINCT + 67 ) * + - 49 FROM tab0 AS cor0
----
-3283

skipif mysql # not compatible
query I rowsort label-1350
SELECT MAX ( DISTINCT + 67 ) * + - 49 FROM tab0 AS cor0
----
-3283

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

skipif mysql # not compatible
query I rowsort label-1351
SELECT - col1 / + 48 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT MIN( ALL + - col1 ) * 96 FROM tab0 AS cor0
----
-7776

skipif mysql # not compatible
query I rowsort label-1352
SELECT MIN ( ALL + - col1 ) * 96 FROM tab0 AS cor0
----
-7776

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1355
SELECT * FROM tab2 WHERE - col0 * + col1 + + - col1 + col0 + + - CAST( + + col2 AS SIGNED ) = col0
----

skipif mysql # not compatible
query III rowsort label-1355
SELECT * FROM tab2 WHERE - col0 * + col1 + + - col1 + col0 + + - CAST ( + + col2 AS INTEGER ) = col0
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE ( + + col2 ) + 1 <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= 76 + + 33
----

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

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

query I rowsort
SELECT - col0 FROM tab1 WHERE + col2 + col1 <= - - col2
----

query I rowsort
SELECT + 1 + + col0 FROM tab1
----
52
86
92

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT IN ( 59, col1, + - 45 / - col0 + - col2 + + + 93 + - col2 * - + 26 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <= col2
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + - ( - 72 ) > ( NULL )
----

query I rowsort
SELECT - 64 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query II rowsort
SELECT DISTINCT + 35 AS col1, col0 FROM tab0
----
35
15
35
87
35
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL + MIN( 78 ) * + + 11 AS col0 FROM tab0 AS cor0
----
858

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL + MIN ( 78 ) * + + 11 AS col0 FROM tab0 AS cor0
----
858

query I rowsort
SELECT - + 5 - - col2 AS col2 FROM tab1 AS cor0
----
54
63
91

onlyif mysql # DIV for integer division: 
query II rowsort label-1370
SELECT DISTINCT col1 + 25 AS col0, + col0 + - + 22 DIV col1 AS col1 FROM tab2 AS cor0
----
102
64
76
46
92
75

skipif mysql # not compatible
query II rowsort label-1370
SELECT DISTINCT col1 + 25 AS col0, + col0 + - + 22 / col1 AS col1 FROM tab2 AS cor0
----
102
64
76
46
92
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - MIN( - - 36 ) * + - SUM( ALL + col1 ) - - 46 FROM tab0 AS cor0
----
3754

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - MIN ( - - 36 ) * + - SUM ( ALL + col1 ) - - 46 FROM tab0 AS cor0
----
3754

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) NOT IN ( - 83, 25 * col1 - - 41 + - col1 + - 37 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

query II rowsort
SELECT ALL + 24 AS col0, + col1 + col2 FROM tab1 AS cor0
----
24
110
24
115
24
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1378
SELECT + col1 * 89 + + - col2 * + - col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT + col1 * 89 + + - col2 * + - col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT + ( - + 25 ) * - + MIN( + + col2 ) * + + 3 * - - 53 col2 FROM tab0
----
39750

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1379
SELECT + ( - + 25 ) * - + MIN ( + + col2 ) * + + 3 * - - 53 col2 FROM tab0
----
39750

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1381
SELECT ALL * FROM tab1 WHERE ( + + CAST( + - col2 AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-1381
SELECT ALL * FROM tab1 WHERE ( + + CAST ( + - col2 AS INTEGER ) ) < NULL
----

query I rowsort
SELECT DISTINCT 86 * + ( col1 ) FROM tab2
----
4386
5762
6622

query II rowsort
SELECT - ( - col0 ) * col0, - col2 * 8 * 77 + col2 AS col0 FROM tab0
----
225
-28905
7569
-6150
9409
-60885

query I rowsort
SELECT ALL - 31 * - ( col0 ) FROM tab0
----
2697
3007
465

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT NULL IN ( 91 + - col2 - + 26, col1, ( + 27 ) )
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT COUNT( * ) * - 29 AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-1388
SELECT COUNT ( * ) * - 29 AS col1 FROM tab1
----
-87

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL + 4 / - COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - - col0 * + 92 * + - col2 + 86 FROM tab0 AS cor0
----
-64774
-79954
-883390

query I rowsort
SELECT - + ( 67 ) * - col0 AS col1 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT ALL + col0 * - col1 * + col0 AS col1 FROM tab0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1393
SELECT - + 47 * - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-47

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

query I rowsort
SELECT ALL - 86 FROM tab2 AS cor0 WHERE NOT + col2 * col1 + 8 IS NULL
----
-86
-86
-86

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - 93 * + col1 * + col1, - col2 + + col2 col1 FROM tab2
----
-12336543
0
-27970959
0
-42457569
0

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

query I rowsort
SELECT - - col2 + + 36 AS col2 FROM tab0 WHERE - - 66 IS NULL
----

query I rowsort
SELECT - col1 + + ( - 34 ) * + col0 AS col1 FROM tab0
----
-2979
-3299
-591

query I rowsort
SELECT 51 + - col1 AS col2 FROM tab2
----
-16
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-1401
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1402
SELECT * FROM tab2 cor0 WHERE NOT col0 * - col2 * - CAST( NULL AS SIGNED ) + - - col2 * + col1 * + - col0 <> + col1
----

skipif mysql # not compatible
query III rowsort label-1402
SELECT * FROM tab2 cor0 WHERE NOT col0 * - col2 * - CAST ( NULL AS INTEGER ) + - - col2 * + col1 * + - col0 <> + col1
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 77 ) col0 FROM tab0 cor0
----
77

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

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT MAX ( - + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + 15 * - MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
-885

skipif mysql # not compatible
query I rowsort label-1407
SELECT + 15 * - MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
-885

query II rowsort
SELECT col1 AS col1, ( col0 ) * + 63 FROM tab2
----
51
2898
67
4725
77
4032

query I rowsort
SELECT col0 * 10 AS col2 FROM tab2
----
460
640
750

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

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

query I rowsort
SELECT col0 * + 23 * col1 AS col1 FROM tab0
----
2231
27945
42021

query I rowsort
SELECT DISTINCT 83 * + 69 AS col2 FROM tab1
----
5727

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL + MIN( col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1414
SELECT ALL + MIN ( col1 ) col1 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1415
SELECT * FROM tab2 cor0 WHERE NOT ( col1 * - 74 + - col1 + + CAST( col2 AS SIGNED ) + + + col1 * - col0 * + 54 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1415
SELECT * FROM tab2 cor0 WHERE NOT ( col1 * - 74 + - col1 + + CAST ( col2 AS INTEGER ) + + + col1 * - col0 * + 54 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 * + col2 + - 28 - col1 AS col1 FROM tab2 AS cor0
----
1495
3269
450

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

query I rowsort
SELECT - ( - 40 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT - 67 FROM tab0 WHERE NOT + col2 / - col2 IS NOT NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1422
SELECT DISTINCT + - col2 + + 96 DIV - col1 - - col2 DIV + col1 AS col2, - col2 * col2 AS col0 FROM tab1 AS cor0
----
-67
-3481
-69
-4624
-96
-9216

skipif mysql # not compatible
query II rowsort label-1422
SELECT DISTINCT + - col2 + + 96 / - col1 - - col2 / + col1 AS col2, - col2 * col2 AS col0 FROM tab1 AS cor0
----
-67
-3481
-69
-4624
-96
-9216

query I rowsort
SELECT - - 70 * - 70 * ( + - col2 ) AS col0 FROM tab2 cor0
----
112700
196000
284200

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + 29 * - COUNT( * ) + ( + 7 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1424
SELECT + 29 * - COUNT ( * ) + ( + 7 ) FROM tab2 AS cor0
----
-80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + col2 col1 FROM tab0 AS cor0
----
136
47
84

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

skipif mysql # not compatible
query I rowsort label-1427
SELECT 3 / + COUNT ( col2 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL - + COUNT( * ) * + 88 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL - + COUNT ( * ) * + 88 FROM tab2 AS cor0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-1429
SELECT DISTINCT + 62 DIV + 93 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1429
SELECT DISTINCT + 62 / + 93 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 82 + - col1 * - 23 * + + 57 * - 21 FROM tab2
----
-1404163
-1844659
-2119969

query I rowsort
SELECT + 20 + - col2 FROM tab0
----
-27
-79
10

query I rowsort
SELECT DISTINCT col2 + 50 AS col0 FROM tab1
----
109
118
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1433
SELECT + - CAST( + 49 AS SIGNED ) + + + COUNT( * ), - 32 AS col2 FROM tab2 cor0
----
-46
-32

skipif mysql # not compatible
query II rowsort label-1433
SELECT + - CAST ( + 49 AS INTEGER ) + + + COUNT ( * ), - 32 AS col2 FROM tab2 cor0
----
-46
-32

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

query I rowsort
SELECT - + 11 + 42 AS col2 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT + 8 + - 83 + - 49 AS col1 FROM tab1 AS cor0
----
-124
-124
-124

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

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

query I rowsort
SELECT + - col1 * + - col1 + - col0 * 26 FROM tab0 AS cor0
----
-1821
-2521
6171

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT + 48 DIV + 97 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + 48 / + 97 FROM tab0 cor0
----
0

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

query I rowsort
SELECT 12 * 1 * - 89 * - + ( col1 ) FROM tab0
----
1068
22428
86508

query I rowsort
SELECT col2 * 34 * - col1 FROM tab2 AS cor0
----
-104720
-132124
-39882

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1445
SELECT ( - - SUM( 67 ) ) * COUNT( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT ( - - SUM ( 67 ) ) * COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - 97 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 24 AS col1, 25 FROM tab1
----
-24
25
-24
25
-24
25

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

query II rowsort
SELECT DISTINCT + col2 / - col0, + 4 * col1 FROM tab0 WHERE NOT + + 15 <= NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT - 25 DIV - col1 AS col1 FROM tab0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-1453
SELECT - 25 / - col1 AS col1 FROM tab0
----
0
1
25

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + - + col0 col1 FROM tab0 AS cor0
----
-21
-31
51

query I rowsort
SELECT DISTINCT - + col1 * - 67 FROM tab1 AS cor0
----
3149
335
938

query I rowsort
SELECT + 31 FROM tab2 AS cor0 WHERE NOT - 76 + - - col2 IS NOT NULL
----

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

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

query I rowsort
SELECT - 23 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT col1 + + + 5 + + 51 AS col2 FROM tab1
----
103
61
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT DISTINCT CAST( + 63 AS SIGNED ) - - 29 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
92

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT CAST ( + 63 AS INTEGER ) - - 29 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT DISTINCT + 3 * SUM( DISTINCT - + 87 ) FROM tab2 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT + 3 * SUM ( DISTINCT - + 87 ) FROM tab2 cor0
----
-261

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT COUNT( * ) AS col1, - SUM( ALL + ( ( + 37 ) ) ) * COUNT( * ) AS col0 FROM tab0 cor0
----
3
-333

skipif mysql # not compatible
query II rowsort label-1464
SELECT COUNT ( * ) AS col1, - SUM ( ALL + ( ( + 37 ) ) ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
3
-333

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1466
SELECT - col2 * - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1466
SELECT - col2 * - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + - 80 FROM tab2
----
-1840
-3200
-4640

query II rowsort
SELECT - 97 * - 14, - col1 + 90 AS col1 FROM tab0
----
1358
69
1358
89
1358
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT 54 DIV COUNT( * ) * + - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1469
SELECT 54 / COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
-54

query II rowsort
SELECT + 64 - + col2, col2 FROM tab0
----
-35
99
17
47
54
10

query I rowsort
SELECT DISTINCT + ( + + col1 ) * - - col1 * + col0 + 27 + col1 FROM tab0 AS cor0
----
125
38415
98523

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL + + 15 * - 21 + - MIN( 10 ) FROM tab0 AS cor0
----
-325

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL + + 15 * - 21 + - MIN ( 10 ) FROM tab0 AS cor0
----
-325

query I rowsort
SELECT DISTINCT - - 35 + - + 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - 93 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-1474
SELECT - 93 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
279

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

query II rowsort
SELECT + 48 AS col2, - col0 FROM tab1 AS cor0
----
48
-51
48
-85
48
-91

query II rowsort
SELECT + + col2, col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT + col1 * + 61 * + - col1 + - 97 - - col2 * 60 * + 20 - - col2 AS col1 FROM tab2 AS cor0
----
-131135
-204268
-313726

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL ( - MAX( DISTINCT + ( - + col1 ) ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL ( - MAX ( DISTINCT + ( - + col1 ) ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL + COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 >= - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 20 + - col0 FROM tab2
----
-66
-84
-95

query I rowsort
SELECT DISTINCT 37 + - 4 * + 88 AS col0 FROM tab0 AS cor0
----
-315

query I rowsort
SELECT - col2 + - 86 FROM tab2 AS cor0
----
-109
-126
-144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND + 59
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - 32 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-35

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

query III rowsort
SELECT ALL * FROM tab1 WHERE 97 = col1 * + 51
----

query I rowsort
SELECT ALL - 33 + - - col2 FROM tab0
----
-23
14
66

query I rowsort
SELECT 21 * - + 93 AS col2 FROM tab1
----
-1953
-1953
-1953

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

query I rowsort
SELECT DISTINCT 17 + col1 FROM tab2 AS cor0
----
68
84
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1494
SELECT ALL + + col1 + + 82 + + + 52 * + col2 * - - CAST( - col0 AS SIGNED ), col0 FROM tab1 AS cor0
----
-254496
51
-260693
85
-321647
91

skipif mysql # not compatible
query II rowsort label-1494
SELECT ALL + + col1 + + 82 + + + 52 * + col2 * - - CAST ( - col0 AS INTEGER ), col0 FROM tab1 AS cor0
----
-254496
51
-260693
85
-321647
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL + - MIN( - col1 ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL + - MIN ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT + + 76 * 54 - + col1 FROM tab0 AS cor0
----
4023
4083
4103

query I rowsort
SELECT ALL - 77 - - 64 AS col2 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - col2 - - col1 AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT col0 - 61 AS col0 FROM tab1 cor0
----
-10
24
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT ALL - - col1 * col2 + col2 DIV + - col1 + + col1 * 99 AS col2 FROM tab2 AS cor0
----
10519
10703
6222

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL - - col1 * col2 + col2 / + - col1 + + col1 * 99 AS col2 FROM tab2 AS cor0
----
10519
10703
6222

query I rowsort
SELECT + - col1 - + 69 AS col2 FROM tab2 AS cor0
----
-120
-136
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT - ( 69 ) - - SUM( - col2 ) FROM tab1 AS cor0
----
-292

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT - ( 69 ) - - SUM ( - col2 ) FROM tab1 AS cor0
----
-292

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

skipif mysql # not compatible
query I rowsort label-1504
SELECT + COUNT ( * ) FROM tab0 WHERE NULL <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1505
SELECT DISTINCT + col0 AS col1, CAST( - - col1 AS SIGNED ) AS col2 FROM tab0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-1505
SELECT DISTINCT + col0 AS col1, CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0
----
15
81
87
21
97
1

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

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

query I rowsort
SELECT - col1 + + - 35 FROM tab1
----
-40
-49
-82

query I rowsort
SELECT DISTINCT col0 + + + col0 * - - col2 - 10 FROM tab0
----
710
947
9690

query I rowsort
SELECT DISTINCT - - col0 * 34 FROM tab1 AS cor0
----
1734
2890
3094

query I rowsort
SELECT DISTINCT + 3 * col2 AS col0 FROM tab1 AS cor0
----
177
204
288

query I rowsort
SELECT DISTINCT + 93 * col2 FROM tab2 AS cor0
----
2139
3720
5394

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT - 64 * + ( - col0 ) FROM tab2 AS cor0
----
2944
4096
4800

query I rowsort
SELECT - col1 * 84 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * - + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT col0 * - col0 + col1 * + - col1 FROM tab0
----
-6786
-8010
-9410

query II rowsort
SELECT DISTINCT 0 + + - col0 * + col2 AS col0, col2 AS col1 FROM tab1
----
-4896
96
-5015
59
-6188
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1519
SELECT col0 + + CAST( + 62 AS SIGNED ) col0, - CAST( - 3 AS SIGNED ) + - + col2 DIV - 9 FROM tab1
----
113
13
147
9
153
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1519
SELECT col0 + + CAST ( + 62 AS INTEGER ) col0, - CAST ( - 3 AS INTEGER ) + - + col2 / - 9 FROM tab1
----
113
13
147
9
153
10

query I rowsort
SELECT - col2 + 69 FROM tab2
----
11
29
46

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 BETWEEN col0 * - + col1 * col0 + - 0 AND - col2 + col2 / - + col1
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT MAX( ALL + - 2 ) FROM tab1 AS cor0 WHERE 30 * + + 57 IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-1524
SELECT MAX ( ALL + - 2 ) FROM tab1 AS cor0 WHERE 30 * + + 57 IS NOT NULL
----
-2

query I rowsort
SELECT DISTINCT - ( + col0 ) + + 34 FROM tab2 AS cor0
----
-12
-30
-41

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 - + + 89 IS NULL
----

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

query I rowsort
SELECT DISTINCT + 0 * - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT + 87 * + SUM( DISTINCT col2 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
40716

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT + 87 * + SUM ( DISTINCT col2 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
40716

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT SUM( - 2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-1530
SELECT SUM ( - 2 ) FROM tab2
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT - SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1532
SELECT - SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 * 7 IS NOT NULL
----

query I rowsort
SELECT - col1 * - 91 * + col1 FROM tab0 cor0
----
40131
597051
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1535
SELECT 17 AS col0, - SUM( - - ( + ( col0 ) ) ) AS col1 FROM tab1 AS cor0
----
17
-227

skipif mysql # not compatible
query II rowsort label-1535
SELECT 17 AS col0, - SUM ( - - ( + ( col0 ) ) ) AS col1 FROM tab1 AS cor0
----
17
-227

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT + - COUNT( * ) col0, - ( + + 46 ) FROM tab2 AS cor0
----
-3
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1539
SELECT + - COUNT ( * ) col0, - ( + + 46 ) FROM tab2 AS cor0
----
-3
-46

query I rowsort
SELECT ALL + col0 + + - col0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - - col2 NOT BETWEEN - + col0 * - col0 + + - col2 AND 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + col0 ) + - 79 FROM tab0
----
-64
18
8

query I rowsort
SELECT DISTINCT col2 * col2 + + 89 FROM tab0
----
189
2298
9890

query I rowsort
SELECT ALL - - col2 + + col1 AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT col2 * ( + - 83 ) + - col1 * + 74 FROM tab0 AS cor0
----
-2384
-8291
-9895

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT + col2 DIV - + 31 - + 74 col1 FROM tab0 AS cor0
----
-74
-75
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1546
SELECT DISTINCT + col2 / - + 31 - + 74 col1 FROM tab0 AS cor0
----
-74
-75
-77

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

query I rowsort
SELECT 32 + + + col1 AS col1 FROM tab2 AS cor0
----
109
83
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT COUNT( ALL col1 ) * + 99 AS col1, + COUNT( - ( 99 ) ) + + + 60 - COUNT( * ) col2 FROM tab0
----
297
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1550
SELECT COUNT ( ALL col1 ) * + 99 AS col1, + COUNT ( - ( 99 ) ) + + + 60 - COUNT ( * ) col2 FROM tab0
----
297
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query II rowsort
SELECT DISTINCT + - col1 * - - col2 + - - col1 * - + col1 * col2 AS col1, col1 / - col1 AS col0 FROM tab1 WHERE + + 47 * col0 * + 21 + 71 IS NULL
----

query I rowsort
SELECT ALL 16 + - col2 AS col0 FROM tab1
----
-43
-52
-80

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

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL - 47 - + col0 * CAST ( NULL AS INTEGER ) * + 67 - - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1555
SELECT DISTINCT 29 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT 29 - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 7 - + col1 FROM tab1 AS cor0
----
-12
-21
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL 88 * COUNT( * ) AS col0 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL 88 * COUNT ( * ) AS col0 FROM tab2
----
264

query I rowsort
SELECT DISTINCT + col2 * + col1 * + 83 FROM tab1
----
111552
24485
265268

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - - col1 + col0 < col1
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT 89 DIV MAX( DISTINCT - + col1 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1561
SELECT 89 / MAX ( DISTINCT - + col1 ) FROM tab2
----
-1

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT col0 * - 71 IS NOT NULL )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - ( - + col0 ) / - 13
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + - col0 + col0 - col1, col2 * - 44 * + col2 + - 74 * - + col2, + col1, - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT - ( - - ( CAST( - - col0 AS SIGNED ) ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1565
SELECT - ( - - ( CAST ( - - col0 AS INTEGER ) ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT - 60 * - COUNT( * ) * + + 96 col0 FROM tab2
----
17280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1566
SELECT DISTINCT - 60 * - COUNT ( * ) * + + 96 col0 FROM tab2
----
17280

query I rowsort
SELECT + col1 * - + 39 FROM tab0
----
-3159
-39
-819

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT ALL SUM( ALL - 14 ) AS col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL SUM ( ALL - 14 ) AS col2 FROM tab2 AS cor0
----
-42

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 * - - 6 * - col0 + - col0 * + ( 6 ) + + col1 col0 FROM tab0 cor0
----
-20859
-23279
-3519

query I rowsort
SELECT + + col0 + + 76 AS col1 FROM tab0 AS cor0
----
163
173
91

query I rowsort
SELECT 83 + + col0 FROM tab2 AS cor0
----
129
147
158

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

query I rowsort
SELECT ALL + 97 * - col2 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT - ( + col0 ) * + + ( + + 33 ) AS col1 FROM tab1
----
-1683
-2805
-3003

query II rowsort
SELECT - 83 AS col2, col0 * + - 15 FROM tab2
----
-83
-1125
-83
-690
-83
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - 1 * + col0 * col0 FROM tab2
----
46
-2116
64
-4096
75
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL - MIN( + col0 ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2 + + + col1 * - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL - MIN ( + col0 ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2 + + + col1 * - + col0 )
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL >= 19
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 7 = + col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 * - 70 + + col1 col0 FROM tab2 AS cor0
----
-1393
-1403
-1419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT - col0 + - CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-1584
SELECT - col0 + - CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT 80 * - - 4 * + 39 + + + 74 FROM tab0
----
12554
12554
12554

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1586
SELECT - CAST( NULL AS SIGNED ), + col0 * - ( - col2 ) - + 60 * ( + 97 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT + col0 BETWEEN + 20 AND + col2 )
----
NULL
-805
NULL
368

skipif mysql # not compatible
query II rowsort label-1586
SELECT - CAST ( NULL AS INTEGER ), + col0 * - ( - col2 ) - + 60 * ( + 97 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT + col0 BETWEEN + 20 AND + col2 )
----
NULL
-805
NULL
368

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

query I rowsort
SELECT ( ( - + col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + - 98 AS col0 FROM tab2 cor0
----
-98
-98
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL SUM( DISTINCT - 57 ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL SUM ( DISTINCT - 57 ) FROM tab0
----
-57

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

skipif mysql # not compatible
query I rowsort label-1592
SELECT + 45 * - COUNT ( * ) FROM tab2
----
-135

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT + 58 AS col2 FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) IS NULL
----
58
58
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 - - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL COUNT( 23 ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL COUNT ( 23 ) AS col1 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT - MAX( + - 33 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT - MAX ( + - 33 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL - COUNT( * ) - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - COUNT ( * ) - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col2, - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
-14
85
-5
91
-47

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( ( ( NOT ( NOT NULL IS NULL ) ) ) )
----

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

query I rowsort
SELECT ALL col2 * - + ( - 63 ) + 45 + + + col1 * - - col2 AS col2 FROM tab2 AS cor0
----
2667
5645
7585

query I rowsort
SELECT 42 * col1 * col2 AS col0 FROM tab2 AS cor0
----
129360
163212
49266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 59 col2 FROM tab2 AS cor0
----
3009
3953
4543

query I rowsort
SELECT ( - - col1 ) - 2 * - 26 FROM tab0 cor0 WHERE 50 * + - 81 IS NOT NULL
----
133
53
73

query I rowsort
SELECT 88 * + col0 + + + col2 AS col1 FROM tab0 AS cor0
----
1367
7666
8635

query I rowsort
SELECT + ( 11 ) * + col2 + + col2 FROM tab2 AS cor0
----
276
480
696

query I rowsort
SELECT + 78 * - col1 AS col0 FROM tab0 cor0
----
-1638
-6318
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col2 FROM tab1 cor0
----
-1344
-295
-3196

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

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

query I rowsort
SELECT 35 + - 74 AS col1 FROM tab0 WHERE - ( col2 ) - - - col0 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT - - col1 + col1 DIV - col2 + col0 FROM tab0 AS cor0
----
106
95
98

skipif mysql # not compatible
query I rowsort label-1613
SELECT - - col1 + col1 / - col2 + col0 FROM tab0 AS cor0
----
106
95
98

onlyif mysql # DIV for integer division: 
query II rowsort label-1614
SELECT col0, col1 DIV - - 7 - + + col1 + - - col0 AS col0 FROM tab2
----
46
2
64
-2
75
17

skipif mysql # not compatible
query II rowsort label-1614
SELECT col0, col1 / - - 7 - + + col1 + - - col0 AS col0 FROM tab2
----
46
2
64
-2
75
17

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1616
SELECT ALL + - col2 / - + col2 col2 FROM tab2 AS cor0
----
1
1
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT MAX( DISTINCT - CAST( + 74 AS SIGNED ) ) FROM tab2 AS cor0
----
-74

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT - + COUNT( ALL + - col0 ) DIV + 1 FROM tab2 AS cor0
----
-3

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT ALL + col1 col1 FROM tab0 cor0 WHERE + col2 NOT IN ( - + col1, 82 * + CAST( - col0 AS SIGNED ) )
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1624
SELECT ALL + col1 col1 FROM tab0 cor0 WHERE + col2 NOT IN ( - + col1, 82 * + CAST ( - col0 AS INTEGER ) )
----
1
21
81

query I rowsort
SELECT ALL + - ( ( + 37 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 76, + col2 col2 FROM tab0
----
-76
10
-76
47
-76
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1628
SELECT 26 AS col0, CAST( - SUM( + + 83 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26
-747

skipif mysql # not compatible
query II rowsort label-1628
SELECT 26 AS col0, CAST ( - SUM ( + + 83 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26
-747

query II rowsort
SELECT 44 AS col1, - col2 AS col0 FROM tab0
----
44
-10
44
-47
44
-99

query III rowsort
SELECT * FROM tab0 WHERE + col2 * 73 * - ( - col1 ) + - col2 = - 48 * + + 55
----

query I rowsort
SELECT + 69 + - ( - 99 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
168
168
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - 43 - + COUNT( * ) + 39 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-1632
SELECT - 43 - + COUNT ( * ) + 39 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-4

query I rowsort
SELECT + col2 * col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT MIN( DISTINCT col1 ) * - ( + 93 ) AS col2 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1634
SELECT MIN ( DISTINCT col1 ) * - ( + 93 ) AS col2 FROM tab0 AS cor0
----
-93

query I rowsort
SELECT DISTINCT col1 * - col0 + - 96 AS col1 FROM tab0
----
-1311
-1923
-193

onlyif mysql # DIV for integer division: 
query I rowsort label-1636
SELECT - col2 DIV ( col0 ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1636
SELECT - col2 / ( col0 ) FROM tab0
----
-1
-3
0

query I rowsort
SELECT 39 * - 11 FROM tab1
----
-429
-429
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT MIN( col2 ) * - + 51 * + 98 AS col1 FROM tab2
----
-114954

skipif mysql # not compatible
query I rowsort label-1638
SELECT MIN ( col2 ) * - + 51 * + 98 AS col1 FROM tab2
----
-114954

query I rowsort
SELECT ALL + col2 * - 65 + + - col2 + + 89 AS col0 FROM tab2
----
-1429
-2551
-3739

query I rowsort
SELECT col0 * - - 38 AS col1 FROM tab1
----
1938
3230
3458

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 10 IS NULL
----

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

query II rowsort
SELECT DISTINCT + 95 - 79 AS col0, 90 * + 92 AS col2 FROM tab1 AS cor0
----
16
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL + MAX( + 1 ) - - + 92 FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + MAX ( + 1 ) - - + 92 FROM tab1 cor0
----
93

query I rowsort
SELECT + - col0 + + 40 + + + col0 FROM tab1 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col0 + 71 col1 FROM tab1 AS cor0
----
59
156
68
162
96
122

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

query II rowsort
SELECT DISTINCT 3, col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND - ( - - col2 )
----

query I rowsort
SELECT 46 - - - ( 35 ) + 53 FROM tab0 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
64
64
64

query II rowsort
SELECT + col0 AS col0, - col2 + - col1 + 30 AS col1 FROM tab0 AS cor0
----
15
-98
87
-1
97
-70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + - 62 BETWEEN - - 0 + + col2 * - col2 AND + 33 * - col0
----

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

query I rowsort
SELECT DISTINCT 52 * + col0 FROM tab0 AS cor0
----
4524
5044
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 5, + col2 * + col0 * - col2 + col2 col1 FROM tab0
----
5
-33088
5
-8690
5
-950598

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

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

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

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT 90 / - col0 AS col0 FROM tab1
----
-1
0

query II rowsort
SELECT ALL - ( - 96 ) AS col2, - col0 FROM tab1
----
96
-51
96
-85
96
-91

query I rowsort
SELECT ALL + - col2 * + ( + + 31 ) FROM tab1 WHERE - 86 <= col2
----
-1829
-2108
-2976

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

query I rowsort
SELECT + ( - col1 ) * - 55 FROM tab0
----
1155
4455
55

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( - col0 ) + 21 - - col1 col2, + col2 * + 1 AS col1 FROM tab2 AS cor0
----
13
58
26
23
34
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL + 25 * MAX( - col1 ) AS col1 FROM tab1
----
-125

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + 25 * MAX ( - col1 ) AS col1 FROM tab1
----
-125

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 92 - + 82 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT + - col0 <= - - col0 * - + col2 - - - 75
----
-3

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT + - col0 <= - - col0 * - + col2 - - - 75
----
-3

query I rowsort
SELECT + + 99 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT DISTINCT COUNT( * ) AS col0, COUNT( 27 ) + 12 AS col1 FROM tab1
----
3
15

skipif mysql # not compatible
query II rowsort label-1667
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( 27 ) + 12 AS col1 FROM tab1
----
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT DISTINCT + 20 + - SUM( + col1 ) AS col0 FROM tab2
----
-175

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + 20 + - SUM ( + col1 ) AS col0 FROM tab2
----
-175

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

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

query I rowsort
SELECT col2 + + col2 + + col2 AS col2 FROM tab0
----
141
297
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1671
SELECT COUNT( * ) DIV - MIN( ALL 90 ) - + COUNT( + - ( + col1 ) ) + + 7 AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1671
SELECT COUNT ( * ) / - MIN ( ALL 90 ) - + COUNT ( + - ( + col1 ) ) + + 7 AS col1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT - ( - AVG ( - - col1 ) ) AS col2 FROM tab2 cor0 WHERE 36 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 26 / + - 51 - + col1 NOT IN ( col0, col2, + - col0 - - 83, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT 46 * 30 + + col0 FROM tab0
----
1395
1467
1477

query I rowsort
SELECT col2 * 73 - + col2 AS col0 FROM tab2
----
1656
2880
4176

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

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

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT - MIN( ALL - col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1679
SELECT - MIN ( ALL - col0 ) AS col2 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 25 col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 - - col2 col1 FROM tab2
----
108
73
90

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

query I rowsort
SELECT ALL - ( - col1 ) * - 47 - col2 AS col2 FROM tab1
----
-2277
-294
-754

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 31 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - ( - 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT + col2 FROM tab2 AS cor0 WHERE - col0 + CAST( NULL AS SIGNED ) >= + 23
----

skipif mysql # not compatible
query I rowsort label-1688
SELECT + col2 FROM tab2 AS cor0 WHERE - col0 + CAST ( NULL AS INTEGER ) >= + 23
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 / + 48 - 79 ) >= ( 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL + MAX( DISTINCT 21 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + MAX ( DISTINCT 21 ) FROM tab1 AS cor0
----
21

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

query I rowsort
SELECT 76 + - ( + col1 ) FROM tab2
----
-1
25
9

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

skipif mysql # not compatible
query III rowsort label-1693
SELECT DISTINCT * FROM tab0 WHERE col0 + CAST ( NULL AS INTEGER ) BETWEEN + 72 + 93 * + col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT + ( ( COUNT( * ) ) ) + MAX( col1 + col0 ) FROM tab2
----
145

skipif mysql # not compatible
query I rowsort label-1694
SELECT + ( ( COUNT ( * ) ) ) + MAX ( col1 + col0 ) FROM tab2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT DISTINCT - COUNT( * ) + - COUNT( - col0 ) * + 67 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - COUNT ( * ) + - COUNT ( - col0 ) * + 67 FROM tab2 AS cor0
----
-204

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 39 / - col0 ) <> + ( - col2 )
----

query I rowsort
SELECT ALL - + col2 - - 8 AS col0 FROM tab2 cor0
----
-15
-32
-50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 23 NOT BETWEEN - col2 AND col0
----

query I rowsort
SELECT ALL + - 17 AS col0 FROM tab1 AS cor0
----
-17
-17
-17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT - CAST( ( AVG ( DISTINCT col2 ) ) AS SIGNED ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-1703
SELECT - CAST ( ( AVG ( DISTINCT col2 ) ) AS INTEGER ) FROM tab1
----
-74

query I rowsort
SELECT DISTINCT - col1 * ( + col0 ) + col2 AS col0 FROM tab1
----
-366
-4209
-618

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

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

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

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

query I rowsort
SELECT ALL - col2 + - col1 * - 18 AS col0 FROM tab0
----
-81
1411
368

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( + 70 ) < ( - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( + 70 ) < ( - 93 )
----
0

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

skipif mysql # not compatible
query I rowsort label-1709
SELECT COUNT ( ALL - 68 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( 25 )
----

skipif mysql # not compatible
query I rowsort label-1710
SELECT CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( 25 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT ALL 13 FROM tab1 WHERE - CAST( CAST( 32 AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL 13 FROM tab1 WHERE - CAST ( CAST ( 32 AS INTEGER ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1714
SELECT - 20 + COUNT( * ) DIV - 15 AS col2 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT ( NULL ) > 81
----
-20

skipif mysql # not compatible
query I rowsort label-1714
SELECT - 20 + COUNT ( * ) / - 15 AS col2 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT ( NULL ) > 81
----
-20

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1715
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT ( 61 ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 * 86 + - 20 / - col1 ) NOT BETWEEN + col2 * col0 + + col0 / - 14 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1717
SELECT + + CAST( NULL AS DECIMAL ), + COUNT( - + 65 ) AS col2 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1717
SELECT + + CAST ( NULL AS REAL ), + COUNT ( - + 65 ) AS col2 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT + MIN( 13 ) * - ( + 21 ) AS col1 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1719
SELECT + MIN ( 13 ) * - ( + 21 ) AS col1 FROM tab2 AS cor0
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1720
SELECT + MIN( ALL - 32 ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1720
SELECT + MIN ( ALL - 32 ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 93 AND 30 * - ( 77 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT ALL + ( + col2 ) DIV ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + ( + col2 ) / ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 * + - 21 AS col1 FROM tab0
----
-2079
-210
-987

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 64 + + col1 BETWEEN ( - col2 ) AND ( + 6 )
----
46
51
23
75
67
58

query I rowsort
SELECT DISTINCT - col1 + - 75 * - col1 FROM tab2
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT + + 93 ) col2 FROM tab2
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1727
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT + + 93 ) col2 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL COUNT( * ) + 52 AS col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL COUNT ( * ) + 52 AS col1 FROM tab0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL COUNT( * ) + + MAX( - ( + ( col0 ) ) ) col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1729
SELECT ALL COUNT ( * ) + + MAX ( - ( + ( col0 ) ) ) col1 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT 35 + + col1 + - col2 FROM tab1 AS cor0
----
-19
-47
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + 82 + - - SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1731
SELECT + 82 + - - SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT col0 + - col2 - 42 AS col0 FROM tab0 AS cor0
----
-44
-74
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - MIN( ALL 17 ) + + 18 - - ( ( 81 ) ) * COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
730

skipif mysql # not compatible
query I rowsort label-1734
SELECT - MIN ( ALL 17 ) + + 18 - - ( ( 81 ) ) * COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
730

query I rowsort
SELECT + col2 FROM tab1 WHERE - col0 / + + 89 * - 61 / + col1 + ( - col1 ) NOT IN ( + col0 + col0 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL MAX( DISTINCT 7 ) + - - CAST( + 11 AS SIGNED ) - + COUNT( * ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL MAX ( DISTINCT 7 ) + - - CAST ( + 11 AS INTEGER ) - + COUNT ( * ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1737
SELECT 30 * - - COUNT( ( 87 ) ) * - MIN( ALL col0 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE 54 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT 30 * - - COUNT ( ( 87 ) ) * - MIN ( ALL col0 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE 54 IS NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 WHERE col0 = ( + + col0 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT - 75 * + col2 * 72 + - CAST( + - col2 AS SIGNED ) - - 79 FROM tab2 AS cor0
----
-124098
-215881
-313063

skipif mysql # not compatible
query I rowsort label-1740
SELECT - 75 * + col2 * 72 + - CAST ( + - col2 AS INTEGER ) - - 79 FROM tab2 AS cor0
----
-124098
-215881
-313063

query I rowsort
SELECT + col1 - - + ( - 97 ) AS col2 FROM tab0 AS cor0
----
-16
-76
-96

query I rowsort
SELECT DISTINCT - col1 * col0 - + col2 + col1 AS col1 FROM tab0 AS cor0
----
-1181
-1816
-195

query I rowsort
SELECT DISTINCT + - col0 - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1664
-3439
-575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT COUNT( * ) col0 FROM tab2, tab2 cor0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL + COUNT( * ) * SUM( ALL 7 ) AS col1 FROM tab2 WHERE NOT + 60 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + COUNT ( * ) * SUM ( ALL 7 ) AS col1 FROM tab2 WHERE NOT + 60 < NULL
----
NULL

query II rowsort
SELECT 93 * + col2 AS col0, 11 FROM tab2
----
2139
11
3720
11
5394
11

query II rowsort
SELECT ALL - 82, + col2 AS col1 FROM tab2
----
-82
23
-82
40
-82
58

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

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

query II rowsort
SELECT col2 AS col1, col1 - 19 * 64 FROM tab0
----
10
-1195
47
-1135
99
-1215

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

query II rowsort
SELECT + col1 AS col0, + col2 + col1 AS col1 FROM tab1
----
14
110
47
115
5
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 26 ) col2 FROM tab0 cor0
----
-26
-26
-26

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

skipif mysql # not compatible
query II rowsort label-1756
SELECT DISTINCT + col1, - col2 + CAST ( NULL AS INTEGER ) + ( - col1 ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL - + col2 col0 FROM tab0 WHERE + 39 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1757
SELECT ALL - + col2 col0 FROM tab0 WHERE + 39 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1758
SELECT - col0 AS col2 FROM tab0 WHERE NOT col0 = + 84 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1758
SELECT - col0 AS col2 FROM tab0 WHERE NOT col0 = + 84 * CAST ( NULL AS REAL )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1761
SELECT - col0 DIV - 25 - CAST( + + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-50
-64
-75

skipif mysql # not compatible
query I rowsort label-1761
SELECT - col0 / - 25 - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-50
-64
-75

query II rowsort
SELECT ALL 99 * - col2, + col2 AS col2 FROM tab2 AS cor0
----
-2277
23
-3960
40
-5742
58

query I rowsort
SELECT DISTINCT ( - - 45 ) AS col1 FROM tab1 AS cor0
----
45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - 89 + 16 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + 14 / - col0
----

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

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

query II rowsort
SELECT DISTINCT col2 AS col1, col0 * 18 FROM tab0
----
10
1566
47
270
99
1746

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT DISTINCT + + COUNT( ALL + - 63 ) AS col1 FROM tab2 WHERE 19 < - - 73 + + col1 + + 31
----
3

skipif mysql # not compatible
query I rowsort label-1771
SELECT DISTINCT + + COUNT ( ALL + - 63 ) AS col1 FROM tab2 WHERE 19 < - - 73 + + col1 + + 31
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT ALL 22 + 61 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
1425
2462
3560

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL 22 + 61 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
1425
2462
3560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 74 * + 78 + + + col1 col2 FROM tab2
----
-51
5823
-67
5839
-77
5849

query II rowsort
SELECT col0, + col2 + - 80 FROM tab0
----
15
-33
87
-70
97
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1775
SELECT + 0 AS col0, - COUNT( * ) col0 FROM tab1
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1775
SELECT + 0 AS col0, - COUNT ( * ) col0 FROM tab1
----
0
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1776
SELECT CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) + + + 60 * - 17 AS col0 FROM tab2
----
NULL
-1023

skipif mysql # not compatible
query II rowsort label-1776
SELECT CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + + + 60 * - 17 AS col0 FROM tab2
----
NULL
-1023

query I rowsort
SELECT DISTINCT col2 * + 75 AS col2 FROM tab2
----
1725
3000
4350

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

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

query I rowsort
SELECT DISTINCT + col2 * 19 + - 31 AS col1 FROM tab0 AS cor0
----
159
1850
862

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

skipif mysql # not compatible
query I rowsort label-1780
SELECT + - COUNT ( * ) + 50 FROM tab2 AS cor0 WHERE col0 IS NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL - 18 + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - 18 + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 75 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
75

query I rowsort
SELECT + col1 + - - 58 AS col2 FROM tab2 WHERE ( NULL IS NULL )
----
109
125
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - MAX( - 9 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1784
SELECT - MAX ( - 9 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT 98 AS col2 FROM tab0 cor0 WHERE ( col1 * + ( - 46 ) + + 47 * - ( - col2 ) ) IN ( - 78 )
----

query I rowsort
SELECT ALL - 65 + - col1 FROM tab0 AS cor0
----
-146
-66
-86

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * - col1 - - col2 FROM tab2 AS cor0
----
2624
4547
5969

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

query I rowsort
SELECT DISTINCT - ( + col0 ) + col2 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - + 37 col2, 49 FROM tab0 AS cor0
----
-22
49
50
49
60
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col0 FROM tab0 AS cor0 WHERE ( 76 + 45 + - - 90 * + 49 * - + col2 * col0 * - 2 + + 10 + - col1 ) >= - col0
----
52
52
52

query I rowsort
SELECT ALL - col1 * + 22 AS col0 FROM tab2
----
-1122
-1474
-1694

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

query I rowsort
SELECT 62 * + ( + col0 ) AS col1 FROM tab1
----
3162
5270
5642

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( + - col1 )
----

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

skipif mysql # not compatible
query II rowsort label-1798
SELECT ALL col0, col2 / + CAST ( NULL AS INTEGER ) * + 65 FROM tab0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT + 74 AS col0, col0 + + ( + col2 ) FROM tab0 WHERE NOT NULL NOT IN ( + col2 * - 70 )
----

query I rowsort
SELECT DISTINCT - col1 * + - 76 FROM tab2
----
3876
5092
5852

query I rowsort
SELECT ALL + 41 * - + 7 FROM tab1 cor0
----
-287
-287
-287

query I rowsort
SELECT ( - - col1 ) 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 + 85 col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + - SUM( - 47 ) FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-1804
SELECT + - SUM ( - 47 ) FROM tab1 cor0
----
141

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

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

query II rowsort
SELECT ALL + - col0 AS col0, + 50 FROM tab1 AS cor0
----
-51
50
-85
50
-91
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT ALL col0 DIV - - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL col0 / - - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-14
-4
-46

query I rowsort
SELECT DISTINCT ( - ( - - 17 ) ) FROM tab0 AS cor0
----
-17

query II rowsort
SELECT ALL - 89, + col2 AS col2 FROM tab2 AS cor0
----
-89
23
-89
40
-89
58

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

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT - SUM ( DISTINCT - col0 ) FROM tab1
----
227

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

query I rowsort
SELECT - 80 - col1 * col0 FROM tab1 AS cor0
----
-4357
-505
-794

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

query I rowsort
SELECT ALL ( + - 31 ) + - - 15 * 68 FROM tab1 AS cor0
----
989
989
989

query I rowsort
SELECT + col2 - - - 11 FROM tab1 AS cor0
----
48
57
85

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

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

query II rowsort
SELECT + col0, 72 AS col1 FROM tab0 AS cor0
----
15
72
87
72
97
72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 24 + + col0 * - col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 33 col0, + col2 + + col0 FROM tab2 AS cor0
----
33
104
33
133
33
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT - COUNT( * ) * + COUNT( * ) * 99 FROM tab2
----
-891

skipif mysql # not compatible
query I rowsort label-1822
SELECT - COUNT ( * ) * + COUNT ( * ) * 99 FROM tab2
----
-891

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT + SUM( - - 49 ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-1824
SELECT + SUM ( - - 49 ) FROM tab2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL 62 * 34 * - - COUNT( * ) AS col0 FROM tab2
----
6324

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 62 * 34 * - - COUNT ( * ) AS col0 FROM tab2
----
6324

query I rowsort
SELECT DISTINCT col0 * + - col0 * + 70 AS col0 FROM tab2
----
-148120
-286720
-393750

query I rowsort
SELECT DISTINCT - col2 * - col1 * - 68 AS col0 FROM tab1
----
-20060
-217328
-91392

query I rowsort
SELECT col0 * + ( + + 15 ) FROM tab2
----
1125
690
960

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

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT AVG ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT + + ( 40 ) + col2 AS col2 FROM tab2 WHERE NOT col1 NOT BETWEEN - 10 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT + MAX( ALL - 49 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND - CAST( + + 75 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT + MAX ( ALL - 49 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND - CAST ( + + 75 AS INTEGER )
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1832
SELECT DISTINCT - 96 col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-96
3

query I rowsort
SELECT ALL + col2 * + ( + col0 ) + - + col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT + col0 + - 15 AS col2 FROM tab1 AS cor0
----
36
70
76

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

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

query II rowsort
SELECT DISTINCT + 23 + 89 * - - col0 + col1 AS col1, col1 * - 46 AS col1 FROM tab1
----
4576
-644
7593
-230
8169
-2162

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT DISTINCT 15 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT 15 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - 56 / col1
----

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

query I rowsort
SELECT ALL + - col1 + - ( ( - col0 ) ) * - col0 AS col0 FROM tab1 AS cor0
----
-2615
-7230
-8328

query I rowsort
SELECT DISTINCT - col2 + + 7 AS col0 FROM tab1 AS cor0
----
-52
-61
-89

query I rowsort
SELECT - 83 - + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT ALL - col1 + - col1 * col0 DIV col0 FROM tab2
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL - col1 + - col1 * col0 / col0 FROM tab2
----
-102
-134
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1845
SELECT CAST( NULL AS SIGNED ) + + + SUM( DISTINCT - + 44 ) / - MAX( ALL - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT CAST ( NULL AS INTEGER ) + + + SUM ( DISTINCT - + 44 ) / - MAX ( ALL - col1 ) FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1847
SELECT - COUNT( * ) * - 72, 19 * + ( 30 ) AS col1 FROM tab1 AS cor0
----
216
570

skipif mysql # not compatible
query II rowsort label-1847
SELECT - COUNT ( * ) * - 72, 19 * + ( 30 ) AS col1 FROM tab1 AS cor0
----
216
570

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 51
----

query I rowsort
SELECT DISTINCT + - col0 * + 68 * - 14 FROM tab2 AS cor0
----
43792
60928
71400

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

skipif mysql # not compatible
query I rowsort label-1853
SELECT - SUM ( + col1 ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1855
SELECT - CAST( NULL AS SIGNED ) / + + col2, 10 + + ( - - col1 ) AS col1 FROM tab0 WHERE NOT - col2 = + 66
----
NULL
11
NULL
31
NULL
91

skipif mysql # not compatible
query II rowsort label-1855
SELECT - CAST ( NULL AS INTEGER ) / + + col2, 10 + + ( - - col1 ) AS col1 FROM tab0 WHERE NOT - col2 = + 66
----
NULL
11
NULL
31
NULL
91

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

query I rowsort
SELECT DISTINCT col1 * + ( 15 ) AS col2 FROM tab2
----
1005
1155
765

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT ALL + 90 DIV + col1 AS col2 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + 90 / + col1 AS col2 FROM tab1
----
1
18
6

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

skipif mysql # not compatible
query I rowsort label-1859
SELECT CAST ( + 61 AS INTEGER ) FROM tab2
----
61
61
61

query I rowsort
SELECT DISTINCT 6 * + + col1 FROM tab0
----
126
486
6

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + - ( col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT col0 + + + ( + col0 ) FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL col0 * + - 58 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-1866
SELECT DISTINCT 45 * + - 16 AS col0, MIN( ALL col2 ) AS col1 FROM tab0
----
-720
10

skipif mysql # not compatible
query II rowsort label-1866
SELECT DISTINCT 45 * + - 16 AS col0, MIN ( ALL col2 ) AS col1 FROM tab0
----
-720
10

query I rowsort
SELECT ALL - ( + col1 ) * - - col2 + - - col0 - + col0 FROM tab2
----
-1173
-3080
-3886

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + SUM( ALL + col2 ) * - 66 AS col0 FROM tab0 AS cor0
----
-10296

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + SUM ( ALL + col2 ) * - 66 AS col0 FROM tab0 AS cor0
----
-10296

query I rowsort
SELECT - + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT MAX( ALL - 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1871
SELECT MAX ( ALL - 80 ) FROM tab2 AS cor0
----
-80

query I rowsort
SELECT ALL + + col2 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
237160
260362
59823

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( 78 )
----
0

skipif mysql # not compatible
query I rowsort label-1874
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( 78 )
----
0

query II rowsort
SELECT ALL - 24 - col2, col2 FROM tab2 AS cor0
----
-47
23
-64
40
-82
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT DISTINCT - - ( - CAST( 20 AS SIGNED ) ) FROM tab1 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT - - ( - CAST ( 20 AS INTEGER ) ) FROM tab1 cor0
----
-20

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE + 85 IS NULL
----

query I rowsort
SELECT DISTINCT - - 68 FROM tab2 WHERE NOT NULL IS NOT NULL
----
68

query I rowsort
SELECT ALL 97 + + - col1 AS col1 FROM tab2
----
20
30
46

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + + 78, - col0, + col2, 75 )
----

query I rowsort
SELECT ALL + col2 + 77 AS col0 FROM tab0
----
124
176
87

query I rowsort
SELECT - 67 * + - col1 + - + col1 AS col2 FROM tab1 AS cor0
----
3102
330
924

query II rowsort
SELECT ALL col2 + - + col1 + - col0, + col0 AS col1 FROM tab2 AS cor0
----
-101
64
-74
46
-84
75

query II rowsort
SELECT ALL + ( + 97 ) + - col1 AS col1, col2 + - col1 AS col0 FROM tab1 AS cor0
----
50
21
83
82
92
54

query I rowsort
SELECT DISTINCT + 10 - - col2 FROM tab0 AS cor0
----
109
20
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT + COUNT( * ) + + + MIN( + 17 ) col2 FROM tab0 WHERE NOT col0 NOT BETWEEN - col0 AND + col1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1888
SELECT + COUNT ( * ) + + + MIN ( + 17 ) col2 FROM tab0 WHERE NOT col0 NOT BETWEEN - col0 AND + col1
----
18

query I rowsort
SELECT ALL + 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1890
SELECT CAST( + 16 AS SIGNED ) DIV - COUNT( * ) + + + 99 AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-1890
SELECT CAST ( + 16 AS INTEGER ) / - COUNT ( * ) + + + 99 AS col2 FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT - COUNT( ALL + col1 ) * - + 8 * - - 45 FROM tab0 AS cor0
----
1080

skipif mysql # not compatible
query I rowsort label-1891
SELECT - COUNT ( ALL + col1 ) * - + 8 * - - 45 FROM tab0 AS cor0
----
1080

query I rowsort
SELECT ALL col1 * - col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) >= + col2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - 93 + - - col0 IS NOT NULL
----

query I rowsort
SELECT + 24 * col1 + - - 93 FROM tab0 cor0
----
117
2037
597

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1895
SELECT - 82, 16 * - + col1 + + col1 + + col1 + - - col0 + + col1 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-82
NULL
-82
NULL
-82
NULL

skipif mysql # not compatible
query II rowsort label-1895
SELECT - 82, 16 * - + col1 + + col1 + + col1 + - - col0 + + col1 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-82
NULL
-82
NULL
-82
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT - + 5 DIV - + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1896
SELECT - + 5 / - + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - + MAX( - + col0 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1897
SELECT - + MAX ( - + col0 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-153

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

query I rowsort
SELECT ALL + + 42 * - - col1 AS col0 FROM tab0 AS cor0
----
3402
42
882

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

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

query I rowsort
SELECT DISTINCT + col1 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 57 = + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT DISTINCT - + COUNT( * ) * + - 66 * - + MAX( - 54 ) FROM tab1 AS cor0
----
10692

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT - + COUNT ( * ) * + - 66 * - + MAX ( - 54 ) FROM tab1 AS cor0
----
10692

query I rowsort
SELECT DISTINCT - - 81 - - col0 * ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4815
-4934
-6107

query II rowsort
SELECT col1 * col1 * col0 * - + 41 AS col1, col1 AS col0 FROM tab2
----
-13803675
67
-15557696
77
-4905486
51

query I rowsort
SELECT ALL 91 + - col2 AS col1 FROM tab2
----
33
51
68

query I rowsort
SELECT DISTINCT - 88 + 28 FROM tab1
----
-60

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - - col1 * - ( - - col1 ) >= - col2
----
51
14
96
91
47
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT DISTINCT - 96 DIV - col0 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT - 96 / - col0 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL SUM( ALL - 81 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND - ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL SUM ( ALL - 81 ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND - ( col0 )
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1917
SELECT - ( + ( - 5 ) ) DIV - - col2, col2 col0 FROM tab0
----
0
10
0
47
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1917
SELECT - ( + ( - 5 ) ) / - - col2, col2 col0 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL + - 39 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 45 - - - ( col2 ) FROM tab1
----
-14
-23
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT COUNT( * ) * 65 AS col0 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-1921
SELECT COUNT ( * ) * 65 AS col0 FROM tab0
----
195

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

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) < col0 * 30 )
----

query I rowsort
SELECT - col1 * 11 AS col0 FROM tab0 cor0
----
-11
-231
-891

query I rowsort
SELECT - col2 * + - 8 - - col1 + + col0 + 44 * col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 36 * - 26 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 36 * - 26 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT - + 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-1927
SELECT - + col0 / - 61 col0 FROM tab0 AS cor0
----
0
1
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1928
SELECT ALL + - 18 / + ( - + ( COUNT ( * ) ) ) col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT DISTINCT - 37 col2 FROM tab1 AS cor0 WHERE - col0 * 52 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1929
SELECT DISTINCT - 37 col2 FROM tab1 AS cor0 WHERE - col0 * 52 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT ALL + 45 + - + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + 45 + - + COUNT ( * ) FROM tab2
----
42

query I rowsort
SELECT ALL - 18 * 81 FROM tab0
----
-1458
-1458
-1458

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < + 76
----

query I rowsort
SELECT - 39 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
25
36
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + + col2 ) * + - col0 * - col1 col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ( - COUNT( * ) ) col1 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1935
SELECT ( - COUNT ( * ) ) col1 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT + col0 / col0 / col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT + col0 / col0 / col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1938
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * + + col2 * col2 + - col1 / - CAST( - + 77 AS SIGNED ) + - 13, + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1938
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * + + col2 * col2 + - col1 / - CAST ( - + 77 AS INTEGER ) + - 13, + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - col0 - - + 20 FROM tab1 AS cor0
----
-31
-65
-71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 86 <= + 11
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= 37
----

query I rowsort
SELECT + col1 - - col1 + + 83 AS col0 FROM tab1 AS cor0
----
111
177
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT COUNT( * ) - 26 * + 30 FROM tab0 AS cor0
----
-777

skipif mysql # not compatible
query I rowsort label-1943
SELECT COUNT ( * ) - 26 * + 30 FROM tab0 AS cor0
----
-777

query I rowsort
SELECT + ( - 95 ) + + + col2 AS col2 FROM tab0 AS cor0
----
-48
-85
4

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) >= col1 / col0 * + col1
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT - col0 / - 56 + - CAST( NULL AS SIGNED ) / + 19 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1946
SELECT - col0 / - 56 + - CAST ( NULL AS INTEGER ) / + 19 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 + + + col2 AS col0 FROM tab1
----
125
134
162

query I rowsort
SELECT ( - - 76 ) + + + ( + - col2 ) + - + 3 AS col1 FROM tab1
----
-23
14
5

query I rowsort
SELECT DISTINCT 85 * + + 62 AS col2 FROM tab1
----
5270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1950
SELECT ALL * FROM tab0 WHERE 57 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1950
SELECT ALL * FROM tab0 WHERE 57 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 < + col1
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT 91 * - 20 * + MAX( DISTINCT + ( - - col1 ) ) col2 FROM tab2
----
-140140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1952
SELECT 91 * - 20 * + MAX ( DISTINCT + ( - - col1 ) ) col2 FROM tab2
----
-140140

query I rowsort
SELECT ( + ( + - 54 ) ) * col2 AS col1 FROM tab2
----
-1242
-2160
-3132

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT DISTINCT + col2 DIV - col2 + col1 DIV col2 DIV + col0 + - ( 74 ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + col2 / - col2 + col1 / col2 / + col0 + - ( 74 ) AS col2 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT ALL 92 * + 19 FROM tab2
----
1748
1748
1748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT 60 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT 60 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - + col1 AS col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1958
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( * ) AS col2, 52 AS col1 FROM tab0
----
-1
52

skipif mysql # not compatible
query II rowsort label-1958
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( * ) AS col2, 52 AS col1 FROM tab0
----
-1
52

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT ALL CAST( + 88 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL CAST ( + 88 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT MIN( 16 ) AS col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1961
SELECT MIN ( 16 ) AS col1 FROM tab2 AS cor0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT - col0 * - + col1 DIV col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1962
SELECT - col0 * - + col1 / col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + col1 + + - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + 16
----

query I rowsort
SELECT ALL - 87 FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL + 67 + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 61 ) * + 4 AND + col2
----
67

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + 67 + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 61 ) * + 4 AND + col2
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col2 col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL 77 + + COUNT( DISTINCT + - 42 ) * + 18 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL 77 + + COUNT ( DISTINCT + - 42 ) * + 18 FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT MAX( 50 ) AS col1 FROM tab0, tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1968
SELECT MAX ( 50 ) AS col1 FROM tab0, tab0 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT - CAST( NULL AS SIGNED ) * col1 + + - col1 FROM tab0 WHERE NULL NOT BETWEEN - col0 + + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1969
SELECT - CAST ( NULL AS INTEGER ) * col1 + + - col1 FROM tab0 WHERE NULL NOT BETWEEN - col0 + + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT ALL - 10 DIV - - 80 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - 10 / - - 80 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1971
SELECT * FROM tab0 WHERE ( CAST( 7 AS SIGNED ) / + 17 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1971
SELECT * FROM tab0 WHERE ( CAST ( 7 AS INTEGER ) / + 17 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT MIN( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1972
SELECT MIN ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1973
SELECT ALL - col1 AS col0, - ( - - CAST( - + col0 AS SIGNED ) ) + + - col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

skipif mysql # not compatible
query II rowsort label-1973
SELECT ALL - col1 AS col0, - ( - - CAST ( - + col0 AS INTEGER ) ) + + - col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 = + 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 64 + - 18 + col2 AS col2 FROM tab2
----
-24
-42
-59

query II rowsort
SELECT 51 + 82, + 88 AS col0 FROM tab2
----
133
88
133
88
133
88

query I rowsort
SELECT ALL ( - - 22 ) FROM tab2
----
22
22
22

query I rowsort
SELECT DISTINCT ( - - 41 ) + col1 + - col0 FROM tab1
----
-3
-39
4

query I rowsort
SELECT ALL - + col1 - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * - + col0 col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT ALL - col1 + + 72 FROM tab0 AS cor0
----
-9
51
71

query I rowsort
SELECT - col2 - 60 AS col1 FROM tab0
----
-107
-159
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT - 51 * ( + - MIN( + 50 ) ) AS col0 FROM tab0
----
2550

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT - 51 * ( + - MIN ( + 50 ) ) AS col0 FROM tab0
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - 28 - + 21 - COUNT( * ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-1984
SELECT - 28 - + 21 - COUNT ( * ) FROM tab1
----
-52

query I rowsort
SELECT ALL col2 - col1 + - 10 FROM tab1
----
11
44
72

query II rowsort
SELECT ALL col2 * col1, ( + col2 ) AS col0 FROM tab0
----
210
10
3807
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + COUNT( * ) * - 22 AS col2 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-1987
SELECT + COUNT ( * ) * - 22 AS col2 FROM tab0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT DISTINCT COUNT( + + col1 ) DIV + 77 + 9 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT COUNT ( + + col1 ) / + 77 + 9 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT 4 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT 4 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 62 * + + 26 AS col1 FROM tab2
----
1612
1612
1612

query I rowsort
SELECT DISTINCT + 89 * - 15 * - 77 FROM tab1
----
102795

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL COUNT( + 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL COUNT ( + 3 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL - 38 * - SUM( + col0 ) * - 16 AS col0 FROM tab0 AS cor0
----
-120992

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL - 38 * - SUM ( + col0 ) * - 16 AS col0 FROM tab0 AS cor0
----
-120992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1994
SELECT - + COUNT( * ) * + CAST( NULL AS SIGNED ) / - ( + 97 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - ( + 97 ) FROM tab1 cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 64 = - 49
----

query I rowsort
SELECT - 53 * + + 85 AS col1 FROM tab0 AS cor0
----
-4505
-4505
-4505

query I rowsort
SELECT DISTINCT 76 + col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + MAX( DISTINCT - - 65 ) AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + MAX ( DISTINCT - - 65 ) AS col0 FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT ALL - COUNT( * ) * + SUM( - 79 ) - - AVG ( ALL - col2 ) + COUNT( ALL + CAST( NULL AS SIGNED ) ) * - 24 FROM tab2 AS cor0 WHERE NOT col2 - - + col1 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL - COUNT ( * ) * + SUM ( - 79 ) - - AVG ( ALL - col2 ) + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - 24 FROM tab2 AS cor0 WHERE NOT col2 - - + col1 + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT col0 * + 68 * - col0 + 40 AS col0 FROM tab0 cor0
----
-15260
-514652
-639772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2001
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 74 * + - col0 FROM tab1 AS cor0
----
3774
6290
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ( - + COUNT( * ) ) * + 40 AS col1 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-2003
SELECT ( - + COUNT ( * ) ) * + 40 AS col1 FROM tab2 AS cor0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 + col0 col0 FROM tab1
----
101
135
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col1 + - - 89 col0 FROM tab0
----
89
89
89

query II rowsort
SELECT col1, col2 / - + 65 FROM tab0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + 99 AS col2 FROM tab1 WHERE col2 NOT IN ( - - col2 + - 34 )
----
1386
4653
495

query I rowsort
SELECT DISTINCT - 23 + + + col2 FROM tab2
----
0
17
35

query I rowsort
SELECT + + 84 + - - col1 FROM tab0 AS cor0
----
105
165
85

query II rowsort
SELECT - col1 * - col1 * - 12 + - 63, col0 FROM tab0 AS cor0
----
-5355
87
-75
97
-78795
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT - - ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT - - ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT - COUNT( * ) * - + SUM( DISTINCT - - 26 ) * + - 54 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-4215

skipif mysql # not compatible
query I rowsort label-2012
SELECT - COUNT ( * ) * - + SUM ( DISTINCT - - 26 ) * + - 54 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-4215

query I rowsort
SELECT - col0 * - - 20 AS col0 FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT 59 + - + COUNT( * ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 59 + - + COUNT ( * ) FROM tab1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT - + col2 * ( + - col2 ) DIV - + col0 - 74 * - 44 - + + col1 + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
3028
3154
3226

skipif mysql # not compatible
query I rowsort label-2015
SELECT - + col2 * ( + - col2 ) / - + col0 - 74 * - 44 - + + col1 + col0 / - col2 AS col1 FROM tab0 AS cor0
----
3028
3154
3226

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT MIN( ALL + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT MIN ( ALL + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL COUNT( DISTINCT - 23 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL COUNT ( DISTINCT - 23 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL + MIN( + + 39 ) AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + MIN ( + + 39 ) AS col1 FROM tab0 AS cor0
----
39

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 <> + col1 + - col2 / 37 * col2
----

query I rowsort
SELECT DISTINCT ( + col0 ) * + 19 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2021
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT DISTINCT CAST( col1 AS SIGNED ) * + 67 AS col2 FROM tab2
----
3417
4489
5159

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + 67 AS col2 FROM tab2
----
3417
4489
5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col0 - col2 * 65 col1 FROM tab2 WHERE NOT - col0 + + col0 IS NULL
----
1255
2328
851

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2025
SELECT COUNT( * ), - 17 AS col1 FROM tab0
----
3
-17

skipif mysql # not compatible
query II rowsort label-2025
SELECT COUNT ( * ), - 17 AS col1 FROM tab0
----
3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT - COUNT( * ) * + 26 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-2026
SELECT - COUNT ( * ) * + 26 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + MIN( + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2027
SELECT + MIN ( + col2 ) FROM tab0
----
10

query II rowsort
SELECT - col2 AS col1, - 95 * - col0 - + - 64 FROM tab2 AS cor0
----
-23
4434
-40
6144
-58
7189

query II rowsort
SELECT DISTINCT 91 + col0, - 9 AS col1 FROM tab1 cor0 WHERE - col1 + + col2 * - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2030
SELECT col2, + col0 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT 22 + col0 * col1 <= - 69 * col2
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2030
SELECT col2, + col0 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT 22 + col0 * col1 <= - 69 * col2
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2031
SELECT 98 + - COUNT( * ) + - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT 98 + - COUNT ( * ) + - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 17 * + col2 FROM tab2 cor0
----
391
680
986

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2035
SELECT + 36 + 16 * - 78, COUNT( * ) AS col1 FROM tab0
----
-1212
3

skipif mysql # not compatible
query II rowsort label-2035
SELECT + 36 + 16 * - 78, COUNT ( * ) AS col1 FROM tab0
----
-1212
3

query I rowsort
SELECT ALL 85 + - col0 FROM tab1
----
-6
0
34

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2, + col0, col0 * - 38 )
----

query I rowsort
SELECT ALL + 22 * - col0 FROM tab1
----
-1122
-1870
-2002

query III rowsort
SELECT ALL * FROM tab0 WHERE 47 * - 63 >= NULL
----

query I rowsort
SELECT ALL + 89 * + col2 FROM tab0
----
4183
8811
890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2041
SELECT MAX( ALL - col0 ) * COUNT( * ) DIV + + 35 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2041
SELECT MAX ( ALL - col0 ) * COUNT ( * ) / + + 35 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2042
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2042
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT ALL MAX( 89 ) + + - ( + CAST( NULL AS SIGNED ) ) + - - 27 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL MAX ( 89 ) + + - ( + CAST ( NULL AS INTEGER ) ) + - - 27 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT DISTINCT + 95 DIV - col2 AS col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT + 95 / - col2 AS col2 FROM tab2
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL COUNT( * ) - + 23 FROM tab1 WHERE + col0 BETWEEN + + col0 + - 83 AND NULL
----
-23

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL COUNT ( * ) - + 23 FROM tab1 WHERE + col0 BETWEEN + + col0 + - 83 AND NULL
----
-23

query I rowsort
SELECT ALL + col1 + - 66 FROM tab0
----
-45
-65
15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - col1 * + col2 + + col2 > - col1
----
15
81
47
87
21
10

query II rowsort
SELECT - col0 AS col0, - col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT DISTINCT + col0 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT ALL + + col1 - - col1 * - 46 * + col0 FROM tab1 AS cor0
----
-19545
-196695
-32830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col0 * 13 * + 78 + - col2 col1 FROM tab0
----
-15242
-88141
-98360

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT DISTINCT + + MAX( - ( 68 ) ) AS col0 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT + + MAX ( - ( 68 ) ) AS col0 FROM tab0 AS cor0
----
-68

query II rowsort
SELECT DISTINCT ( + col2 ) * col2, 87 AS col0 FROM tab1 AS cor0 WHERE col1 + + + 46 <= col2
----
3481
87
9216
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - 86 <> - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT COUNT( * ) * + SUM( ALL - + 34 ) AS col0 FROM tab0
----
-306

skipif mysql # not compatible
query I rowsort label-2056
SELECT COUNT ( * ) * + SUM ( ALL - + 34 ) AS col0 FROM tab0
----
-306

query I rowsort
SELECT - ( + 1 ) FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL MAX( - - 42 ) AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL MAX ( - - 42 ) AS col2 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT - MAX( ALL + 65 ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - MAX ( ALL + 65 ) FROM tab2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT ( ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT ( ( + COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT col0 + col1 + 42 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * ( + + col2 ) AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 62 * col2 <> + - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL COUNT( * ) * - MAX( - col1 ) * - + AVG ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL COUNT ( * ) * - MAX ( - col1 ) * - + AVG ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL 33 * - - ( col1 ) AS col2 FROM tab2 AS cor0
----
1683
2211
2541

query I rowsort
SELECT 82 AS col0 FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
82
82
82

query I rowsort
SELECT ALL - 84 + + 24 AS col0 FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT DISTINCT - - col2 + 23 + col1 * + 94 * CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NOT - col0 + + + CAST( col0 AS SIGNED ) <= col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2068
SELECT DISTINCT - - col2 + 23 + col1 * + 94 * CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NOT - col0 + + + CAST ( col0 AS INTEGER ) <= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT DISTINCT - 33 DIV 85 + 85 + col1 + - - ( + 5 ) + + col0 AS col0 FROM tab1 cor0
----
155
180
228

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - 33 / 85 + 85 + col1 + - - ( + 5 ) + + col0 AS col0 FROM tab1 cor0
----
155
180
228

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 49 + - - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT ALL + col0 + col0 DIV 89 AS col0 FROM tab0 AS cor0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + col0 + col0 / 89 AS col0 FROM tab0 AS cor0
----
15
87
98

query I rowsort
SELECT + - 89 * - 67 + + col2 FROM tab1 AS cor0
----
6022
6031
6059

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT ALL - ( - col2 ) DIV - - 97 * col0 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2073
SELECT ALL - ( - col2 ) / - - 97 * col0 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, 85 + + 86 FROM tab2 AS cor0
----
-46
171
-64
171
-75
171

query I rowsort
SELECT ALL - col1 * - col0 - + + col1 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT - col2 + + col2 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - 94 + - col0 + - - 66 FROM tab2
----
-103
-74
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT DISTINCT - col1 DIV - + col1 + + col1 col2 FROM tab1
----
15
48
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2078
SELECT DISTINCT - col1 / - + col1 + + col1 col2 FROM tab1
----
15
48
6

query I rowsort
SELECT DISTINCT col2 * - col2 * - col0 FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT 26 * 66 + + - col1 + - - CAST( - col2 AS SIGNED ) - + col2 * + col1 col0 FROM tab0
----
-2219
1475
1517

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2080
SELECT 26 * 66 + + - col1 + - - CAST ( - col2 AS INTEGER ) - + col2 * + col1 col0 FROM tab0
----
-2219
1475
1517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18 + + - col0 AS col1, + 94 col1 FROM tab0
----
-69
94
-79
94
3
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT DISTINCT + ( - col0 ) * + col1 + CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1230
-1914
-194

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + ( - col0 ) * + col1 + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2083
SELECT DISTINCT CAST( NULL AS SIGNED ) col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2083
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT + - CAST( NULL AS SIGNED ) * + + 14 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT + - CAST ( NULL AS INTEGER ) * + + 14 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT 9, + COUNT( * ) col1 FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2086
SELECT 9, + COUNT ( * ) col1 FROM tab1 AS cor0
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL MIN( DISTINCT + 52 ) col2 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2087
SELECT ALL MIN ( DISTINCT + 52 ) col2 FROM tab2 AS cor0
----
52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 * - - ( 97 )
----

query II rowsort
SELECT ALL col2, col2 * col0 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT 65 * - + 97 NOT IN ( + + ( - - col2 ), + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2091
SELECT - col1 AS col2, CAST( + ( - col0 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-14
-51
-47
-91
-5
-85

skipif mysql # not compatible
query II rowsort label-2091
SELECT - col1 AS col2, CAST ( + ( - col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-14
-51
-47
-91
-5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + ( - + COUNT( * ) ) * + 99 AS col1 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2092
SELECT + ( - + COUNT ( * ) ) * + 99 AS col1 FROM tab2 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT - - ( - MAX( ALL - col1 ) ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2093
SELECT - - ( - MAX ( ALL - col1 ) ) FROM tab0 cor0
----
1

query I rowsort
SELECT + col0 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + ( col1 ) IS NULL
----
138
65
90

query I rowsort
SELECT + col2 * + + col0 FROM tab0 WHERE ( ( NULL > col1 * + 88 ) )
----

query I rowsort
SELECT - 13 * + col0 + + 17 FROM tab1
----
-1088
-1166
-646

query I rowsort
SELECT ALL - - col0 + + 34 AS col0 FROM tab1 AS cor0
----
119
125
85

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT ALL - 86 DIV ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - 86 / ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT ( SUM( DISTINCT + - col2 ) ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT ( SUM ( DISTINCT + - col2 ) ) FROM tab2 cor0
----
-121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 + + col0 - col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 90 - - + 96 + col0, 4 col1 FROM tab2 AS cor0
----
232
4
250
4
261
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT DISTINCT CAST( - + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT - COUNT( * ) + - 68 + - - 7 AS col2 FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT - COUNT ( * ) + - 68 + - - 7 AS col2 FROM tab0 cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT + COUNT( * ) * + SUM( - col2 ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-2106
SELECT + COUNT ( * ) * + SUM ( - col2 ) FROM tab0 AS cor0
----
-468

query I rowsort
SELECT - col1 * - + col1 * - + col2 AS col2 FROM tab2
----
-237160
-260362
-59823

query II rowsort
SELECT ALL - col2 AS col0, 63 FROM tab2
----
-23
63
-40
63
-58
63

query I rowsort
SELECT - 15 / - + col0 FROM tab1 WHERE NULL > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2110
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) * - 2 BETWEEN 34 AND - + 91
----

skipif mysql # not compatible
query III rowsort label-2110
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - 2 BETWEEN 34 AND - + 91
----

query I rowsort
SELECT ALL - 47 + + col2 + + 64 FROM tab0 AS cor0
----
116
27
64

query I rowsort
SELECT DISTINCT + 90 FROM tab2 AS cor0 WHERE col1 <> 80 + + + 57
----
90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 * 30 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT ALL - col2 - + + col0 DIV - col2 FROM tab0 AS cor0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - col2 - + + col0 / - col2 FROM tab0 AS cor0
----
-2
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT + + MIN( col2 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2115
SELECT + + MIN ( col2 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
62

query I rowsort
SELECT ALL - 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL - COUNT( * ) * - - 38 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - COUNT ( * ) * - - 38 FROM tab0
----
-114

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 - + col2 ) >= col1 + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 81 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2120
SELECT DISTINCT + - ( + + CAST( NULL AS SIGNED ) ) AS col2, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-2120
SELECT DISTINCT + - ( + + CAST ( NULL AS INTEGER ) ) AS col2, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col1 AS col2, + col0 + - ( + col1 ) col1 FROM tab0 AS cor0
----
-1215
-66
-1827
66
-97
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT - COUNT( * ) DIV - 50 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2122
SELECT - COUNT ( * ) / - 50 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT - - CAST( + col0 AS SIGNED ), col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-2123
SELECT - - CAST ( + col0 AS INTEGER ), col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL + - 58 * + COUNT( * ) + + 83 + - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + - 58 * + COUNT ( * ) + + 83 + - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-94

query II rowsort
SELECT DISTINCT - col0 AS col2, + 54 AS col0 FROM tab0
----
-15
54
-87
54
-97
54

query I rowsort
SELECT ALL + 11 * - - 91 AS col1 FROM tab1
----
1001
1001
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + 14 + + + COUNT( * ) col2 FROM tab2 WHERE NOT 21 * 63 NOT BETWEEN - 60 AND - col0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2127
SELECT + 14 + + + COUNT ( * ) col2 FROM tab2 WHERE NOT 21 * 63 NOT BETWEEN - 60 AND - col0
----
14

query I rowsort
SELECT ALL + ( - + col1 ) AS col1 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + 6 AS col0, - col1 * + + col2 AS col1 FROM tab1 AS cor0
----
6
-1344
6
-295
6
-3196

query I rowsort
SELECT DISTINCT - - 59 FROM tab0 AS cor0 WHERE NOT + 23 * + 4 * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col2 + - ( + 89 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 45 * - col2 + 23 * - - 69 + - - 72 AS col2 FROM tab2 AS cor0
----
-141
-951
624

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * - ( 98 ) AS col0 FROM tab0 AS cor0
----
-2058
-7938
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT + CAST( col1 AS SIGNED ) * - 69 AS col0 FROM tab0 WHERE NOT - col2 <= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2136
SELECT + CAST ( col1 AS INTEGER ) * - 69 AS col0 FROM tab0 WHERE NOT - col2 <= ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 72 ) IS NULL
----

query I rowsort
SELECT 81 + + 21 FROM tab2
----
102
102
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2139
SELECT ALL * FROM tab1 WHERE NOT + col2 - col2 * + ( + ( ( col1 ) ) ) BETWEEN ( CAST( + col2 AS SIGNED ) + 21 ) AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2139
SELECT ALL * FROM tab1 WHERE NOT + col2 - col2 * + ( + ( ( col1 ) ) ) BETWEEN ( CAST ( + col2 AS INTEGER ) + 21 ) AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 98 ) + col2 * + 98 AS col0 FROM tab1
----
5880
6762
9506

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT + ( - col2 ) * - 37 NOT BETWEEN NULL AND 81
----
0

skipif mysql # not compatible
query I rowsort label-2142
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + ( - col2 ) * - 37 NOT BETWEEN NULL AND 81
----
0

query I rowsort
SELECT ALL + 77 * 32 AS col1 FROM tab1
----
2464
2464
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL - COUNT( * ) * 75 AS col1 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - COUNT ( * ) * 75 AS col1 FROM tab0
----
-225

query I rowsort
SELECT + ( 7 ) AS col0 FROM tab0
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( col0 ) - 55 <= ( col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + 0 > col2 * col0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT DISTINCT col2 DIV 53 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT col2 / 53 AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + 26 - - col0 AS col0 FROM tab0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT + MAX( ALL + col0 ) AS col2 FROM tab1 WHERE ( col0 * col2 + - col2 ) NOT IN ( 9 + col0 )
----
91

skipif mysql # not compatible
query I rowsort label-2150
SELECT + MAX ( ALL + col0 ) AS col2 FROM tab1 WHERE ( col0 * col2 + - col2 ) NOT IN ( 9 + col0 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT - MAX( - col1 ) AS col0 FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT - MAX ( - col1 ) AS col0 FROM tab2 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2152
SELECT * FROM tab0 WHERE + col2 / - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2152
SELECT * FROM tab0 WHERE + col2 / - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + MIN( col1 ) * + COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2153
SELECT + MIN ( col1 ) * + COUNT ( * ) AS col0 FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 67 + + col1 * - 29 ) NOT IN ( 12 / - col2 + col2 / + 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT + CAST( NULL AS SIGNED ) * - 27 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT + CAST ( NULL AS INTEGER ) * - 27 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) * 56 + col2 AS col1 FROM tab1
----
2952
4819
5164

query I rowsort
SELECT 47 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE ( + col2 * - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE ( + col2 * - col2 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 + - col2 col2 FROM tab0
----
-17
-69
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) + MAX( 26 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - 79 AND ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) + MAX ( 26 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - 79 AND ( - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT MAX( 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT MAX ( 91 ) FROM tab2
----
91

query I rowsort
SELECT DISTINCT + col1 * + 51 FROM tab1
----
2397
255
714

query I rowsort
SELECT ALL col0 - col2 * - 99 AS col0 FROM tab0 cor0
----
1077
4668
9898

query I rowsort
SELECT 75 AS col2 FROM tab0 cor0
----
75
75
75

query I rowsort
SELECT + col1 * ( + 83 ) AS col0 FROM tab2 AS cor0
----
4233
5561
6391

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 + - 76 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL - COUNT( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL - COUNT ( DISTINCT col1 ) AS col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE 52 / 34 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 91 + col0 * - col0 NOT BETWEEN col2 + + col2 AND + 20 * col1
----

query I rowsort
SELECT - 87 AS col0 FROM tab1 AS cor0 WHERE NOT 75 / - col1 IS NOT NULL
----

query I rowsort
SELECT - - 26 * - col0 AS col1 FROM tab2 AS cor0
----
-1196
-1664
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT DISTINCT + SUM( DISTINCT + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT + SUM ( DISTINCT + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT + col2 * + 12 FROM tab1 cor0
----
1152
708
816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2175
SELECT * FROM tab2 WHERE NOT + col0 + ( 19 ) = 23 - CAST( + 46 + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2175
SELECT * FROM tab2 WHERE NOT + col0 + ( 19 ) = 23 - CAST ( + 46 + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL 33 + SUM( ALL 75 ) FROM tab0 WHERE ( NULL ) <> ( + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL 33 + SUM ( ALL 75 ) FROM tab0 WHERE ( NULL ) <> ( + 70 )
----
NULL

query I rowsort
SELECT + 67 FROM tab1 WHERE NOT ( + ( 61 ) / + col1 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 81 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2179
SELECT DISTINCT * FROM tab2 WHERE NULL < col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2179
SELECT DISTINCT * FROM tab2 WHERE NULL < col1 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT COUNT( * ) * + 62 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT COUNT ( * ) * + 62 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + + 7 FROM tab2
----
30
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT + 59 * + - COUNT( * ) col0 FROM tab1
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2182
SELECT + 59 * + - COUNT ( * ) col0 FROM tab1
----
-177

query I rowsort
SELECT ALL - col1 + 83 * ( col1 * ( - col1 ) ) AS col0 FROM tab1
----
-16282
-183394
-2080

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 - - col0 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > 61
----

query I rowsort
SELECT + 25 * + - 24 FROM tab2
----
-600
-600
-600

query III rowsort
SELECT * FROM tab0 WHERE NOT + 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 col1 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT 33 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 43 * - col2 + - col0 * - 11 IS NULL
----
36

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT 33 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 43 * - col2 + - col0 * - 11 IS NULL
----
36

query I rowsort
SELECT + + col0 * col0 - 71 FROM tab0 AS cor0
----
154
7498
9338

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT + MIN( ALL col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 + - col1 ) < ( - col1 - + col2 )
----

query I rowsort
SELECT ALL col2 * - - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + col1 * + col1 + 45 AS col2 FROM tab2 cor0
----
2646
4534
5974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT - 64 + + CAST( col2 AS SIGNED ) FROM tab1
----
-5
32
4

skipif mysql # not compatible
query I rowsort label-2195
SELECT - 64 + + CAST ( col2 AS INTEGER ) FROM tab1
----
-5
32
4

query I rowsort
SELECT ALL ( col1 ) AS col1 FROM tab2 WHERE col1 / + col1 <= + ( 22 ) * 40
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT - SUM( DISTINCT + - 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT - SUM ( DISTINCT + - 98 ) FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL + SUM( col1 ) * - - 95 + + 67 AS col2 FROM tab2
----
18592

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL + SUM ( col1 ) * - - 95 + + 67 AS col2 FROM tab2
----
18592

query I rowsort
SELECT ALL + 39 - + ( - + col0 ) + + 77 * 54 AS col1 FROM tab1
----
4248
4282
4288

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2200
SELECT CAST( - col1 AS SIGNED ) + + + 98 + col2 DIV col0 * CAST( - 3 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
81
93

skipif mysql # not compatible
query I rowsort label-2200
SELECT CAST ( - col1 AS INTEGER ) + + + 98 + col2 / col0 * CAST ( - 3 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
81
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT + col1 + - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-2201
SELECT + col1 + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2202
SELECT ALL - 8 DIV CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) - 13 DIV col1 FROM tab0 AS cor0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL - 8 / CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) - 13 / col1 FROM tab0 AS cor0
----
-13
0
0

query I rowsort
SELECT ALL 27 FROM tab0 AS cor0 WHERE - col2 < + 23
----
27
27
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 91 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT 27 - + - MAX( ALL - 52 ) AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT 27 - + - MAX ( ALL - 52 ) AS col1 FROM tab2 AS cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT + COUNT( * ) * - - ( + - 57 ) - - COUNT( * ) AS col0 FROM tab2 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT + COUNT ( * ) * - - ( + - 57 ) - - COUNT ( * ) AS col0 FROM tab2 cor0
----
-168

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 49 <= + ( 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + 69 ) - + 98 + - col1 * col1 FROM tab1 AS cor0
----
-192
-2376
-363

query I rowsort
SELECT ALL - col2 * - col1 - - + col0 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT col0 * + + ( + + 76 ) AS col0 FROM tab1
----
3876
6460
6916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT - CAST( - 3 AS SIGNED ) AS col1 FROM tab1 WHERE + - col2 IS NOT NULL
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2212
SELECT - CAST ( - 3 AS INTEGER ) AS col1 FROM tab1 WHERE + - col2 IS NOT NULL
----
3
3
3

query I rowsort
SELECT + col2 * - col1 - col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT col2 - + 0 AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + SUM( + - col2 ) - + 8 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-2215
SELECT + SUM ( + - col2 ) - + 8 FROM tab2
----
-129

query I rowsort
SELECT - col2 - - col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 + 91 * col1 FROM tab0
----
-5571
-9221
7161

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT + COUNT( ALL - - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2219
SELECT + COUNT ( ALL - - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( 6 ) <= - - 42
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT 72 * - COUNT( * ) AS col2, - COUNT( * ) + + 93 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-216
93

skipif mysql # not compatible
query II rowsort label-2221
SELECT 72 * - COUNT ( * ) AS col2, - COUNT ( * ) + + 93 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-216
93

query I rowsort
SELECT 63 * - 20 AS col1 FROM tab0
----
-1260
-1260
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT + MAX( DISTINCT - col0 ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT + MAX ( DISTINCT - col0 ) AS col2 FROM tab2 cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 28 col1 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2225
SELECT CAST( NULL AS DECIMAL ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT CAST ( NULL AS REAL ) * - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 41 )
----

query II rowsort
SELECT + 40 AS col1, col1 AS col2 FROM tab2 AS cor0
----
40
51
40
67
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 51 + - col2 * + + col2 * + 88 + + col2 NOT IN ( - 11 + - col0 * col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 51 + - col2 * + + col2 * + 88 + + col2 NOT IN ( - 11 + - col0 * col1 )
----
-3

query I rowsort
SELECT DISTINCT 67 * + AVG ( - 64 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT + CAST( NULL AS SIGNED ) / + 31 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT + CAST ( NULL AS INTEGER ) / + 31 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + ( - COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2232
SELECT + ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col0 * - + 54 AS col0 FROM tab2
----
2484
3456
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT - COUNT( ALL - 43 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2234
SELECT - COUNT ( ALL - 43 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + col0 / col0 + col0 * + 32 AS col0 FROM tab2 WHERE + - col1 > + col0 / + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + + 5 + COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2236
SELECT + + 5 + COUNT ( * ) FROM tab0 AS cor0
----
8

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN - 20 + 17 AND + col1
----

query II rowsort
SELECT ALL + + col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT + 79 AS col1 FROM tab0 WHERE - 41 NOT BETWEEN col2 AND ( + ( - - col0 ) )
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT + + COUNT( * ) - 78 AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + + COUNT ( * ) - 78 AS col0 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT - + col0 - - ( 79 ) + - 47 AS col2 FROM tab0 AS cor0
----
-55
-65
17

query II rowsort
SELECT DISTINCT - col1 + + col2 * + col0, - 47 AS col2 FROM tab1 AS cor0
----
4882
-47
5010
-47
6141
-47

query I rowsort
SELECT - - col1 - - - col1 - + - col1 * + col0 * + 37 * - 16 FROM tab0 AS cor0
----
-1081584
-57424
-719280

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND + - 35 + col2
----

query I rowsort
SELECT ALL - 85 * + 61 - 69 * + col1 FROM tab0 AS cor0
----
-10774
-5254
-6634

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( ( NULL ) = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + 66 col1 FROM tab1 AS cor0
----
117
151
157

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT DISTINCT COUNT( * ) AS col0, - 4 AS col1 FROM tab0
----
3
-4

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT COUNT ( * ) AS col0, - 4 AS col1 FROM tab0
----
3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT DISTINCT COUNT( ALL 80 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT COUNT ( ALL 80 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 66 * col2 - - 19, - col2 col0 FROM tab1
----
3913
-59
4507
-68
6355
-96

query II rowsort
SELECT ALL + 56 AS col1, col0 AS col0 FROM tab2
----
56
46
56
64
56
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT - col2 DIV - - col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2252
SELECT - col2 / - - col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 90 * col2 AS col1 FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT 25 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT 25 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 92 AS col1, 47 AS col1 FROM tab2 cor0
----
92
47
92
47
92
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 72 + - 98 * - col2 <> + 62
----

query I rowsort
SELECT ALL - 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT col0 * col2 * + 65 FROM tab1
----
318240
325975
402220

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( ( - + ( + 26 ) ) IS NOT NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT COUNT( * ) * + COUNT( * ) * COUNT( * ) col0 FROM tab2 cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2260
SELECT COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) col0 FROM tab2 cor0
----
27

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT col2 + + 49 <= col0
----
-14
-47
-5

query I rowsort
SELECT ALL - 72 * + col1 AS col0 FROM tab0 AS cor0
----
-1512
-5832
-72

query I rowsort
SELECT DISTINCT 97 * col0 FROM tab0 AS cor0
----
1455
8439
9409

query I rowsort
SELECT ALL - - col0 * + 80 AS col2 FROM tab2 AS cor0
----
3680
5120
6000

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 2 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT IN ( + col0, col2 + col0 )
----

query I rowsort
SELECT 72 FROM tab0 AS cor0 WHERE + col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2268
SELECT COUNT( * ) - MIN( ALL + + col1 ) col0 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) IN ( col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2268
SELECT COUNT ( * ) - MIN ( ALL + + col1 ) col0 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) IN ( col1 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - - 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 + + + 57 col1 FROM tab1
----
65

query II rowsort
SELECT DISTINCT ( + 56 ) + + - col1 AS col2, 65 FROM tab0
----
-25
65
35
65
55
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT ALL col1 * - CAST( - - 13 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1053
-13
-273

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL col1 * - CAST ( - - 13 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1053
-13
-273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2273
SELECT DISTINCT + COUNT( * ) * 14 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - ( - + col0 ) / + - CAST( - - 39 AS DECIMAL ) AND 65 * - col2 + - + col0
----
42

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + COUNT ( * ) * 14 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - ( - + col0 ) / + - CAST ( - - 39 AS REAL ) AND 65 * - col2 + - + col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2274
SELECT DISTINCT + - 85 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT + - 85 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
28

query II rowsort
SELECT ALL - col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT ALL + col1 * + col2 * - ( - - col2 ) + - + col1 + + col2 AS col2 FROM tab1
----
-128942
-17351
-217307

query I rowsort
SELECT - + col1 FROM tab2 WHERE - + col1 * + 49 >= + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT MIN( DISTINCT - col0 ) + 58 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-2278
SELECT MIN ( DISTINCT - col0 ) + 58 FROM tab2
----
-17

query I rowsort
SELECT ALL col2 * + + 63 FROM tab1
----
3717
4284
6048

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 18 / - 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT + COUNT( DISTINCT 38 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2281
SELECT + COUNT ( DISTINCT 38 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 86 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2283
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col0 * - 57 AS col1 FROM tab2 AS cor0
----
2622
3648
4275

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( - 95 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL - ( + - ( COUNT( * ) ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2286
SELECT ALL - ( + - ( COUNT ( * ) ) ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT - col0 * + CAST( - 52 AS SIGNED ) col0 FROM tab0
----
4524
5044
780

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2287
SELECT - col0 * + CAST ( - 52 AS INTEGER ) col0 FROM tab0
----
4524
5044
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT - ( - CAST( AVG ( DISTINCT col1 ) AS SIGNED ) ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-2288
SELECT - ( - CAST ( AVG ( DISTINCT col1 ) AS INTEGER ) ) FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2289
SELECT ALL * FROM tab0 WHERE NOT ( - - col1 / - ( - 66 ) + + col0 + + - CAST( NULL AS SIGNED ) + + col1 + + - 47 / - col0 ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2289
SELECT ALL * FROM tab0 WHERE NOT ( - - col1 / - ( - 66 ) + + col0 + + - CAST ( NULL AS INTEGER ) + + col1 + + - 47 / - col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 90 FROM tab1
----
-5310
-6120
-8640

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - + 90 AS col0 FROM tab2 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT col0 DIV + + col2 + + col0 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-2293
SELECT col0 / + + col2 + + col0 FROM tab0 AS cor0
----
15
95
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col0 ) IN ( + - col2 * 83 / + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - col2 - col0 * + + 34 * col0
----

query I rowsort
SELECT DISTINCT 90 + + col2 AS col0 FROM tab0
----
100
137
189

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 83 - + 52 * - 12
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT DISTINCT + col0 DIV + + ( - - 64 ) AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + col0 / + + ( - - 64 ) AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - 18 AS col0 FROM tab0 cor0
----
-18
-18
-18

query I rowsort
SELECT + + col2 * col2 + - 82 FROM tab0 AS cor0 WHERE col2 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT + 48 * MAX( DISTINCT 79 ) AS col1 FROM tab1 AS cor0
----
3792

skipif mysql # not compatible
query I rowsort label-2302
SELECT + 48 * MAX ( DISTINCT 79 ) AS col1 FROM tab1 AS cor0
----
3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT + + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2303
SELECT + + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE - col1 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL - COUNT( * ) FROM tab2 WHERE - col2 + + col2 + + 13 + + + ( + 67 ) * 64 + - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - col2 + + col2 + + 13 + + + ( + 67 ) * 64 + - col2 < NULL
----
0

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE 97 * - 67 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2307
SELECT * FROM tab1 AS cor0 WHERE - ( + 2 ) NOT BETWEEN + CAST( NULL AS DECIMAL ) AND col0
----

skipif mysql # not compatible
query III rowsort label-2307
SELECT * FROM tab1 AS cor0 WHERE - ( + 2 ) NOT BETWEEN + CAST ( NULL AS REAL ) AND col0
----

query II rowsort
SELECT col0, col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 - + - 87 / - + ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2310
SELECT * FROM tab2 WHERE ( NOT ( NOT + col1 / + col1 + + CAST( + - col0 AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-2310
SELECT * FROM tab2 WHERE ( NOT ( NOT + col1 / + col1 + + CAST ( + - col0 AS INTEGER ) IS NULL ) )
----

query I rowsort
SELECT DISTINCT + col1 + + 51 + - + col2 FROM tab2
----
60
79
88

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - 50 * col0 FROM tab2 cor0
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL - 36 * - COUNT( * ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL - 36 * - COUNT ( * ) FROM tab1 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col1 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT - - CAST( AVG ( + + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2316
SELECT - - CAST ( AVG ( + + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL + MIN( DISTINCT 38 ) AS col0 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + MIN ( DISTINCT 38 ) AS col0 FROM tab1 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 * - col2 * - col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 * - col2 * - col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2319
SELECT * FROM tab0 WHERE NOT + col2 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2319
SELECT * FROM tab0 WHERE NOT + col2 < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL 84 * COUNT( * ) * + 57 AS col0 FROM tab1 WHERE NOT ( - - col0 ) = + col2
----
14364

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL 84 * COUNT ( * ) * + 57 AS col0 FROM tab1 WHERE NOT ( - - col0 ) = + col2
----
14364

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2321
SELECT ALL 88 DIV - ( - + CAST( - + 97 AS SIGNED ) ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL 88 / - ( - + CAST ( - + 97 AS INTEGER ) ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 67 * col2 AS col1 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT ALL + 23 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
23
23
23

query I rowsort
SELECT + col2 * - + col1 * - 54 * + + col1 AS col1 FROM tab2 AS cor0
----
12806640
14059548
3230442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT ALL - - AVG ( + + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2325
SELECT ALL - - AVG ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + + 32 + COUNT( ALL - col0 ) AS col0 FROM tab2 cor0
----
35

skipif mysql # not compatible
query I rowsort label-2328
SELECT + + 32 + COUNT ( ALL - col0 ) AS col0 FROM tab2 cor0
----
35

query I rowsort
SELECT - - 21 * - col0 + + col1 AS col0 FROM tab0 cor0 WHERE + col1 = - + col0
----

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL - COUNT( + 17 ) FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - COUNT ( + 17 ) FROM tab0, tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * + col1 col2 FROM tab0
----
1638
6318
78

query III rowsort
SELECT * FROM tab2 WHERE 70 <= + col0
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 col1, + col2 * ( 63 ) + + + col1 AS col0 FROM tab0
----
-22
3042
-22
6238
-22
651

query I rowsort
SELECT DISTINCT + col0 + + - col2 AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL - 86 + + - COUNT( * ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - 86 + + - COUNT ( * ) FROM tab2
----
-89

query I rowsort
SELECT col0 - - + col0 AS col0 FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT + col0 * - col0 + ( - 61 ) * + - col0 DIV + col0 - - col0 + - col0 FROM tab1 AS cor0
----
-2540
-7164
-8220

skipif mysql # not compatible
query I rowsort label-2338
SELECT + col0 * - col0 + ( - 61 ) * + - col0 / + col0 - - col0 + - col0 FROM tab1 AS cor0
----
-2540
-7164
-8220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2339
SELECT ALL + 76 * - ( + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - - 51 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 76 * - ( + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - - 51 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 58 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 * + + 4 + + - col2 * - - col1 col1 FROM tab2 AS cor0
----
-1413
-3320
-4126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * col1 * - - col0 - col1 col1 FROM tab2 AS cor0
----
21063
44275
45158

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT DISTINCT - COUNT( * ) * + + 54, COUNT( * ) col1 FROM tab2 AS cor0
----
-162
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2343
SELECT DISTINCT - COUNT ( * ) * + + 54, COUNT ( * ) col1 FROM tab2 AS cor0
----
-162
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + - - col1 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT - SUM( ALL + 30 ) AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT - SUM ( ALL + 30 ) AS col2 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT 51 AS col1, COUNT( DISTINCT col1 ) AS col0 FROM tab2
----
51
3

skipif mysql # not compatible
query II rowsort label-2346
SELECT 51 AS col1, COUNT ( DISTINCT col1 ) AS col0 FROM tab2
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT COUNT( * ) * 77 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-2347
SELECT COUNT ( * ) * 77 FROM tab0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT DISTINCT 64 * - - COUNT( * ) AS col0 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT 64 * - - COUNT ( * ) AS col0 FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) FROM tab1 WHERE NOT - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab1 WHERE NOT - col1 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 17 col0, col0 FROM tab1
----
-17
51
-17
85
-17
91

query I rowsort
SELECT + + col0 FROM tab0 WHERE NOT + + col0 IS NULL
----
15
87
97

query II rowsort
SELECT DISTINCT - + col1 AS col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + COUNT( * ) + - - 91 FROM tab2 cor0
----
94

skipif mysql # not compatible
query I rowsort label-2353
SELECT + COUNT ( * ) + - - 91 FROM tab2 cor0
----
94

query I rowsort
SELECT ALL col0 * + 52 AS col2 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT + MIN( + + col0 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT + MIN ( + + col0 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15

query I rowsort
SELECT ( 93 ) AS col0 FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2357
SELECT COUNT( * ), - MAX( ALL + 32 ) AS col0 FROM tab2
----
3
-32

skipif mysql # not compatible
query II rowsort label-2357
SELECT COUNT ( * ), - MAX ( ALL + 32 ) AS col0 FROM tab2
----
3
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT + - CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT + - CAST ( NULL AS INTEGER ) * - - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 16 * 40 + - + 68 * + 74 AS col0, + 81 + - + 92 col1 FROM tab1 cor0
----
-4392
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT - 82 + - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> col2 * 69 * col0 + + col1
----
-82

skipif mysql # not compatible
query I rowsort label-2360
SELECT - 82 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> col2 * 69 * col0 + + col1
----
-82

query I rowsort
SELECT ALL + ( - - 75 ) AS col0 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT + - 1 - + col1 * col0 FROM tab0 AS cor0
----
-1216
-1828
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT + 85 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT + 85 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT col0 * 24 + + col0 + - col2 DIV - col0 + + - col0 + + 38 FROM tab0
----
2126
2367
401

skipif mysql # not compatible
query I rowsort label-2364
SELECT col0 * 24 + + col0 + - col2 / - col0 + + - col0 + + 38 FROM tab0
----
2126
2367
401

onlyif mysql # DIV for integer division: 
query II rowsort label-2365
SELECT ALL col2 DIV - col1 AS col1, 7 AS col1 FROM tab0
----
-99
7
0
7
0
7

skipif mysql # not compatible
query II rowsort label-2365
SELECT ALL col2 / - col1 AS col1, 7 AS col1 FROM tab0
----
-99
7
0
7
0
7

query I rowsort
SELECT DISTINCT + 85 * + - col1 FROM tab0
----
-1785
-6885
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2367
SELECT DISTINCT 89 DIV - SUM( - col0 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2367
SELECT DISTINCT 89 / - SUM ( - col0 ) col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT DISTINCT - SUM( 52 ) * + 6 + SUM( - ( col0 ) ) AS col0 FROM tab2
----
-1121

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - SUM ( 52 ) * + 6 + SUM ( - ( col0 ) ) AS col0 FROM tab2
----
-1121

query I rowsort
SELECT DISTINCT col2 * col0 + - 34 + - col1 FROM tab1
----
4848
4976
6107

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + col1 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - 93 ) NOT BETWEEN col0 AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE - 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT DISTINCT COUNT( col1 ) FROM tab0 WHERE - col1 <= - + col0
----
1

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT COUNT ( col1 ) FROM tab0 WHERE - col1 <= - + col0
----
1

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NULL IN ( 63 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL - 76 + - COUNT( * ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - 76 + - COUNT ( * ) FROM tab0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 + + 98 col2 FROM tab0 AS cor0
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT - CAST( MAX( ALL - CAST( - + col2 AS SIGNED ) ) AS SIGNED ) * + - 26 FROM tab2 AS cor0
----
1508

skipif mysql # not compatible
query I rowsort label-2377
SELECT - CAST ( MAX ( ALL - CAST ( - + col2 AS INTEGER ) ) AS INTEGER ) * + - 26 FROM tab2 AS cor0
----
1508

query I rowsort
SELECT - 66 AS col2 FROM tab2 cor0
----
-66
-66
-66

query II rowsort
SELECT - 31 - ( + ( + 61 ) ) + - 16 AS col2, - col2 AS col1 FROM tab0 AS cor0
----
-108
-10
-108
-47
-108
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2380
SELECT ALL + 48 * CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL + 48 * CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
144

query I rowsort
SELECT + + 86 FROM tab0 WHERE NOT ( + ( - - ( - col2 ) ) ) NOT BETWEEN 51 AND NULL
----

query I rowsort
SELECT + ( - 20 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT 54 DIV - - 90 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT 54 / - - 90 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT - CAST( NULL AS SIGNED ) + - + 69 / - col1 FROM tab0 AS cor0 WHERE NOT + col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-2384
SELECT - CAST ( NULL AS INTEGER ) + - + 69 / - col1 FROM tab0 AS cor0 WHERE NOT + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT - col0 * + col1 DIV + + col1 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - col0 * + col1 / + + col1 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2387
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - col2 + + 4 <= + - ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2387
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - col2 + + 4 <= + - ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * 81 * + + 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * - 90 + + 89 * - + col2 col1 FROM tab2
----
-5737
-7250
-8852

query I rowsort
SELECT DISTINCT - col0 * - ( + 52 ) AS col0 FROM tab2 AS cor0
----
2392
3328
3900

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 / + 10 )
----

query I rowsort
SELECT 73 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT col1 * col2 + + - 17 AS col2 FROM tab2
----
1156
3063
3869

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 * + col0 AS col1 FROM tab2
----
-2070
-4032
-5550

query III rowsort
SELECT * FROM tab0 WHERE - - col1 * - + col2 + - col1 IS NULL
----

query I rowsort
SELECT ALL 80 + - + col2 AS col1 FROM tab1
----
-16
12
21

query I rowsort
SELECT col1 + col2 * + - ( - ( 66 ) ) AS col0 FROM tab2 AS cor0
----
1569
2717
3895

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + - col1 - - col2 > + + col0
----

query I rowsort
SELECT ALL - col1 * 53 + col1 + + + col1 FROM tab0 AS cor0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT + MAX( DISTINCT - - 68 ) + - + MAX( ALL + + col1 ) col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2401
SELECT DISTINCT + MAX ( DISTINCT - - 68 ) + - + MAX ( ALL + + col1 ) col2 FROM tab1 AS cor0
----
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 - 9 + - + 62 / - col2 * + + col1 NOT BETWEEN + col1 + 21 * + - col1 AND - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 95 * + col1 AS col0 FROM tab1 AS cor0
----
1330
4465
475

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + 94 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT - SUM( ALL - + col2 ) * + + MIN( 25 ) - - 70 AS col1 FROM tab2
----
3095

skipif mysql # not compatible
query I rowsort label-2406
SELECT - SUM ( ALL - + col2 ) * + + MIN ( 25 ) - - 70 AS col1 FROM tab2
----
3095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2407
SELECT 80 DIV + - COUNT( * ) AS col0 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-2407
SELECT 80 / + - COUNT ( * ) AS col0 FROM tab0
----
-26

query I rowsort
SELECT DISTINCT + 67 + - col2 FROM tab1 WHERE NOT - 48 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT + COUNT( * ) DIV 19 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2409
SELECT + COUNT ( * ) / 19 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT DISTINCT 86 DIV 28 * - 11 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT 86 / 28 * - 11 FROM tab1
----
-33

query I rowsort
SELECT - 45 * - - col1 - + 98 * 98 * + col2 * - col1 FROM tab0
----
2015895
36558783
950751

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2412
SELECT ALL * FROM tab0 WHERE NOT col1 - - 48 * - - 83 * - CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2412
SELECT ALL * FROM tab0 WHERE NOT col1 - - 48 * - - 83 * - CAST ( col0 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, - ( + + col0 ) AS col2 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT COUNT( * ) col1 FROM tab0 WHERE ( col2 + + 23 * - col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2414
SELECT COUNT ( * ) col1 FROM tab0 WHERE ( col2 + + 23 * - col1 ) IS NOT NULL
----
3

query I rowsort
SELECT + col0 * + col1 - 86 FROM tab0
----
11
1129
1741

query I rowsort
SELECT ALL col1 + + col0 * 80 + 2 AS col1 FROM tab1
----
4096
6807
7329

query I rowsort
SELECT + 32 - + col1 AS col0 FROM tab2
----
-19
-35
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + - + col0 col1 FROM tab2 AS cor0
----
-2647
-4564
-5993

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT COUNT( DISTINCT - - 29 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT COUNT ( DISTINCT - - 29 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - + ( + + 71 ) FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2421
SELECT DISTINCT + + 29 AS col1, - 98 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2421
SELECT DISTINCT + + 29 AS col1, - 98 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
29
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + + col1 * - 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ALL - ( MIN( ALL - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL - ( MIN ( ALL - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT COUNT( * ) * - 4 AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2425
SELECT COUNT ( * ) * - 4 AS col1 FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT - CAST( - - 90 AS SIGNED ) col0 FROM tab0 cor0
----
-90
-90
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2426
SELECT - CAST ( - - 90 AS INTEGER ) col0 FROM tab0 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT col2 / col1 >= + ( 89 ) - - col2
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - MAX( DISTINCT - 34 ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-2428
SELECT - MAX ( DISTINCT - 34 ) AS col2 FROM tab0
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-2429
SELECT DISTINCT + col0 AS col0, col1 DIV col2 col2 FROM tab0
----
15
1
87
2
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2429
SELECT DISTINCT + col0 AS col0, col1 / col2 col2 FROM tab0
----
15
1
87
2
97
0

query I rowsort
SELECT ALL - 3 + col1 FROM tab2
----
48
64
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2431
SELECT ALL 89 col0, MIN( 78 ) * COUNT( col2 ) col1 FROM tab0
----
89
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2431
SELECT ALL 89 col0, MIN ( 78 ) * COUNT ( col2 ) col1 FROM tab0
----
89
234

query I rowsort
SELECT ALL - 40 * + col2 - - col0 AS col0 FROM tab2 WHERE - 34 * - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT - SUM( DISTINCT - + 12 ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2433
SELECT - SUM ( DISTINCT - + 12 ) AS col2 FROM tab0
----
12

query I rowsort
SELECT ALL - col2 * + col1 * - - col2 + + col2 FROM tab1
----
-128928
-17346
-217260

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + col0 + - 2 FROM tab0 AS cor0
----
13
85
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 92 >= + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2438
SELECT DISTINCT - 15, ( - - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-2438
SELECT DISTINCT - 15, ( - - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - 67 + ( - + 53 ) col2 FROM tab2 WHERE + ( + ( + col1 ) ) < - col0
----

query I rowsort
SELECT - 6 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ( + + col1 ) - - col2 AS col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + col0 - - col0 + - 31 FROM tab0 AS cor0
----
-1
143
163

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2444
SELECT ALL 85 + + - COUNT( * ) * + 44 + + CAST( NULL AS DECIMAL ) + - MIN( - col0 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2444
SELECT ALL 85 + + - COUNT ( * ) * + 44 + + CAST ( NULL AS REAL ) + - MIN ( - col0 ) col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL 89 + 97 - - - ( - - col0 ) AS col2, - col1 FROM tab0 AS cor0
----
171
-81
89
-1
99
-21

query II rowsort
SELECT ALL 57 - - 74 - - + 10 * + - col0, + col2 AS col0 FROM tab2 AS cor0
----
-329
23
-509
40
-619
58

query I rowsort
SELECT + + 86 - + col1 AS col1 FROM tab1 AS cor0
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT 78 * - + 62 - - - 88 + + COUNT( * ) + COUNT( * ) + - + MIN( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
-4837

skipif mysql # not compatible
query I rowsort label-2448
SELECT 78 * - + 62 - - - 88 + + COUNT ( * ) + COUNT ( * ) + - + MIN ( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
-4837

query II rowsort
SELECT DISTINCT + - col1 - + col0, - col1 AS col2 FROM tab1 cor0
----
-138
-47
-65
-14
-90
-5

query I rowsort
SELECT - col0 + - ( - col2 ) AS col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT - - 30 + + col2 * + + col1 * - col0 > + 91 * - col0
----
51
85
91

query I rowsort
SELECT ALL - 68 + - + col0 * 1 FROM tab2
----
-114
-132
-143

query I rowsort
SELECT col2 * - 60 FROM tab1
----
-3540
-4080
-5760

query I rowsort
SELECT DISTINCT - 80 * col0 AS col2 FROM tab2
----
-3680
-5120
-6000

query I rowsort
SELECT DISTINCT - 75 * 20 FROM tab1
----
-1500

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT ALL + 57 DIV - 14 col2 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2456
SELECT ALL + 57 / - 14 col2 FROM tab1 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 60 col1, col2 - - 96 * 39 AS col1 FROM tab0 AS cor0
----
60
3754
60
3791
60
3843

query I rowsort
SELECT - 87 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2459
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-2459
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - col0 * - - 15 - + - col0 FROM tab0 AS cor0
----
-1218
-1358
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT + col2 * + - col1 * + - col0 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT + col0 * - 28 + + - col2 FROM tab1 AS cor0
----
-1524
-2439
-2616

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT + ( + col0 ) DIV + col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2464
SELECT + ( + col0 ) / + col1 FROM tab0 AS cor0
----
0
4
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * - 7, col0 col2 FROM tab1 AS cor0
----
413
85
476
91
672
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2466
SELECT * FROM tab2 cor0 WHERE NOT ( NOT col1 BETWEEN - CAST( NULL AS DECIMAL ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-2466
SELECT * FROM tab2 cor0 WHERE NOT ( NOT col1 BETWEEN - CAST ( NULL AS REAL ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - + col0 = NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - + col0 = NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + col0 + + col2
----

query II rowsort
SELECT DISTINCT - col0 AS col1, + 96 AS col2 FROM tab2 WHERE + col2 + - col1 + + 6 * + 24 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2470
SELECT DISTINCT + 74 * + CAST( - CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col0 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + 74 * + CAST ( - CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) AS col0 FROM tab0
----
-222

query I rowsort
SELECT ALL - col1 + 18 - + + col0 AS col2 FROM tab2
----
-123
-124
-79

query I rowsort
SELECT DISTINCT - 47 + - 54 AS col2 FROM tab2
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT - COUNT( ALL - 99 ) DIV - COUNT( * ) + - COUNT( * ) + 76 + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2473
SELECT - COUNT ( ALL - 99 ) / - COUNT ( * ) + - COUNT ( * ) + 76 + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL + 59 + 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT DISTINCT + col2 * + col2 * - col2 * col2 * + col2 DIV + col2 + col0 AS col2 FROM tab0
----
-4879666
-96059504
-9913

skipif mysql # not compatible
skipif postgresql # PostgreSQL does not promote INTEGER (32-bit) results
query I rowsort label-2475
SELECT DISTINCT + col2 * + col2 * - col2 * col2 * + col2 / + col2 + col0 AS col2 FROM tab0
----
-4879666
-96059504
-9913

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2476
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( + ( col1 ) AS SIGNED ) * col1 + col0 + - - col2 + col1 AND ( - 61 / + col1 * - - col2 )
----

skipif mysql # not compatible
query III rowsort label-2476
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( + ( col1 ) AS INTEGER ) * col1 + col0 + - - col2 + col1 AND ( - 61 / + col1 * - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT ALL - col0 DIV col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - col0 / col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4
-97
0

query II rowsort
SELECT DISTINCT - col0 - + + col2 + col2 AS col0, - col2 FROM tab2 cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2479
SELECT ALL - - CAST( + - col1 AS SIGNED ) - + col2 AS col0, col1 FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

skipif mysql # not compatible
query II rowsort label-2479
SELECT ALL - - CAST ( + - col1 AS INTEGER ) - + col2 AS col0, col1 FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

query I rowsort
SELECT DISTINCT - + ( - ( + 93 ) ) * + 64 FROM tab1 AS cor0
----
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ( ( - COUNT( * ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2481
SELECT ( ( - COUNT ( * ) ) ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT col1 * 86 AS col0, col0 FROM tab2
----
4386
46
5762
75
6622
64

query I rowsort
SELECT ( + ( col0 ) ) AS col1 FROM tab1
----
51
85
91

query II rowsort
SELECT col0 * + col2 AS col0, - col1 * - 57 + - 62 FROM tab0
----
705
4555
870
1135
9603
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + col1 + 64 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2486
SELECT ALL - SUM( DISTINCT col1 ) DIV - COUNT( * ) FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - SUM ( DISTINCT col1 ) / - COUNT ( * ) FROM tab2 cor0
----
65

query I rowsort
SELECT DISTINCT - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2488
SELECT MIN( CAST( - col0 AS SIGNED ) ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2488
SELECT MIN ( CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT + + SUM( 87 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
783

skipif mysql # not compatible
query I rowsort label-2489
SELECT + + SUM ( 87 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
783

query I rowsort
SELECT 6 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT - MAX( + col1 ) AS col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - MAX ( + col1 ) AS col0 FROM tab2 cor0
----
-77

query I rowsort
SELECT ALL 8 * col1 + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col2 * - 83 FROM tab0 AS cor0
----
3901
8217
830

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * + + col0 IS NOT NULL
----

query I rowsort
SELECT + 15 * + + 59 FROM tab2 AS cor0
----
885
885
885

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + ( + 71 ) * - MIN( 89 ) AS col1 FROM tab0 cor0
----
-6319

skipif mysql # not compatible
query I rowsort label-2497
SELECT + ( + 71 ) * - MIN ( 89 ) AS col1 FROM tab0 cor0
----
-6319

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL <= 66 / col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2498
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL <= 66 / col1
----
0

query I rowsort
SELECT ALL col2 * + + col1 * - col1 FROM tab0
----
-308367
-4410
-99

query II rowsort
SELECT + col2, - col2 * + - col1 * - col2 FROM tab1
----
59
-17405
68
-217328
96
-129024

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2501
SELECT ALL - 13 * - + 41 AS col0, + CAST( NULL AS DECIMAL ) / + - 30 FROM tab2
----
533
NULL
533
NULL
533
NULL

skipif mysql # not compatible
query II rowsort label-2501
SELECT ALL - 13 * - + 41 AS col0, + CAST ( NULL AS REAL ) / + - 30 FROM tab2
----
533
NULL
533
NULL
533
NULL

query I rowsort
SELECT ALL - col2 * + 36 + - ( col0 ) FROM tab1
----
-2209
-2539
-3507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 43 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT 51 + col2 + - + 44 AS col2 FROM tab2
----
30
47
65

query I rowsort
SELECT ALL - col2 + - ( + 75 ) FROM tab1 AS cor0
----
-134
-143
-171

query I rowsort
SELECT DISTINCT + - col2 + - - col0 * col0 AS col0 FROM tab0 AS cor0
----
178
7559
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT - COUNT( - + 45 ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT - COUNT ( - + 45 ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - ( - col1 ) * - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 10 / + 24 * + 30 + + col0 < 93 * + col0 - + 68 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2511
SELECT + CAST( NULL AS DECIMAL ) - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT + CAST ( NULL AS REAL ) - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - ( 42 ) + + - col2 AS col2, - 41 * - col0 + + - ( - col2 ) FROM tab1 AS cor0
----
-101
3544
-110
3799
-138
2187

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT + - 30 * - 30 + + col2 + + col2 DIV - + col0 AS col2 FROM tab2 AS cor0
----
923
940
958

skipif mysql # not compatible
query I rowsort label-2513
SELECT + - 30 * - 30 + + col2 + + col2 / - + col0 AS col2 FROM tab2 AS cor0
----
923
940
958

query II rowsort
SELECT - col0 + - 6 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-57
51
-91
85
-97
91

query I rowsort
SELECT ALL + col0 + + col2 * + + col1 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL - ( + + MIN( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - ( + + MIN ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - + 97 AS col1 FROM tab1 cor0
----
-97
-97
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 92 + + col2 + - - col0 - - 63 NOT BETWEEN NULL AND + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 88, + col1 - + col2 + 59 / - col0 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT + SUM( + 63 ) AS col2 FROM tab2 WHERE NOT 2 IN ( - - ( + + col1 ) + - col1 * - 87 + - - 94 + - ( col2 ) )
----
189

skipif mysql # not compatible
query I rowsort label-2520
SELECT + SUM ( + 63 ) AS col2 FROM tab2 WHERE NOT 2 IN ( - - ( + + col1 ) + - col1 * - 87 + - - 94 + - ( col2 ) )
----
189

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2521
SELECT * FROM tab0 WHERE NOT - - 89 * 69 + col1 <= 16 * - + 6 * + - CAST( col2 AS DECIMAL )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2521
SELECT * FROM tab0 WHERE NOT - - 89 * 69 + col1 <= 16 * - + 6 * + - CAST ( col2 AS REAL )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT - 3 * + CAST( + MAX( - col1 ) AS SIGNED ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2522
SELECT - 3 * + CAST ( + MAX ( - col1 ) AS INTEGER ) FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT SUM( DISTINCT + 2 ) col0 FROM tab1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2523
SELECT DISTINCT SUM ( DISTINCT + 2 ) col0 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - 69 * - + COUNT( * ) AS col0 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-2524
SELECT - 69 * - + COUNT ( * ) AS col0 FROM tab1
----
207

query II rowsort
SELECT - 10, - 36 AS col1 FROM tab0 cor0
----
-10
-36
-10
-36
-10
-36

query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ( - - 79 ) AS col1 FROM tab1
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT SUM( - - ( - col0 ) ) * MIN( col2 ) AS col2 FROM tab1
----
-13393

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT SUM ( - - ( - col0 ) ) * MIN ( col2 ) AS col2 FROM tab1
----
-13393

query I rowsort
SELECT ALL ( - + 25 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL - + 31 * SUM( + + 40 ) + + - 53 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-11213

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - + 31 * SUM ( + + 40 ) + + - 53 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-11213

query I rowsort
SELECT ALL - + col1 * - + col0 + + - col0 FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT ALL + ( col1 ) * - col0 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT + col2 + + 80 * - 53 FROM tab1 cor0
----
-4144
-4172
-4181

query I rowsort
SELECT DISTINCT - - col1 * - 90 + + 20 FROM tab0 AS cor0
----
-1870
-70
-7270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2536
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL + col0 * 88 AS col2 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT DISTINCT - 47 * + + 57 AS col1 FROM tab1
----
-2679

query II rowsort
SELECT + col2 AS col1, + col0 * + - col2 FROM tab0
----
10
-870
47
-705
99
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-2540
SELECT ALL col1 DIV col0 * - 96 AS col0, - col0 FROM tab0
----
-480
-15
0
-87
0
-97

skipif mysql # not compatible
query II rowsort label-2540
SELECT ALL col1 / col0 * - 96 AS col0, - col0 FROM tab0
----
-480
-15
0
-87
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE col2 BETWEEN col1 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE col2 BETWEEN col1 AND - col2
----
0

query I rowsort
SELECT 4 * + ( + - col1 ) * - 91 FROM tab2
----
18564
24388
28028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT ALL col2 + + - col0 * - col0 + - col2 * col2 * CAST( NULL AS SIGNED ) * - 82 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL col2 + + - col0 * - col0 + - col2 * col2 * CAST ( NULL AS INTEGER ) * - 82 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT + col1 DIV + + col2 * - 70 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT + col1 / + + col2 * - 70 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT ALL - 53 DIV col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - 53 / col2 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT DISTINCT COUNT( * ) DIV - 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT COUNT ( * ) / - 79 FROM tab2
----
0

query I rowsort
SELECT ALL - 52 + + col0 - + ( - ( 83 ) ) * + col0 FROM tab1
----
4232
7088
7592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT ALL - 18 * col1 * - - col2 + 95 + - CAST( NULL AS SIGNED ) + + 71 * - col1 * ( - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - 18 * col1 * - - col2 + 95 + - CAST ( NULL AS INTEGER ) + + 71 * - col1 * ( - col0 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 - col0 + + 10 * 38 FROM tab0 AS cor0
----
380
380
380

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col2, + 9 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-10
9
-47
9
-99
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT ALL CAST( - SUM( col1 ) AS SIGNED ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL CAST ( - SUM ( col1 ) AS INTEGER ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-2553
SELECT DISTINCT - COUNT( * ), 71 AS col2 FROM tab0
----
-3
71

skipif mysql # not compatible
query II rowsort label-2553
SELECT DISTINCT - COUNT ( * ), 71 AS col2 FROM tab0
----
-3
71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> + 42
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col2 - ( - 51 ) - - - 38 BETWEEN - 94 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2556
SELECT - CAST( NULL AS SIGNED ) AS col1, - col0 * col1 - ( + + col2 ) col1 FROM tab1 cor0
----
NULL
-4345
NULL
-484
NULL
-810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2556
SELECT - CAST ( NULL AS INTEGER ) AS col1, - col0 * col1 - ( + + col2 ) col1 FROM tab1 cor0
----
NULL
-4345
NULL
-484
NULL
-810

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT MIN( DISTINCT - + col2 ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2558
SELECT DISTINCT MIN ( DISTINCT - + col2 ) col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + - col2 * - - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT - + ( 15 ) AS col1, 84 + - col2 FROM tab1 AS cor0
----
-15
-12
-15
16
-15
25

query I rowsort
SELECT - + col0 FROM tab0 cor0 WHERE NOT 25 IN ( col1 + - col2 / + col0 * col0, 34 )
----
-15
-87
-97

query II rowsort
SELECT ALL - col0, 1 * 98 AS col1 FROM tab0 AS cor0
----
-15
98
-87
98
-97
98

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + 42 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 + - col1 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2565
SELECT * FROM tab2 WHERE NOT - CAST( + col0 AS DECIMAL ) IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2565
SELECT * FROM tab2 WHERE NOT - CAST ( + col0 AS REAL ) IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT 42 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 55 = + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 59 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 28 BETWEEN col2 AND col0
----
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2570
SELECT DISTINCT COUNT( * ) AS col1, 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
68

skipif mysql # not compatible
query II rowsort label-2570
SELECT DISTINCT COUNT ( * ) AS col1, 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = - 57 - + col1 + - + col2
----

query I rowsort
SELECT + 94 * + - col0 AS col1 FROM tab2 AS cor0
----
-4324
-6016
-7050

query I rowsort
SELECT ALL - - ( 14 ) + - 68 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT - + col1 * col0 * - - col2 * col1 - + 90 AS col1 FROM tab0 AS cor0
----
-383760
-4625595
-9693

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> - 58 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + 59 AS col0 FROM tab0 AS cor0
----
-22
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL COUNT( * ) * - - 72 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL COUNT ( * ) * - - 72 FROM tab0 AS cor0
----
216

query I rowsort
SELECT + 55 + + - 54 AS col2 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT + 28 * col0 + - ( + col0 ) AS col2, 31 * + col1 FROM tab1
----
1377
434
2295
155
2457
1457

query I rowsort
SELECT ( - col0 ) * - col0 + + + 4 + + - 46 FROM tab2
----
2074
4054
5583

query I rowsort
SELECT ALL col0 * - col1 + + - col2 AS col1 FROM tab0
----
-1262
-1837
-196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2582
SELECT DISTINCT * FROM tab2 WHERE - col1 - - - 67 - col0 - + CAST( NULL AS SIGNED ) / - + col0 * - + col2 / - col1 * - - col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2582
SELECT DISTINCT * FROM tab2 WHERE - col1 - - - 67 - col0 - + CAST ( NULL AS INTEGER ) / - + col0 * - + col2 / - col1 * - - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( - 3 ) + - 97 + + - col1 * + 20 AS col2 FROM tab2
----
-1114
-1434
-1634

query I rowsort
SELECT ALL - col1 - - - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2585
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
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-2587
SELECT SUM ( + + col1 ) col0 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT ALL + - CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL + - CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL NOT BETWEEN + 95 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT - 4 AS col2, 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 2ba3329782ff1b2269c50d1f51d4c4c4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2592
SELECT ALL - CAST( 2 AS SIGNED ) FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - CAST ( 2 AS INTEGER ) FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + + 85 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - MAX( DISTINCT - 32 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2594
SELECT - MAX ( DISTINCT - 32 ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT + col2 * + + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2596
SELECT DISTINCT + - col2 DIV + - 24 AS col1 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT + - col2 / + - 24 AS col1 FROM tab0 AS cor0
----
0
1
4

query I rowsort
SELECT ( + - 52 ) FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL - + 87 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL - + 87 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
261

query I rowsort
SELECT ALL - - 46 AS col1 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL - 6 AS col0 FROM tab1 cor0
----
-6
-6
-6

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT DISTINCT - MIN( col2 ) AS col1, COUNT( * ) FROM tab0
----
-10
3

skipif mysql # not compatible
query II rowsort label-2602
SELECT DISTINCT - MIN ( col2 ) AS col1, COUNT ( * ) FROM tab0
----
-10
3

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 * col1 FROM tab2
----
-51
2601
-67
4489
-77
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT ALL + SUM( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL + SUM ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-2605
SELECT ALL - + col0 AS col2, 90 DIV ( - + col0 ) DIV + col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-2605
SELECT ALL - + col0 AS col2, 90 / ( - + col0 ) / + col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT - + 81 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 * 60 + - 35 * col2 * + col2 IS NULL
----
-81
-81
-81

query II rowsort
SELECT DISTINCT + 62 AS col1, col2 FROM tab2 AS cor0
----
62
23
62
40
62
58

query I rowsort
SELECT ALL + + 2 * 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT - + 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

query I rowsort
SELECT DISTINCT 62 * - - col0 + 58 AS col0 FROM tab0
----
5452
6072
988

query I rowsort
SELECT - col2 + + - 92 FROM tab2
----
-115
-132
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT - + MIN( DISTINCT - col0 ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2612
SELECT - + MIN ( DISTINCT - col0 ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
100

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 24 - - 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab0 AS cor0
----
35

query II rowsort
SELECT - + 15 + - col2 AS col1, 70 AS col2 FROM tab1 AS cor0
----
-111
70
-74
70
-83
70

query I rowsort
SELECT DISTINCT + - col1 + + ( - col0 ) + + + ( + + col2 ) FROM tab0 AS cor0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + SUM( - col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-2617
SELECT + SUM ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL + MIN( ALL + 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + MIN ( ALL + 35 ) FROM tab2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2619
SELECT - col2 DIV 88 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2619
SELECT - col2 / 88 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2620
SELECT + COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2620
SELECT + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT ALL * FROM tab0 WHERE NOT + 94 <= - col0 - - - CAST( + 74 AS SIGNED ) + + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2621
SELECT ALL * FROM tab0 WHERE NOT + 94 <= - col0 - - - CAST ( + 74 AS INTEGER ) + + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 63 FROM tab0
----
-16
-53
36

query I rowsort
SELECT ALL - - 12 - 97 AS col2 FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT + COUNT( * ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2625
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2626
SELECT col0 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - 42 + - col2 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2626
SELECT col0 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - 42 + - col2 * CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT 32 * - 23 AS col1 FROM tab2 WHERE NOT + col1 NOT IN ( col0 )
----

query I rowsort
SELECT 61 - 37 FROM tab1
----
24
24
24

query I rowsort
SELECT + col1 - + 88 * + col1 AS col1 FROM tab2
----
-4437
-5829
-6699

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 - + ( - 48 + 48 / + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL SUM( ALL 70 ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL SUM ( ALL 70 ) FROM tab2
----
210

query I rowsort
SELECT DISTINCT col0 / + col1 FROM tab1 WHERE col0 < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT + col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT + col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 26 + 11 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE col2 > - 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + col2 * col0 AS col2 FROM tab2 WHERE NOT ( 8 ) <> 12 + col1 * 69
----

query I rowsort
SELECT ( 40 ) AS col2 FROM tab0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT SUM( ALL 82 ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-2639
SELECT SUM ( ALL 82 ) FROM tab1
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT SUM( - 84 ) AS col1 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-2640
SELECT SUM ( - 84 ) AS col1 FROM tab2
----
-252

query III rowsort
SELECT * FROM tab2 WHERE col1 * 90 BETWEEN ( NULL ) AND + 31 / 46 + 17
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2642
SELECT ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN col1 * - col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2642
SELECT ( CAST ( NULL AS REAL ) ) AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN col1 * - col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 20 ) * - col2 + col1 BETWEEN + 51 * - 29 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 40 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + col0 col0 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT + ( 10 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col1 * col1 + - 79 FROM tab2 AS cor0
----
-2680
-4568
-6008

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 63 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= 74 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT DISTINCT ( ( - CAST( NULL AS SIGNED ) ) ) * 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT ( ( - CAST ( NULL AS INTEGER ) ) ) * 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

query I rowsort
SELECT DISTINCT + 64 + + col1 * 84 FROM tab0
----
148
1828
6868

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 11 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT + COUNT( * ) - - 20 AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2654
SELECT + COUNT ( * ) - - 20 AS col2 FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT + + SUM( DISTINCT + col1 ) * - CAST( - COUNT( * ) AS SIGNED ) - + MIN( col2 ) AS col1 FROM tab0 AS cor0
----
299

skipif mysql # not compatible
query I rowsort label-2655
SELECT + + SUM ( DISTINCT + col1 ) * - CAST ( - COUNT ( * ) AS INTEGER ) - + MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
299

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT DISTINCT + col1 + - 39 DIV 83 AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + col1 + - 39 / 83 AS col0 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT + - 92 - 81 * col2 FROM tab1 AS cor0
----
-4871
-5600
-7868

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT + + col2 DIV + col1 - 43 * - ( + ( 16 ) ) col2 FROM tab1 AS cor0
----
689
694
699

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2658
SELECT + + col2 / + col1 - 43 * - ( + ( 16 ) ) col2 FROM tab1 AS cor0
----
689
694
699

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 17 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2660
SELECT - 80 DIV + 5 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2660
SELECT - 80 / + 5 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT 38 * 80 + + ( - col1 ) FROM tab2 AS cor0
----
2963
2973
2989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT - - COUNT( * ) + 53 * - COUNT( + CAST( NULL AS SIGNED ) + col2 * - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2662
SELECT - - COUNT ( * ) + 53 * - COUNT ( + CAST ( NULL AS INTEGER ) + col2 * - col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT - col1 / CAST( NULL AS SIGNED ) + 77 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT - col1 / CAST ( NULL AS INTEGER ) + 77 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 76 * col0 FROM tab1 AS cor0 WHERE + 54 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col2 + col0 * + ( - 95 * - col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT CAST( col0 AS SIGNED ) FROM tab0 WHERE + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-2666
SELECT CAST ( col0 AS INTEGER ) FROM tab0 WHERE + col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( 39 / col1 - col1 )
----

query I rowsort
SELECT ALL 68 FROM tab1 WHERE NOT - col0 * 74 + col0 >= - col0
----
68
68
68

query III rowsort
SELECT * FROM tab2 WHERE col0 + + 75 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT COUNT( * ) AS col2 FROM tab0 WHERE + col2 BETWEEN col0 AND ( col1 )
----
1

skipif mysql # not compatible
query I rowsort label-2670
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE + col2 BETWEEN col0 AND ( col1 )
----
1

query I rowsort
SELECT ( + - 47 ) AS col1 FROM tab1
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT ALL col0 * col1 * col2 + - CAST( + 71 AS SIGNED ) * col2 AS col0 FROM tab1
----
20886
286008
61728

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL col0 * col1 * col2 + - CAST ( + 71 AS INTEGER ) * col2 AS col0 FROM tab1
----
20886
286008
61728

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT + MIN( + + col1 ) * + 50 + 85 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT + MIN ( + + col1 ) * + 50 + 85 FROM tab0 AS cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2674
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col1 ) + CAST( - col2 AS SIGNED ) * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2674
SELECT * FROM tab0 AS cor0 WHERE NOT - ( col1 ) + CAST ( - col2 AS INTEGER ) * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT - COUNT( * ) * - 47 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
423

skipif mysql # not compatible
query I rowsort label-2675
SELECT - COUNT ( * ) * - 47 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
423

query I rowsort
SELECT + ( + 56 ) * + col1 * 47 AS col0 FROM tab0
----
213192
2632
55272

query I rowsort
SELECT ALL col0 * - ( + 73 ) AS col1 FROM tab2
----
-3358
-4672
-5475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT - ( + col1 ) * - CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2678
SELECT - ( + col1 ) * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT 82 AS col2 FROM tab0 cor0 WHERE NOT 35 + + CAST( NULL AS SIGNED ) * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2679
SELECT 82 AS col2 FROM tab0 cor0 WHERE NOT 35 + + CAST ( NULL AS INTEGER ) * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2680
SELECT DISTINCT + col1, - col2 - 9 DIV + 6 FROM tab0 AS cor0
----
1
-100
21
-11
81
-48

skipif mysql # not compatible
query II rowsort label-2680
SELECT DISTINCT + col1, - col2 - 9 / + 6 FROM tab0 AS cor0
----
1
-100
21
-11
81
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + + 38 * + MIN( - col1 ) * 49 AS col1 FROM tab2 AS cor0
----
-143374

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + + 38 * + MIN ( - col1 ) * 49 AS col1 FROM tab2 AS cor0
----
-143374

onlyif mysql # aggregate syntax: 
query II rowsort label-2682
SELECT - + 84, + 89 + - - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-84
98

skipif mysql # not compatible
query II rowsort label-2682
SELECT - + 84, + 89 + - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-84
98

query I rowsort
SELECT DISTINCT - col0 + col2 * + col1 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2684
SELECT - SUM( DISTINCT 37 ) DIV - - 9 col0 FROM tab0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2684
SELECT - SUM ( DISTINCT 37 ) / - - 9 col0 FROM tab0
----
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE 18 + + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL - col0 + - ( - 53 ) AS col1 FROM tab1
----
-32
-38
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT COUNT( DISTINCT col2 ) * - 39 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT COUNT ( DISTINCT col2 ) * - 39 FROM tab2
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT 64 * col2 DIV - + col2 AS col1 FROM tab0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-2689
SELECT 64 * col2 / - + col2 AS col1 FROM tab0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - 65 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 IN ( - col2 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - - ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 83 BETWEEN NULL AND - 99
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2695
SELECT * FROM tab1 WHERE NULL NOT IN ( + + ( col2 ) - CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-2695
SELECT * FROM tab1 WHERE NULL NOT IN ( + + ( col2 ) - CAST ( NULL AS INTEGER ) * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 + ( + col2 ) * - + 22 col2 FROM tab2
----
-1342
-572
-946

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT MAX( + col2 ) * + 43 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4257

skipif mysql # not compatible
query I rowsort label-2697
SELECT MAX ( + col2 ) * + 43 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4257

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 + - col1 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT + - 9 + 92 + - + col1 FROM tab1 AS cor0
----
36
69
78

query I rowsort
SELECT 16 * + 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 + - - 63 FROM tab0
----
150
160
78

query III rowsort
SELECT ALL * FROM tab1 WHERE - 88 NOT IN ( 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT + col2 + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT + col2 + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col2 FROM tab0 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 + + - col0 + col2, col0 + + - col0 col0 FROM tab2 AS cor0
----
0
0
16
0
41
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN NULL AND 83
----

query I rowsort
SELECT DISTINCT - 86 - + ( - col1 ) AS col0 FROM tab2 cor0
----
-19
-35
-9

query I rowsort
SELECT DISTINCT + - col1 - + + 41 FROM tab1 AS cor0
----
-46
-55
-88

query II rowsort
SELECT ALL + col1 AS col2, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT + - SUM( ( col0 ) ) - + COUNT( * ) col2 FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2710
SELECT + - SUM ( ( col0 ) ) - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + col1 col1, col1 AS col2 FROM tab2
----
-28
51
-37
77
-9
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT + COUNT( - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT + COUNT ( - - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT SUM( ALL + 97 ) - - COUNT( * ) AS col0 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-2713
SELECT SUM ( ALL + 97 ) - - COUNT ( * ) AS col0 FROM tab0
----
294

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( NOT + col1 >= ( col2 ) )
----

query II rowsort
SELECT DISTINCT 66 AS col1, col0 - + - 86 + ( - 30 ) AS col0 FROM tab1
----
66
107
66
141
66
147

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 22 )
----

query I rowsort
SELECT col0 * + ( + + ( 56 ) ) - + 35 AS col0 FROM tab2
----
2541
3549
4165

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2718
SELECT ALL col2 * - col0 * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL col2 * - col0 * + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE + ( - + 92 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT col0 DIV + 40 AS col0 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-2720
SELECT col0 / + 40 AS col0 FROM tab0
----
0
2
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2721
SELECT 42 DIV - 62 AS col2, - col1 * - - col2 FROM tab1
----
0
-1344
0
-295
0
-3196

skipif mysql # not compatible
query II rowsort label-2721
SELECT 42 / - 62 AS col2, - col1 * - - col2 FROM tab1
----
0
-1344
0
-295
0
-3196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 90 < col0
----
91
47
68

query I rowsort
SELECT ALL ( + + 37 ) FROM tab1 AS cor0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT col1 DIV - - ( + col1 ) FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2724
SELECT col1 / - - ( + col1 ) FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, col0 col2 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2726
SELECT + SUM( - - col0 ), CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
199
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2726
SELECT + SUM ( - - col0 ), CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
199
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - 48 + COUNT( * ) * + COUNT( * ) + + 97 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-2728
SELECT - 48 + COUNT ( * ) * + COUNT ( * ) + + 97 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + MIN( DISTINCT - - 41 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2730
SELECT + MIN ( DISTINCT - - 41 ) FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT 73 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1095
6351
7081

skipif mysql # not compatible
query I rowsort label-2731
SELECT 73 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1095
6351
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT 66 * - MAX( ALL - 74 ) AS col2 FROM tab1
----
4884

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT 66 * - MAX ( ALL - 74 ) AS col2 FROM tab1
----
4884

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * + col1 - - col1 ) NOT IN ( 36, + 55 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 col0 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ALL 93 + col0 + - col1 FROM tab0
----
159
189
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 52 * + col1 * - ( + col1 ) ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT col2 DIV + 58 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2738
SELECT col2 / + 58 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL 41 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + 9
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 10 NOT BETWEEN + col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 81 ) + + col2 + - col1 FROM tab1
----
-27
-60
1

query I rowsort
SELECT DISTINCT col1 + - 97 + - + col2 + - col0 FROM tab2
----
-115
-124
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT ALL 67 + - - COUNT( * ) + + + ( COUNT( * ) ), - 27 AS col2 FROM tab1
----
73
-27

skipif mysql # not compatible
query II rowsort label-2743
SELECT ALL 67 + - - COUNT ( * ) + + + ( COUNT ( * ) ), - 27 AS col2 FROM tab1
----
73
-27

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE ( + col2 + col1 ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL 20 * col0 FROM tab1 AS cor0
----
1020
1700
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT 59 * + COUNT( * ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-2746
SELECT 59 * + COUNT ( * ) FROM tab2 AS cor0
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 col0, + ( col2 ) FROM tab1 cor0
----
9
59
9
68
9
96

query I rowsort
SELECT - 2 * col2 * - 37 * 60 + col1 AS col2 FROM tab0 AS cor0
----
208761
439561
44421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT ALL col2 + - - CAST( col1 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL col2 + - - CAST ( col1 AS INTEGER ) FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT - MIN( DISTINCT - + col2 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2750
SELECT - MIN ( DISTINCT - + col2 ) col0 FROM tab2
----
58

query I rowsort
SELECT + 4 - - - col1 AS col0 FROM tab2
----
-47
-63
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - - COUNT( * ) * COUNT( * ) - + - 16 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2752
SELECT - - COUNT ( * ) * COUNT ( * ) - + - 16 FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL + + col1 * - CAST( + col1 AS SIGNED ) + + col0 col2 FROM tab1 AS cor0
----
-145
-2118
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2753
SELECT ALL + + col1 * - CAST ( + col1 AS INTEGER ) + + col0 col2 FROM tab1 AS cor0
----
-145
-2118
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2754
SELECT col1 + + CAST( NULL AS SIGNED ) AS col0, col2 col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2754
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col0, col2 col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + 70 + col2 * + - col0 AS col1 FROM tab0 AS cor0
----
-635
-800
-9533

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT COUNT( + col2 ) + 45 + 1 - 6 AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2756
SELECT COUNT ( + col2 ) + 45 + 1 - 6 AS col1 FROM tab2 AS cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 - - col0 + + col1 col1 FROM tab1 cor0
----
118
143
191

query I rowsort
SELECT - col1 * 56 + 4 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1172
-4532
-52

query II rowsort
SELECT ALL + 81 AS col2, - col2 AS col0 FROM tab1
----
81
-59
81
-68
81
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT - 70 DIV col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2760
SELECT - 70 / col0 AS col0 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * col2 * 89 FROM tab0 AS cor0
----
62745
77430
854667

query I rowsort
SELECT + col1 * - - col2 + - - col2 FROM tab1 AS cor0
----
1440
3264
354

query II rowsort
SELECT DISTINCT col0 AS col2, ( + 9 ) FROM tab2 cor0
----
46
9
64
9
75
9

query I rowsort
SELECT - col2 + - - 73 FROM tab0 AS cor0
----
-26
26
63

query I rowsort
SELECT ALL - + 76 + col0 AS col1 FROM tab1 AS cor0
----
-25
15
9

query I rowsort
SELECT - + col2 + - 46 + + col1 + + + 92 FROM tab0 AS cor0
----
-52
57
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT COUNT( * ) + - 88 col0 FROM tab0 cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2768
SELECT COUNT ( * ) + - 88 col0 FROM tab0 cor0
----
-85

query II rowsort
SELECT ALL - 71 * + col0 AS col2, col0 * + col1 AS col0 FROM tab0
----
-1065
1215
-6177
1827
-6887
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 + 70 col2 FROM tab2
----
4
4
4

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - 37 / 25 IS NULL
----

query I rowsort
SELECT DISTINCT + 33 + - 32 FROM tab1
----
1

query I rowsort
SELECT ALL + 97 FROM tab1 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - + 85 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2775
SELECT - CAST( - col0 AS SIGNED ) DIV + col2 AS col1 FROM tab2 WHERE - 61 + - 24 <= + - col1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2775
SELECT - CAST ( - col0 AS INTEGER ) / + col2 AS col1 FROM tab2 WHERE - 61 + - 24 <= + - col1
----
1
1
2

query I rowsort
SELECT DISTINCT 76 * - 28 * - ( - + col1 ) AS col1 FROM tab1
----
-100016
-10640
-29792

query I rowsort
SELECT + + col0 - - - col0 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT DISTINCT col2 DIV - 98 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IN ( 89 )
----
-1
0

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT col2 / - 98 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IN ( 89 )
----
-1
0

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
24

query I rowsort
SELECT - 62 + 59 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT + col1 + + col1 + col0 AS col0 FROM tab0
----
129
177
99

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

query I rowsort
SELECT - col2 * + col1 * 27 * - 99 + + col1 AS col2 FROM tab2 AS cor0
----
10387345
3135480
8232917

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT - COUNT( * ) * - SUM( + col0 ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-2784
SELECT - COUNT ( * ) * - SUM ( + col0 ) FROM tab0 AS cor0
----
597

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT + + MIN( + - 94 ) col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2786
SELECT + + MIN ( + - 94 ) col2 FROM tab0 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT SUM( + + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2787
SELECT SUM ( + + col1 ) FROM tab2
----
195

query II rowsort
SELECT col0 * + col2, col0 AS col2 FROM tab1
----
4896
51
5015
85
6188
91

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NOT + 79 BETWEEN - col1 - - col2 AND + col2
----
-15
-87
-97

query I rowsort
SELECT 72 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 4 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT + + MIN( + 79 ) AS col2 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + + MIN ( + 79 ) AS col2 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ALL + 72 + - col0 AS col2 FROM tab1 AS cor0
----
-13
-19
21

query I rowsort
SELECT - ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT - 16 DIV - col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2795
SELECT - 16 / - col1 FROM tab1 AS cor0
----
0
1
3

query I rowsort
SELECT ALL ( 30 ) AS col0 FROM tab1
----
30
30
30

query I rowsort
SELECT ALL - col0 + + ( + + 39 ) FROM tab0
----
-48
-58
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col2 * 75 col2 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT DISTINCT - col0 - - + col2 + - - col1 FROM tab1 cor0
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + MIN( - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2800
SELECT + MIN ( - col1 ) FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2801
SELECT ALL - SUM( ALL CAST( NULL AS SIGNED ) ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT ALL - SUM ( ALL CAST ( NULL AS INTEGER ) ) col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL + COUNT( ALL + col2 ) * COUNT( * ) + - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + COUNT ( ALL + col2 ) * COUNT ( * ) + - COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE col1 >= col2 - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 42 = 8
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - 38 * 75 * 40 FROM tab1 cor0
----
-114000
-114000
-114000

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT - ( - 42 ) AS col2, - COUNT( * ) * + + 42 AS col1 FROM tab2 AS cor0
----
42
-126

skipif mysql # not compatible
query II rowsort label-2806
SELECT - ( - 42 ) AS col2, - COUNT ( * ) * + + 42 AS col1 FROM tab2 AS cor0
----
42
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT - + ( + - COUNT( + col2 ) ) * + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 56 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2807
SELECT - + ( + - COUNT ( + col2 ) ) * + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 56 IS NOT NULL
----
0

query I rowsort
SELECT - 56 * - 93 FROM tab0 AS cor0
----
5208
5208
5208

query I rowsort
SELECT DISTINCT - - 23 * + + col1 + - col1 AS col2 FROM tab0 AS cor0
----
1782
22
462

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT ALL - 30 DIV 95 * - - col1 * + - ( - + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL - 30 / 95 * - - col1 * + - ( - + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT + CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2811
SELECT + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + MIN( col2 ) * + + 98 AS col2 FROM tab1 AS cor0
----
5782

skipif mysql # not compatible
query I rowsort label-2812
SELECT + MIN ( col2 ) * + + 98 AS col2 FROM tab1 AS cor0
----
5782

query II rowsort
SELECT ALL - - ( ( + 22 ) ) AS col1, 98 * + - col0 * 28 FROM tab0 AS cor0
----
22
-238728
22
-266168
22
-41160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2814
SELECT ALL - + ( - CAST( NULL AS DECIMAL ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2814
SELECT ALL - + ( - CAST ( NULL AS REAL ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < - 74
----
51
14
96

query I rowsort
SELECT ALL - col2 * + 15 FROM tab1
----
-1020
-1440
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT col0 NOT IN ( + col0 * - + col0, - 18 * col1 + + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT col0 NOT IN ( + col0 * - + col0, - 18 * col1 + + 42 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT DISTINCT MAX( - - CAST( NULL AS SIGNED ) ) * - - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT MAX ( - - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT ALL 80 DIV col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 80 / col2 FROM tab0
----
0
1
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2820
SELECT DISTINCT + 77 * ( - - 60 ) AS col1, SUM( + 23 ) * + + ( + 14 ) FROM tab0
----
4620
966

skipif mysql # not compatible
query II rowsort label-2820
SELECT DISTINCT + 77 * ( - - 60 ) AS col1, SUM ( + 23 ) * + + ( + 14 ) FROM tab0
----
4620
966

onlyif mysql # DIV for integer division: 
query I rowsort label-2821
SELECT ALL + col1 DIV - 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + col1 / - 82 FROM tab2
----
0
0
0

query I rowsort
SELECT + 47 FROM tab2 AS cor0 WHERE - 41 IS NULL OR + 37 NOT IN ( - 84, ( - col0 ) )
----
47
47
47

query II rowsort
SELECT + col0 AS col2, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col2 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2825
SELECT col1 * - + 11 + - + CAST( + col0 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( 19 ) / CAST( NULL AS DECIMAL ) * + col1 + + 47 IS NOT NULL
----
-630
-870
-951

skipif mysql # not compatible
query I rowsort label-2825
SELECT col1 * - + 11 + - + CAST ( + col0 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( 19 ) / CAST ( NULL AS REAL ) * + col1 + + 47 IS NOT NULL
----
-630
-870
-951

onlyif mysql # aggregate syntax: 
query II rowsort label-2826
SELECT DISTINCT + COUNT( * ) col2, MIN( + + col1 ) AS col1 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2826
SELECT DISTINCT + COUNT ( * ) col2, MIN ( + + col1 ) AS col1 FROM tab1 AS cor0
----
3
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 61 + + - col0 <= + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + 18 + + - SUM( + - 20 ) AS col2 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2828
SELECT + 18 + + - SUM ( + - 20 ) AS col2 FROM tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT + 25 + + + col2 AS col0 FROM tab0 AS cor0
----
124
35
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 63 + + col0 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2831
SELECT + - CAST( NULL AS SIGNED ) / - - col0 AS col0, + col1 + - 56 FROM tab2 AS cor0
----
NULL
-5
NULL
11
NULL
21

skipif mysql # not compatible
query II rowsort label-2831
SELECT + - CAST ( NULL AS INTEGER ) / - - col0 AS col0, + col1 + - 56 FROM tab2 AS cor0
----
NULL
-5
NULL
11
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT + col0 AS col1 FROM tab2 WHERE CAST( + 94 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2832
SELECT + col0 AS col1 FROM tab2 WHERE CAST ( + 94 AS INTEGER ) > NULL
----

query II rowsort
SELECT DISTINCT 54 AS col1, 41 AS col2 FROM tab1
----
54
41

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE + col2 IN ( + col1, + col0, + 24, - col1 + - - col0 )
----

query I rowsort
SELECT ALL ( + 90 ) AS col0 FROM tab0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT + COUNT( DISTINCT + - 4 ) FROM tab0 WHERE NOT + 53 + 66 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + COUNT ( DISTINCT + - 4 ) FROM tab0 WHERE NOT + 53 + 66 IS NULL
----
1

query I rowsort
SELECT ALL 37 + + - col1 AS col0 FROM tab2
----
-14
-30
-40

query I rowsort
SELECT + col0 - - - 58 + + col0 * + + col1 * + + col2 + - ( - 89 ) AS col0 FROM tab2
----
197215
291556
54035

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 + + 71 AS col1 FROM tab1
----
118
76
85

query I rowsort
SELECT ALL + 41 - + col1 FROM tab0 AS cor0
----
-40
20
40

query I rowsort
SELECT ALL 79 - - col0 + - 16 AS col2 FROM tab0 AS cor0
----
150
160
78

query I rowsort
SELECT DISTINCT + ( + col2 ) - - - col1 AS col1 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT - ( - + COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + + 49 - + col1 FROM tab2 AS cor0
----
-18
-2
-28

query I rowsort
SELECT - 16 * + 33 FROM tab1
----
-528
-528
-528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT ALL CAST( + + 79 AS SIGNED ) FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL CAST ( + + 79 AS INTEGER ) FROM tab1
----
79
79
79

query I rowsort
SELECT ALL + 65 * + - col0 AS col0 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT ALL - 57 FROM tab1 AS cor0 WHERE NOT - 24 * + - 49 + + + col2 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT ALL - + 0 AS col0, + 59 + + 76 - - 86 * - SUM( ALL 69 ) FROM tab1 cor0
----
0
-17667

skipif mysql # not compatible
query II rowsort label-2851
SELECT ALL - + 0 AS col0, + 59 + + 76 - - 86 * - SUM ( ALL 69 ) FROM tab1 cor0
----
0
-17667

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT + + MAX( + + col0 ) col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2852
SELECT DISTINCT + + MAX ( + + col0 ) col1 FROM tab0 AS cor0
----
97

query II rowsort
SELECT DISTINCT col0 AS col1, 61 AS col2 FROM tab0 AS cor0
----
15
61
87
61
97
61

query I rowsort
SELECT ALL - + col1 * - 14 AS col2 FROM tab2 AS cor0
----
1078
714
938

query II rowsort
SELECT DISTINCT 2 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
2
-1
2
-21
2
-81

query II rowsort
SELECT + 81 AS col1, + col0 + 98 + - col0 + col2 FROM tab0 AS cor0
----
81
108
81
145
81
197

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + - SUM( + - 4 ) * 42 FROM tab2 AS cor0
----
504

skipif mysql # not compatible
query I rowsort label-2857
SELECT + - SUM ( + - 4 ) * 42 FROM tab2 AS cor0
----
504

query I rowsort
SELECT ( - ( + col1 ) ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col1 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 * - - col0 col2 FROM tab2
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ( - MAX( - + 22 ) ) AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-2861
SELECT ( - MAX ( - + 22 ) ) AS col1 FROM tab2
----
22

query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT - - 94 + 40 FROM tab2 AS cor0
----
134
134
134

query I rowsort
SELECT ALL - + col0 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # DIV for integer division: 
query II rowsort label-2865
SELECT col2 DIV - 51 AS col2, col2 DIV + col1 FROM tab1 cor0
----
-1
1
-1
11
-1
6

skipif mysql # not compatible
query II rowsort label-2865
SELECT col2 / - 51 AS col2, col2 / + col1 FROM tab1 cor0
----
-1
1
-1
11
-1
6

query II rowsort
SELECT DISTINCT - 59 + - ( - col1 ), + col1 FROM tab0
----
-38
21
-58
1
22
81

query II rowsort
SELECT ALL - - col0 AS col1, 62 FROM tab2 AS cor0
----
46
62
64
62
75
62

query I rowsort
SELECT DISTINCT - 64 * - ( + col0 ) + - 75 - - col0 + - - col0 * ( - col2 ) * 41 * + - col1 FROM tab1 AS cor0
----
1033525
11930116
2813544

query I rowsort
SELECT + 14 * 26 + + col2 * + - 19 * - + col0 AS col0 FROM tab1 AS cor0
----
117936
93388
95649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col0 + - col0 + - 29 * - col2 col1 FROM tab2 AS cor0
----
1096
1607
621

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT DISTINCT - 91 * 72 - - SUM( DISTINCT - - col0 ) - 15 AS col2 FROM tab1 AS cor0
----
-6340

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT - 91 * 72 - - SUM ( DISTINCT - - col0 ) - 15 AS col2 FROM tab1 AS cor0
----
-6340

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + + SUM( ALL - col2 ) + - 62 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2872
SELECT + + SUM ( ALL - col2 ) + - 62 FROM tab1 AS cor0
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT 8 + - COUNT( * ) AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT 8 + - COUNT ( * ) AS col2 FROM tab2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT - 59 AS col2 FROM tab1 WHERE ( ( + CAST( NULL AS SIGNED ) IS NOT NULL ) )
----

skipif mysql # not compatible
query I rowsort label-2874
SELECT - 59 AS col2 FROM tab1 WHERE ( ( + CAST ( NULL AS INTEGER ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL - MAX( DISTINCT - - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL - MAX ( DISTINCT - - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT + 97 * SUM( + 85 ) FROM tab0 WHERE NULL IS NULL
----
24735

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + 97 * SUM ( + 85 ) FROM tab0 WHERE NULL IS NULL
----
24735

query I rowsort
SELECT col0 * + col2 * + col2 AS col1 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT - 45 * - + 9 FROM tab1 AS cor0
----
405

query I rowsort
SELECT DISTINCT - - 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2880
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / - - 17 + + + CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2880
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / - - 17 + + + CAST ( - col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + - MIN( - - ( + + col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2881
SELECT + - MIN ( - - ( + + col2 ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2882
SELECT + CAST( NULL AS SIGNED ) AS col1, col1 DIV + col2 FROM tab0 AS cor0
----
NULL
0
NULL
1
NULL
2

skipif mysql # not compatible
query II rowsort label-2882
SELECT + CAST ( NULL AS INTEGER ) AS col1, col1 / + col2 FROM tab0 AS cor0
----
NULL
0
NULL
1
NULL
2

query I rowsort
SELECT - + 33 AS col2 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + + COUNT( * ) * - 16 AS col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-2884
SELECT + + COUNT ( * ) * - 16 AS col2 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL - ( COUNT( * ) ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2885
SELECT ALL - ( COUNT ( * ) ) col0 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN + - col2 AND + 46 * 42
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 5 + + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT DISTINCT + col1 DIV - 67 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + col1 / - 67 AS col2 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT SUM( DISTINCT - 19 ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT SUM ( DISTINCT - 19 ) AS col0 FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2890
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 56 * - + col1 AS col2 FROM tab2
----
NULL
-2856
NULL
-3752
NULL
-4312

skipif mysql # not compatible
query II rowsort label-2890
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 56 * - + col1 AS col2 FROM tab2
----
NULL
-2856
NULL
-3752
NULL
-4312

query I rowsort
SELECT ALL - - 94 AS col2 FROM tab2 WHERE NULL IS NULL
----
94
94
94

query I rowsort
SELECT DISTINCT 85 * + - 0 + - col0 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2893
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2893
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT DISTINCT - - col1 DIV col1 DIV col1 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT - - col1 / col1 / col1 AS col0 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2895
SELECT ALL - col0 DIV - 9 FROM tab0 AS cor0
----
1
10
9

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL - col0 / - 9 FROM tab0 AS cor0
----
1
10
9

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + + col2 IS NULL
----

query I rowsort
SELECT ALL 84 * - + col0 FROM tab0
----
-1260
-7308
-8148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT ALL + - CAST( - 33 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + - CAST ( - 33 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
3

query I rowsort
SELECT col1 * - 55 + + + col1 AS col1 FROM tab0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT - - COUNT( * ) + - 44 AS col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-2901
SELECT - - COUNT ( * ) + - 44 AS col2 FROM tab0 AS cor0
----
-41

query II rowsort
SELECT DISTINCT 84 + col1 AS col1, col0 * + + col2 FROM tab2 AS cor0
----
135
1058
151
4350
161
2560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2903
SELECT DISTINCT + - ( + - 91 ) + + + 4 AS col2, col1 + + col1 * + col1 - + ( + 95 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-2903
SELECT DISTINCT + - ( + - 91 ) + + + 4 AS col2, col1 + + col1 * + col1 - + ( + 95 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
95
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 14 col1 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2905
SELECT DISTINCT SUM( ALL - 55 ) * - 94 * + 23 + + + CAST( NULL AS DECIMAL ) * - CAST( - SUM( - col1 ) AS SIGNED ) / - + 6 + 33 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT SUM ( ALL - 55 ) * - 94 * + 23 + + + CAST ( NULL AS REAL ) * - CAST ( - SUM ( - col1 ) AS INTEGER ) / - + 6 + 33 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT - col2 * + 90 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL - col2 DIV + 76 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - col2 / + 76 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT ALL + col0 DIV - 14 FROM tab2 AS cor0
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + col0 / - 14 FROM tab2 AS cor0
----
-3
-4
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col1 + - col0 * 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT DISTINCT COUNT( DISTINCT - 27 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT COUNT ( DISTINCT - 27 ) FROM tab1
----
1

query I rowsort
SELECT + ( - 32 ) - + 77 * + col0 AS col2 FROM tab2
----
-3574
-4960
-5807

query I rowsort
SELECT col0 - - + col2 + - 83 FROM tab0
----
-21
113
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2913
SELECT ALL - CAST( NULL AS SIGNED ), col2 * - col2 AS col1 FROM tab0
----
NULL
-100
NULL
-2209
NULL
-9801

skipif mysql # not compatible
query II rowsort label-2913
SELECT ALL - CAST ( NULL AS INTEGER ), col2 * - col2 AS col1 FROM tab0
----
NULL
-100
NULL
-2209
NULL
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT + 71 - - COUNT( * ) AS col1 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-2914
SELECT + 71 - - COUNT ( * ) AS col1 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT 77 - + + MAX( DISTINCT col2 ) * + 53 AS col1 FROM tab2
----
-2997

skipif mysql # not compatible
query I rowsort label-2915
SELECT 77 - + + MAX ( DISTINCT col2 ) * + 53 AS col1 FROM tab2
----
-2997

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2916
SELECT ALL + 15 AS col0, - col0 * CAST( - 91 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
15
4186
15
5824
15
6825

skipif mysql # not compatible
query II rowsort label-2916
SELECT ALL + 15 AS col0, - col0 * CAST ( - 91 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
15
4186
15
5824
15
6825

query II rowsort
SELECT DISTINCT + 50 AS col2, col2 FROM tab1 AS cor0
----
50
59
50
68
50
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2918
SELECT DISTINCT - CAST( COUNT( + - col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT - CAST ( COUNT ( + - col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT CAST( 54 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-2920
SELECT CAST ( 54 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT col1 * + col0 AS col2 FROM tab0 WHERE NULL >= + col0 + + + 8
----

query II rowsort
SELECT 58, col1 FROM tab1
----
58
14
58
47
58
5

query III rowsort
SELECT ALL * FROM tab1 WHERE 51 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 60 + col0 AS col2 FROM tab0
----
-45
27
37

query III rowsort
SELECT ALL * FROM tab0 WHERE 92 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col2 >= NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2927
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( - ( 94 ) AS DECIMAL ) < col2
----

skipif mysql # not compatible
query III rowsort label-2927
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( - ( 94 ) AS REAL ) < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT DISTINCT 78 * CAST( NULL AS SIGNED ) + - - 84 + - - col0 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2928
SELECT DISTINCT 78 * CAST ( NULL AS INTEGER ) + - - 84 + - - col0 col2 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - 95 AS col1, 47 AS col0 FROM tab0
----
-95
47

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - 27 + + + COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2931
SELECT - 27 + + + COUNT ( * ) FROM tab0 AS cor0
----
-24

query I rowsort
SELECT col2 + + + 77 AS col0 FROM tab0 AS cor0
----
124
176
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + MAX( ALL + 82 ) AS col2 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + MAX ( ALL + 82 ) AS col2 FROM tab2 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL + MIN( + - col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL + MIN ( + - col1 ) AS col2 FROM tab0
----
-81

query II rowsort
SELECT ALL col2 * col0 AS col2, 52 AS col2 FROM tab2
----
1058
52
2560
52
4350
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2937
SELECT ALL + 0 DIV MIN( DISTINCT + 9 ) * 16 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + 0 / MIN ( DISTINCT + 9 ) * 16 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + 67 AS col0 FROM tab1
----
3953
4556
6432

query II rowsort
SELECT - col2, col0 AS col2 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT 58 * - - col2 FROM tab0
----
2726
5742
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT - 41 + + - col0 FROM tab0 AS cor0
----
-128
-138
-56

query I rowsort
SELECT DISTINCT - col2 * + - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + SUM( 43 ) AS col2 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-2945
SELECT + SUM ( 43 ) AS col2 FROM tab1
----
129

query I rowsort
SELECT DISTINCT + ( + col1 ) * + col2 + col2 AS col2 FROM tab2
----
1196
3120
3944

query II rowsort
SELECT DISTINCT - col0 * + ( 87 ) + col0 AS col0, col1 AS col2 FROM tab2
----
-3956
51
-5504
77
-6450
67

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 68 * - ( 41 ) AND + - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - COUNT( * ) * - 30 AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-2949
SELECT - COUNT ( * ) * - 30 AS col1 FROM tab2
----
90

query I rowsort
SELECT + + 72 + + 69 + - 88 AS col0 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT ALL 23 * + 8 + - - col1 AS col0 FROM tab2
----
235
251
261

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT col0 DIV ( col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2952
SELECT col0 / ( col0 ) FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT DISTINCT + col2 DIV - col2 + - + 24 - col0 + - - 3 - col0 + - 68 AS col1 FROM tab0 AS cor0
----
-120
-264
-284

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + col2 / - col2 + - + 24 - col0 + - - 3 - col0 + - 68 AS col1 FROM tab0 AS cor0
----
-120
-264
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL - - 28 + + COUNT( * ) * + 19 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - - 28 + + COUNT ( * ) * + 19 FROM tab1 AS cor0
----
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 73 BETWEEN ( col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * + 23 * + + 91 col2 FROM tab0 cor0 WHERE NULL BETWEEN 21 - - + col0 * 34 + + col1 AND + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT + - COUNT( * ) * 60 - + MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
-239

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + - COUNT ( * ) * 60 - + MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
-239

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NOT ( col2 IS NULL )
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9, col0 col0 FROM tab0
----
9
15
9
87
9
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2961
SELECT ALL COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-2961
SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) FROM tab0
----
0
3

query II rowsort
SELECT ALL + 66 * + 43, - col2 AS col1 FROM tab2
----
2838
-23
2838
-40
2838
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - + col2
----

query II rowsort
SELECT ALL - col0 * + col1 AS col2, - col0 AS col2 FROM tab2
----
-2346
-46
-4928
-64
-5025
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col1 col1, 19 * - - col1 - - 14 AS col1 FROM tab1
----
1344
280
295
109
3196
907

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 = - 85 + 40 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2967
SELECT + 78, ( - 93 ) + + COUNT( - col1 ) AS col0 FROM tab1
----
78
-90

skipif mysql # not compatible
query II rowsort label-2967
SELECT + 78, ( - 93 ) + + COUNT ( - col1 ) AS col0 FROM tab1
----
78
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2968
SELECT ALL - 89 DIV + - 64 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - 89 / + - 64 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + col1 * 23 FROM tab2
----
1173
1541
1771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab1 AS cor0 WHERE col1 * + 89 / + ( - + col1 ) + col0 IS NULL
----

query I rowsort
SELECT ALL 80 - - + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 col2, - col2 * - + 91 FROM tab0 AS cor0
----
-1
4277
-1
9009
-1
910

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + COUNT( DISTINCT 84 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2973
SELECT + COUNT ( DISTINCT 84 ) AS col0 FROM tab0 AS cor0
----
1

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT + 41 AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
41
0

skipif mysql # not compatible
query II rowsort label-2975
SELECT + 41 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT 80 * + MIN( ALL 20 ) FROM tab1 AS cor0
----
1600

skipif mysql # not compatible
query I rowsort label-2976
SELECT 80 * + MIN ( ALL 20 ) FROM tab1 AS cor0
----
1600

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= + col0 )
----

query I rowsort
SELECT - - 81 AS col0 FROM tab0 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT DISTINCT - MAX( + 21 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - MAX ( + 21 ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT + 10 * col2 AS col0 FROM tab1 AS cor0
----
590
680
960

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 92 * + col0 + + - 35 / col2 >= col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 53, + col2 * + col0 FROM tab2 WHERE NOT + + col2 <> NULL
----

query I rowsort
SELECT 98 + - + col1 FROM tab2
----
21
31
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + COUNT( DISTINCT col0 ) + 51 AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2984
SELECT + COUNT ( DISTINCT col0 ) + 51 AS col2 FROM tab1
----
54

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2986
SELECT DISTINCT 18 * - + COUNT( * ) * 71 + 90, + 28 AS col0 FROM tab0
----
-3744
28

skipif mysql # not compatible
query II rowsort label-2986
SELECT DISTINCT 18 * - + COUNT ( * ) * 71 + 90, + 28 AS col0 FROM tab0
----
-3744
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - 85 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col2 < + - 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL 88 + + COUNT( * ) + + ( + + 96 ) FROM tab2 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL 88 + + COUNT ( * ) + + ( + + 96 ) FROM tab2 AS cor0
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2991
SELECT ALL + MIN( - CAST( col2 AS SIGNED ) ) - + COUNT( - col2 ) + - + 85 FROM tab1 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + MIN ( - CAST ( col2 AS INTEGER ) ) - + COUNT ( - col2 ) + - + 85 FROM tab1 AS cor0
----
-184

query I rowsort
SELECT col2 * + col2 + + + col2 + 16 AS col0 FROM tab2 AS cor0
----
1656
3438
568

query I rowsort
SELECT DISTINCT col1 - - - ( 69 ) AS col1 FROM tab1 AS cor0
----
-22
-55
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 53 / + + 11 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 80 * - col0 AS col2 FROM tab1
----
-4080
-6800
-7280

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 92 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * 1 * - + 84 FROM tab1
----
-4284
-7140
-7644

query I rowsort
SELECT - 79 * - 28 FROM tab2
----
2212
2212
2212

query I rowsort
SELECT + ( - + ( + col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 32 * 37 AS col0 FROM tab0 AS cor0
----
-1184

query II rowsort
SELECT DISTINCT - col0, 24 + + - 81 AS col2 FROM tab2
----
-46
-57
-64
-57
-75
-57

query I rowsort
SELECT col0 + + - col0 * + col0 + + 46 FROM tab2
----
-2024
-3986
-5504

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL COUNT( col2 ) + - 75 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL COUNT ( col2 ) + - 75 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT - + col2 AS col0 FROM tab1 AS cor0 WHERE NULL >= + col1
----

query I rowsort
SELECT DISTINCT 74 * + 73 + - 93 AS col0 FROM tab1 cor0
----
5309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT ALL - + col2 * + + ( - - col2 ) * CAST( NULL AS SIGNED ) + - - col2 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3007
SELECT ALL - + col2 * + + ( - - col2 ) * CAST ( NULL AS INTEGER ) + - - col2 col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 98 + - col0 + - + ( + 33 ) * + + col0 * + - col0 AS col0 FROM tab2
----
135202
185648
69880

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( - - 13 ) * - - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3010
SELECT + col0 * - CAST( NULL AS DECIMAL ) AS col0, col2 * - 41 FROM tab0
----
NULL
-1927
NULL
-4059
NULL
-410

skipif mysql # not compatible
query II rowsort label-3010
SELECT + col0 * - CAST ( NULL AS REAL ) AS col0, col2 * - 41 FROM tab0
----
NULL
-1927
NULL
-4059
NULL
-410

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3011
SELECT COUNT( * ) + - CAST( NULL AS DECIMAL ) col2 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3011
SELECT COUNT ( * ) + - CAST ( NULL AS REAL ) col2 FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT ALL + 10 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + 10 / + col0 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col2 FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT 38 + + SUM( col0 ) AS col2 FROM tab2 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT 38 + + SUM ( col0 ) AS col2 FROM tab2 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT DISTINCT + + ( + col2 ) * + CAST( NULL AS SIGNED ) + - col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + + ( + col2 ) * + CAST ( NULL AS INTEGER ) + - col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT 64 * + - 47 AS col2 FROM tab0
----
-3008
-3008
-3008

query II rowsort
SELECT ALL + col2, col1 - - col2 FROM tab0
----
10
31
47
128
99
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL - MIN( DISTINCT - - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - MIN ( DISTINCT - - col1 ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT DISTINCT + - COUNT( * ) AS col0, + 54 * 3 AS col2 FROM tab2 cor0
----
-3
162

skipif mysql # not compatible
query II rowsort label-3019
SELECT DISTINCT + - COUNT ( * ) AS col0, + 54 * 3 AS col2 FROM tab2 cor0
----
-3
162

query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 AS col1 FROM tab1 AS cor0 WHERE + col1 * - col1 IS NOT NULL
----
-145
-2118
60

query II rowsort
SELECT 86 AS col2, + col0 AS col2 FROM tab2 cor0
----
86
46
86
64
86
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * col1 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3023
SELECT 94, 58 DIV 16 AS col0 FROM tab0 AS cor0
----
94
3
94
3
94
3

skipif mysql # not compatible
query II rowsort label-3023
SELECT 94, 58 / 16 AS col0 FROM tab0 AS cor0
----
94
3
94
3
94
3

query II rowsort
SELECT - col0 AS col1, - 18 AS col1 FROM tab2 AS cor0
----
-46
-18
-64
-18
-75
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * col2 + col1 + col2 / - col0 BETWEEN NULL AND - col2 * - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT + 45 * COUNT( * ) FROM tab2 cor0
----
135

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + 45 * COUNT ( * ) FROM tab2 cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 89 * + col1 * - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 89 * + col1 * - + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ( - ( COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3029
SELECT ( - ( COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT col1 * - - ( - col2 ) * - col1 * + col0 FROM tab2
----
15178240
19527150
2751858

query II rowsort
SELECT ALL + col0 * - col2 AS col1, + col0 AS col1 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3032
SELECT DISTINCT - ( - + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - ( - + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT + ( + ( + col2 ) ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ( col2 ) + - - 55 * - + 2 * 79 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * col0 BETWEEN + - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 * + - col0 col2 FROM tab0 WHERE + + ( 24 ) IS NULL
----

query I rowsort
SELECT ALL - ( + - 89 ) FROM tab2
----
89
89
89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 ) >= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 19 BETWEEN - ( + col0 ) * 12 + col0 * + - 29 AND + 29
----

query I rowsort
SELECT col0 + - 54 * col1 AS col0 FROM tab2 AS cor0
----
-2708
-3543
-4094

query I rowsort
SELECT ALL ( 51 ) AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT ALL - - 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT 58 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT + col0 + + col0 DIV + col0 FROM tab2 WHERE 49 IS NOT NULL
----
47
65
76

skipif mysql # not compatible
query I rowsort label-3044
SELECT + col0 + + col0 / + col0 FROM tab2 WHERE 49 IS NOT NULL
----
47
65
76

query I rowsort
SELECT DISTINCT col1 * col0 + - - col2 + - col2 + col0 FROM tab0
----
1230
1914
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col1 FROM tab2 AS cor0
----
58
58
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 45 BETWEEN - 85 AND 72 * 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3048
SELECT + - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL - - 99 + + col2 AS col1 FROM tab1 AS cor0
----
158
167
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT DISTINCT + + COUNT( * ) + - 44 FROM tab1 cor0 WHERE 28 + 0 + col1 * + col1 IS NOT NULL
----
-41

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT + + COUNT ( * ) + - 44 FROM tab1 cor0 WHERE 28 + 0 + col1 * + col1 IS NOT NULL
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - COUNT( * ) + - + 38 AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3051
SELECT - COUNT ( * ) + - + 38 AS col1 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + - 1 + COUNT( + - col1 ) + 32 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3052
SELECT + - 1 + COUNT ( + - col1 ) + 32 FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT COUNT( * ) + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT COUNT ( * ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * col1 + + + col1 FROM tab1
----
210
2256
30

query II rowsort
SELECT ALL - col1, col1 * - ( col0 ) * - - col0 AS col0 FROM tab0
----
-1
-9409
-21
-158949
-81
-18225

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 * - col2 * - 18 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 - + - 88 AS col2 FROM tab0
----
135
187
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT - col2 DIV col2 - 97 + + - col1 + - + col2 AS col2 FROM tab1 cor0
----
-162
-208
-213

skipif mysql # not compatible
query I rowsort label-3058
SELECT - col2 / col2 - 97 + + - col1 + - + col2 AS col2 FROM tab1 cor0
----
-162
-208
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL MAX( ALL + - 52 ) - - 28 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL MAX ( ALL + - 52 ) - - 28 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT ALL - 82 * ( + + col0 ) AS col0 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3061
SELECT ALL - ( + + col2 ) * - - 4 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
-160
-232
-92

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL - ( + + col2 ) * - - 4 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
-160
-232
-92

query I rowsort
SELECT ALL - 65 * + + col2 + col0 FROM tab1 AS cor0
----
-3750
-4329
-6189

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - col0 * - 13 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT ALL 54 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL 54 / col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + - 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 98 AS col1 FROM tab0 WHERE NOT col1 / - + 62 IS NULL
----
-98

query II rowsort
SELECT ALL + col0 AS col2, - col1 + - ( + ( + 56 ) ) FROM tab1
----
51
-70
85
-61
91
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT col1 * - CAST( + col2 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-3068
SELECT col1 * - CAST ( + col2 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3069
SELECT 69 * - - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
3519
4623
5313

skipif mysql # not compatible
query I rowsort label-3069
SELECT 69 * - - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
3519
4623
5313

query I rowsort
SELECT - col1 * - + col1 * + col0 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * - 75 - - + 23 + + 38 + + col1 + col2 * - 79 + - - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) > ( col2 * 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 97 - col2 AS col1 FROM tab1
----
1
29
38

query I rowsort
SELECT col1 * 0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - 41 * COUNT( 16 ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-3075
SELECT - 41 * COUNT ( 16 ) FROM tab1
----
-123

query I rowsort
SELECT 48 + col2 / + 89 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND - 83
----

query I rowsort
SELECT ALL col2 * 65 FROM tab0 WHERE + col2 + - col2 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 = col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3079
SELECT DISTINCT + CAST( NULL AS SIGNED ) + SUM( - 14 + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + SUM ( - 14 + col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT + 48 * + 28 + col2 * 52 < - 10
----
3

skipif mysql # not compatible
query I rowsort label-3080
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 48 * + 28 + col2 * 52 < - 10
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 WHERE col2 * + col2 <= NULL
----

query I rowsort
SELECT ALL + 40 + - 0 AS col0 FROM tab0
----
40
40
40

query I rowsort
SELECT ALL ( 47 ) FROM tab2 WHERE NULL < col0 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - COUNT( ALL + 82 ) * COUNT( * ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT - COUNT ( ALL + 82 ) * COUNT ( * ) col0 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 4 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( - 5 ) NOT BETWEEN NULL AND 39 - col2
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT + 66 + col1 DIV - col1 AS col0 FROM tab0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-3087
SELECT + 66 + col1 / - col1 AS col0 FROM tab0
----
65
65
65

query I rowsort
SELECT - col0 * - ( - 89 ) FROM tab0 WHERE NOT NULL IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 24 IN ( col2 / - 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * + col2 col1 FROM tab0
----
1089
110
517

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) <= 82 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT ALL ( 43 ) DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL ( 43 ) / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT ALL 35 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL 35 / col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 9 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL CAST( 47 AS SIGNED ) + COUNT( * ) * COUNT( * ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL CAST ( 47 AS INTEGER ) + COUNT ( * ) * COUNT ( * ) FROM tab1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT - col1 DIV 96 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT - col1 / 96 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 49 = + col2
----

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - col1 ) * + AVG ( ALL + col2 ) + 39 AS col1 FROM tab1 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 60 - col2 * col1 AS col2 FROM tab1
----
-1284
-235
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT COUNT( * ) * MAX( ALL 61 ) FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT COUNT ( * ) * MAX ( ALL 61 ) FROM tab0
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT MIN( - col1 ) DIV MIN( 60 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3102
SELECT MIN ( - col1 ) / MIN ( 60 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN col0 AND 93
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 38 * - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND 2
----

query I rowsort
SELECT - col1 * 66 AS col0 FROM tab2 AS cor0
----
-3366
-4422
-5082

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + + col0 <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - 90 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL col0 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT col0 + col1 DIV col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
20
87
97

skipif mysql # not compatible
query I rowsort label-3111
SELECT col0 + col1 / col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
20
87
97

query I rowsort
SELECT + 89 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
89
89
89

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( - 58 ) / 44 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3114
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( - 58 ) / 44 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col1
----

query I rowsort
SELECT DISTINCT - ( 20 ) AS col1 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + SUM( - - 35 ) col2 FROM tab2
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3117
SELECT + SUM ( - - 35 ) col2 FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + MIN( col1 ) FROM tab2 WHERE NOT NULL > ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT + MIN ( col1 ) FROM tab2 WHERE NOT NULL > ( - col1 )
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL >= ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 52 - + col1 BETWEEN + col1 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT SUM( - 21 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3121
SELECT SUM ( - 21 ) FROM tab0
----
-63

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) < ( ( + 14 ) )
----

query I rowsort
SELECT DISTINCT + 59 * 37 FROM tab1 WHERE NOT + col2 IS NULL
----
2183

query I rowsort
SELECT 87 AS col2 FROM tab2 WHERE NOT + col1 NOT BETWEEN ( NULL ) AND ( + col2 )
----

query I rowsort
SELECT ALL + ( + col1 ) * col0 + 55 * - col2 AS col2 FROM tab1
----
-2820
-4566
537

query I rowsort
SELECT - - ( col2 ) * + col0 + + col0 FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3127
SELECT * FROM tab0 AS cor0 WHERE - col2 - + CAST( col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3127
SELECT * FROM tab0 AS cor0 WHERE - col2 - + CAST ( col0 AS REAL ) IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 29 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 IS NULL
----

query I rowsort
SELECT + 89 - - col2 FROM tab1 AS cor0
----
148
157
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 64 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT - COUNT( * ) + + 54 col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3132
SELECT DISTINCT - COUNT ( * ) + + 54 col1 FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + + COUNT( * ) + 21 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + + COUNT ( * ) + 21 FROM tab1 AS cor0
----
24

query I rowsort
SELECT DISTINCT col2 - + + col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 + + col0 * - col0 AS col2 FROM tab1 cor0
----
-2615
-7230
-8328

query I rowsort
SELECT 68 + - - col1 FROM tab1 AS cor0
----
115
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT ( 68 ) * COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT ( - 15 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT ( 68 ) * COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT ( - 15 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 NOT BETWEEN + 24 / 2 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT - 56 DIV + 62 + col0 - + col2 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 56 / + 62 + col0 - + col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT 83 + - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3140
SELECT 83 + - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - ( + 37 ) ) / col2 + 51 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT - 15 + - COUNT( * ) * + + 81 AS col1 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-3142
SELECT - 15 + - COUNT ( * ) * + + 81 AS col1 FROM tab0
----
-258

onlyif mysql # DIV for integer division: 
query II rowsort label-3143
SELECT col0 + - - 79 AS col1, - 93 DIV + col1 - - 85 FROM tab2
----
125
84
143
84
154
84

skipif mysql # not compatible
query II rowsort label-3143
SELECT col0 + - - 79 AS col1, - 93 / + col1 - - 85 FROM tab2
----
125
84
143
84
154
84

query I rowsort
SELECT - col1 * + col0 + - ( + + col0 ) AS col1 FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT 60 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT MAX( - col0 ) FROM tab1 WHERE + col1 * - col1 + ( col0 ) NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT MAX ( - col0 ) FROM tab1 WHERE + col1 * - col1 + ( col0 ) NOT BETWEEN ( NULL ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 59 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL + ( - COUNT( * ) ) + + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + ( - COUNT ( * ) ) + + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3149
SELECT * FROM tab1 WHERE NULL BETWEEN - 40 AND CAST( NULL AS DECIMAL ) + col1
----

skipif mysql # not compatible
query III rowsort label-3149
SELECT * FROM tab1 WHERE NULL BETWEEN - 40 AND CAST ( NULL AS REAL ) + col1
----

query II rowsort
SELECT ALL + col0 * - 84, + col2 FROM tab2
----
-3864
23
-5376
40
-6300
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT COUNT( * ) FROM tab0 WHERE - col0 NOT BETWEEN - 24 AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-3151
SELECT COUNT ( * ) FROM tab0 WHERE - col0 NOT BETWEEN - 24 AND NULL
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT DISTINCT - col2 * + 0 DIV - ( + 7 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3152
SELECT DISTINCT - col2 * + 0 / - ( + 7 ) col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT + 67 DIV - - 83 + - 93 + + + col2 FROM tab1 AS cor0
----
-25
-34
3

skipif mysql # not compatible
query I rowsort label-3153
SELECT + 67 / - - 83 + - 93 + + + col2 FROM tab1 AS cor0
----
-25
-34
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3154
SELECT DISTINCT CAST( MIN( - col1 ) AS SIGNED ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT CAST ( MIN ( - col1 ) AS INTEGER ) FROM tab1 cor0
----
-47

query I rowsort
SELECT DISTINCT + 44 / 27 AS col2 FROM tab0 WHERE NOT NULL IN ( - col1, + 14 / + col1 )
----

query I rowsort
SELECT 98 AS col2 FROM tab0 WHERE NOT + - 98 BETWEEN 43 * - col0 * 31 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 28 * 59 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT - 61 DIV 82 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT - 61 / 82 AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 41 col0, + 45 FROM tab2 AS cor0
----
-41
45
-41
45
-41
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) <> NULL
----

query II rowsort
SELECT ALL - + 83, 82 AS col0 FROM tab1 cor0
----
-83
82
-83
82
-83
82

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 89 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT ALL 60 * CAST( 24 AS SIGNED ) FROM tab2
----
1440
1440
1440

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL 60 * CAST ( 24 AS INTEGER ) FROM tab2
----
1440
1440
1440

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN ( - - 3 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT MIN( - 49 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-3166
SELECT MIN ( - 49 ) FROM tab0
----
-49

query I rowsort
SELECT - - 36 FROM tab1 WHERE NULL IS NULL
----
36
36
36

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 63 * - + 10 FROM tab0 WHERE ( - + 1 ) IS NULL
----

query I rowsort
SELECT ALL - - 67 AS col1 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT + 34 * + 14 AS col1 FROM tab1 AS cor0
----
476
476
476

query I rowsort
SELECT DISTINCT col2 + + + col1 AS col0 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT MIN( 20 ) AS col0 FROM tab0 WHERE 43 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-3173
SELECT MIN ( 20 ) AS col0 FROM tab0 WHERE 43 IS NOT NULL
----
20

query II rowsort
SELECT - col2 + - - col1, + 23 AS col0 FROM tab1
----
-21
23
-54
23
-82
23

query I rowsort
SELECT col1 + 84 AS col0 FROM tab0
----
105
165
85

query I rowsort
SELECT - - col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - col1 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3177
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - col1 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 33 + 1 + - col0 AS col0 FROM tab2 AS cor0
----
-12
-30
-41

query I rowsort
SELECT ALL + 51 AS col1 FROM tab1 cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT DISTINCT - COUNT( * ) - + COUNT( * ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6
-3

skipif mysql # not compatible
query II rowsort label-3180
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT + COUNT( * ) - COUNT( DISTINCT + ( + col1 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT + COUNT ( * ) - COUNT ( DISTINCT + ( + col1 ) ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE 10 > ( + - col2 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 * - 5 col2 FROM tab0
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT MIN( + 6 ) col2 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3184
SELECT MIN ( + 6 ) col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL MAX( DISTINCT - col1 ) * - + 8 + - + 60 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL MAX ( DISTINCT - col1 ) * - + 8 + - + 60 FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL + MIN( 63 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL + MIN ( 63 ) FROM tab0
----
63

query II rowsort
SELECT - col0 AS col1, + 23 AS col0 FROM tab1
----
-51
23
-85
23
-91
23

query I rowsort
SELECT DISTINCT + ( + 79 ) FROM tab0 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + 33 * + col1 FROM tab1 AS cor0
----
51
462
85
165
91
1551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 69 col2, col1 AS col1 FROM tab1 AS cor0
----
69
14
69
47
69
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL MAX( + ( col0 ) ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3191
SELECT ALL MAX ( + ( col0 ) ) col0 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 9 col2 FROM tab2
----
-207
-360
-522

query III rowsort
SELECT * FROM tab2 WHERE NOT + 35 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3194
SELECT - COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT DISTINCT ( - 30 ) col0, COUNT( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3195
SELECT DISTINCT ( - 30 ) col0, COUNT ( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-30
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT 86 + + COUNT( * ) - 79 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 86 + + COUNT ( * ) - 79 FROM tab2 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT ALL SUM( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL SUM ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT + - COUNT( 20 ) * 38 + + + 13 AS col1 FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-3200
SELECT + - COUNT ( 20 ) * 38 + + + 13 AS col1 FROM tab1 AS cor0
----
-101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 47 col1 FROM tab2 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col2 - ( - - col1 ) col1 FROM tab1 AS cor0
----
3476
4577
9202

query I rowsort
SELECT DISTINCT + 90 * col2 AS col1 FROM tab1
----
5310
6120
8640

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT col1 * - CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT col1 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 70 + col1 AS col2 FROM tab2
----
121
137
147

query I rowsort
SELECT ALL - col2 * + - ( - - 12 ) + + col1 FROM tab1
----
1166
713
863

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT 59 + COUNT( * ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT 59 + COUNT ( * ) AS col0 FROM tab1
----
62

query II rowsort
SELECT col1 AS col1, - 57 * - 48 AS col1 FROM tab0 cor0
----
1
2736
21
2736
81
2736

query I rowsort
SELECT ALL col0 * - 94 FROM tab0 AS cor0
----
-1410
-8178
-9118

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT + + 87 DIV + - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-3211
SELECT + + 87 / + - col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + - 48 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + - 48 FROM tab0 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 42 - - col1 + + 47 col2 FROM tab2 AS cor0
----
140
156
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT - - 46 + + - col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT - - 46 + + - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 + - + 47 + - 80 * + - col0, - col0 AS col2 FROM tab2 AS cor0
----
3679
-46
5137
-64
6028
-75

query II rowsort
SELECT ALL + + col2 AS col1, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT MIN( + 99 ) + - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3217
SELECT MIN ( + 99 ) + - COUNT ( * ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT - col0 - + + 87 FROM tab1 AS cor0
----
-138
-172
-178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3219
SELECT * FROM tab2 AS cor0 WHERE NOT + 79 > + CAST( + col0 AS SIGNED ) * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3219
SELECT * FROM tab2 AS cor0 WHERE NOT + 79 > + CAST ( + col0 AS INTEGER ) * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT + 51 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT + 51 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT ALL + col0 DIV - + col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL + col0 / - + col1 AS col1 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 60 ) col2 FROM tab1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT 3 DIV + ( + col1 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3224
SELECT 3 / + ( + col1 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT AVG ( DISTINCT + 0 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT AVG ( DISTINCT + 0 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * - + col2 + col1 AS col1 FROM tab0 cor0
----
-624
-849
-9602

onlyif mysql # DIV for integer division: 
query II rowsort label-3227
SELECT - col2 + + + col0 + + + 23 AS col1, - col2 DIV - col1 * col0 FROM tab2
----
40
0
46
0
47
0

skipif mysql # not compatible
query II rowsort label-3227
SELECT - col2 + + + col0 + + + 23 AS col1, - col2 / - col1 * col0 FROM tab2
----
40
0
46
0
47
0

query I rowsort
SELECT col2 + 76 FROM tab1
----
135
144
172

onlyif mysql # DIV for integer division: 
query II rowsort label-3229
SELECT + col1 DIV + + col2 * col2 + + col2, col2 FROM tab1
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-3229
SELECT + col1 / + + col2 * col2 + + col2, col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT CAST( NULL AS SIGNED ) + + - col0 / ( - + col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT CAST ( NULL AS INTEGER ) + + - col0 / ( - + col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT DISTINCT col0 * - - col2 - + col2 + + 35 DIV - - col0 col0 FROM tab1 AS cor0
----
4800
4956
6120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3231
SELECT DISTINCT col0 * - - col2 - + col2 + + 35 / - - col0 col0 FROM tab1 AS cor0
----
4800
4956
6120

query II rowsort
SELECT - col0 AS col1, + col0 * - col2 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT + 91 + ( + COUNT( * ) ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + 91 + ( + COUNT ( * ) ) AS col0 FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT + - col0 AS col2 FROM tab2 WHERE CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3234
SELECT + - col0 AS col2 FROM tab2 WHERE CAST ( - col0 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT - ( col1 ) DIV + 75 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3235
SELECT - ( col1 ) / + 75 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 96 + + col1 AS col1 FROM tab1
----
-49
-82
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT DISTINCT col0 * - col1 + - 63 DIV - - col2 col1 FROM tab1 AS cor0
----
-426
-4277
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3237
SELECT DISTINCT col0 * - col1 + - 63 / - - col2 col1 FROM tab1 AS cor0
----
-426
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col0 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col1 * 32 AS col0 FROM tab1 cor0
----
1504
160
448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( 2 ) col1, + 76 AS col2 FROM tab0 AS cor0
----
2
76

query I rowsort
SELECT ALL col0 + + - 84 AS col0 FROM tab1
----
-33
1
7

query I rowsort
SELECT DISTINCT - col2 + - col0 - col1 FROM tab0
----
-118
-143
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT - col0 DIV 27 FROM tab0
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-3243
SELECT - col0 / 27 FROM tab0
----
-3
-3
0

query I rowsort
SELECT DISTINCT + col0 + 38 + ( - col0 ) * + col2 FROM tab2 cor0
----
-2458
-4237
-974

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT ALL - 79 DIV + col1 FROM tab1 AS cor0
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL - 79 / + col1 FROM tab1 AS cor0
----
-1
-15
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 89 * + - ( + + 80 ) * - col1 - + - ( - - col1 ) - col2 * + - col1 * ( + 33 ) * - ( 33 ) <= ( + - col1 )
----

query I rowsort
SELECT - 92 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT - - MIN( ALL + ( + 19 ) ) AS col2 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - - MIN ( ALL + ( + 19 ) ) AS col2 FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT + - MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT + - MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT col0 FROM tab0 WHERE NULL < ( CAST( NULL AS SIGNED ) + + 22 )
----

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT col0 FROM tab0 WHERE NULL < ( CAST ( NULL AS INTEGER ) + + 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6 * + col2 * - ( + - col1 ) AS col2, + col0 col2 FROM tab0
----
-1260
87
-22842
15
-594
97

query I rowsort
SELECT - 72 * col0 AS col2 FROM tab0
----
-1080
-6264
-6984

query II rowsort
SELECT DISTINCT + col2, col2 FROM tab0 cor0
----
10
10
47
47
99
99

query I rowsort
SELECT + + 81 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + + - 43 / - 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - COUNT( ALL col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3256
SELECT - COUNT ( ALL col2 ) FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL 78 + COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 78 + COUNT ( * ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT CAST( col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3259
SELECT CAST ( col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL + 15 * + col2 * col0 * - 86 FROM tab2 AS cor0
----
-1364820
-3302400
-5611500

query I rowsort
SELECT DISTINCT - 66 * + col1 AS col0 FROM tab0 AS cor0
----
-1386
-5346
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT + COUNT( col2 ) + + COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3263
SELECT + COUNT ( col2 ) + + COUNT ( * ) FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT - COUNT( DISTINCT - - 30 ) + - COUNT( * ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3264
SELECT - COUNT ( DISTINCT - - 30 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-4

query III rowsort
SELECT * FROM tab2 WHERE ( 69 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col1 - - col1 + - + col2 * ( - ( + col2 ) ) * + 43 * - - col1 + - - 77 + - col2 >= - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3267
SELECT DISTINCT col2 + + ( + - col0 ), ( 48 ) + CAST( NULL AS SIGNED ) / - col2 * col0 AS col0 FROM tab1
----
-23
NULL
-26
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-3267
SELECT DISTINCT col2 + + ( + - col0 ), ( 48 ) + CAST ( NULL AS INTEGER ) / - col2 * col0 AS col0 FROM tab1
----
-23
NULL
-26
NULL
45
NULL

query I rowsort
SELECT + 43 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3269
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 AND ( - - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3269
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 AND ( - - CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT DISTINCT SUM( + - col0 ) + - COUNT( ALL - CAST( 2 AS SIGNED ) ) AS col1 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT SUM ( + - col0 ) + - COUNT ( ALL - CAST ( 2 AS INTEGER ) ) AS col1 FROM tab2
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT ALL - col1 + + col1 DIV + + col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL - col1 + + col1 / + + col1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0 WHERE - col1 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL COUNT( ALL 24 ) * + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL COUNT ( ALL 24 ) * + COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT - 19 DIV col1 AS col2 FROM tab0 AS cor0
----
-19
0
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT - 19 / col1 AS col2 FROM tab0 AS cor0
----
-19
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - + col2 + - ( + col2 ) / - + col1 * - col2 - + - col2 > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 81 col2 FROM tab0 AS cor0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT COUNT( DISTINCT - 4 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT COUNT ( DISTINCT - 4 ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col2 * - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3279
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3279
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT - MAX( + col0 ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3280
SELECT - MAX ( + col0 ) col2 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT DISTINCT - 38 * + + col2 AS col1, col1 AS col1 FROM tab1 AS cor0
----
-2242
5
-2584
47
-3648
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3282
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + 96 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3282
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + 96 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3283
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * - 66 IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) * - 66 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3284
SELECT ALL - MAX( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - MAX ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 95 * - col1 AS col1 FROM tab1
----
-1330
-4465
-475

query II rowsort
SELECT DISTINCT + col2 * 35 * - col1, col2 AS col1 FROM tab2
----
-107800
40
-136010
58
-41055
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT DISTINCT col2 DIV - 89 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT col2 / - 89 AS col0 FROM tab1
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= ( NULL )
----

query II rowsort
SELECT + - 44, - col0 AS col1 FROM tab0 AS cor0
----
-44
-15
-44
-87
-44
-97

query I rowsort
SELECT ALL + + 71 FROM tab0 cor0
----
71
71
71

query I rowsort
SELECT + ( col1 ) * + col2 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT col0 - - + col2 * + col2 AS col2 FROM tab2
----
1664
3439
575

query I rowsort
SELECT 94 - 69 AS col2 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + COUNT( * ) - + SUM( ALL 44 ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-3294
SELECT + COUNT ( * ) - + SUM ( ALL 44 ) FROM tab1
----
-129

query II rowsort
SELECT ALL col2 - col0, 80 AS col0 FROM tab0
----
-77
80
2
80
32
80

query I rowsort
SELECT ALL + col1 * + col1 - 25 AS col2 FROM tab0
----
-24
416
6536

query I rowsort
SELECT + 98 * + 96 AS col2 FROM tab1 WHERE + 41 IS NOT NULL
----
9408
9408
9408

query I rowsort
SELECT - - col0 + 13 + - col1 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
10060
201123
2223

query I rowsort
SELECT DISTINCT col2 * - ( - 52 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 90 + + col0 FROM tab0 AS cor0
----
105
177
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3301
SELECT - - 36 * + MIN( ALL - CAST( - - 47 AS SIGNED ) ) FROM tab2 AS cor0
----
-1692

skipif mysql # not compatible
query I rowsort label-3301
SELECT - - 36 * + MIN ( ALL - CAST ( - - 47 AS INTEGER ) ) FROM tab2 AS cor0
----
-1692

query II rowsort
SELECT DISTINCT - 88 AS col2, col2 AS col2 FROM tab2
----
-88
23
-88
40
-88
58

query II rowsort
SELECT ALL 61 AS col0, col0 FROM tab2
----
61
46
61
64
61
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + MAX( ALL col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3304
SELECT + MAX ( ALL col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT + 85 * - 23 * + - col0 FROM tab0 AS cor0
----
170085
189635
29325

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT ALL col1 DIV 99 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL col1 / 99 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * + - col0 + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-430
-4324
-728

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + ( 86 ) FROM tab2 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + ( - col0 ) ) IS NULL
----

query I rowsort
SELECT ( - 93 ) * + + col2 FROM tab2
----
-2139
-3720
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT 67 * + ( SUM( DISTINCT - col2 ) ) AS col2 FROM tab1
----
-14941

skipif mysql # not compatible
query I rowsort label-3312
SELECT 67 * + ( SUM ( DISTINCT - col2 ) ) AS col2 FROM tab1
----
-14941

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= + 10
----

query I rowsort
SELECT DISTINCT col2 * + ( + + 54 ) AS col0 FROM tab1
----
3186
3672
5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT NULL >= col2 - + col1 / - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) - ( - 68 ) FROM tab0 cor0
----
59

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) - ( - 68 ) FROM tab0 cor0
----
59

query II rowsort
SELECT ALL + + ( - + col0 ) AS col0, - col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IN ( - - col1, + col1, 62 + - - col2 * col0 + + col0 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IN ( - - col1, + col1, 62 + - - col2 * col0 + + col0 * + col1 )
----
0

query I rowsort
SELECT + - 17 * 37 + - 70 FROM tab0 AS cor0
----
-699
-699
-699

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + MIN( + 21 ) * - + COUNT( * ) * + + MAX( col1 ) + + 19 FROM tab1 AS cor0
----
-2942

skipif mysql # not compatible
query I rowsort label-3321
SELECT + MIN ( + 21 ) * - + COUNT ( * ) * + + MAX ( col1 ) + + 19 FROM tab1 AS cor0
----
-2942

query I rowsort
SELECT + + 69 - - 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9cc77a5f1bc643a947b8c416f454170

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT 53 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3324
SELECT 53 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT DISTINCT + MAX( - col1 ) + 56 * 75 AS col0 FROM tab2 AS cor0
----
4149

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + MAX ( - col1 ) + 56 * 75 AS col0 FROM tab2 AS cor0
----
4149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3326
SELECT ALL - ( - 10 ) - + 35 + ( - + col1 ) + - + CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
12
19
55

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - ( - 10 ) - + 35 + ( - + col1 ) + - + CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
12
19
55

query I rowsort
SELECT - col0 + col2 * + - col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT + col0 + + - col1 DIV + + col1 AS col1 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3328
SELECT + col0 + + - col1 / + + col1 AS col1 FROM tab1 AS cor0
----
50
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 32 col0, 65 + col0 FROM tab2
----
32
111
32
129
32
140

query I rowsort
SELECT DISTINCT + col2 * col2 + - - 9 AS col1 FROM tab2
----
1609
3373
538

query I rowsort
SELECT DISTINCT + 85 - 36 + + + col0 AS col1 FROM tab1
----
100
134
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT + - SUM( + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3332
SELECT + - SUM ( + col0 ) FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3333
SELECT - MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + COUNT( + ( + - col1 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3334
SELECT + COUNT ( + ( + - col1 ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE + col0 BETWEEN - - 20 * 5 AND NULL
----

query I rowsort
SELECT ALL + - 6 * + col2 FROM tab2 AS cor0
----
-138
-240
-348

query I rowsort
SELECT + ( + 97 ) FROM tab2
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT COUNT( * ) * - + 60 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-3338
SELECT COUNT ( * ) * - + 60 FROM tab0
----
-180

query I rowsort
SELECT 54 * + ( + ( - 18 ) ) FROM tab2
----
-972
-972
-972

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT DISTINCT COUNT( * ) AS col0, ( - 91 ) FROM tab0
----
3
-91

skipif mysql # not compatible
query II rowsort label-3340
SELECT DISTINCT COUNT ( * ) AS col0, ( - 91 ) FROM tab0
----
3
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col0 / - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT MIN( - 8 ) + + 96 AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3342
SELECT MIN ( - 8 ) + + 96 AS col2 FROM tab1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3343
SELECT ALL COUNT( * ) DIV + 93 + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL COUNT ( * ) / + 93 + - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT ALL ( - 30 ) + col0 AS col2 FROM tab2
----
16
34
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col2 NOT IN ( - col0, - 22 + + 40, - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col2 FROM tab0 AS cor0 WHERE NULL > col2 + 87 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT + MIN( DISTINCT 41 ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + MIN ( DISTINCT 41 ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT + MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + 51 + + col2 AS col2 FROM tab2
----
109
74
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3350
SELECT + CAST( NULL AS SIGNED ) - - 37 / - - MIN( ALL - 88 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT + CAST ( NULL AS INTEGER ) - - 37 / - - MIN ( ALL - 88 ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT 95 DIV 80 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT 95 / 80 AS col2 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3352
SELECT DISTINCT col0 DIV col2 + 73 FROM tab1
----
73
74

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT col0 / col2 + 73 FROM tab1
----
73
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND + 2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3354
SELECT + col1 / CAST( NULL AS DECIMAL ) * 46 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT + col1 / CAST ( NULL AS REAL ) * 46 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + - col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT ( + 77 ) AS col0 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

query II rowsort
SELECT DISTINCT 0, 66 AS col0 FROM tab0
----
0
66

query I rowsort
SELECT DISTINCT 86 * col2 AS col2 FROM tab0 cor0
----
4042
8514
860

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL + + 15 * - COUNT( * ) FROM tab1 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + + 15 * - COUNT ( * ) FROM tab1 cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3360
SELECT DISTINCT col2, col0 * - + 70 * + 70 * + col1 - + col0 DIV - + CAST( 75 AS SIGNED ) AS col2 FROM tab1 cor0
----
59
-2082499
68
-20957299
96
-3498600

skipif mysql # not compatible
query II rowsort label-3360
SELECT DISTINCT col2, col0 * - + 70 * + 70 * + col1 - + col0 / - + CAST ( 75 AS INTEGER ) AS col2 FROM tab1 cor0
----
59
-2082499
68
-20957299
96
-3498600

query I rowsort
SELECT DISTINCT - 31 * + + col0 FROM tab0 AS cor0 WHERE NOT col1 - - col2 IS NULL
----
-2697
-3007
-465

query II rowsort
SELECT ALL col0, 44 AS col0 FROM tab0 AS cor0
----
15
44
87
44
97
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT ALL - col1 + - CAST( 61 AS SIGNED ) + col0 * - col2 FROM tab2
----
-1170
-2698
-4478

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL - col1 + - CAST ( 61 AS INTEGER ) + col0 * - col2 FROM tab2
----
-1170
-2698
-4478

query I rowsort
SELECT + 20 + + col2 FROM tab2
----
43
60
78

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + 66 * + - col2 NOT BETWEEN col2 + + - col1 + + + col2 * + - 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT + MAX( col2 ) + - - COUNT( ALL - + 22 ) + + 58 AS col2 FROM tab0
----
160

skipif mysql # not compatible
query I rowsort label-3367
SELECT + MAX ( col2 ) + - - COUNT ( ALL - + 22 ) + + 58 AS col2 FROM tab0
----
160

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3368
SELECT ALL * FROM tab0 WHERE - - CAST( + 86 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3368
SELECT ALL * FROM tab0 WHERE - - CAST ( + 86 AS REAL ) IS NULL
----

query II rowsort
SELECT ALL 58 * - col0, - col2 AS col2 FROM tab2
----
-2668
-23
-3712
-40
-4350
-58

query I rowsort
SELECT DISTINCT + col0 + 9 AS col0 FROM tab2
----
55
73
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3371
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 <> NULL
----
0

query I rowsort
SELECT - col0 * - + 68 AS col2 FROM tab2 AS cor0
----
3128
4352
5100

query I rowsort
SELECT ALL 51 * 49 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b4e2515f256eea3e40c694709eb5e30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT - + CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT - + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

query I rowsort
SELECT DISTINCT + - 72 - + ( col0 ) * - 47 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-110334
-231688
-236247

query I rowsort
SELECT + col2 + - ( col2 ) + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT ALL + 72 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + 72 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 90 + + + col0 + - + ( + col1 ) AS col2 FROM tab2 AS cor0
----
77
85
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < - col0 / - col2
----

query I rowsort
SELECT + 7 + - - ( + col0 ) * - col2 * ( - + col2 ) AS col2 FROM tab0 AS cor0
----
33142
8707
950704

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - + ( COUNT( DISTINCT + col0 ) ) - - 6 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - + ( COUNT ( DISTINCT + col0 ) ) - - 6 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 12 + - - col1 + - col0 FROM tab2 AS cor0
----
-20
-7
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3384
SELECT ( 72 ), COUNT( * ) AS col0 FROM tab0
----
72
3

skipif mysql # not compatible
query II rowsort label-3384
SELECT ( 72 ), COUNT ( * ) AS col0 FROM tab0
----
72
3

query I rowsort
SELECT ALL + 57 FROM tab2 WHERE NOT + - 63 * + col2 + - - col2 + col1 NOT BETWEEN + + 85 AND + 73
----

query I rowsort
SELECT DISTINCT + col2 + col0 * col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col1 * 53 AS col2, - col2 * - 65 AS col0 FROM tab0 AS cor0
----
1113
650
4293
3055
53
6435

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + 88 * - 63 + + COUNT( * ) FROM tab0 cor0
----
-5541

skipif mysql # not compatible
query I rowsort label-3388
SELECT + 88 * - 63 + + COUNT ( * ) FROM tab0 cor0
----
-5541

query I rowsort
SELECT ALL + 59 * col1 AS col1 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT - 8 * - + col0 AS col1 FROM tab2 AS cor0
----
368
512
600

query I rowsort
SELECT + col1 * + - col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query II rowsort
SELECT - col1 AS col2, - 71 FROM tab2
----
-51
-71
-67
-71
-77
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT MAX( - + 27 ) + + + COUNT( * ) + - - 81 AS col2 FROM tab2, tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3393
SELECT MAX ( - + 27 ) + + + COUNT ( * ) + - - 81 AS col2 FROM tab2, tab2 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 + + - ( - 62 ) * 16 col0 FROM tab2
----
1066
1109
1117

query II rowsort
SELECT col2, + col1 + col1 + + 32 * - 76 + - col1 AS col1 FROM tab2
----
23
-2381
40
-2355
58
-2365

query I rowsort
SELECT DISTINCT - 64 * - col1 + - ( - col1 ) * - - col1 FROM tab1
----
1092
345
5217

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT 73 AS col0, - SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
73
121

skipif mysql # not compatible
query II rowsort label-3397
SELECT 73 AS col0, - SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
73
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT CAST( - col1 AS SIGNED ) + - + 28 + col2 AS col0 FROM tab0 AS cor0
----
-39
-62
70

skipif mysql # not compatible
query I rowsort label-3398
SELECT CAST ( - col1 AS INTEGER ) + - + 28 + col2 AS col0 FROM tab0 AS cor0
----
-39
-62
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT DISTINCT SUM( ALL - - col2 ) col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3399
SELECT DISTINCT SUM ( ALL - - col2 ) col1 FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT + - MAX( ALL 56 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

skipif mysql # not compatible
query I rowsort label-3400
SELECT + - MAX ( ALL 56 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

query I rowsort
SELECT 83 AS col1 FROM tab2 WHERE NULL BETWEEN - 38 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT + col1 DIV 18 FROM tab0 cor0 WHERE NULL IS NULL
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3402
SELECT + col1 / 18 FROM tab0 cor0 WHERE NULL IS NULL
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT ( - - COUNT( * ) ) * - ( MIN( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL >= + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT ( - - COUNT ( * ) ) * - ( MIN ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL >= + - col2 )
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + 83 + + col2 FROM tab0 AS cor0
----
-1198
-7211
-7952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT DISTINCT + 33 AS col0 FROM tab0 AS cor0 WHERE ( NOT + + CAST( NULL AS SIGNED ) < + + col1 )
----

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + 33 AS col0 FROM tab0 AS cor0 WHERE ( NOT + + CAST ( NULL AS INTEGER ) < + + col1 )
----

query I rowsort
SELECT DISTINCT col1 * - + ( - col0 ) AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL - ( + 45 ) FROM tab2
----
-45
-45
-45

query I rowsort
SELECT 58 * - + col2 AS col1 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT DISTINCT - col0 * + + col1 DIV + - col1 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT - col0 * + + col1 / + - col1 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT + + col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 / col2 AND NULL
----

query I rowsort
SELECT ALL col1 * - - col1 FROM tab1
----
196
2209
25

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 > + col0 * + col0 * ( - ( - - col1 ) ) / 27 + 77
----

query I rowsort
SELECT ALL - ( + + 83 ) AS col0 FROM tab0
----
-83
-83
-83

query I rowsort
SELECT 6 * - - col1 * - col1 FROM tab2
----
-15606
-26934
-35574

query I rowsort
SELECT DISTINCT - 29 * + ( col1 ) AS col2 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT - CAST( NULL AS SIGNED ) * - 10 + col0 FROM tab2 WHERE NOT + + ( + + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3416
SELECT - CAST ( NULL AS INTEGER ) * - 10 + col0 FROM tab2 WHERE NOT + + ( + + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - - 19 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col2, col2 + 79 + + + 34 AS col2 FROM tab0 AS cor0
----
10
123
47
160
99
212

query III rowsort
SELECT * FROM tab2 WHERE NOT 16 <> + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3420
SELECT DISTINCT + 18 DIV 24 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT + 18 / 24 FROM tab1
----
0

query II rowsort
SELECT DISTINCT - col1 + col2, col2 AS col0 FROM tab1
----
21
68
54
59
82
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3422
SELECT ALL + CAST( + col2 AS SIGNED ) AS col0, col0 * + + col1 col1 FROM tab2 AS cor0
----
23
2346
40
4928
58
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3422
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col0, col0 * + + col1 col1 FROM tab2 AS cor0
----
23
2346
40
4928
58
5025

query II rowsort
SELECT + col0 * + col2, + col1 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

query I rowsort
SELECT - ( - + col2 ) * + - ( + + col0 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
59
59

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT 60 * - col2 + + col2 DIV - ( - col1 ) FROM tab1 AS cor0
----
-3529
-4079
-5754

skipif mysql # not compatible
query I rowsort label-3427
SELECT 60 * - col2 + + col2 / - ( - col1 ) FROM tab1 AS cor0
----
-3529
-4079
-5754

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT + 91 + + + COUNT( * ) + + + ( COUNT( * ) ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3428
SELECT + 91 + + + COUNT ( * ) + + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT 8 DIV - 82 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3429
SELECT 8 / - 82 + + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL COUNT( * ) + 4 + - 94 + - COUNT( * ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL COUNT ( * ) + 4 + - 94 + - COUNT ( * ) FROM tab0
----
-90

query I rowsort
SELECT col1 + + 37 FROM tab0
----
118
38
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 50 ) * 68 + 36 col0 FROM tab0
----
3436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT DISTINCT - 95 + - COUNT( * ) DIV + - 82 col0 FROM tab2
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3433
SELECT DISTINCT - 95 + - COUNT ( * ) / + - 82 col0 FROM tab2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL - + CAST( NULL AS SIGNED ) - - 36 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL - + CAST ( NULL AS INTEGER ) - - 36 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + - COUNT( * ) - - 1 AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + - COUNT ( * ) - - 1 AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT MIN( DISTINCT + 31 ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3437
SELECT MIN ( DISTINCT + 31 ) AS col0 FROM tab1 AS cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col0 + - col2 * - 60
----

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + + ( + 90 ) AS col1 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + MAX( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3441
SELECT + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ( + - 78 ) AS col1 FROM tab1 AS cor0
----
-78
-78
-78

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - COUNT( - 53 ) FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3444
SELECT - COUNT ( - 53 ) FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - col2 * + col0 AS col2 FROM tab1 WHERE + + 72 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT ALL + 60 AS col0 FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL + 60 AS col0 FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT - COUNT( * ) * + MIN( ALL ( - - col2 ) ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-3448
SELECT - COUNT ( * ) * + MIN ( ALL ( - - col2 ) ) FROM tab1
----
-177

query I rowsort
SELECT - 54 FROM tab0 WHERE NOT - - ( col2 ) * + 12 IS NOT NULL
----

query I rowsort
SELECT 77 FROM tab0 cor0 WHERE NOT - col0 NOT IN ( ( col2 ) / + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3451
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3451
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT - SUM( DISTINCT - - 91 ) AS col1, 17 + 40 FROM tab1 cor0
----
-91
57

skipif mysql # not compatible
query II rowsort label-3452
SELECT - SUM ( DISTINCT - - 91 ) AS col1, 17 + 40 FROM tab1 cor0
----
-91
57

query I rowsort
SELECT + col2 * - + 35 FROM tab2 AS cor0 WHERE NOT + col2 + - 10 NOT BETWEEN - col0 * col2 AND - col0
----

query I rowsort
SELECT ALL 4 * col0 * ( - col1 ) FROM tab2 AS cor0
----
-19712
-20100
-9384

query II rowsort
SELECT + 17 + - - col1 * - col0 * - col2 * - col1 AS col0, - 65 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - 53 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT 60 + + 66 FROM tab0 AS cor0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) * + col0 )
----
0

query I rowsort
SELECT + col1 * - 98 AS col0 FROM tab2 AS cor0
----
-4998
-6566
-7546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3460
SELECT ALL + ( + col2 ) * - col1 col1, + col1 / - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3460
SELECT ALL + ( + col2 ) * - col1 col1, + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-1344
NULL
-295
NULL
-3196
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col1 * 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL - ( + - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - ( + - COUNT ( * ) ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE + 61 = NULL
----

query I rowsort
SELECT DISTINCT col2 + col0 * - - col0 AS col1 FROM tab1
----
2697
7284
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT DISTINCT + 68 * - - MIN( ALL + col0 ) FROM tab2
----
3128

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + 68 * - - MIN ( ALL + col0 ) FROM tab2
----
3128

query I rowsort
SELECT ALL col1 + + + 74 - 91 FROM tab1
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT + 24 - + COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3467
SELECT + 24 - + COUNT ( * ) FROM tab1
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + col0, + col2 col1 FROM tab0
----
-77
10
2
99
32
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT - col2 + + CAST( + 10 AS SIGNED ) * - + col1 * + 17 AS col2 FROM tab2 AS cor0
----
-11448
-13130
-8693

skipif mysql # not compatible
query I rowsort label-3469
SELECT - col2 + + CAST ( + 10 AS INTEGER ) * - + col1 * + 17 AS col2 FROM tab2 AS cor0
----
-11448
-13130
-8693

query I rowsort
SELECT ALL - - 11 AS col2 FROM tab0 cor0
----
11
11
11

query II rowsort
SELECT ALL - col2, - ( col0 ) FROM tab0 AS cor0 WHERE - col1 * + 62 + - col1 >= NULL
----

query I rowsort
SELECT ALL - col1 - + + col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - col1 + col0 AS col1, + col2 col1 FROM tab2
----
-1127
23
-3016
40
-3811
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3474
SELECT - COUNT( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT - + MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3475
SELECT - + MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL MIN( + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL MIN ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT ALL AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - + col0 + - col2 * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 86 * - + col2 NOT BETWEEN + + ( + 18 ) AND - 28 * - 23
----

query I rowsort
SELECT DISTINCT - col2 * - 48 FROM tab2
----
1104
1920
2784

query I rowsort
SELECT ( + + 73 ) FROM tab1
----
73
73
73

query I rowsort
SELECT + col1 * + 27 AS col0 FROM tab2
----
1377
1809
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - COUNT( * ) col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT - COUNT ( * ) col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 54 FROM tab1
----
14
54
47
54
5
54

query I rowsort
SELECT - col0 * + col1 + - col2 FROM tab1 AS cor0 WHERE NOT ( NOT + 19 IS NOT NULL )
----
-4345
-484
-810

query I rowsort
SELECT DISTINCT - + 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-79

query I rowsort
SELECT DISTINCT col2 * + - 26 * + col0 FROM tab0 AS cor0
----
-18330
-22620
-249678

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL + COUNT( * ) + + - COUNT( ALL + col1 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + COUNT ( * ) + + - COUNT ( ALL + col1 ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT + col2 + + col2 * + - CAST( - 79 AS SIGNED ) FROM tab2 AS cor0
----
1840
3200
4640

skipif mysql # not compatible
query I rowsort label-3488
SELECT + col2 + + col2 * + - CAST ( - 79 AS INTEGER ) FROM tab2 AS cor0
----
1840
3200
4640

query I rowsort
SELECT col0 + + + col1 AS col2 FROM tab0 AS cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col2 ) col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 92 * + col2 + + 28 FROM tab0
----
4352
9136
948

query I rowsort
SELECT DISTINCT - 51 * - - 21 FROM tab1
----
-1071

query I rowsort
SELECT 66 * + col1 + + ( - col2 ) AS col2 FROM tab1
----
271
3034
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) + - 96 col2 FROM tab0 WHERE NOT + col1 BETWEEN + col2 AND NULL
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3494
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) + - 96 col2 FROM tab0 WHERE NOT + col1 BETWEEN + col2 AND NULL
----
-95

query I rowsort
SELECT DISTINCT - + 11 * + col1 + + 83 FROM tab2 WHERE NOT + col2 * col0 IS NULL
----
-478
-654
-764

query II rowsort
SELECT ALL - col2 + col1 AS col2, + col2 AS col2 FROM tab1 WHERE + 80 * + 85 * - 84 * - 67 IS NOT NULL
----
-21
68
-54
59
-82
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3497
SELECT DISTINCT + col0 * - CAST( - col1 AS SIGNED ) + - 54 col2, + col0 - + col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * + 77 + - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3497
SELECT DISTINCT + col0 * - CAST ( - col1 AS INTEGER ) + - 54 col2, + col0 - + col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 * + 77 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - col1 + - - col1 * + 14
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3499
SELECT DISTINCT + - 22 DIV - - MAX( DISTINCT + + col2 ), - COUNT( * ) + + + ( 25 ) AS col1 FROM tab1 AS cor0
----
0
22

skipif mysql # not compatible
query II rowsort label-3499
SELECT DISTINCT + - 22 / - - MAX ( DISTINCT + + col2 ), - COUNT ( * ) + + + ( 25 ) AS col1 FROM tab1 AS cor0
----
0
22

query I rowsort
SELECT 86 - - 6 AS col2 FROM tab0 cor0
----
92
92
92

query II rowsort
SELECT + 89 - - 54 + - 90 - + + col1 AS col0, + col1 FROM tab0 AS cor0
----
-28
81
32
21
52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + COUNT( col1 ) - - SUM( col2 ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-3502
SELECT + COUNT ( col1 ) - - SUM ( col2 ) FROM tab2 AS cor0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3503
SELECT ALL COUNT( * ) DIV COUNT( * ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3503
SELECT ALL COUNT ( * ) / COUNT ( * ) col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT DISTINCT - MAX( - ( + + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - MAX ( - ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3505
SELECT ALL - COUNT( * ), CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT ALL + - 74 AS col0 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT 94 * col1 + ( - col0 + col0 * 94 ) FROM tab2
----
13190
13273
9072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT ALL + CAST( + 91 AS SIGNED ) FROM tab2
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + CAST ( + 91 AS INTEGER ) FROM tab2
----
91
91
91

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 + - col0 * - col1 ) > ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 57 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + ( col2 ) AS col1 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - MIN( DISTINCT 72 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-3512
SELECT - MIN ( DISTINCT 72 ) FROM tab1
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= ( col1 / - ( + ( - col0 ) ) + 18 * col0 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT + 70 IS NOT NULL
----

query I rowsort
SELECT 22 AS col2 FROM tab1 WHERE col0 * - col1 <= col2
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT DISTINCT + COUNT( 72 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + COUNT ( 72 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT - ( 65 ) * + SUM( ALL + 0 ) + + 48 AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - ( 65 ) * + SUM ( ALL + 0 ) + + 48 AS col1 FROM tab1
----
48

query III rowsort
SELECT ALL * FROM tab0 WHERE 75 >= ( + col0 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL + MIN( ALL 0 ) - MAX( col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + MIN ( ALL 0 ) - MAX ( col2 ) AS col0 FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 <= ( + col1 )
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( 42 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3522
SELECT DISTINCT CAST( NULL AS SIGNED ) + 20 * + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 20 * + COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 + col1 * 61 FROM tab2
----
3134
4145
4737

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - 70 + 11 * - 40 AS col1 FROM tab1
----
-510
-510
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT ALL 77 FROM tab0 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) < 11
----

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL 77 FROM tab0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) < 11
----

query I rowsort
SELECT ALL 37 + 50 AS col2 FROM tab0
----
87
87
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + ( - col1 + + col1 ) ) NOT BETWEEN ( col2 ) AND + 54
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL COUNT( * ) + - 55 AS col1 FROM tab0 AS cor0 WHERE NOT - 76 <= NULL
----
-55

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL COUNT ( * ) + - 55 AS col1 FROM tab0 AS cor0 WHERE NOT - 76 <= NULL
----
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 95 * 62 AND NULL
----

query I rowsort
SELECT 75 + col2 AS col0 FROM tab0
----
122
174
85

query III rowsort
SELECT * FROM tab2 WHERE col0 >= + col1
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3533
SELECT * FROM tab2 WHERE ( + col1 ) >= + CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-3533
SELECT * FROM tab2 WHERE ( + col1 ) >= + CAST ( NULL AS INTEGER ) * col1
----

query I rowsort
SELECT DISTINCT ( - col2 ) + 27 * + col1 AS col2 FROM tab2 AS cor0
----
1354
1751
2039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT 11 FROM tab0 AS cor0 WHERE + CAST( - col1 AS SIGNED ) NOT IN ( col2 )
----
11
11
11

skipif mysql # not compatible
query I rowsort label-3535
SELECT 11 FROM tab0 AS cor0 WHERE + CAST ( - col1 AS INTEGER ) NOT IN ( col2 )
----
11
11
11

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3537
SELECT ALL - - ( + COUNT( * ) ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - - ( + COUNT ( * ) ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col1 * 91 AS col0 FROM tab1 AS cor0
----
-1274
-4277
-455

query I rowsort
SELECT DISTINCT col0 + - 17 * col1 FROM tab2 AS cor0
----
-1064
-1245
-821

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + SUM( DISTINCT col0 ) col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3540
SELECT DISTINCT + SUM ( DISTINCT col0 ) col1 FROM tab0 cor0
----
199

query I rowsort
SELECT - col2 + - 21 AS col2 FROM tab1 AS cor0 WHERE - 3 + + col2 * ( - col1 / 47 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 83 + - col1 >= col1
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + col0 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3545
SELECT - col1 - - col0 - + col0 DIV col2 FROM tab1
----
37
43
79

skipif mysql # not compatible
query I rowsort label-3545
SELECT - col1 - - col0 - + col0 / col2 FROM tab1
----
37
43
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - col1 + ( 85 ) IN ( ( + col2 ) + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - col1 + ( 85 ) IN ( ( + col2 ) + col1 )
----
-3

query I rowsort
SELECT 10 - - + col0 * + col2 FROM tab1
----
4906
5025
6198

query I rowsort
SELECT + 1 - + 35 FROM tab2
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT ( + 75 ) DIV col2 - + col2 AS col0 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-3549
SELECT ( + 75 ) / col2 - + col2 AS col0 FROM tab1
----
-58
-67
-96

query I rowsort
SELECT col1 * col0 + - 79 * - col2 FROM tab2
----
4163
8088
9607

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab2 WHERE ( NULL ) IS NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT - SUM( 80 ) + 12 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-3552
SELECT - SUM ( 80 ) + 12 FROM tab1
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 23 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 23 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col1 AND - col0 * - 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3556
SELECT - col1 DIV ( - col0 ) * + col1 + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3556
SELECT - col1 / ( - col0 ) * + col1 + - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3557
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN ( - CAST( 65 AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3557
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN ( - CAST ( 65 AS INTEGER ) ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + col2 * - col2 FROM tab0 AS cor0
----
-2128
-79
-9800

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col0 IN ( 45 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT + MIN( - + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT + MIN ( - + col1 ) FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL - MAX( ALL + - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - MAX ( ALL + - col1 ) FROM tab2
----
51

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT 82 * + 40 FROM tab1
----
3280

query I rowsort
SELECT DISTINCT + ( + + 20 ) AS col0 FROM tab2
----
20

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT ( NOT - 17 * 1 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL - + MAX( ALL col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - + MAX ( ALL col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3568
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE - 6 * + ( - 18 ) * + 41 + + 11 > ( col0 / + CAST( ( col1 ) AS DECIMAL ) - col1 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE - 6 * + ( - 18 ) * + 41 + + 11 > ( col0 / + CAST ( ( col1 ) AS REAL ) - col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT + 68 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 55 - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3569
SELECT + 68 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 55 - + col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query II rowsort
SELECT DISTINCT col0 AS col0, 80 FROM tab2 AS cor0
----
46
80
64
80
75
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + COUNT( DISTINCT - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3572
SELECT + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + col0 = col0
----

query I rowsort
SELECT ALL + col1 - + col2 * col2 FROM tab0 WHERE + - col0 * - 86 NOT IN ( col2 )
----
-2128
-79
-9800

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 30 IN ( - ( col0 ) * col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 23 ) FROM tab2 WHERE NOT ( - 17 ) <> + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT ALL - COUNT( ALL - + 72 ) AS col2, + 14 + - 51 AS col0 FROM tab2
----
-3
-37

skipif mysql # not compatible
query II rowsort label-3578
SELECT ALL - COUNT ( ALL - + 72 ) AS col2, + 14 + - 51 AS col0 FROM tab2
----
-3
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT + col1 + - 87 DIV + - col1 AS col2 FROM tab0
----
25
82
88

skipif mysql # not compatible
query I rowsort label-3579
SELECT + col1 + - 87 / + - col1 AS col2 FROM tab0
----
25
82
88

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + 66 ) NOT IN ( 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + 39 - - col2 FROM tab2
----
113
156
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT + SUM( ALL - col1 ) * + ( - - COUNT( * ) ) * + ( + 60 ) + + 69 AS col2 FROM tab1
----
-11811

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + SUM ( ALL - col1 ) * + ( - - COUNT ( * ) ) * + ( + 60 ) + + 69 AS col2 FROM tab1
----
-11811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT CAST( NULL AS SIGNED ) + + 74 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT CAST ( NULL AS INTEGER ) + + 74 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 * + - 72 + - 76 AS col2 FROM tab1
----
-4396

query I rowsort
SELECT ALL - col2 * + col2 + col2 + + - ( - 83 ) - + 32 AS col2 FROM tab0 cor0
----
-2111
-39
-9651

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 NOT IN ( + 86 - + + 32 * - col0 )
----

query I rowsort
SELECT - 33 * + 81 AS col2 FROM tab0 cor0
----
-2673
-2673
-2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3588
SELECT 25 DIV MAX( + col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3588
SELECT 25 / MAX ( + col1 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * + - col2 + 48 AS col2 FROM tab1
----
-4848
-4967
-6140

query I rowsort
SELECT DISTINCT + 17 FROM tab2 WHERE NOT + - col2 NOT IN ( + + col0 )
----

query I rowsort
SELECT DISTINCT 4 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3592
SELECT - 46 - + + col0 + + 25 + - ( + + CAST( NULL AS DECIMAL ) ) * - CAST( 83 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT - 46 - + + col0 + + 25 + - ( + + CAST ( NULL AS REAL ) ) * - CAST ( 83 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3593
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-3593
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND - col1
----

query I rowsort
SELECT 9 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col0 + - col2 - - + col1 * + col2 AS col2 FROM tab1 cor0
----
1101
2969
92

query I rowsort
SELECT AVG ( 91 ) FROM tab0 cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT ALL + 63 - CAST( NULL AS SIGNED ) * - - col1 / + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + 63 - CAST ( NULL AS INTEGER ) * - - col1 / + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - 57 FROM tab2 AS cor0 WHERE NOT + col1 + col1 IS NULL AND NOT NULL IS NOT NULL
----
-17
-34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL + SUM( + col1 ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + SUM ( + col1 ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL ( - + ( COUNT( ALL + - col2 ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL ( - + ( COUNT ( ALL + - col2 ) ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT + + col1 * - CAST( NULL AS SIGNED ) - col2 + + col0 + - ( ( - col2 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + + col1 * - CAST ( NULL AS INTEGER ) - col2 + + col0 + - ( ( - col2 ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + - col2 col0 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - MAX( ALL + col2 ) * + 33 AS col1 FROM tab1
----
-3168

skipif mysql # not compatible
query I rowsort label-3603
SELECT - MAX ( ALL + col2 ) * + 33 AS col1 FROM tab1
----
-3168

query I rowsort
SELECT ALL + 9 * - col0 AS col0 FROM tab2
----
-414
-576
-675

query II rowsort
SELECT DISTINCT col2, + 61 * + col1 FROM tab0
----
10
1281
47
4941
99
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 * + - col0 * - col0 ) <> + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3608
SELECT - - MAX( 99 ), + 60 + - + MAX( DISTINCT - col2 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3608
SELECT - - MAX ( 99 ), + 60 + - + MAX ( DISTINCT - col2 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
99
NULL

query II rowsort
SELECT DISTINCT + col2 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT + col1 * - ( + 44 ) FROM tab2
----
-2244
-2948
-3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT + CAST( NULL AS SIGNED ) * - + 33 * + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT + CAST ( NULL AS INTEGER ) * - + 33 * + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT - COUNT( * ) DIV - + 82 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3612
SELECT DISTINCT - COUNT ( * ) / - + 82 col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT CAST( + - 35 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3613
SELECT CAST ( + - 35 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + - col0 ) + col2 + - 21 + + 98 * col0 * 49 + 86 col0 FROM tab0 AS cor0
----
418719
475561
72847

query I rowsort
SELECT ALL col0 * - - col0 + - 0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3616
SELECT - col2 DIV + 89 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3616
SELECT - col2 / + 89 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT SUM( 97 ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT SUM ( 97 ) FROM tab1 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT + - col0 DIV + col1 + + - col0 + - 90 FROM tab1 cor0
----
-144
-182
-192

skipif mysql # not compatible
query I rowsort label-3618
SELECT + - col0 / + col1 + + - col0 + - 90 FROM tab1 cor0
----
-144
-182
-192

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, - 8 + col2 FROM tab0
----
-10
2
-47
39
-99
91

query II rowsort
SELECT 58, col2 AS col1 FROM tab1
----
58
59
58
68
58
96

query I rowsort
SELECT DISTINCT - col0 * + - col2 + + + col1 + + col2 FROM tab2
----
1132
2677
4475

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL - 80 + + + COUNT( * ) col1 FROM tab1
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3623
SELECT ALL - 80 + + + COUNT ( * ) col1 FROM tab1
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 9 ) col0 FROM tab0 AS cor0
----
-9
-9
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * - col0 + - 69 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT ALL - col1 * - col2 + CAST( NULL AS SIGNED ) * 22 + - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - col1 * - col2 + CAST ( NULL AS INTEGER ) * 22 + - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT 71 - MAX( 71 ) AS col0 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT 71 - MAX ( 71 ) AS col0 FROM tab2, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL MIN( - + col1 ) + + 96 + + SUM( - 94 ) AS col1 FROM tab1
----
-233

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL MIN ( - + col1 ) + + 96 + + SUM ( - 94 ) AS col1 FROM tab1
----
-233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT ALL + CAST( - + col1 AS SIGNED ) * - 78 * - col1 * - col0 * - - col0 - col2 FROM tab2 AS cor0
----
1894244312
1969548692
429289825

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + CAST ( - + col1 AS INTEGER ) * - 78 * - col1 * - col0 * - - col0 - col2 FROM tab2 AS cor0
----
1894244312
1969548692
429289825

query I rowsort
SELECT ALL - - 62 AS col2 FROM tab0 cor0
----
62
62
62

query I rowsort
SELECT DISTINCT - col0 * + + col2 - + 65 AS col1 FROM tab1 AS cor0
----
-4961
-5080
-6253

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT DISTINCT + col2 DIV + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + col2 / + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
11
6

query I rowsort
SELECT ALL + - col2 - - 5 FROM tab0 AS cor0
----
-42
-5
-94

query I rowsort
SELECT col0 - 55 * + 43 AS col0 FROM tab1
----
-2274
-2280
-2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT ALL + ( + col2 ) * + CAST( + col2 AS SIGNED ) FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + ( + col2 ) * + CAST ( + col2 AS INTEGER ) FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT COUNT( * ) * + - MIN( ALL + col2 ) col1 FROM tab1
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3636
SELECT COUNT ( * ) * + - MIN ( ALL + col2 ) col1 FROM tab1
----
-177

query I rowsort
SELECT - 76 * col1 AS col1 FROM tab1
----
-1064
-3572
-380

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 67 + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3639
SELECT - 3 DIV - COUNT( DISTINCT - 62 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3639
SELECT - 3 / - COUNT ( DISTINCT - 62 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3640
SELECT col0 DIV col1 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3640
SELECT col0 / col1 / + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT + 70 DIV col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3641
SELECT + 70 / col0 AS col0 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 + + col0 * + - col0 + - + 22 * - col2 ) <= 81
----
15
81
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 94 AND col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT ( 92 ) * - MAX( col2 ) FROM tab2
----
-5336

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT ( 92 ) * - MAX ( col2 ) FROM tab2
----
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT COUNT( 49 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3645
SELECT COUNT ( 49 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 77 * - - col0 AS col1 FROM tab1
----
3927
6545
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 * - 80 col0 FROM tab1
----
107520
23600
255680

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL 62 DIV + + col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL 62 / + + col0 FROM tab0
----
0
0
4

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 * - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 74 AS col0, - col2 * + col0 col0 FROM tab1 cor0
----
-74
-4896
-74
-5015
-74
-6188

query II rowsort
SELECT ALL - - col1 AS col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT DISTINCT + ( - - col2 ) AS col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3653
SELECT COUNT( * ) DIV 15 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT COUNT ( * ) / 15 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * - + 31 + - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1280
-1856
-736

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 3 * - col1 < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT ALL - + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - + col2 / col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT COUNT( DISTINCT - 42 ) + - 16 AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3657
SELECT COUNT ( DISTINCT - 42 ) + - 16 AS col2 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3658
SELECT + col0 + - CAST( NULL AS DECIMAL ) + + - col1 / - 72 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT + col0 + - CAST ( NULL AS REAL ) + + - col1 / - 72 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 78 FROM tab2
----
-3978
-5226
-6006

query III rowsort
SELECT * FROM tab2 WHERE + 44 + 79 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 35 FROM tab1 WHERE ( NOT col1 + col1 IS NULL )
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT - 20 + + COUNT( * ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT - 20 + + COUNT ( * ) FROM tab1
----
-17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - - 47 * - 6 )
----

query I rowsort
SELECT DISTINCT + ( 76 ) + 89 + - - 6 AS col1 FROM tab2 AS cor0
----
171

query I rowsort
SELECT DISTINCT 92 * col0 * 85 AS col0 FROM tab0 AS cor0
----
117300
680340
758540

query II rowsort
SELECT DISTINCT + col0 AS col1, - col2 FROM tab2
----
46
-23
64
-40
75
-58

query I rowsort
SELECT DISTINCT + 10 + + - 82 FROM tab2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT - 44 + + + 54 + + col1 + ( 10 ) - + + col1 DIV + + col1 FROM tab1 WHERE - - 51 + + + col1 * - + col2 IS NOT NULL
----
24
33
66

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 44 + + + 54 + + col1 + ( 10 ) - + + col1 / + + col1 FROM tab1 WHERE - - 51 + + + col1 * - + col2 IS NOT NULL
----
24
33
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 25 AND NULL
----

query I rowsort
SELECT ALL + + 7 * + - 75 AS col2 FROM tab2 AS cor0 WHERE - 45 <= - - col0 + - + col1 + + + 50
----
-525
-525
-525

query I rowsort
SELECT + + col2 + - - 2 FROM tab0 AS cor0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - COUNT( * ) * + SUM( - 7 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3672
SELECT - COUNT ( * ) * + SUM ( - 7 ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT col0 * - - col1 - - + 71 FROM tab2 cor0
----
2417
4999
5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT DISTINCT MIN( DISTINCT col1 ) DIV + 82 FROM tab2 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT MIN ( DISTINCT col1 ) / + 82 FROM tab2 WHERE ( NULL ) IS NULL
----
0

query I rowsort
SELECT - col1 + - ( 10 ) + + + col2 AS col0 FROM tab1 WHERE NOT 89 IS NULL
----
11
44
72

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col2 IS NULL ) OR NOT - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT SUM( ALL + 43 ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT SUM ( ALL + 43 ) FROM tab0
----
129

query I rowsort
SELECT + - ( - ( - + ( - col1 ) ) ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col1 * + 19 * + ( - + 82 ) * + + 96 FROM tab2 AS cor0
----
-10021056
-11516736
-7627968

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + MIN( + - 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-52

skipif mysql # not compatible
query I rowsort label-3680
SELECT + MIN ( + - 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-52

query I rowsort
SELECT 44 * + + 25 + + col2 AS col0 FROM tab2
----
1123
1140
1158

query I rowsort
SELECT + 53 + col1 FROM tab0 AS cor0
----
134
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT COUNT( * ) * - + 73 + - 86 AS col1 FROM tab1 AS cor0
----
-305

skipif mysql # not compatible
query I rowsort label-3683
SELECT COUNT ( * ) * - + 73 + - 86 AS col1 FROM tab1 AS cor0
----
-305

query I rowsort
SELECT + col1 + col1 + - col2 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT col2 + - + col0 * - - 60 * - col2 FROM tab2 AS cor0
----
153640
261058
63503

query I rowsort
SELECT DISTINCT col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3687
SELECT * FROM tab0 AS cor0 WHERE ( - 76 ) < col0 - + + col2 + 2 * CAST( NULL AS SIGNED ) - + col2
----

skipif mysql # not compatible
query III rowsort label-3687
SELECT * FROM tab0 AS cor0 WHERE ( - 76 ) < col0 - + + col2 + 2 * CAST ( NULL AS INTEGER ) - + col2
----

query I rowsort
SELECT DISTINCT - + 82 * - col0 AS col1 FROM tab1 AS cor0
----
4182
6970
7462

query I rowsort
SELECT ALL - 83 * + + col2 + col1 FROM tab2
----
-1858
-3243
-4747

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 97 - - col0 * + 1 * + - col0 BETWEEN col1 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * + 53 + - col1 col1 FROM tab0
----
290
350
370

query II rowsort
SELECT - - col2 + 36 + ( - col1 ) * col2 + col2, - 70 * - col0 AS col2 FROM tab2 AS cor0
----
-1091
3220
-2964
4480
-3734
5250

query I rowsort
SELECT - 75 + - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-28
-65
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT ALL + 52 DIV col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + 52 / col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT 24 + + 11 FROM tab0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT col0 DIV - col2 col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3697
SELECT col0 / - col2 col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT col0 + + + 13 FROM tab2
----
59
77
88

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT ALL + MIN( col0 ) AS col2, - MIN( + col0 ) FROM tab1 AS cor0
----
51
-51

skipif mysql # not compatible
query II rowsort label-3700
SELECT ALL + MIN ( col0 ) AS col2, - MIN ( + col0 ) FROM tab1 AS cor0
----
51
-51

query I rowsort
SELECT 61 * + col0 FROM tab0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL SUM( - 7 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL SUM ( - 7 ) FROM tab2
----
-21

query I rowsort
SELECT - col2 * - - col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT DISTINCT COUNT( * ), 44 AS col2 FROM tab2
----
3
44

skipif mysql # not compatible
query II rowsort label-3704
SELECT DISTINCT COUNT ( * ), 44 AS col2 FROM tab2
----
3
44

query I rowsort
SELECT ALL + ( - 93 ) FROM tab2
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + MAX( ALL - ( + col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3706
SELECT + MAX ( ALL - ( + col0 ) ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT + col1 DIV - + 63 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3707
SELECT + col1 / - + 63 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 FROM tab1 cor0
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 87 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> + col1
----

query I rowsort
SELECT - 29 FROM tab2 AS cor0 WHERE NOT - 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT + + COUNT( * ) * SUM( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + + COUNT ( * ) * SUM ( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
-555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT 86 * + - ( - - CAST( - - col0 AS SIGNED ) ) * - col0 FROM tab2
----
181976
352256
483750

skipif mysql # not compatible
query I rowsort label-3713
SELECT 86 * + - ( - - CAST ( - - col0 AS INTEGER ) ) * - col0 FROM tab2
----
181976
352256
483750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + + 88 + + 56 + - 59 AS col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + + 88 + + 56 + - 59 AS col1 FROM tab1 AS cor0
----
82

query I rowsort
SELECT ALL + + 53 * + - col2 + 71 FROM tab0 cor0
----
-2420
-459
-5176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 + col0 col0 FROM tab2 AS cor0
----
129
147
158

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 WHERE - col1 * + + col0 IS NULL
----

query I rowsort
SELECT ALL 88 + 29 * - + col2 FROM tab2
----
-1072
-1594
-579

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN + col0 * 85 - 70 AND ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 24 + col1 FROM tab0
----
-23
-3
57

query I rowsort
SELECT ALL - col0 + 37 AS col1 FROM tab2
----
-27
-38
-9

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE - 85 * + 72 IS NULL
----

query II rowsort
SELECT DISTINCT col1 * + - col1 - col0 AS col2, - col1 FROM tab1 AS cor0
----
-110
-5
-2300
-47
-247
-14

query I rowsort
SELECT ALL - - col2 * - 78 - - col2 - - - 59 AS col1 FROM tab0 AS cor0
----
-3678
-7682
-829

query I rowsort
SELECT ALL 59 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 28 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3728
SELECT + CAST( NULL AS SIGNED ) / COUNT( * ) * SUM( - col1 ) - - 77 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * SUM ( - col1 ) - - 77 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT - col0 * col0 DIV col1 * - col2 AS col2 FROM tab0 AS cor0
----
3600
931491
94

skipif mysql # not compatible
query I rowsort label-3730
SELECT - col0 * col0 / col1 * - col2 AS col2 FROM tab0 AS cor0
----
3600
931491
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT COUNT( ALL - 20 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3731
SELECT COUNT ( ALL - 20 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - col0 * - - 37 AS col1 FROM tab1 AS cor0
----
-1887
-3145
-3367

query II rowsort
SELECT ALL col2, 28 FROM tab0 AS cor0
----
10
28
47
28
99
28

query III rowsort
SELECT - + col2 AS col2, + col0 AS col2, - col2 FROM tab0 AS cor0
----
9 values hashing to 6e2f28b160438e0d0797a2834516ceda

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT MIN( col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT - 66, col2 AS col1 FROM tab0 AS cor0
----
-66
10
-66
47
-66
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3737
SELECT DISTINCT * FROM tab1 WHERE + + 76 + col1 + col2 > - + 88 * - + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3737
SELECT DISTINCT * FROM tab1 WHERE + + 76 + col1 + col2 > - + 88 * - + CAST ( col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT + MAX( DISTINCT + 70 ) col2 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3738
SELECT DISTINCT + MAX ( DISTINCT + 70 ) col2 FROM tab0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT DISTINCT 79 * col0 DIV col2 AS col2 FROM tab1
----
105
113
41

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT 79 * col0 / col2 AS col2 FROM tab1
----
105
113
41

query I rowsort
SELECT ALL - 91 * 26 AS col2 FROM tab2
----
-2366
-2366
-2366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3741
SELECT SUM( ALL col1 ) DIV + COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-3741
SELECT SUM ( ALL col1 ) / + COUNT ( * ) FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL + + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 28 FROM tab0
----
-13
59
69

query I rowsort
SELECT - col2 + - + col2 + col0 + + - 95 AS col1 FROM tab1
----
-128
-140
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT 55 + - - ( + COUNT( * ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3745
SELECT 55 + - - ( + COUNT ( * ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - - ( + 94 ) + MIN( - - col0 ) FROM tab2 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-3746
SELECT - - ( + 94 ) + MIN ( - - col0 ) FROM tab2 AS cor0
----
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col0 FROM tab1 cor0 WHERE + col2 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT - col0 - col2 + - col0 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - ( + COUNT( - col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - ( + COUNT ( - col0 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3750
SELECT DISTINCT COUNT( + ( - col0 ) ), - 29 AS col2 FROM tab2 AS cor0
----
3
-29

skipif mysql # not compatible
query II rowsort label-3750
SELECT DISTINCT COUNT ( + ( - col0 ) ), - 29 AS col2 FROM tab2 AS cor0
----
3
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT + 17 - 1 DIV - col0 AS col0 FROM tab0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-3751
SELECT + 17 - 1 / - col0 AS col0 FROM tab0
----
17
17
17

onlyif mysql # DIV for integer division: 
query II rowsort label-3752
SELECT DISTINCT col0 DIV - - 64 + + + col1 + - col1 AS col0, ( - col0 ) * col1 AS col2 FROM tab2
----
0
-2346
1
-4928
1
-5025

skipif mysql # not compatible
query II rowsort label-3752
SELECT DISTINCT col0 / - - 64 + + + col1 + - col1 AS col0, ( - col0 ) * col1 AS col2 FROM tab2
----
0
-2346
1
-4928
1
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT MIN( + - 10 ) FROM tab2, tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3753
SELECT MIN ( + - 10 ) FROM tab2, tab0 AS cor0
----
-10

query I rowsort
SELECT 42 + + - col2 * - 35 AS col0 FROM tab0
----
1687
3507
392

query I rowsort
SELECT DISTINCT 37 + + + col1 - ( - + 50 ) FROM tab0
----
108
168
88

query I rowsort
SELECT DISTINCT + + col2 - + 24 AS col0 FROM tab2 AS cor0
----
-1
16
34

query I rowsort
SELECT DISTINCT - 26 + + col2 * + - 65 AS col1 FROM tab0 AS cor0
----
-3081
-6461
-676

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT - 96 + + MAX( + - col2 ) FROM tab2 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - 96 + + MAX ( + - col2 ) FROM tab2 AS cor0
----
-119

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3759
SELECT ALL + - CAST( NULL AS DECIMAL ) - - + col0, 58 * - + 23 + + col2 AS col2 FROM tab0 AS cor0
----
NULL
-1235
NULL
-1287
NULL
-1324

skipif mysql # not compatible
query II rowsort label-3759
SELECT ALL + - CAST ( NULL AS REAL ) - - + col0, 58 * - + 23 + + col2 AS col2 FROM tab0 AS cor0
----
NULL
-1235
NULL
-1287
NULL
-1324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3760
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 1 * col1 * + col2 * - 67 FROM tab1 AS cor0
----
-19765
-214132
-90048

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 - + 19 * col1 ) BETWEEN NULL AND col0 / - - 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT CAST( + - 56 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT CAST ( + - 56 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL + ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT + MIN( col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3765
SELECT + MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT + - 84 * + + col0 + col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

query II rowsort
SELECT DISTINCT col1 AS col0, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL + 2 * - col1 AS col0 FROM tab1
----
-10
-28
-94

query II rowsort
SELECT col0 AS col2, + col0 FROM tab1
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT ALL - 74, + col1 AS col1 FROM tab2
----
-74
51
-74
67
-74
77

query I rowsort
SELECT DISTINCT 76 + - - col0 * - - col1 FROM tab0
----
1291
173
1903

query I rowsort
SELECT DISTINCT + + col0 * + 51 AS col2 FROM tab1 AS cor0
----
2601
4335
4641

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - col0 + - ( ( 70 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * 23 * col0 AS col1 FROM tab0
----
2231
27945
42021

query I rowsort
SELECT ALL - - col2 * + col1 * - col1 - - + col0 FROM tab2 AS cor0
----
-237096
-260287
-59777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3777
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT DISTINCT + - ( + ( + CAST( - 92 AS SIGNED ) ) ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + - ( + ( + CAST ( - 92 AS INTEGER ) ) ) FROM tab1 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL + 49 + + 60 - + SUM( ALL + col1 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + 49 + + 60 - + SUM ( ALL + col1 ) FROM tab2 AS cor0
----
-86

query I rowsort
SELECT + + col1 + + col0 * - col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE NOT col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col0 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - col2 AND col0 + - col2
----
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL - + COUNT( * ) - + + COUNT( * ) + + COUNT( ALL col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - + COUNT ( * ) - + + COUNT ( * ) + + COUNT ( ALL col0 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT ALL COUNT( * ) col2 FROM tab2 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-3784
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----
0

query I rowsort
SELECT 6 + + + ( col0 ) FROM tab1
----
57
91
97

query I rowsort
SELECT DISTINCT - 24 * - col0 FROM tab2
----
1104
1536
1800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab0 WHERE col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3789
SELECT DISTINCT 6 AS col2, + COUNT( * ) AS col2 FROM tab0
----
6
3

skipif mysql # not compatible
query II rowsort label-3789
SELECT DISTINCT 6 AS col2, + COUNT ( * ) AS col2 FROM tab0
----
6
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + 91 > + col2
----
85
5
59
91
47
68

query I rowsort
SELECT 11 * + + col0 FROM tab0
----
1067
165
957

query I rowsort
SELECT DISTINCT + 89 - - + col0 FROM tab0 AS cor0
----
104
176
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94, 99 col0 FROM tab2 AS cor0
----
-94
99
-94
99
-94
99

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + - 14 col1 FROM tab2 AS cor0
----
1159
3066
3872

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + - 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + col0 * + 69 AS col1 FROM tab1
----
337824
346035
426972

query I rowsort
SELECT DISTINCT + 25 * - + col2 AS col0 FROM tab0
----
-1175
-2475
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col1 FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT ALL + 47 FROM tab1 AS cor0 WHERE NULL <> - 93
----

query I rowsort
SELECT DISTINCT - + 58 AS col2 FROM tab1 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL COUNT( * ) * + - 54 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL COUNT ( * ) * + - 54 FROM tab0 AS cor0
----
-162

query I rowsort
SELECT - 84 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col0 ) AND - col2
----

query I rowsort
SELECT DISTINCT - col1 * + - 36 * - 53 FROM tab2 AS cor0
----
-127836
-146916
-97308

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT - 42 * COUNT( * ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - 42 * COUNT ( * ) FROM tab0
----
-126

query I rowsort
SELECT 2 AS col2 FROM tab1 WHERE NOT + col0 + - - col1 * - 68 IS NULL
----
2
2
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3807
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3807
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL + COUNT( * ) + + 68 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL + COUNT ( * ) + + 68 FROM tab1
----
71

query II rowsort
SELECT DISTINCT - col0 * + - col1 * col1 AS col2, col1 * 56 FROM tab2
----
119646
2856
336675
3752
379456
4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT + - col1 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT + - col1 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT - COUNT( col1 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3811
SELECT - COUNT ( col1 ) col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * + 39 + 8 * col2 * col1 < 15
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT + - MIN( DISTINCT 95 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3813
SELECT + - MIN ( DISTINCT 95 ) FROM tab2 AS cor0
----
-95

query I rowsort
SELECT ALL + + 26 * + col2 AS col2 FROM tab0 AS cor0
----
1222
2574
260

query I rowsort
SELECT + col1 * 42 + + col1 + - + 61 FROM tab2 cor0 WHERE NULL >= - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL - + 32 * - + SUM( + col0 ) FROM tab2 AS cor0
----
5920

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL - + 32 * - + SUM ( + col0 ) FROM tab2 AS cor0
----
5920

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3817
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT - col2 + - col1 + + + 51 AS col1 FROM tab1
----
-13
-59
-64

query I rowsort
SELECT - 86 + 54 * - col1 FROM tab0
----
-1220
-140
-4460

query I rowsort
SELECT col0 * col1 * 50 + ( col1 ) FROM tab2 WHERE + + 56 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col1 <= 3
----

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col1 <= 3
----

query II rowsort
SELECT - col0 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query II rowsort
SELECT + - col2, + col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL - 12 + + + col0 FROM tab0 cor0
----
3
75
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT + SUM( + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT + SUM ( + - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + ( + col0 ) - + col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = + col1 / ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = + col1 / ( - + col0 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 / + col1 NOT IN ( col1, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 71 + - + 89 AS col2 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT + col0 + + ( + - col1 ) FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3831
SELECT 24 DIV + COUNT( * ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3831
SELECT 24 / + COUNT ( * ) AS col1 FROM tab0
----
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 BETWEEN + 54 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 39 col2 FROM tab2 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT CAST( - + 53 AS SIGNED ) AS col1 FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-3834
SELECT CAST ( - + 53 AS INTEGER ) AS col1 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3836
SELECT ALL 61 AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
61
NULL
61
NULL
61
NULL

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL 61 AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
61
NULL
61
NULL
61
NULL

query I rowsort
SELECT DISTINCT - 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

query I rowsort
SELECT - col0 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT + SUM( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + SUM ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT 74 * - COUNT( * ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-3841
SELECT 74 * - COUNT ( * ) FROM tab1 AS cor0
----
-222

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
5

query II rowsort
SELECT + col0, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3845
SELECT - COUNT( * ) DIV - 34 + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT - COUNT ( * ) / - 34 + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + 42 + col2 - - col0 FROM tab2
----
111
146
175

query I rowsort
SELECT + col0 * + - col1 + - + 26 FROM tab0
----
-123
-1241
-1853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL - col1 * col1 AS col2 FROM tab1 WHERE + - col1 + + + CAST( - - col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - col1 * col1 AS col2 FROM tab1 WHERE + - col1 + + + CAST ( - - col0 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT - 80 + - COUNT( * ) * + COUNT( * ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT - 80 + - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT ALL CAST( - col2 AS SIGNED ) + col0 AS col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL CAST ( - col2 AS INTEGER ) + col0 AS col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT COUNT( * ) * 64 + - MAX( + - col1 ) + ( 26 ) FROM tab2 AS cor0
----
269

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( * ) * 64 + - MAX ( + - col1 ) + ( 26 ) FROM tab2 AS cor0
----
269

query I rowsort
SELECT ALL - + 38 + + + col1 AS col0 FROM tab0 cor0
----
-17
-37
43

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3855
SELECT 19 + - col0 - - col1 DIV + col0 FROM tab1 AS cor0
----
-32
-66
-72

skipif mysql # not compatible
query I rowsort label-3855
SELECT 19 + - col0 - - col1 / + col0 FROM tab1 AS cor0
----
-32
-66
-72

query I rowsort
SELECT - + 46 AS col0 FROM tab2 AS cor0 WHERE + col2 > + ( - col1 )
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT DISTINCT - 95 - CAST( + 52 AS SIGNED ) * + 93 FROM tab1 AS cor0
----
-4931

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - 95 - CAST ( + 52 AS INTEGER ) * + 93 FROM tab1 AS cor0
----
-4931

query I rowsort
SELECT + 0 + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - 4 + 82 AS col2 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - + 4 * 45 AS col1 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT col2 * + col1 + + 37 FROM tab2 cor0
----
1210
3117
3923

query I rowsort
SELECT ALL 79 - - col2 FROM tab0 AS cor0
----
126
178
89

query I rowsort
SELECT - col0 + 33 AS col0 FROM tab1 AS cor0
----
-18
-52
-58

query I rowsort
SELECT - + 40 FROM tab2 cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3865
SELECT 42 DIV CAST( - - ( + col1 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-3865
SELECT 42 / CAST ( - - ( + col1 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
0
3
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT ALL - col2 DIV 28 col2 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3866
SELECT ALL - col2 / 28 col2 FROM tab1
----
-2
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3867
SELECT DISTINCT + col2 AS col0, CAST( NULL AS SIGNED ) * - + 38 - col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3867
SELECT DISTINCT + col2 AS col0, CAST ( NULL AS INTEGER ) * - + 38 - col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT ALL + 39, COUNT( ALL - 44 ) AS col1 FROM tab2
----
39
3

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL + 39, COUNT ( ALL - 44 ) AS col1 FROM tab2
----
39
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 9 * - 79 + + - col0 * - - col1 <> - col1 * + 46
----

query I rowsort
SELECT + + 97 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT + col1 IS NULL )
----
0

query I rowsort
SELECT ALL - 47 * + col0 * - col2 AS col2 FROM tab0
----
33135
40890
451341

query I rowsort
SELECT DISTINCT + 14 * - + 79 * - 63 AS col1 FROM tab0
----
69678

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + col0 * + 21 FROM tab0 AS cor0
----
-14805
-18270
-201663

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT DISTINCT - SUM( ALL + - 51 ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - SUM ( ALL + - 51 ) FROM tab1 AS cor0
----
153

query I rowsort
SELECT 6 * + col1 FROM tab2 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT ALL - 69 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT col1 + - col0 + + col0 DIV ( + col2 ) + - + 29 AS col1 FROM tab2
----
-15
-22
-36

skipif mysql # not compatible
query I rowsort label-3880
SELECT col1 + - col0 + + col0 / ( + col2 ) + - + 29 AS col1 FROM tab2
----
-15
-22
-36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + ( - + col0 ) * - 99 <> 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 24 + + col0 + 93 FROM tab0 AS cor0
----
132
204
214

query I rowsort
SELECT ALL - - ( - 54 ) * 2 FROM tab0 AS cor0
----
-108
-108
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT + col1 DIV + - col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3884
SELECT + col1 / + - col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + col1 * - 34 * - col2 AS col2 FROM tab1 AS cor0
----
10030
108664
45696

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT - MIN( + col1 ) * COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3886
SELECT - MIN ( + col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT CAST( + + col1 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT CAST ( + + col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 89 - - col2 FROM tab0 AS cor0 WHERE NOT 68 IS NULL
----
136
188
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL + COUNT( DISTINCT + 75 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + COUNT ( DISTINCT + 75 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + 8 + - - 36 + - col0 + + - col0 FROM tab0 AS cor0
----
-130
-150
14

query I rowsort
SELECT DISTINCT + 6 * + col1 FROM tab0 WHERE + col2 NOT IN ( + 45, + col2 / - + 33, 2, + col0, - col1 + - - col2 )
----
126
486
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT DISTINCT 60 + + 35 * + COUNT( * ) AS col0, - COUNT( * ) FROM tab0
----
165
-3

skipif mysql # not compatible
query II rowsort label-3892
SELECT DISTINCT 60 + + 35 * + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0
----
165
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL MIN( + - col0 ) + - COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL MIN ( + - col0 ) + - COUNT ( * ) FROM tab2
----
-78

query III rowsort
SELECT * FROM tab0 WHERE 53 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT - 37 + - COUNT( * ) + + - COUNT( * ) AS col2, + 51 + 28 + - 96 AS col2 FROM tab2 AS cor0
----
-43
-17

skipif mysql # not compatible
query II rowsort label-3895
SELECT - 37 + - COUNT ( * ) + + - COUNT ( * ) AS col2, + 51 + 28 + - 96 AS col2 FROM tab2 AS cor0
----
-43
-17

query I rowsort
SELECT ALL col2 * - ( col0 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT 38 + - col0 + - - 82 FROM tab0 AS cor0
----
105
23
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3898
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 24 >= NULL
----

query II rowsort
SELECT DISTINCT + ( + - 72 ), - 46 AS col2 FROM tab0
----
-72
-46

query I rowsort
SELECT ALL 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT ALL - ( - - COUNT( * ) ) AS col0, + 51 AS col0 FROM tab2
----
-3
51

skipif mysql # not compatible
query II rowsort label-3902
SELECT ALL - ( - - COUNT ( * ) ) AS col0, + 51 AS col0 FROM tab2
----
-3
51

query I rowsort
SELECT ALL - - 64 - + col2 AS col1 FROM tab2 cor0
----
24
41
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT + 54 DIV 22 + - 12 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + 54 / 22 + - 12 FROM tab1 cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT + CAST( NULL AS SIGNED ) * + col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3907
SELECT + CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 26 * + + 2 * + + col1 FROM tab2
----
2652
3484
4004

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT - 65 DIV + 28 AS col0 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3909
SELECT - 65 / + 28 AS col0 FROM tab2
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab1 WHERE NOT NULL < ( + col2 ) + col2
----

query I rowsort
SELECT + 45 * - col0 AS col2 FROM tab1
----
-2295
-3825
-4095

query I rowsort
SELECT DISTINCT - 87 * col1 AS col1 FROM tab0
----
-1827
-7047
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT - ( - 91 ) DIV col1 FROM tab0
----
1
4
91

skipif mysql # not compatible
query I rowsort label-3913
SELECT - ( - 91 ) / col1 FROM tab0
----
1
4
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 * + col1 col2 FROM tab2
----
2601
3417
3927

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT + col0 * 81 DIV col0 * col1 FROM tab1
----
1134
3807
405

skipif mysql # not compatible
query I rowsort label-3915
SELECT + col0 * 81 / col0 * col1 FROM tab1
----
1134
3807
405

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT + 4 DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + 4 / col0 FROM tab1
----
0

query II rowsort
SELECT + - col1 AS col1, + col1 + - col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query II rowsort
SELECT DISTINCT + col0, 90 FROM tab0 AS cor0
----
15
90
87
90
97
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT + CAST( - - 45 AS SIGNED ) AS col1 FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-3919
SELECT + CAST ( - - 45 AS INTEGER ) AS col1 FROM tab0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 27 + + 24 FROM tab2
----
-51
51
-67
51
-77
51

query I rowsort
SELECT - + 94 + 69 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL - ( - 9 ) DIV + 99 - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL - ( - 9 ) / + 99 - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 6 ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3924
SELECT - CAST( 64 AS SIGNED ), - col0 FROM tab0 AS cor0 WHERE + col2 + - col0 + - 71 IS NULL
----

skipif mysql # not compatible
query II rowsort label-3924
SELECT - CAST ( 64 AS INTEGER ), - col0 FROM tab0 AS cor0 WHERE + col2 + - col0 + - 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT MAX( + col0 ) AS col0 FROM tab0 AS cor0 WHERE + 98 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT MAX ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE + 98 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - col2, 31 AS col1 FROM tab2 AS cor0
----
-23
31
-40
31
-58
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + + 40 + - COUNT( * ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3928
SELECT + + 40 + - COUNT ( * ) FROM tab2 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3929
SELECT col1 DIV - + col1 + - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-3929
SELECT col1 / - + col1 + - col1 FROM tab2
----
-52
-68
-78

query III rowsort
SELECT * FROM tab2 WHERE 76 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 24 > - 58 + col0 )
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT + 36 + 95 DIV - - 55 FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-3932
SELECT + 36 + 95 / - - 55 FROM tab0
----
37
37
37

query II rowsort
SELECT ALL - col1 + + - col1, col0 FROM tab2
----
-102
46
-134
75
-154
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3934
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND + 77
----

skipif mysql # not compatible
query III rowsort label-3934
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + 77
----

query I rowsort
SELECT - col0 + - 34 + 31 FROM tab2
----
-49
-67
-78

query I rowsort
SELECT DISTINCT - ( + - col1 ) + + - col0 * + + col1 - - - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT 5 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE - 50 IN ( - col1, col1 - + - col1, + 28 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT - SUM( DISTINCT - col1 ) - 19 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3940
SELECT - SUM ( DISTINCT - col1 ) - 19 FROM tab0 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT - col2 DIV col0 - 23 FROM tab2 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-3941
SELECT - col2 / col0 - 23 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT 60 * + col2 AS col1 FROM tab1 AS cor0
----
3540
4080
5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT ALL col2 * - CAST( NULL AS SIGNED ) + + - col0 - - + col1 + + col0 * - 97 + col1 * - col0 col0 FROM tab1 AS cor0 WHERE NOT ( ( NOT 2 BETWEEN 85 AND NULL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3943
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) + + - col0 - - + col1 + + col0 * - 97 + col1 * - col0 col0 FROM tab1 AS cor0 WHERE NOT ( ( NOT 2 BETWEEN 85 AND NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT + CAST( + 23 AS SIGNED ) col0 FROM tab0 cor0
----
23
23
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3944
SELECT + CAST ( + 23 AS INTEGER ) col0 FROM tab0 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL - 54 * - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - 54 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col2 * + col0 col1 FROM tab0 AS cor0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT + - ( MIN( ALL 1 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3947
SELECT + - ( MIN ( ALL 1 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + SUM( - 80 ) AS col0 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3948
SELECT + SUM ( - 80 ) AS col0 FROM tab1 AS cor0
----
-240

query I rowsort
SELECT DISTINCT - ( + 28 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - ( - 73 ) AS col2 FROM tab2 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + ( + - 87 ) ) col0 FROM tab1
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - MIN( + ( - 94 ) ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - MIN ( + ( - 94 ) ) FROM tab2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT + CAST( NULL AS SIGNED ) * - 33 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT + CAST ( NULL AS INTEGER ) * - 33 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - - col1 * - col2 * col1 FROM tab2
----
-15178240
-19527150
-2751858

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - SUM( col2 ) AS col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3955
SELECT - SUM ( col2 ) AS col0 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT 38 + + COUNT( * ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-3956
SELECT 38 + + COUNT ( * ) FROM tab0
----
41

query I rowsort
SELECT ALL - - 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT - col1 * - + col1 AS col0 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT + ( + ( - CAST( - col2 AS SIGNED ) ) ) col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3959
SELECT + ( + ( - CAST ( - col2 AS INTEGER ) ) ) col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + + col0 * col1 * 40 AS col2 FROM tab2 AS cor0
----
197120
201000
93840

query I rowsort
SELECT + + col0 * - + col0 + - + col0 FROM tab0 AS cor0
----
-240
-7656
-9506

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 >= col0 * 32
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL - CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
141
142
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3965
SELECT - 19 AS col0, 5 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE + col0 NOT BETWEEN - col1 AND - col2 * - col1 * - col1 + - col1
----
-19
NULL
-19
NULL
-19
NULL

skipif mysql # not compatible
query II rowsort label-3965
SELECT - 19 AS col0, 5 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE + col0 NOT BETWEEN - col1 AND - col2 * - col1 * - col1 + - col1
----
-19
NULL
-19
NULL
-19
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 WHERE NOT - 10 IS NULL
----
23
40
58

query II rowsort
SELECT col0 AS col2, 3 - - + col2 + + col0 AS col0 FROM tab2
----
46
72
64
107
75
136

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + - 8 IN ( + 11, col0 - + 26 + 71, + col2 * + col0 + + 34 ) AND col1 * + + col1 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + + col1 AS col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT + COUNT( * ) + - - COUNT( * ) col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3971
SELECT + COUNT ( * ) + - - COUNT ( * ) col2 FROM tab0 cor0
----
6

query II rowsort
SELECT + col2, col1 * - ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - ( - col0 ) * - + col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - 72 * - col1 AS col1 FROM tab2
----
3672
4824
5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT ALL 19 + + + col1 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
70
86
96

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL 19 + + + col1 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
70
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + COUNT( + col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3978
SELECT ALL + COUNT ( + col1 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT COUNT( * ) * - ( + COUNT( * ) ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3979
SELECT COUNT ( * ) * - ( + COUNT ( * ) ) AS col1 FROM tab0
----
-9

query II rowsort
SELECT + 70, + col0 FROM tab0
----
70
15
70
87
70
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT DISTINCT - col1 * CAST( - 82 AS SIGNED ) AS col2 FROM tab0
----
1722
6642
82

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT - col1 * CAST ( - 82 AS INTEGER ) AS col2 FROM tab0
----
1722
6642
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 * col0 col0 FROM tab0
----
1275
7395
8245

query I rowsort
SELECT ALL - col1 * - - col1 * - 48 FROM tab2
----
124848
215472
284592

query I rowsort
SELECT DISTINCT ( + 14 ) AS col0 FROM tab1
----
14

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * 20 + - - col1 * + 20 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - 88 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3986
SELECT - 88 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT DISTINCT - COUNT( * ) * ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT - COUNT ( * ) * ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 * - col0 col0 FROM tab2 WHERE NOT ( col1 / 46 ) IN ( - col0 )
----
-4232
-5888
-6900

query I rowsort
SELECT DISTINCT - 58 FROM tab1 WHERE NOT ( NULL ) >= ( 7 * 31 )
----

query I rowsort
SELECT DISTINCT ( 92 ) * ( - col1 - + col0 ) FROM tab0
----
-8832
-9016
-9936

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT MAX( DISTINCT ( col0 ) ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3991
SELECT MAX ( DISTINCT ( col0 ) ) AS col1 FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( - col2 - + col0 ) AND ( + col1 )
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) BETWEEN ( col0 ) AND - col0 + + 12 * col0
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT - CAST( NULL AS SIGNED ) - 40 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT - CAST ( NULL AS INTEGER ) - 40 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 44 ) * col2 FROM tab1 WHERE - 80 * - col1 IS NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT - ( + col2 ) / - col0 IS NOT NULL
----

query I rowsort
SELECT - 23 / + 57 + + ( + col2 ) AS col0 FROM tab0 WHERE ( col1 ) IN ( - col2 * 62 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 - - col0 col1 FROM tab0
----
106
116
34

query I rowsort
SELECT ALL col1 / - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( ( col0 ) ) * - 43 + - ( - ( col1 ) ) * + col0 AS col0 FROM tab2
----
1800
2176
368

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT 55 * MAX( + col1 ) FROM tab2
----
4235

skipif mysql # not compatible
query I rowsort label-4001
SELECT 55 * MAX ( + col1 ) FROM tab2
----
4235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + + 11 col0 FROM tab1
----
4288
436
725

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT MAX( ALL 40 ) * 84 AS col1 FROM tab1
----
3360

skipif mysql # not compatible
query I rowsort label-4003
SELECT MAX ( ALL 40 ) * 84 AS col1 FROM tab1
----
3360

query I rowsort
SELECT DISTINCT - 41 * - col2 + + 65 * 15 AS col0 FROM tab0
----
1385
2902
5034

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + COUNT( * ) - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4005
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT ALL col0 * - 78 AS col2 FROM tab1
----
-3978
-6630
-7098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 87 - col1 * - 34 col1 FROM tab1
----
-4318
-4963
-7876

query I rowsort
SELECT 68 + - col2 * - 22 AS col1 FROM tab0 WHERE NOT + 24 + col2 * - 44 NOT BETWEEN + 2 * col0 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT + COUNT( * ) * 35 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + COUNT ( * ) * 35 FROM tab0
----
105

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN 40 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT col1 FROM tab1 WHERE ( NULL ) >= - ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4011
SELECT col1 FROM tab1 WHERE ( NULL ) >= - ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col0 - col0 * ( - 71 * col1 ) FROM tab2 WHERE NOT + col0 <> - 35 * ( + col0 * ( col1 ) )
----

query I rowsort
SELECT ( col2 ) - 76 AS col0 FROM tab1 AS cor0
----
-17
-8
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT 94 - + ( - COUNT( * ) ) AS col2 FROM tab1 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4014
SELECT 94 - + ( - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4016
SELECT SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - 11 * + 73 FROM tab1 AS cor0
----
-803
-803
-803

query I rowsort
SELECT DISTINCT col0 * + col0 AS col1 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
2601
7225
8281

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col1 ) + + 40 NOT IN ( col0 )
----

query I rowsort
SELECT + + 81 * + 9 AS col1 FROM tab0 AS cor0
----
729
729
729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT col2 FROM tab0 cor0 WHERE NOT - 60 NOT IN ( - 54 + col0 * - CAST( + 69 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4024
SELECT col2 FROM tab0 cor0 WHERE NOT - 60 NOT IN ( - 54 + col0 * - CAST ( + 69 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 60 / - col1 ) NOT BETWEEN col1 + 32 / 70 AND ( - col2 ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL + MAX( + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + MAX ( + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4027
SELECT DISTINCT - CAST( 40 AS SIGNED ) AS col2 FROM tab0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT - CAST ( 40 AS INTEGER ) AS col2 FROM tab0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4028
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT 95 * col2 DIV 97 FROM tab0
----
46
9
96

skipif mysql # not compatible
query I rowsort label-4029
SELECT 95 * col2 / 97 FROM tab0
----
46
9
96

query I rowsort
SELECT DISTINCT + col2 + + col2 + - col1 * ( + col0 ) AS col1 FROM tab0
----
-1121
-1807
101

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT + ( + 24 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT + ( + 24 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT 44 * - COUNT( * ) col1 FROM tab1
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4033
SELECT 44 * - COUNT ( * ) col1 FROM tab1
----
-132

query I rowsort
SELECT - + col2 * + - col2 + 19 FROM tab2 AS cor0
----
1619
3383
548

query I rowsort
SELECT DISTINCT 47 * col2 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT DISTINCT - 23 FROM tab1 cor0 WHERE NOT + 56 IS NULL
----
-23

query I rowsort
SELECT - 60 * + - col2 * - 16 FROM tab1 AS cor0
----
-56640
-65280
-92160

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab1 cor0 WHERE ( NULL ) BETWEEN col1 AND ( col2 * 3 - col2 ) AND NOT + col2 * + col0 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL + SUM( - - col0 ) * + COUNT( * ) FROM tab2 cor0
----
555

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + SUM ( - - col0 ) * + COUNT ( * ) FROM tab2 cor0
----
555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4040
SELECT + 81 DIV COUNT( * ) FROM tab2 WHERE - - CAST( - col2 AS SIGNED ) NOT IN ( col0 )
----
27

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 81 / COUNT ( * ) FROM tab2 WHERE - - CAST ( - col2 AS INTEGER ) NOT IN ( col0 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + COUNT( * ) + - 30 AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4041
SELECT + COUNT ( * ) + - 30 AS col0 FROM tab2
----
-27

query I rowsort
SELECT + 22 + - 98 FROM tab2
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL + SUM( ( - col1 ) ) - + COUNT( * ) col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND col2 * - ( 18 * + col1 ) + + 83 * col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4043
SELECT ALL + SUM ( ( - col1 ) ) - + COUNT ( * ) col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND col2 * - ( 18 * + col1 ) + + 83 * col0
----
NULL

query I rowsort
SELECT DISTINCT + 67 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL - 27 - COUNT( * ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - 27 - COUNT ( * ) FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT 67 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4046
SELECT 67 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-201

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + col0 BETWEEN ( + col1 ) AND col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT 72 - + COUNT( * ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT 72 - + COUNT ( * ) FROM tab1 AS cor0
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) > NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab0 AS cor0 WHERE NOT - ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 58 NOT BETWEEN NULL AND + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( 47 / + col2 + col2 / col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - COUNT( * ) + + 46 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + + 46 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col1 AS col1, + 45 + - col0 FROM tab2 AS cor0
----
51
-1
67
-30
77
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT DISTINCT - col0 DIV + 77 * - - col1 DIV + col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - col0 / + 77 * - - col1 / + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 92 + + + 5 FROM tab1 AS cor0
----
97

query I rowsort
SELECT ALL col0 + - col0 / - 48 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT ALL + ( - + 9 ) FROM tab2
----
-9
-9
-9

query I rowsort
SELECT - ( + col0 ) * col2 - - col0 * col1 AS col2 FROM tab0
----
-9506
510
957

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - COUNT( * ) * - - 38 - - 17 * - SUM( DISTINCT + col1 ) FROM tab2
----
-3429

skipif mysql # not compatible
query I rowsort label-4060
SELECT - COUNT ( * ) * - - 38 - - 17 * - SUM ( DISTINCT + col1 ) FROM tab2
----
-3429

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT - ( + + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL + MIN( + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + MIN ( + col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - COUNT( * ) + + MAX( 59 ) AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-4063
SELECT - COUNT ( * ) + + MAX ( 59 ) AS col2 FROM tab0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT 74 + + COUNT( * ) + + - 18 AS col0 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT 74 + + COUNT ( * ) + + - 18 AS col0 FROM tab2
----
59

query I rowsort
SELECT + col1 + - col2 + + + 46 AS col2 FROM tab1
----
-36
-8
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4066
SELECT ALL 92 + - + 6 DIV 64 DIV - + col1 col2 FROM tab1
----
92
92
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4066
SELECT ALL 92 + - + 6 / 64 / - + col1 col2 FROM tab1
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - col1 + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT + MIN( + + ( - col1 ) ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-4069
SELECT + MIN ( + + ( - col1 ) ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * + ( ( + col2 ) ) * - col0 - - col2 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT + - COUNT( * ) + + - 43 AS col1 FROM tab1 WHERE NOT NULL <= - + 83
----
-43

skipif mysql # not compatible
query I rowsort label-4072
SELECT + - COUNT ( * ) + + - 43 AS col1 FROM tab1 WHERE NOT NULL <= - + 83
----
-43

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4074
SELECT - CAST( NULL AS DECIMAL ) AS col2, col1 * col0 + col0 AS col2 FROM tab0 AS cor0
----
NULL
1230
NULL
1914
NULL
194

skipif mysql # not compatible
query II rowsort label-4074
SELECT - CAST ( NULL AS REAL ) AS col2, col1 * col0 + col0 AS col2 FROM tab0 AS cor0
----
NULL
1230
NULL
1914
NULL
194

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 + + col2 + + - 57 * col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL - SUM( - - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - SUM ( - - col1 ) FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT MIN( + + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT MIN ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT + + 46 AS col1 FROM tab1 AS cor0
----
46
46
46

query II rowsort
SELECT ALL + 90, - col2 * + 22 AS col2 FROM tab0
----
90
-1034
90
-2178
90
-220

query I rowsort
SELECT ALL + col2 + - ( - col1 ) AS col1 FROM tab0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 + 68 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT DISTINCT MAX( ALL - 56 ) + COUNT( * ) AS col0 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT MAX ( ALL - 56 ) + COUNT ( * ) AS col0 FROM tab2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT COUNT( * ) * COUNT( * ) + - SUM( DISTINCT - col0 ) FROM tab2
----
194

skipif mysql # not compatible
query I rowsort label-4084
SELECT COUNT ( * ) * COUNT ( * ) + - SUM ( DISTINCT - col0 ) FROM tab2
----
194

query I rowsort
SELECT col2 + + + 54 * + col1 * - 42 FROM tab1
----
-106528
-11281
-31656

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT + COUNT( * ) + + MIN( - 60 ) col0 FROM tab2
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4086
SELECT DISTINCT + COUNT ( * ) + + MIN ( - 60 ) col0 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT COUNT( * ) + - 3 AS col2 FROM tab0, tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4087
SELECT COUNT ( * ) + - 3 AS col2 FROM tab0, tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( 19 / col1 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT MAX( ALL + ( - - col0 ) ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT MAX ( ALL + ( - - col0 ) ) AS col2 FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) >= NULL OR NOT - 29 NOT IN ( col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL + ( + SUM( DISTINCT 97 ) ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + ( + SUM ( DISTINCT 97 ) ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + col1 + - + 16 * + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + col1 + - + 16 * + col1 IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab2 cor0 WHERE ( col2 ) NOT BETWEEN col1 * + col0 AND NULL
----
46
64
75

query I rowsort
SELECT ALL - 20 AS col2 FROM tab2 AS cor0
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL + col2 + + + col0 * CAST( col2 * 45 AS SIGNED ) FROM tab0 AS cor0 WHERE ( + 55 / col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + col2 + + + col0 * CAST ( col2 * 45 AS INTEGER ) FROM tab0 AS cor0 WHERE ( + 55 / col1 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( ( 35 * col2 ) <= col0 ) )
----

query I rowsort
SELECT + - col0 + - col2 + col1 * 84 FROM tab1 AS cor0
----
1029
276
3789

query I rowsort
SELECT col0 / 73 AS col2 FROM tab2 AS cor0 WHERE col2 IN ( - col2 * col0 - - col0 * 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT COUNT( * ) * SUM( DISTINCT - col0 ) + COUNT( * ) * - - 9 + COUNT( * ) AS col0 FROM tab1 cor0
----
-651

skipif mysql # not compatible
query I rowsort label-4100
SELECT COUNT ( * ) * SUM ( DISTINCT - col0 ) + COUNT ( * ) * - - 9 + COUNT ( * ) AS col0 FROM tab1 cor0
----
-651

query II rowsort
SELECT - col0 + col0, + 69 + + col1 AS col1 FROM tab2 AS cor0
----
0
120
0
136
0
146

query I rowsort
SELECT DISTINCT + col2 - - - col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL + + 58 AS col2 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4104
SELECT DISTINCT CAST( NULL AS SIGNED ), + 28 col1 FROM tab0
----
NULL
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4104
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 28 col1 FROM tab0
----
NULL
28

query II rowsort
SELECT ALL 38 AS col2, - col1 FROM tab2
----
38
-51
38
-67
38
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT 96 * - + COUNT( * ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-4106
SELECT 96 * - + COUNT ( * ) FROM tab2
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL + MIN( DISTINCT col1 ) FROM tab0 WHERE NULL NOT IN ( + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + MIN ( DISTINCT col1 ) FROM tab0 WHERE NULL NOT IN ( + 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL 36 * - SUM( + + col0 ) FROM tab0 WHERE NOT NULL <> col2 - + 90 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL 36 * - SUM ( + + col0 ) FROM tab0 WHERE NOT NULL <> col2 - + 90 * + col2
----
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - col2 <> - + col2 * + 42 + - col1
----

query I rowsort
SELECT + col0 * + col0 * + + col2 - col0 FROM tab1 WHERE NOT - col1 NOT BETWEEN + col1 AND 40
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4113
SELECT - CAST( NULL AS SIGNED ) AS col1, 15 FROM tab0 AS cor0 WHERE NOT + 20 IS NULL
----
NULL
15
NULL
15
NULL
15

skipif mysql # not compatible
query II rowsort label-4113
SELECT - CAST ( NULL AS INTEGER ) AS col1, 15 FROM tab0 AS cor0 WHERE NOT + 20 IS NULL
----
NULL
15
NULL
15
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ( - - ( 48 ) ) * + + COUNT( * ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-4114
SELECT ( - - ( 48 ) ) * + + COUNT ( * ) FROM tab1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT ALL CAST( NULL AS SIGNED ) * - 77 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL CAST ( NULL AS INTEGER ) * - 77 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4116
SELECT * FROM tab1 WHERE NOT NULL > ( CAST( - col1 AS DECIMAL ) / - 60 )
----

skipif mysql # not compatible
query III rowsort label-4116
SELECT * FROM tab1 WHERE NOT NULL > ( CAST ( - col1 AS REAL ) / - 60 )
----

query I rowsort
SELECT DISTINCT + col0 * + + 16 * 50 AS col0 FROM tab0
----
12000
69600
77600

onlyif mysql # DIV for integer division: 
query II rowsort label-4118
SELECT DISTINCT + col2 * + + col0 + + 94 DIV col0, - col2 * - col1 AS col2 FROM tab0 AS cor0
----
711
3807
871
210
9603
99

skipif mysql # not compatible
query II rowsort label-4118
SELECT DISTINCT + col2 * + + col0 + + 94 / col0, - col2 * - col1 AS col2 FROM tab0 AS cor0
----
711
3807
871
210
9603
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT - + 19 - + col2 + + 56 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST( - - col1 AS SIGNED ) ) * - col0 * - 59 IS NULL
----
-22
-31
-59

skipif mysql # not compatible
query I rowsort label-4119
SELECT - + 19 - + col2 + + 56 AS col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( - - col1 AS INTEGER ) ) * - col0 * - 59 IS NULL
----
-22
-31
-59

query I rowsort
SELECT + 62 * + - ( + col1 ) FROM tab2 AS cor0
----
-3162
-4154
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT - + ( - MAX( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - + ( - MAX ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 12 + col1 BETWEEN ( + col2 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT - + 62 DIV - col1 + col1 FROM tab2 AS cor0
----
52
67
77

skipif mysql # not compatible
query I rowsort label-4123
SELECT - + 62 / - col1 + col1 FROM tab2 AS cor0
----
52
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + + - col0 = col0
----

query II rowsort
SELECT DISTINCT 75 * - - col1 + + 59 AS col2, col1 * col2 FROM tab0
----
134
99
1634
210
6134
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ( - MIN( DISTINCT - + ( - col1 ) ) ) col1 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4126
SELECT ( - MIN ( DISTINCT - + ( - col1 ) ) ) col1 FROM tab1
----
-5

query I rowsort
SELECT ALL + col0 * col1 * - ( - 82 ) + 24 FROM tab2
----
192396
404120
412074

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4128
SELECT DISTINCT * FROM tab2 WHERE + col2 * - - col1 + 27 + - col1 - 98 / + CAST( - col0 AS DECIMAL ) * - col2 + col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-4128
SELECT DISTINCT * FROM tab2 WHERE + col2 * - - col1 + 27 + - col1 - 98 / + CAST ( - col0 AS REAL ) * - col2 + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT 89 + + + 87 * - 53 + ( - MIN( + 90 ) ) AS col1 FROM tab1
----
-4612

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT 89 + + + 87 * - 53 + ( - MIN ( + 90 ) ) AS col1 FROM tab1
----
-4612

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL MIN( DISTINCT - + col0 ) + + + MAX( + ( 75 ) ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL MIN ( DISTINCT - + col0 ) + + + MAX ( + ( 75 ) ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT - 15 + - - ( + 57 ) AS col0 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT 13 DIV - COUNT( * ) + + + 8 + - 82 AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4132
SELECT 13 / - COUNT ( * ) + + + 8 + - 82 AS col2 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - ( + + col0 ) * - col2 * - - 62 FROM tab0
----
43710
53940
595386

query I rowsort
SELECT DISTINCT col2 + + col0 + - + col1 FROM tab0
----
-19
195
76

query I rowsort
SELECT ALL 52 + + 91 FROM tab2 AS cor0
----
143
143
143

query I rowsort
SELECT + ( - 25 ) FROM tab2 AS cor0
----
-25
-25
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 + + col1 / + col1 + - col2 * - col2 / - 35 * - col1 + - col1 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT - + 27 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT col2 * 59 FROM tab1
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT COUNT( + col1 ) + + 12 + - + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 * + col2 * col2 NOT IN ( - + col0 )
----
12

skipif mysql # not compatible
query I rowsort label-4141
SELECT COUNT ( + col1 ) + + 12 + - + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 * + col2 * col2 NOT IN ( - + col0 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL 81 * MAX( - - 89 ) FROM tab0
----
7209

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL 81 * MAX ( - - 89 ) FROM tab0
----
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * 23 < col0
----
3

skipif mysql # not compatible
query I rowsort label-4143
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * 23 < col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT - MIN( DISTINCT + col1 ), - 61 AS col0 FROM tab0 cor0
----
-1
-61

skipif mysql # not compatible
query II rowsort label-4144
SELECT - MIN ( DISTINCT + col1 ), - 61 AS col0 FROM tab0 cor0
----
-1
-61

query I rowsort
SELECT ALL - 42 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT - COUNT( ( col1 ) ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT - COUNT ( ( col1 ) ) FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT + MAX( ALL - 4 ) AS col2 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + MAX ( ALL - 4 ) AS col2 FROM tab0 cor0
----
-4

query II rowsort
SELECT + 48 AS col0, 43 FROM tab1 cor0
----
48
43
48
43
48
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4149
SELECT DISTINCT - col2 AS col1, + ( - - col1 ) FROM tab1 AS cor0 WHERE NOT col0 * + CAST( NULL AS SIGNED ) BETWEEN + 30 AND + - 49
----

skipif mysql # not compatible
query II rowsort label-4149
SELECT DISTINCT - col2 AS col1, + ( - - col1 ) FROM tab1 AS cor0 WHERE NOT col0 * + CAST ( NULL AS INTEGER ) BETWEEN + 30 AND + - 49
----

query I rowsort
SELECT ALL - + col2 + - 41 AS col0 FROM tab0 AS cor0
----
-140
-51
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT - CAST( 41 AS SIGNED ) + 94 AS col0 FROM tab0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-4151
SELECT - CAST ( 41 AS INTEGER ) + 94 AS col0 FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL - 5 * - MAX( - col0 ) col2 FROM tab2
----
-230

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4152
SELECT ALL - 5 * - MAX ( - col0 ) col2 FROM tab2
----
-230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * + col2 col1 FROM tab2
----
2277
3960
5742

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4155
SELECT * FROM tab2 WHERE - + CAST( + - 91 AS SIGNED ) + + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4155
SELECT * FROM tab2 WHERE - + CAST ( + - 91 AS INTEGER ) + + + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4156
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 8 IN ( 13 + + 84, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4156
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 8 IN ( 13 + + 84, CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 76 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT AVG ( + ( + + col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * + 17 * + + 97 + col1 * - - CAST( + col2 AS SIGNED ) - - col1 + ( + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT AVG ( + ( + + col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * + 17 * + + 97 + col1 * - - CAST ( + col2 AS INTEGER ) - - col1 + ( + col0 ) )
----
NULL

query I rowsort
SELECT DISTINCT + + col2 - col2 AS col2 FROM tab0 cor0 WHERE ( NULL ) > + col1 - - col2 + + + 55 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4160
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT + col2 + - + CAST( NULL AS SIGNED ) + + 25 / - col2 * - + col0 * 94 * - col1 + + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT + col2 + - + CAST ( NULL AS INTEGER ) + + 25 / - col2 * - + col0 * 94 * - col1 + + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 13 + - 4 + - ( - 22 ) AS col0 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT col1 - - + col2 + - col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + - ( + + 83 ) AS col0 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT CAST( + + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4165
SELECT CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT - - MIN( + col1 ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4166
SELECT DISTINCT - - MIN ( + col1 ) col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT + col2 AS col2, 20 AS col0 FROM tab2 AS cor0
----
23
20
40
20
58
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - - MIN( ALL - + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4168
SELECT - - MIN ( ALL - + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) <> + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT SUM( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4170
SELECT SUM ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4171
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-4171
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + 38 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT DISTINCT SUM( + col0 ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4173
SELECT DISTINCT SUM ( + col0 ) col1 FROM tab0
----
199

query I rowsort
SELECT 73 * + 31 - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 28 * - 54 + - + col2 NOT IN ( + ( 96 ) + - 72, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT CAST( 92 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-4176
SELECT CAST ( 92 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL >= ( - 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
-9

query II rowsort
SELECT DISTINCT - col2 + - - col1 AS col1, - col1 + - col0 FROM tab1
----
-21
-138
-54
-90
-82
-65

query I rowsort
SELECT + ( + 66 ) + - + col1 FROM tab1 AS cor0
----
19
52
61

query I rowsort
SELECT - - col2 + 21 * 14 FROM tab0 AS cor0
----
304
341
393

query I rowsort
SELECT ALL 59 - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT col1 * - - 70 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT col1 * - - 70 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT ALL CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * col0 * - 64 AS col1 FROM tab1 AS cor0
----
27200
273728
45696

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 30 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT 74 DIV + col2 + - 27 col1 FROM tab2 AS cor0
----
-24
-26
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4187
SELECT 74 / + col2 + - 27 col1 FROM tab2 AS cor0
----
-24
-26
-26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE - col2 + + 57 BETWEEN + col1 * 42 AND + col0
----

query I rowsort
SELECT ALL + 5 + 62 AS col1 FROM tab0
----
67
67
67

query II rowsort
SELECT + col1, col2 * - + 10 FROM tab0 WHERE NULL IS NULL
----
1
-990
21
-100
81
-470

query I rowsort
SELECT + + 74 FROM tab0 WHERE ( - 95 IS NOT NULL )
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 77 NOT BETWEEN - - ( 6 ) AND - ( - col1 )
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE - - col1 * 51 + + 27 IS NULL
----

query I rowsort
SELECT DISTINCT 77 * + - col1 FROM tab2 cor0
----
-3927
-5159
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT col2 + + col0 * + + CAST( - 38 AS SIGNED ) FROM tab2 AS cor0
----
-1725
-2392
-2792

skipif mysql # not compatible
query I rowsort label-4196
SELECT col2 + + col0 * + + CAST ( - 38 AS INTEGER ) FROM tab2 AS cor0
----
-1725
-2392
-2792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4197
SELECT ALL - - col0 * ( + - ( - + CAST( NULL AS SIGNED ) ) ) * col1 - + 67 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - - col0 * ( + - ( - + CAST ( NULL AS INTEGER ) ) ) * col1 - + 67 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 43 FROM tab0 cor0 WHERE NOT NULL <= 86
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 / - + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 53, - col1 AS col0 FROM tab1
----
-53
-14
-53
-47
-53
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * - col2 * + col2 col2 FROM tab2
----
118400
248936
39146

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - 1 * + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 1 * + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + 5 * - col0 col1 FROM tab0
----
-1125
-37845
-47045

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL < - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT - MAX( 16 ) AS col0 FROM tab1 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - MAX ( 16 ) AS col0 FROM tab1 cor0
----
-16

query II rowsort
SELECT col1 AS col2, col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + + SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4208
SELECT + + SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT + COUNT( DISTINCT + col2 ) AS col0, - 5 AS col2 FROM tab0
----
3
-5

skipif mysql # not compatible
query II rowsort label-4209
SELECT + COUNT ( DISTINCT + col2 ) AS col0, - 5 AS col2 FROM tab0
----
3
-5

query I rowsort
SELECT DISTINCT - + ( + 42 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-42

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE + col0 > col1
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-4212
SELECT DISTINCT - col2 col0, + col2 DIV - col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-10
-1
-47
-1
-99
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4212
SELECT DISTINCT - col2 col0, + col2 / - col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-10
-1
-47
-1
-99
-1

query I rowsort
SELECT + col0 + - ( - col0 ) + + + col2 * + - 54 FROM tab1 AS cor0
----
-3016
-3490
-5082

query I rowsort
SELECT DISTINCT - ( + 10 ) * - col2 FROM tab1 cor0
----
590
680
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + COUNT( * ) + + 58 col2 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4215
SELECT + COUNT ( * ) + + 58 col2 FROM tab0 AS cor0
----
61

query I rowsort
SELECT - col1 + + 59 FROM tab2 AS cor0
----
-18
-8
8

query I rowsort
SELECT - + 92 + - col2 + - col2 * - - col2 FROM tab2 AS cor0
----
-1732
-3514
-644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT 20 IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT 20 IN ( col1 )
----
NULL

query I rowsort
SELECT 99 + col2 FROM tab1 AS cor0
----
158
167
195

query I rowsort
SELECT ALL 60 * - 58 FROM tab0 AS cor0
----
-3480
-3480
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL + MAX( DISTINCT - col2 ) * + COUNT( * ) + + - 64 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + MAX ( DISTINCT - col2 ) * + COUNT ( * ) + + - 64 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-136

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 91 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT 31 + - - col2 + 65 * col1 DIV - 66 FROM tab0
----
-1
130
21

skipif mysql # not compatible
query I rowsort label-4223
SELECT 31 + - - col2 + 65 * col1 / - 66 FROM tab0
----
-1
130
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL SUM( - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL SUM ( - col1 ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT col1 + - + col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col1 + + - 13 - - col0 - - col0 AS col1 FROM tab1
----
103
162
216

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( + ( - col1 ) ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 >= 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT ALL + col1 - + - col0 DIV + - col0 + 3 - col1 * col2 * - col2 FROM tab2 AS cor0
----
123279
225457
27032

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + col1 - + - col0 / + - col0 + 3 - col1 * col2 * - col2 FROM tab2 AS cor0
----
123279
225457
27032

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT - 91 DIV - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT - 91 / - col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + - 81 * - col0 AS col0 FROM tab1 AS cor0
----
4131
6885
7371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4232
SELECT ALL 71 DIV COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL 71 / COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT - COUNT( * ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4233
SELECT - COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, 86 * 92 * - + col2 FROM tab2 AS cor0
----
46
-181976
64
-316480
75
-458896

query II rowsort
SELECT - 89, + ( + col0 ) FROM tab0 AS cor0
----
-89
15
-89
87
-89
97

query II rowsort
SELECT - col2, + 37 AS col2 FROM tab2 AS cor0
----
-23
37
-40
37
-58
37

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * - + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 * + - col0 * - - col1 col0 FROM tab2
----
-114954
-241472
-246225

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT col0 * - col2 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - + ( 67 ) * + COUNT( * ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4240
SELECT - + ( 67 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT + MIN( DISTINCT + - ( - col1 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4241
SELECT + MIN ( DISTINCT + - ( - col1 ) ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4242
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL COUNT( * ) + MAX( - + col0 ) col1 FROM tab2
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4245
SELECT ALL COUNT ( * ) + MAX ( - + col0 ) col1 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT - 18 + - - col0 AS col0 FROM tab1 AS cor0
----
33
67
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4247
SELECT col0 col1, CAST( col1 AS SIGNED ) FROM tab2 cor0
----
46
51
64
77
75
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4247
SELECT col0 col1, CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL 93 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - 87 * + COUNT( DISTINCT col0 ) * - + MIN( - 17 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4437

skipif mysql # not compatible
query I rowsort label-4249
SELECT - 87 * + COUNT ( DISTINCT col0 ) * - + MIN ( - 17 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4437

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 * col0 >= - + col1
----

query I rowsort
SELECT DISTINCT col1 * + + 81 + - col1 + + col0 AS col0 FROM tab2
----
4126
5435
6224

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT COUNT( * ) - COUNT( * ) - COUNT( ALL + col1 ) + + - 19 + + COUNT( DISTINCT + col1 ) AS col2 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-4252
SELECT COUNT ( * ) - COUNT ( * ) - COUNT ( ALL + col1 ) + + - 19 + + COUNT ( DISTINCT + col1 ) AS col2 FROM tab1
----
-19

query I rowsort
SELECT + col0 - + 88 AS col2 FROM tab0
----
-1
-73
9

query II rowsort
SELECT DISTINCT col0, 92 AS col1 FROM tab2
----
46
92
64
92
75
92

query I rowsort
SELECT 8 + col0 + + + col2 - + 10 * - 94 FROM tab2
----
1017
1052
1081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4256
SELECT ALL * FROM tab1 WHERE NOT - CAST( col0 AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4256
SELECT ALL * FROM tab1 WHERE NOT - CAST ( col0 AS INTEGER ) * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 74 * 2 + + col2 FROM tab0
----
158
195
247

query I rowsort
SELECT ALL col2 - + + 41 + col2 FROM tab2
----
39
5
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 < - - 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 95 * 30 FROM tab0
----
2850
2850
2850

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4262
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-4262
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - 96 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT + 57 * + - 16 + + 17 FROM tab1 AS cor0
----
-895
-895
-895

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT DISTINCT + + ( + + 18 ) - + 67, + MAX( - col0 ) AS col2 FROM tab2 AS cor0 WHERE + 47 * - 0 BETWEEN + + col2 + ( + 84 ) AND + col1 + + col2 + + - col2
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-4265
SELECT DISTINCT + + ( + + 18 ) - + 67, + MAX ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE + 47 * - 0 BETWEEN + + col2 + ( + 84 ) AND + col1 + + col2 + + - col2
----
-49
NULL

query I rowsort
SELECT col2 * 92 FROM tab0 AS cor0 WHERE NOT - col2 * - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 30 * - col2 FROM tab0 cor0
----
-1410
-2970
-300

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT col1 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT col1 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT COUNT( * ) col2, COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4270
SELECT COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT - ( - 11 ) FROM tab1
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT DISTINCT col0 DIV + + 4 FROM tab0
----
21
24
3

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT col0 / + + 4 FROM tab0
----
21
24
3

query I rowsort
SELECT DISTINCT col1 * + - 62 FROM tab1
----
-2914
-310
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT - MIN( - + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - MIN ( - + col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4275
SELECT col2 col1, col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4275
SELECT col2 col1, col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - 68 + + col1 + + + col0 + col1 * - - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-1705
-2593
-5206

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE col0 - col2 + - ( - 93 ) * - 45 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE col0 - col2 + - ( - 93 ) * - 45 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT + SUM( - + 62 ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4278
SELECT + SUM ( - + 62 ) FROM tab0 AS cor0
----
-186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 >= col0
----
51
14
96

query I rowsort
SELECT DISTINCT col2 + - 9 - + + col0 FROM tab0
----
-7
-86
23

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + col0 AND col0
----

query I rowsort
SELECT ALL + + col0 / + - col2 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4284
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT 34 + - COUNT( - col0 ) AS col1 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-4285
SELECT 34 + - COUNT ( - col0 ) AS col1 FROM tab1
----
31

query I rowsort
SELECT ALL col2 * col1 + + col0 FROM tab0
----
196
297
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78 + col2 col1, col0 AS col1 FROM tab2
----
-20
75
-38
64
-55
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + COUNT( * ) + - MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4288
SELECT + COUNT ( * ) + - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT + col1 + + 13 - - - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24
-31
-67

query I rowsort
SELECT col0 + - - col2 AS col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT - col1 * + 72 - + ( - + col1 ) FROM tab0 AS cor0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT + col2 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT + col2 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * + ( 74 ) + col2 AS col1, - 11 FROM tab1 AS cor0
----
-311
-11
-3410
-11
-940
-11

query I rowsort
SELECT ALL - 25 AS col2 FROM tab2 AS cor0
----
-25
-25
-25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 91 * - col0 / + + 7 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT DISTINCT MAX( ALL col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT MAX ( ALL col0 ) AS col1 FROM tab1
----
91

query II rowsort
SELECT DISTINCT col2 * - col1 + col0, 43 + 83 AS col0 FROM tab2
----
-1127
126
-3016
126
-3811
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NULL = NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL >= + ( - 46 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT BETWEEN 24 AND + 52 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - 16 ) FROM tab0 cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - col2 * - - 49 FROM tab2
----
-1127
-1960
-2842

query I rowsort
SELECT DISTINCT 34 FROM tab1 WHERE col0 / - col1 * 15 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT SUM( + 35 ) AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-4304
SELECT SUM ( + 35 ) AS col0 FROM tab0
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + + - col1 + col2 * + col2 col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT DISTINCT + - CAST( + ( + - COUNT( * ) ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT + - CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4307
SELECT - col2 col0, CAST( - col2 AS SIGNED ) * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-10
870
-47
705
-99
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4307
SELECT - col2 col0, CAST ( - col2 AS INTEGER ) * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-10
870
-47
705
-99
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT - 36 DIV - + ( col2 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT - 36 / - + ( col2 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT + + SUM( + 13 ) AS col2, - 81 FROM tab0 AS cor0
----
39
-81

skipif mysql # not compatible
query II rowsort label-4309
SELECT + + SUM ( + 13 ) AS col2, - 81 FROM tab0 AS cor0
----
39
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT - CAST( - + COUNT( - col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4310
SELECT - CAST ( - + COUNT ( - col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 * + col1 * - - col0 - + 69 * + - 55 AS col2 FROM tab0 AS cor0
----
-14475
-53310
-5808

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4312
SELECT * FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) = - ( 90 )
----

skipif mysql # not compatible
query III rowsort label-4312
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = - ( 90 )
----

query I rowsort
SELECT DISTINCT + col0 * + col1 + 26 AS col2 FROM tab2 WHERE - col1 NOT BETWEEN - - 19 * + col1 AND NULL
----
2372
4954
5051

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL 59 + 85 - - 29 + - COUNT( * ) AS col0 FROM tab1
----
170

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL 59 + 85 - - 29 + - COUNT ( * ) AS col0 FROM tab1
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4315
SELECT DISTINCT COUNT( * ) DIV - 16 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT COUNT ( * ) / - 16 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 51 * - + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1122

query III rowsort
SELECT * FROM tab2 WHERE + col2 * col1 + + ( - + 76 ) + - col2 NOT BETWEEN - - 90 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 82 col2 FROM tab2
----
15
31
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4319
SELECT - CAST( - SUM( - col2 ) AS SIGNED ) AS col0, - COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
-156
-6

skipif mysql # not compatible
query II rowsort label-4319
SELECT - CAST ( - SUM ( - col2 ) AS INTEGER ) AS col0, - COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
-156
-6

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) >= + ( col1 ) + col1
----

query II rowsort
SELECT + + col2 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query II rowsort
SELECT DISTINCT - - col0, col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT DISTINCT + + 88 * CAST( + ( + - ( - col1 ) ) AS SIGNED ) - + + col0 AS col2 FROM tab2 AS cor0
----
4442
5821
6712

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + + 88 * CAST ( + ( + - ( - col1 ) ) AS INTEGER ) - + + col0 AS col2 FROM tab2 AS cor0
----
4442
5821
6712

query I rowsort
SELECT DISTINCT + - col1 + + 45 + col1 FROM tab2 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + - col0 - + + col1 * + col2 + - col2 IS NULL AND NOT 91 NOT BETWEEN NULL AND - + ( - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT MIN( ALL 44 ) * + + COUNT( * ) col0 FROM tab0
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4326
SELECT MIN ( ALL 44 ) * + + COUNT ( * ) col0 FROM tab0
----
132

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col1 * - + col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL - COUNT( * ) * - 45 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - COUNT ( * ) * - 45 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL - MAX( DISTINCT + 11 ) AS col2 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL - MAX ( DISTINCT + 11 ) AS col2 FROM tab2 AS cor0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4331
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col0 >= + col2
----
14

query II rowsort
SELECT DISTINCT + 9 AS col1, col2 FROM tab1 AS cor0
----
9
59
9
68
9
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT MAX( ALL - col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4334
SELECT MAX ( ALL - col2 ) AS col0 FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4335
SELECT CAST( NULL AS DECIMAL ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4335
SELECT CAST ( NULL AS REAL ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL + 88 * + col1 AS col1 FROM tab1 AS cor0
----
1232
4136
440

query I rowsort
SELECT DISTINCT col0 * + col2 + - 30 AS col2 FROM tab1
----
4866
4985
6158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT ALL + col0 + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL + col0 + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL MIN( - 82 ) AS col2 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL MIN ( - 82 ) AS col2 FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - 30 * + COUNT( * ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4340
SELECT - 30 * + COUNT ( * ) FROM tab0 AS cor0
----
-90

query I rowsort
SELECT - 21 - - col0 AS col1 FROM tab2
----
25
43
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 15
----

query I rowsort
SELECT - col0 + - + col1 + - col2 * - - col0 FROM tab2 cor0
----
-1155
-2701
-4492

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE 62 <> NULL
----

query I rowsort
SELECT DISTINCT col0 + + 62 FROM tab1 AS cor0
----
113
147
153

query I rowsort
SELECT DISTINCT + col2 - + 56 FROM tab0 AS cor0
----
-46
-9
43

query I rowsort
SELECT ALL - ( + 66 ) FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT + ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 + + 73 * - - col0 IS NULL
----
1
21
81

query II rowsort
SELECT ALL + 79, col1 * + col0 * + - 90 * - - 86 - + col2 + + - col0 AS col1 FROM tab0
----
79
-14141077
79
-750976
79
-9404162

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT + ( COUNT( + + col1 ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4352
SELECT DISTINCT + ( COUNT ( + + col1 ) ) col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * + col1 col2 FROM tab0
----
1512
5832
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL - CAST( - + 4 AS SIGNED ) AS col1 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - CAST ( - + 4 AS INTEGER ) AS col1 FROM tab0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - 74 * - 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 29 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4357
SELECT * FROM tab1 AS cor0 WHERE NOT 22 BETWEEN CAST( - - col2 AS SIGNED ) AND - ( 11 ) * + + 94 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4357
SELECT * FROM tab1 AS cor0 WHERE NOT 22 BETWEEN CAST ( - - col2 AS INTEGER ) AND - ( 11 ) * + + 94 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT - ( col1 ) * - 92 + - col1 DIV col1 * + 8 col0 FROM tab2 cor0
----
4684
6156
7076

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4358
SELECT - ( col1 ) * - 92 + - col1 / col1 * + 8 col0 FROM tab2 cor0
----
4684
6156
7076

query II rowsort
SELECT DISTINCT + + ( + 7 ), + col1 AS col0 FROM tab1 AS cor0
----
7
14
7
47
7
5

query I rowsort
SELECT + col2 * 64 * + col2 FROM tab2 cor0
----
102400
215296
33856

query I rowsort
SELECT + col0 * - col0 + + - col0 AS col1 FROM tab0 AS cor0
----
-240
-7656
-9506

query I rowsort
SELECT DISTINCT 85 + + 62 + - col0 FROM tab1
----
56
62
96

query I rowsort
SELECT DISTINCT 52 + col2 AS col0 FROM tab0
----
151
62
99

query I rowsort
SELECT ALL 76 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 93 + - 92 - col2 FROM tab0
----
-46
-9
-98

query III rowsort
SELECT * FROM tab2 WHERE + - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL COUNT( * ) * 18 AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL COUNT ( * ) * 18 AS col2 FROM tab1
----
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col2 - + col0 <> + col2 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col2 + 79 - + - 18 <> + col0 * 2 - + 21 - - col0
----

query I rowsort
SELECT ALL + - 96 * - - col2 * + - col2 FROM tab2 AS cor0
----
153600
322944
50784

query I rowsort
SELECT DISTINCT - 99 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + + COUNT( * ) - 51 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-4372
SELECT + + COUNT ( * ) - 51 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-42

query I rowsort
SELECT ALL col1 * - - col2 * 26 - col1 FROM tab2
----
100969
30447
80003

query I rowsort
SELECT + col0 - + + 97 FROM tab1 AS cor0
----
-12
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT 5 * - - 97 - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
488

skipif mysql # not compatible
query I rowsort label-4375
SELECT 5 * - - 97 - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT + SUM( - CAST( - - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4376
SELECT + SUM ( - CAST ( - - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + + col2 * - + ( - col2 ) + + col0 * - + col0 AS col2 FROM tab1 AS cor0
----
-3657
-3744
6615

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - + COUNT( - 33 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4379
SELECT - + COUNT ( - 33 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col1 * + 84 FROM tab0
----
1764
6804
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT col0 DIV - 30 col2 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4381
SELECT col0 / - 30 col2 FROM tab1
----
-1
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT CAST( NULL AS SIGNED ) * - - col1 * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT CAST ( NULL AS INTEGER ) * - - col1 * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + 38 FROM tab2
----
1938
2546
2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 32 ) * col1 col2 FROM tab2
----
-1632
-2144
-2464

query I rowsort
SELECT - col0 * - 63 FROM tab1
----
3213
5355
5733

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + + 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT SUM( ALL - ( - col0 ) ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4387
SELECT SUM ( ALL - ( - col0 ) ) col0 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT 7 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 67 AND col2 * col2 + - col1
----

skipif mysql # not compatible
query I rowsort label-4388
SELECT 7 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 67 AND col2 * col2 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + - col1 col0 FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4390
SELECT + - COUNT( * ) DIV + + 11 + - COUNT( * ) * - 49 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4390
SELECT + - COUNT ( * ) / + + 11 + - COUNT ( * ) * - 49 FROM tab0 AS cor0
----
147

query II rowsort
SELECT - col1 * + col0 AS col1, col2 + + + 26 + + col2 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT + - MIN( ALL + ( + col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + - MIN ( ALL + ( + col2 ) ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT - COUNT( * ) + 69 AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - COUNT ( * ) + 69 AS col1 FROM tab0
----
66

query I rowsort
SELECT 23 * - - 9 + col0 AS col1 FROM tab2
----
253
271
282

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT col2 + + col1 DIV + - col1 AS col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4397
SELECT col2 + + col1 / + - col1 AS col0 FROM tab1
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT - 8 + - COUNT( * ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 8 + - COUNT ( * ) AS col1 FROM tab0
----
-11

query I rowsort
SELECT DISTINCT - AVG ( + 87 ) FROM tab2 WHERE col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT - ( + 93 ) - + 30 FROM tab0 cor0
----
-123
-123
-123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4402
SELECT * FROM tab0 WHERE ( NOT + CAST( ( + col0 ) AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4402
SELECT * FROM tab0 WHERE ( NOT + CAST ( ( + col0 ) AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT - col1 + - 5 + col2 * + 69 * - CAST( + col1 AS SIGNED ) * + 17 + - - col2 - - 52 + + 73 * + + 33 FROM tab0 AS cor0 WHERE NOT + 85 * col0 IS NULL
----
-113573
-243885
-4463189

skipif mysql # not compatible
query I rowsort label-4403
SELECT - col1 + - 5 + col2 * + 69 * - CAST ( + col1 AS INTEGER ) * + 17 + - - col2 - - 52 + + 73 * + + 33 FROM tab0 AS cor0 WHERE NOT + 85 * col0 IS NULL
----
-113573
-243885
-4463189

query I rowsort
SELECT + - col1 + + col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + COUNT( + + 34 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4405
SELECT + COUNT ( + + 34 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 69 AS col0 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( - + col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4409
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 46 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4409
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - COUNT( DISTINCT - - col2 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4410
SELECT - COUNT ( DISTINCT - - col2 ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 10 * - col0 FROM tab0 AS cor0
----
-150
-870
-970

query I rowsort
SELECT ALL ( - 92 ) AS col0 FROM tab0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT MAX( - + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4413
SELECT MAX ( - + col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT DISTINCT SUM( + 4 ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT SUM ( + 4 ) AS col2 FROM tab0
----
12

query II rowsort
SELECT DISTINCT col2 * - - 39 / + 74, 73 AS col0 FROM tab0 WHERE NOT NULL >= 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 69 col2 FROM tab0
----
3243
6831
690

query I rowsort
SELECT ( - - 18 ) * - 32 - col1 AS col1 FROM tab0
----
-577
-597
-657

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - 1 * - - col2
----

query I rowsort
SELECT ALL - col2 * - + col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT ( + + 64 ) FROM tab2 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT ALL + col1 * CAST( + col2 AS SIGNED ) * + col2 + - ( + + col0 ) FROM tab0
----
178914
2013
9704

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL + col1 * CAST ( + col2 AS INTEGER ) * + col2 + - ( + + col0 ) FROM tab0
----
178914
2013
9704

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT - COUNT( * ) + + COUNT( 79 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - COUNT ( * ) + + COUNT ( 79 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col0 + col1 + + + 49, + col1, - col2 + + col2 )
----

query I rowsort
SELECT ALL 28 + 76 FROM tab0 AS cor0
----
104
104
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT DISTINCT - col1 * - CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE ( + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT - col1 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 99 * 24 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 99 * 24 IS NULL
----
3

query I rowsort
SELECT col0 * - + col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + + col1 * + 71 FROM tab2 AS cor0
----
3621
4757
5467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 - + col0 col2 FROM tab0
----
-6
4
76

query II rowsort
SELECT DISTINCT col2 AS col1, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT ALL col2 DIV 20 + - - col1 FROM tab0
----
21
5
83

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL col2 / 20 + - - col1 FROM tab0
----
21
5
83

query I rowsort
SELECT col0 + - 23 FROM tab2
----
23
41
52

query I rowsort
SELECT ( 83 ) + col1 AS col2 FROM tab0
----
104
164
84

query I rowsort
SELECT DISTINCT + col2 + col0 + - + col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col1 / + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * col1 + + 44 FROM tab0
----
143
254
3851

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT 32 * - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-4438
SELECT 32 * - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 - 75 * col1 col1 FROM tab0
----
-1593
-6093
-93

query I rowsort
SELECT DISTINCT + 80 + - 35 AS col0 FROM tab2
----
45

query I rowsort
SELECT - col2 - 45 * + col1 AS col1 FROM tab0
----
-144
-3692
-955

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 / col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 75 - col0 = - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + 59 * col1 + 88 FROM tab0
----
1327
147
4867

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT SUM( DISTINCT - col0 ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4446
SELECT SUM ( DISTINCT - col0 ) col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT + MAX( ALL + 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + MAX ( ALL + 37 ) FROM tab1
----
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 * + 66 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 63 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + MIN( 24 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4452
SELECT + MIN ( 24 ) FROM tab2
----
24

query I rowsort
SELECT ALL - col0 + 67 AS col0 FROM tab1
----
-18
-24
16

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + 66 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT ALL - col2 * + CAST( - 9 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
531
612
864

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL - col2 * + CAST ( - 9 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
531
612
864

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ( - MIN( col2 ) ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4456
SELECT ( - MIN ( col2 ) ) FROM tab0 cor0
----
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + col2 * - 74
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 < + col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT MIN( ALL ( 32 ) ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4459
SELECT MIN ( ALL ( 32 ) ) FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT - COUNT( * ) + + 14 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT - COUNT ( * ) + + 14 FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - COUNT( DISTINCT + 26 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4461
SELECT - COUNT ( DISTINCT + 26 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT COUNT( 53 ) col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4462
SELECT DISTINCT COUNT ( 53 ) col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT + SUM( ALL + 42 ) + - SUM( ALL - col2 ) FROM tab2
----
247

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT + SUM ( ALL + 42 ) + - SUM ( ALL - col2 ) FROM tab2
----
247

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + 38 + col1
----

query I rowsort
SELECT DISTINCT - col0 + + 81 * 10 AS col0 FROM tab0 AS cor0
----
713
723
795

query I rowsort
SELECT ALL + + col1 * + 51 FROM tab2 cor0
----
2601
3417
3927

query I rowsort
SELECT - + col1 * - 66 + + col0 * 22 AS col0 FROM tab0 AS cor0
----
2200
3300
5676

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + MAX( col2 ) + + 43 AS col2 FROM tab0 AS cor0
----
142

skipif mysql # not compatible
query I rowsort label-4468
SELECT + MAX ( col2 ) + + 43 AS col2 FROM tab0 AS cor0
----
142

query I rowsort
SELECT DISTINCT col1 + + 10 FROM tab0 WHERE NOT NULL NOT IN ( col1 * 40 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT col1 * col0 DIV - col2 AS col0 FROM tab0
----
-182
-25
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT col1 * col0 / - col2 AS col0 FROM tab0
----
-182
-25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + SUM( ALL 84 ) * - 52 FROM tab1
----
-13104

skipif mysql # not compatible
query I rowsort label-4471
SELECT + SUM ( ALL 84 ) * - 52 FROM tab1
----
-13104

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - MIN( 37 ) AS col0 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-4472
SELECT - MIN ( 37 ) AS col0 FROM tab1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE ( 87 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4473
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE ( 87 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE + ( col0 ) / col0 + 36 * col2 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4475
SELECT ALL col2 DIV - 14 FROM tab1
----
-4
-4
-6

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL col2 / - 14 FROM tab1
----
-4
-4
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 20 col0 FROM tab0
----
107
117
35

query I rowsort
SELECT DISTINCT col2 - - 40 FROM tab2
----
63
80
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT BETWEEN col1 AND ( col2 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4479
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV 94 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / 94 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + 73 - 25 AS col2 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT + col0 - + 92 * - col1 FROM tab2 AS cor0
----
4738
6239
7148

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT ALL col1 DIV + - 83 + col0 + ( col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
110
2300
247

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL col1 / + - 83 + col0 + ( col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
110
2300
247

query I rowsort
SELECT DISTINCT col2 - - col2 * + col2 FROM tab0 AS cor0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + 82 AND ( 78 - 4 )
----
-3

skipif mysql # not compatible
query I rowsort label-4484
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + 82 AND ( 78 - 4 )
----
-3

query I rowsort
SELECT col2 * 64 AS col1 FROM tab0 AS cor0
----
3008
6336
640

query I rowsort
SELECT - ( + col0 ) * 58 FROM tab0 AS cor0
----
-5046
-5626
-870

query I rowsort
SELECT ALL 40 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 75 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT 98 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT 98 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 37 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT 49 * + - MAX( + col2 ) FROM tab1 AS cor0
----
-4704

skipif mysql # not compatible
query I rowsort label-4491
SELECT 49 * + - MAX ( + col2 ) FROM tab1 AS cor0
----
-4704

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) < NULL
----

query II rowsort
SELECT DISTINCT col0, col1 + - col1 FROM tab0 cor0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - ( + MAX( 31 ) ) AS col1 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - ( + MAX ( 31 ) ) AS col1 FROM tab2 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT MIN( + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4495
SELECT MIN ( + col0 ) FROM tab2 cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, + col1 - - col1 col0 FROM tab0 AS cor0
----
-1
2
-21
42
-81
162

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE col1 * - + 48 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4498
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 75 > + 85 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4498
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 75 > + 85 / CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + - 72 AS col0, + col2 FROM tab1 AS cor0
----
-72
59
-72
68
-72
96

query I rowsort
SELECT ALL 59 * 70 FROM tab2
----
4130
4130
4130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT DISTINCT CAST( + COUNT( ALL ( - - 87 ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT CAST ( + COUNT ( ALL ( - - 87 ) ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 59 + - 98 AS col0 FROM tab2
----
-39

query I rowsort
SELECT + col2 * + + 83 AS col1 FROM tab2 cor0
----
1909
3320
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL - MIN( ALL - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - MIN ( ALL - col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 6 <> + 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 30 * + col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + 23 + + - COUNT( * ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4507
SELECT + 23 + + - COUNT ( * ) FROM tab1 AS cor0
----
20

query I rowsort
SELECT - 26 + + col1 + - 77 * 60 FROM tab0 AS cor0
----
-4565
-4625
-4645

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 38 * - col0 * - ( + col0 ) + 36 IN ( col2 )
----

query I rowsort
SELECT 95 + col1 * col0 AS col1 FROM tab1 cor0
----
4372
520
809

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT DISTINCT + 35 - + col2 + + + 6 AS col2 FROM tab1 AS cor0
----
-18
-27
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + ( - - MAX( ALL + - 66 ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4513
SELECT + ( - - MAX ( ALL + - 66 ) ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + col2 * - - col2 + + col1 FROM tab0 AS cor0
----
121
2290
9802

query I rowsort
SELECT ALL 77 - + + col1 - - - col2 * - 99 AS col2 FROM tab0 AS cor0
----
1046
4649
9877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT DISTINCT + - 88 * CAST( - + col2 AS SIGNED ) FROM tab0 cor0
----
4136
8712
880

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + - 88 * CAST ( - + col2 AS INTEGER ) FROM tab0 cor0
----
4136
8712
880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4517
SELECT DISTINCT CAST( NULL AS SIGNED ), col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4517
SELECT DISTINCT CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT 12 AS col0 FROM tab2, tab2 AS cor0 WHERE NOT + 73 IS NULL
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL - 64 FROM tab2 WHERE - col1 * + col1 + - col2 IS NULL
----

query II rowsort
SELECT DISTINCT ( col1 ) AS col2, 84 FROM tab2
----
51
84
67
84
77
84

query I rowsort
SELECT ALL 12 AS col2 FROM tab0 WHERE ( NOT + col2 IN ( + 50 - - col1 ) )
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT 90 + - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT 90 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 + + col0 AS col0, - col1 FROM tab1
----
-45
-14
23
-47
26
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 5 * - col0 FROM tab0 AS cor0
----
-435
-485
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT DISTINCT + col0 DIV - + 21 + - 4 col1 FROM tab0 AS cor0
----
-4
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4526
SELECT DISTINCT + col0 / - + 21 + - 4 col1 FROM tab0 AS cor0
----
-4
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT ALL 12 DIV 14 + + - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL 12 / 14 + + - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - SUM( - 4 ) col1 FROM tab2
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4528
SELECT - SUM ( - 4 ) col1 FROM tab2
----
12

query I rowsort
SELECT DISTINCT ( - - 90 ) AS col1 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT + ( + 89 ) AS col2, + COUNT( * ) * 93 AS col0 FROM tab1 AS cor0
----
89
279

skipif mysql # not compatible
query II rowsort label-4531
SELECT + ( + 89 ) AS col2, + COUNT ( * ) * 93 AS col0 FROM tab1 AS cor0
----
89
279

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4532
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( col0 AS DECIMAL ) IN ( col0 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-4532
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( col0 AS REAL ) IN ( col0 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT - - col2 DIV - 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4533
SELECT - - col2 / - 93 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4535
SELECT DISTINCT + CAST( NULL AS SIGNED ), - ( + col0 ) DIV - col2 AS col1 FROM tab0
----
NULL
0
NULL
8

skipif mysql # not compatible
query II rowsort label-4535
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - ( + col0 ) / - col2 AS col1 FROM tab0
----
NULL
0
NULL
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT CAST( NULL AS SIGNED ) * + 48 + - - SUM( + col2 ) + + 68 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT CAST ( NULL AS INTEGER ) * + 48 + - - SUM ( + col2 ) + + 68 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL + MIN( - 89 ) + MIN( 59 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + MIN ( - 89 ) + MIN ( 59 ) FROM tab2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT - col1 DIV + + col0 + + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4538
SELECT - col1 / + + col0 + + + col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + COUNT( col1 ) + 62 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4539
SELECT + COUNT ( col1 ) + 62 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT - 30 + + COUNT( * ) AS col0 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - 30 + + COUNT ( * ) AS col0 FROM tab0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, + 77 FROM tab2
----
46
77
64
77
75
77

query I rowsort
SELECT ALL - 62 * col2 AS col2 FROM tab1 AS cor0
----
-3658
-4216
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT SUM( ALL 53 ) AS col0 FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT SUM ( ALL 53 ) AS col0 FROM tab0 cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-4544
SELECT - 4 DIV + 13 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4544
SELECT - 4 / + 13 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col2 + 80 / - - col0 )
----

query II rowsort
SELECT + col0, + col2 * - col1 AS col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
NULL

query II rowsort
SELECT - ( + col0 ), - col0 AS col2 FROM tab0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - 20 * + - COUNT( * ) * - ( 29 ) + - ( - - COUNT( * ) ) FROM tab1
----
-1743

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - 20 * + - COUNT ( * ) * - ( 29 ) + - ( - - COUNT ( * ) ) FROM tab1
----
-1743

query I rowsort
SELECT DISTINCT - + 95 + + col2 + - + col2 AS col0 FROM tab0 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 + - - col2 + 79 col0 FROM tab0 cor0
----
150
187
239

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col0 * 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT COUNT( * ) - - COUNT( * ) + - + 40 col0 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4553
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) + - + 40 col0 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT - col1 + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT + + COUNT( * ) * - COUNT( ALL 67 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4555
SELECT + + COUNT ( * ) * - COUNT ( ALL 67 ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + ( + + 82 ) AS col0 FROM tab2
----
82
82
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + col0 = NULL
----

query I rowsort
SELECT ALL 81 * - - col2 FROM tab0
----
3807
8019
810

query I rowsort
SELECT DISTINCT - 84 * + col2 * + col0 FROM tab0 AS cor0
----
-59220
-73080
-806652

query I rowsort
SELECT + + col2 * + col0 AS col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL - + 33 + - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-42

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - + 33 + - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-42

query I rowsort
SELECT DISTINCT - col2 * 2 * col0 * 11 FROM tab0
----
-15510
-19140
-211266

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT col1 DIV - - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4563
SELECT col1 / - - col2 FROM tab2 AS cor0
----
1
1
2

query II rowsort
SELECT ALL + col2 AS col1, 82 + + 32 AS col2 FROM tab1 AS cor0
----
59
114
68
114
96
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - MAX( - - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4565
SELECT - MAX ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT ALL - - CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4566
SELECT ALL - - CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT - 41 * 41, col1 AS col1 FROM tab1 AS cor0
----
-1681
14
-1681
47
-1681
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - - col2 IN ( - 53, col0 / - 35 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 60 AS col2, - col1 AS col1 FROM tab0 AS cor0
----
60
-1
60
-21
60
-81

query II rowsort
SELECT col0, + 68 FROM tab0 AS cor0
----
15
68
87
68
97
68

query II rowsort
SELECT - - col1 AS col1, - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4573
SELECT + MAX( - CAST( + col2 AS SIGNED ) ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4573
SELECT + MAX ( - CAST ( + col2 AS INTEGER ) ) / + COUNT ( * ) FROM tab1 AS cor0
----
-19

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE 69 IS NULL
----

query II rowsort
SELECT ALL + col0 AS col2, + 9 FROM tab2 AS cor0
----
46
9
64
9
75
9

query III rowsort
SELECT * FROM tab2 WHERE + - 7 + - + col2 - - + 80 < - - 93 + - col2 / col2 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL - MIN( ALL - + 35 ) * + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - MIN ( ALL - + 35 ) * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
108

onlyif mysql # DIV for integer division: 
query II rowsort label-4578
SELECT DISTINCT + col2 DIV - - col1 + - col0 col0, 64 * - col0 AS col0 FROM tab2
----
-46
-2944
-64
-4096
-75
-4800

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4578
SELECT DISTINCT + col2 / - - col1 + - col0 col0, 64 * - col0 AS col0 FROM tab2
----
-46
-2944
-64
-4096
-75
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL 99 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL 99 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT 84 + col0 - + 47 DIV + - col2 FROM tab2
----
132
149
159

skipif mysql # not compatible
query I rowsort label-4580
SELECT 84 + col0 - + 47 / + - col2 FROM tab2
----
132
149
159

query I rowsort
SELECT DISTINCT - col2 + - + 49 FROM tab0
----
-148
-59
-96

query I rowsort
SELECT + + 25 + + - 71 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL + 37 + - ( col0 ) + - col1 FROM tab2 AS cor0 WHERE NOT - 25 > NULL
----

query I rowsort
SELECT col0 * col1 - - 38 AS col0 FROM tab2 AS cor0
----
2384
4966
5063

query I rowsort
SELECT DISTINCT + 81 - - col2 FROM tab0 AS cor0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT + 41 + + - COUNT( * ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT + 41 + + - COUNT ( * ) FROM tab1 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4587
SELECT ALL * FROM tab0 cor0 WHERE 94 NOT BETWEEN ( - + col1 + + - col2 + - CAST( - + CAST( + 41 AS SIGNED ) AS SIGNED ) ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4587
SELECT ALL * FROM tab0 cor0 WHERE 94 NOT BETWEEN ( - + col1 + + - col2 + - CAST ( - + CAST ( + 41 AS INTEGER ) AS INTEGER ) ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 11 - - 84 FROM tab0 AS cor0
----
73

query I rowsort
SELECT - col2 * - col0 - + ( + col2 ) AS col2 FROM tab1 cor0
----
4800
4956
6120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43 col0, + col2 FROM tab1 cor0
----
43
59
43
68
43
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col2 FROM tab1 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + - col2 / col0 + + col1 + - ( col2 ) >= NULL
----

query II rowsort
SELECT DISTINCT + 69 * - 53 * col1 * - col0, 83 AS col1 FROM tab2
----
18021696
83
18376425
83
8579322
83

query I rowsort
SELECT DISTINCT col0 * - 65 AS col0 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT 75 * 75 * + 53 * + 82 AS col0 FROM tab2
----
24446250
24446250
24446250

query II rowsort
SELECT - ( + col1 ), col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT ALL SUM( ALL + - ( + col1 ) ) DIV ( + - 4 ) + + 19 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL SUM ( ALL + - ( + col1 ) ) / ( + - 4 ) + + 19 FROM tab0
----
44

query II rowsort
SELECT + col2 * col2 AS col0, col1 FROM tab2
----
1600
77
3364
67
529
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 58 BETWEEN - + 36 AND NULL
----

query I rowsort
SELECT + + 74 FROM tab1 AS cor0 WHERE NOT 98 - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE + 94 IS NULL
----

query I rowsort
SELECT ALL + 11 AS col2 FROM tab0 cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab2 AS cor0 WHERE + col0 + + 8 * + + ( - col2 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL 77 * + - col1 FROM tab0
----
-1617
-6237
-77

query I rowsort
SELECT 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + 9 * + col0 FROM tab1
----
459
765
819

query I rowsort
SELECT - col2 + col1 + 69 * col1 AS col2 FROM tab1 WHERE NOT - + col1 NOT BETWEEN 68 - + col1 * + - 26 AND + + 18
----

query I rowsort
SELECT DISTINCT + 13 + - col1 AS col2 FROM tab2
----
-38
-54
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT - - ( - col2 ) DIV + - col1 + + + 80 FROM tab1 AS cor0 WHERE NOT 9 * - col2 IS NULL
----
81
86
91

skipif mysql # not compatible
query I rowsort label-4609
SELECT - - ( - col2 ) / + - col1 + + + 80 FROM tab1 AS cor0 WHERE NOT 9 * - col2 IS NULL
----
81
86
91

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( + col0 ) ) IS NOT NULL
----

query I rowsort
SELECT - ( - + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col0 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT CAST( NULL AS SIGNED ) + - - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT CAST ( NULL AS INTEGER ) + - - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 + + col0 FROM tab1 AS cor0
----
31
65
71

query I rowsort
SELECT ALL + col1 * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4616
SELECT MIN( 22 ) DIV - COUNT( * ) + - SUM( - col2 ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-4616
SELECT MIN ( 22 ) / - COUNT ( * ) + - SUM ( - col2 ) FROM tab2 AS cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4617
SELECT + CAST( NULL AS SIGNED ) + col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT + CAST ( NULL AS INTEGER ) + col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 30 * - 60 FROM tab1 AS cor0
----
-1709
-1715
-1749

query II rowsort
SELECT + 58 + col1 + - 18 + - - 24 AS col0, col2 AS col2 FROM tab2
----
115
23
131
58
141
40

query I rowsort
SELECT ALL + 36 + - col2 AS col1 FROM tab1
----
-23
-32
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4621
SELECT col2 + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4621
SELECT col2 + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 83 ) * + col0 + + - col1 FROM tab0
----
-1326
-7242
-8052

query I rowsort
SELECT ALL col1 + + 27 AS col2 FROM tab0
----
108
28
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4624
SELECT col2, - 11 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4624
SELECT col2, - 11 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT - + col0 * + + col0 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 > - col1
----

query I rowsort
SELECT ALL + 34 + col1 FROM tab2
----
101
111
85

query I rowsort
SELECT ALL - + col1 + + + col2 FROM tab1 cor0
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4629
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
NULL

query II rowsort
SELECT ( + - col0 ), + col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT 47 * ( - COUNT( * ) ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-4631
SELECT 47 * ( - COUNT ( * ) ) FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT COUNT( * ) * 3 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT COUNT ( * ) * 3 FROM tab1
----
9

query I rowsort
SELECT 54 * 27 * - - col0 * + col2 AS col0 FROM tab0
----
1027890
1268460
14001174

query II rowsort
SELECT ALL col0, + col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT - + 82 col2 FROM tab0 WHERE NOT - CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT - + 82 col2 FROM tab0 WHERE NOT - CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT + COUNT( col0 ) AS col1 FROM tab2 AS cor0 WHERE + ( col2 ) / + + col0 + 57 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + COUNT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE + ( col2 ) / + + col0 + 57 IS NOT NULL
----
3

query I rowsort
SELECT ( + + 80 ) * 97 FROM tab1 AS cor0
----
7760
7760
7760

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT - COUNT( * ) AS col1, 83 FROM tab2 cor0
----
-3
83

skipif mysql # not compatible
query II rowsort label-4639
SELECT - COUNT ( * ) AS col1, 83 FROM tab2 cor0
----
-3
83

query I rowsort
SELECT ALL - col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) / - - col2 > 91 * + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + + col2, + 82 + - col2 AS col1 FROM tab1 AS cor0
----
59
23
68
14
96
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4643
SELECT ALL col1 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL col1 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 23 + + + col1 - + col1 col0 FROM tab0
----
1081
2277
230

query II rowsort
SELECT col2 * - col0 + + + ( 56 ) AS col2, col2 + 15 AS col2 FROM tab0 AS cor0
----
-649
62
-814
25
-9547
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + ( - + SUM( col0 ) ) col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4646
SELECT + ( - + SUM ( col0 ) ) col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT 44 FROM tab0 AS cor0 WHERE ( NULL ) = 9 + - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + MIN( ALL 92 ) AS col1 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4648
SELECT + MIN ( ALL 92 ) AS col1 FROM tab0 AS cor0
----
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 74 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, 73 FROM tab0 WHERE NULL IS NULL
----
15
73
87
73
97
73

query I rowsort
SELECT DISTINCT - 75 * + 46 FROM tab1
----
-3450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab0 WHERE col2 / - 7 BETWEEN - 33 / + col2 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT ALL - col1 DIV - 66 + - col2 + 94 FROM tab1
----
-2
26
35

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - col1 / - 66 + - col2 + 94 FROM tab1
----
-2
26
35

query I rowsort
SELECT DISTINCT - col2 * - 58 FROM tab2
----
1334
2320
3364

query I rowsort
SELECT DISTINCT + 92 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > col0 * col1 + - + 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT ALL + 27 - + COUNT( * ) + - - 71 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + 27 - + COUNT ( * ) + - - 71 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE + 85 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL col1 / + col1 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4660
SELECT - col1 AS col2, col1 DIV col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
5

skipif mysql # not compatible
query II rowsort label-4660
SELECT - col1 AS col2, col1 / col0 FROM tab0 AS cor0
----
-1
0
-21
0
-81
5

query II rowsort
SELECT + 47 AS col2, + AVG ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col0
----
47
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 36 IN ( 11, - col2 + - 86, - col0, col1, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4663
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND - col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-4663
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND - col1 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4664
SELECT * FROM tab2 cor0 WHERE NOT col0 * CAST( NULL AS SIGNED ) * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4664
SELECT * FROM tab2 cor0 WHERE NOT col0 * CAST ( NULL AS INTEGER ) * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 59 AS col2 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT - 42 * + SUM( ALL + col2 ) * + - 1 FROM tab0
----
6552

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - 42 * + SUM ( ALL + col2 ) * + - 1 FROM tab0
----
6552

query I rowsort
SELECT + - col0 * - 95 * + - 26 + col1 + - col2 * - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-121060
-204930
-218535

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT COUNT( ALL - 26 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4668
SELECT COUNT ( ALL - 26 ) col1 FROM tab1
----
3

query II rowsort
SELECT + ( - col0 ) AS col0, col0 + - - 8 AS col0 FROM tab2
----
-46
54
-64
72
-75
83

query II rowsort
SELECT - col2 * - - col0, col1 AS col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

query I rowsort
SELECT ALL + + 17 * - col2 * + col2 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT + ( - 19 ) FROM tab0
----
-19
-19
-19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - + 89 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4674
SELECT - - SUM( CAST( + - col0 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4674
SELECT - - SUM ( CAST ( + - col0 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + - COUNT( col1 ) + + SUM( + col2 ) FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-4675
SELECT + - COUNT ( col1 ) + + SUM ( + col2 ) FROM tab2 AS cor0
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT ALL - - 97 * + - CAST( + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-4559
-9603
-970

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - - 97 * + - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT + 50 + + + 44 + - col2 * + ( - col0 ) FROM tab2 AS cor0
----
1152
2654
4444

query II rowsort
SELECT ALL + 8 AS col1, 39 + - - col0 AS col1 FROM tab2 cor0
----
8
103
8
114
8
85

query I rowsort
SELECT + col1 + - col2 + + 43 FROM tab2 AS cor0
----
52
71
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT - col2 + CAST( NULL AS SIGNED ) + - 45 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4680
SELECT - col2 + CAST ( NULL AS INTEGER ) + - 45 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN col2 AND - - 98
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN col2 AND - - 98
----
0

query I rowsort
SELECT ALL - 7 + + col1 * - col1 AS col2 FROM tab0
----
-448
-6568
-8

query I rowsort
SELECT - 17 * - - col0 FROM tab1
----
-1445
-1547
-867

query I rowsort
SELECT + + col0 AS col1 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4685
SELECT ALL + 19 DIV - 98 + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + 19 / - 98 + COUNT ( * ) AS col2 FROM tab1
----
3

query II rowsort
SELECT - - col0 - - + 92, col0 * + 13 AS col1 FROM tab1 cor0
----
143
663
177
1105
183
1183

query I rowsort
SELECT col1 - + + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4688
SELECT ALL 56 * - + COUNT( ALL - - 85 ) AS col2, COUNT( * ) AS col0 FROM tab2
----
-168
3

skipif mysql # not compatible
query II rowsort label-4688
SELECT ALL 56 * - + COUNT ( ALL - - 85 ) AS col2, COUNT ( * ) AS col0 FROM tab2
----
-168
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT SUM( + 48 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT SUM ( + 48 ) FROM tab1
----
144

query I rowsort
SELECT DISTINCT + + col1 * 46 FROM tab2 AS cor0
----
2346
3082
3542

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT + col2 DIV - + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4691
SELECT + col2 / - + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4692
SELECT + COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - + col1 AS col2, col2 * col2 * 47 FROM tab2 AS cor0
----
-51
24863
-67
158108
-77
75200

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) >= col2
----

query I rowsort
SELECT ALL - + ( - 32 ) AS col0 FROM tab1 AS cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col1 ) col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + + col1 * + col0 * - - ( + 26 ) FROM tab2 cor0
----
128128
130650
60996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 59, col0 col0 FROM tab2
----
59
46
59
64
59
75

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL 23 + - col1 - - col1 FROM tab1
----
23
23
23

query I rowsort
SELECT 29 * - + 68 AS col2 FROM tab0 AS cor0
----
-1972
-1972
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT MAX( col2 ) + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4702
SELECT MAX ( col2 ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE 21 + 15 <= NULL
----

query I rowsort
SELECT 23 * + - col2 * + col0 + - 55 FROM tab2
----
-100105
-24389
-58935

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab1 WHERE ( NOT NULL < NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= + 83
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT MIN( ALL - col1 ), + COUNT( * ) AS col1 FROM tab1
----
-47
3

skipif mysql # not compatible
query II rowsort label-4707
SELECT MIN ( ALL - col1 ), + COUNT ( * ) AS col1 FROM tab1
----
-47
3

query I rowsort
SELECT ALL - 91 * - ( - col2 ) FROM tab0 AS cor0
----
-4277
-9009
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 + + col0 col1, col2 AS col2 FROM tab0 AS cor0
----
174
10
194
99
30
47

query I rowsort
SELECT DISTINCT 39 - - col0 FROM tab2 cor0
----
103
114
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( + col2 ) ) col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4712
SELECT ALL COUNT( * ), - CAST( NULL AS SIGNED ) * - - 60 AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4712
SELECT ALL COUNT ( * ), - CAST ( NULL AS INTEGER ) * - - 60 AS col1 FROM tab1
----
3
NULL

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NULL <> + + 62
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) - - 87 * + + 69 - col2 + + col0 + + 95 FROM tab0 AS cor0
----
6113
6185
6195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col2 AS col0 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT DISTINCT + - 74 AS col0 FROM tab2 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-4718
SELECT + col0, - col0 DIV 64 AS col2 FROM tab1 AS cor0
----
51
0
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-4718
SELECT + col0, - col0 / 64 AS col2 FROM tab1 AS cor0
----
51
0
85
-1
91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL - + COUNT( ALL - col2 ) col0 FROM tab0 WHERE NOT + - col2 - + col0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4719
SELECT ALL - + COUNT ( ALL - col2 ) col0 FROM tab0 WHERE NOT + - col2 - + col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL + MAX( DISTINCT - - 92 ) AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + MAX ( DISTINCT - - 92 ) AS col0 FROM tab1
----
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT + 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - + ( + col2 ) AS col0 FROM tab0 WHERE NOT col1 > NULL
----

query II rowsort
SELECT DISTINCT col2 * col2 AS col2, col0 AS col0 FROM tab1
----
3481
85
4624
91
9216
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND + - col2
----
0

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT - COUNT( + + col2 ) * - 56 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - COUNT ( + + col2 ) * - 56 FROM tab1
----
168

query I rowsort
SELECT col0 + + - col0 + 43 AS col1 FROM tab2
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT ALL CAST( + col2 AS SIGNED ) + + - col1 AS col2 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL CAST ( + col2 AS INTEGER ) + + - col1 AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4729
SELECT col0 * - col2 + - 23 AS col0, + 26 + + + col2 + + + 37 DIV col0 * + + 98 * 43 AS col2 FROM tab0
----
-728
8501
-893
36
-9626
125

skipif mysql # not compatible
query II rowsort label-4729
SELECT col0 * - col2 + - 23 AS col0, + 26 + + + col2 + + + 37 / col0 * + + 98 * 43 AS col2 FROM tab0
----
-728
8501
-893
36
-9626
125

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - - 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0 WHERE - ( 48 ) * col1 IS NULL
----

query II rowsort
SELECT ALL col2 AS col1, - col2 * - + col1 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

query I rowsort
SELECT col1 * - 27 - + 88 * - col2 FROM tab1 cor0
----
4715
5057
8070

query I rowsort
SELECT DISTINCT - 68 * - col2 FROM tab2
----
1564
2720
3944

query I rowsort
SELECT ( 12 ) FROM tab1
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT - + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4736
SELECT - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 91 + - + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - 29 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT - col1 + + + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-4739
SELECT - col1 + + + col2 / - col2 AS col2 FROM tab0 AS cor0
----
-2
-22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT 1 * + - MIN( DISTINCT - - 36 ) * + 81 - + COUNT( * ) + - - 91 * - 97 - - + SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
-11931

skipif mysql # not compatible
query I rowsort label-4740
SELECT 1 * + - MIN ( DISTINCT - - 36 ) * + 81 - + COUNT ( * ) + - - 91 * - 97 - - + SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
-11931

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT + ( - MAX( 18 ) ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4741
SELECT + ( - MAX ( 18 ) ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT 95 + + - 24 / - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT + 29 AS col0, COUNT( * ) FROM tab0 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-4743
SELECT + 29 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
29
3

query I rowsort
SELECT ( col0 ) - - col2 * + - ( 41 ) * col1 + col0 AS col2 FROM tab0
----
-156057
-3865
-8436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 75 col2 FROM tab0 AS cor0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4746
SELECT ALL - - CAST( NULL AS DECIMAL ) + col0 FROM tab2 cor0 WHERE NULL <> col1
----

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - - CAST ( NULL AS REAL ) + col0 FROM tab2 cor0 WHERE NULL <> col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT col1 DIV - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT col1 / - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 53 col2 FROM tab1 AS cor0
----
-53

query II rowsort
SELECT 57 * 96 * col2, col1 FROM tab2 AS cor0
----
125856
51
218880
77
317376
67

query I rowsort
SELECT ALL + col2 * 88 AS col0 FROM tab0 AS cor0
----
4136
8712
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - + col0 * + + 11 col0 FROM tab2 AS cor0
----
23276
45056
61875

query I rowsort
SELECT + 25 + 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ea29c11e2d920a09e8656cafe5a9642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT - MAX( DISTINCT - CAST( col0 AS SIGNED ) ) * + 5 FROM tab2 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-4753
SELECT - MAX ( DISTINCT - CAST ( col0 AS INTEGER ) ) * + 5 FROM tab2 AS cor0
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT - - col0 DIV - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4754
SELECT - - col0 / - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + col2 * - + 52 * + - col2 * + 6 AS col1 FROM tab0 AS cor0
----
3057912
31200
689208

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - col1 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col0, 28 FROM tab2 AS cor0
----
51
28
67
28
77
28

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE - 97 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 * - col1 + - + col2 - - col1 AS col0 FROM tab0 AS cor0
----
-97
452
6595

query I rowsort
SELECT DISTINCT 81 * - 27 * + col0 AS col1 FROM tab0
----
-190269
-212139
-32805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 * + + col0 col0 FROM tab2
----
1109
2637
4417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT DISTINCT 69 + + 43 + 9 + COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT 69 + + 43 + 9 + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-4763
SELECT ALL - col0 DIV + + col0 + col2 + 44 DIV + + 89 col0, - 0 * - + col2 col1 FROM tab0
----
46
0
9
0
98
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4763
SELECT ALL - col0 / + + col0 + col2 + 44 / + + 89 col0, - 0 * - + col2 col1 FROM tab0
----
46
0
9
0
98
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 49 col0 FROM tab1 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT SUM( ALL + + col2 ) FROM tab1 AS cor0 WHERE ( + 39 IS NOT NULL )
----
223

skipif mysql # not compatible
query I rowsort label-4765
SELECT SUM ( ALL + + col2 ) FROM tab1 AS cor0 WHERE ( + 39 IS NOT NULL )
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - - 62 + + + MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-4767
SELECT - - 62 + + + MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
113

query I rowsort
SELECT - col0 + col0 FROM tab2 WHERE NULL IN ( col2 * + + col2 + - col0 )
----

query I rowsort
SELECT DISTINCT - 28 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-28

query I rowsort
SELECT DISTINCT + col0 + 18 * + col2 AS col0 FROM tab0 AS cor0
----
1879
267
861

query I rowsort
SELECT 44 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT - MAX( ALL - 84 ) AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4772
SELECT - MAX ( ALL - 84 ) AS col1 FROM tab1 AS cor0
----
84

query I rowsort
SELECT ALL + + 10 - col1 AS col2 FROM tab2 AS cor0
----
-41
-57
-67

query I rowsort
SELECT DISTINCT col1 - 19 FROM tab1 AS cor0
----
-14
-5
28

query I rowsort
SELECT DISTINCT - - col0 * + ( col1 ) + 30 FROM tab2 AS cor0
----
2376
4958
5055

query I rowsort
SELECT + col2 * col2 - + col2 + - col2 * col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col2 * col0 - col1 FROM tab2
----
1007
2483
4283

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + col1 * + + 7 FROM tab1
----
329
35
98

query I rowsort
SELECT - 87 * - col1 AS col2 FROM tab2
----
4437
5829
6699

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4781
SELECT ALL * FROM tab0 WHERE NOT + CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4781
SELECT ALL * FROM tab0 WHERE NOT + CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4782
SELECT DISTINCT + col0 AS col2, + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0
----
15
81
87
21
97
1

skipif mysql # not compatible
query II rowsort label-4782
SELECT DISTINCT + col0 AS col2, + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT - col1 / + col0 + + col0 - + ( - ( + 66 ) ) AS col2 FROM tab0 WHERE NOT - 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col2 FROM tab0
----
92
92
92

query II rowsort
SELECT DISTINCT - col2 AS col0, + 6 * + 4 FROM tab1
----
-59
24
-68
24
-96
24

query I rowsort
SELECT col1 * + col0 * - 86 AS col0 FROM tab1
----
-36550
-367822
-61404

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col1 > 63 * + + col2 + 79 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4788
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 32 FROM tab0 cor0
----
NULL
32
NULL
32
NULL
32

skipif mysql # not compatible
query II rowsort label-4788
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 32 FROM tab0 cor0
----
NULL
32
NULL
32
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT SUM( col2 ) * - + MAX( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
1115

skipif mysql # not compatible
query I rowsort label-4789
SELECT SUM ( col2 ) * - + MAX ( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
1115

query I rowsort
SELECT ALL - 51 FROM tab0 AS cor0 WHERE NOT col2 + - + col0 IS NULL
----
-51
-51
-51

query I rowsort
SELECT + col0 * 10 - + 70 AS col0 FROM tab1 AS cor0
----
440
780
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT MAX( + + ( + - ( + + CAST( NULL AS SIGNED ) ) ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 53, 74 + col1 + + col0 + + col2 * + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT MAX ( + + ( + - ( + + CAST ( NULL AS INTEGER ) ) ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 53, 74 + col1 + + col0 + + col2 * + + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - COUNT( * ) * + 11 AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - COUNT ( * ) * + 11 AS col1 FROM tab2 AS cor0
----
-33

query III rowsort
SELECT * FROM tab0 WHERE + + col1 / + + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT - MAX( + col0 ) * 20 + + 72 * + COUNT( + + col0 ) AS col1, 22 - 33 AS col1 FROM tab1
----
-1604
-11

skipif mysql # not compatible
query II rowsort label-4795
SELECT - MAX ( + col0 ) * 20 + + 72 * + COUNT ( + + col0 ) AS col1, 22 - 33 AS col1 FROM tab1
----
-1604
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL - CAST( - + col2 AS SIGNED ) * col0 AS col0 FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - CAST ( - + col2 AS INTEGER ) * col0 AS col0 FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT - 69 + 41 * ( + MAX( - 55 ) ) FROM tab0
----
-2324

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - 69 + 41 * ( + MAX ( - 55 ) ) FROM tab0
----
-2324

query I rowsort
SELECT ALL + col0 * col1 - + 38 * + col1 FROM tab1 AS cor0
----
182
235
2491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( 73 ) col1 FROM tab2 AS cor0
----
124
140
150

query I rowsort
SELECT - col2 * col1 - - col1 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT ALL - - ( + 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + col1 - + col2 * col1 col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + 54 + + 11 AS col2 FROM tab1 AS cor0
----
65
65
65

query II rowsort
SELECT ALL - col2 * - 3 + + - 17 - col0, col2 FROM tab0 AS cor0
----
-74
10
109
47
183
99

query I rowsort
SELECT + + 77 AS col1 FROM tab1 cor0
----
77
77
77

query II rowsort
SELECT ALL + col2 - 43, 44 * - col0 * - - col0 * col1 + col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
-4748235
-3
-13877144
15
-16582367

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL + COUNT( * ) + - + MIN( ALL col1 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + COUNT ( * ) + - + MIN ( ALL col1 ) FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT - - COUNT( DISTINCT ( - col2 ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4808
SELECT - - COUNT ( DISTINCT ( - col2 ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT - + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( ( + + col0 ) ) * + - 10 FROM tab0
----
-150
-870
-970

onlyif mysql # DIV for integer division: 
query I rowsort label-4811
SELECT ALL + col0 DIV + - col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + col0 / + - col1 FROM tab0
----
-4
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col0 FROM tab0 WHERE - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + 65 * - COUNT( * ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT + 65 * - COUNT ( * ) col1 FROM tab2
----
-195

query I rowsort
SELECT - col2 * + 67 * col0 FROM tab2
----
-171520
-291450
-70886

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) * + + col1 FROM tab1 AS cor0 WHERE col2 * + col2 * col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) * + + col1 FROM tab1 AS cor0 WHERE col2 * + col2 * col1 > NULL
----

query I rowsort
SELECT - - 16 * + 84 * + 33 AS col1 FROM tab0 AS cor0
----
44352
44352
44352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL CAST( + + ( - 52 ) AS SIGNED ) FROM tab2 WHERE NULL BETWEEN NULL AND - 70
----

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL CAST ( + + ( - 52 ) AS INTEGER ) FROM tab2 WHERE NULL BETWEEN NULL AND - 70
----

query I rowsort
SELECT ALL + 24 * - - 8 + col2 AS col1 FROM tab1
----
251
260
288

onlyif mysql # DIV for integer division: 
query II rowsort label-4822
SELECT col2, - 50 DIV col1 FROM tab0
----
10
-2
47
0
99
-50

skipif mysql # not compatible
query II rowsort label-4822
SELECT col2, - 50 / col1 FROM tab0
----
10
-2
47
0
99
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT COUNT( * ) * + 16 AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-4823
SELECT COUNT ( * ) * + 16 AS col1 FROM tab2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT COUNT( * ) DIV + 60 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4824
SELECT COUNT ( * ) / + 60 FROM tab2 AS cor0
----
0

query II rowsort
SELECT 96 AS col1, + col0 FROM tab0 AS cor0
----
96
15
96
87
96
97

query I rowsort
SELECT - 38 * - col2 + + - col2 AS col0 FROM tab1 AS cor0
----
2183
2516
3552

query I rowsort
SELECT + 43 * - ( + 42 ) AS col2 FROM tab0 AS cor0
----
-1806
-1806
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - col0 * - 31 + + col1 AS col0, + col1 * - - 26 + + col0 FROM tab1
----
1595
415
2640
215
2868
1313

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL - COUNT( ALL - col2 ) + + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - COUNT ( ALL - col2 ) + + + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT ALL ( - 23 ) AS col0 FROM tab1
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + 94 + COUNT( * ) AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-4834
SELECT + 94 + COUNT ( * ) AS col0 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL MAX( DISTINCT - + col1 ) + 81 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL MAX ( DISTINCT - + col1 ) + 81 FROM tab1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT DISTINCT 18 * + + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT 18 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 - - col1 * - col0 AS col1 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT + + 70 * + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT + + 70 * + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT DISTINCT - col1 + 43 + - + col0 DIV - - col1 FROM tab1
----
-5
21
26

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT - col1 + 43 + - + col0 / - - col1 FROM tab1
----
-5
21
26

query I rowsort
SELECT + 74 - - 76 FROM tab1
----
150
150
150

query I rowsort
SELECT ALL ( - + col1 ) + ( + - col1 ) * + - col0 FROM tab0
----
1134
1806
96

query II rowsort
SELECT + col0, - col2 AS col1 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT + - ( - col2 ) * + CAST( + + col1 AS SIGNED ) + 40 FROM tab2 AS cor0
----
1213
3120
3926

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + - ( - col2 ) * + CAST ( + + col1 AS INTEGER ) + 40 FROM tab2 AS cor0
----
1213
3120
3926

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4844
SELECT ALL + col0 / - 30 / - CAST( NULL AS SIGNED ) AS col2, + ( + + col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL + col0 / - 30 / - CAST ( NULL AS INTEGER ) AS col2, + ( + + col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT - 34 DIV + - 57 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4845
SELECT - 34 / + - 57 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4846
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV + CAST( + - 25 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
14
46
5

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / + CAST ( + - 25 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
14
46
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL ( - ( - + MIN( DISTINCT + + col2 ) ) ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL ( - ( - + MIN ( DISTINCT + + col2 ) ) ) FROM tab2 cor0
----
23

query I rowsort
SELECT + col2 + col1 * - col0 * - col2 FROM tab1 AS cor0 WHERE NOT 15 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 52 AS col1 FROM tab0 AS cor0
----
-1092
-4212
-52

query I rowsort
SELECT DISTINCT ( + 56 ) AS col0 FROM tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT + ( - 93 ) FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + 47 * - COUNT( * ) AS col2 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-4853
SELECT + 47 * - COUNT ( * ) AS col2 FROM tab0
----
-141

query I rowsort
SELECT 91 * + 77 FROM tab1
----
7007
7007
7007

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 53 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT - col1 * CAST( - + 60 AS SIGNED ) FROM tab0
----
1260
4860
60

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT - col1 * CAST ( - + 60 AS INTEGER ) FROM tab0
----
1260
4860
60

query I rowsort
SELECT + 13 * - col0 AS col2 FROM tab0
----
-1131
-1261
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT MIN( + - col2 ) * 66 FROM tab1
----
-6336

skipif mysql # not compatible
query I rowsort label-4858
SELECT MIN ( + - col2 ) * 66 FROM tab1
----
-6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 72 BETWEEN 42 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4861
SELECT + + MAX( - + CAST( col1 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4861
SELECT + + MAX ( - + CAST ( col1 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT MIN( DISTINCT + ( 40 ) ) FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-4862
SELECT MIN ( DISTINCT + ( 40 ) ) FROM tab0 cor0
----
40

query I rowsort
SELECT DISTINCT + col2 + - + col1 AS col1 FROM tab1
----
21
54
82

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * - col0 NOT BETWEEN NULL AND + 42
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 80 AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + - col2 + + + 45 + + - 36 AS col2 FROM tab1 AS cor0
----
1353
304
3205

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT DISTINCT COUNT( * ) / MIN( + col1 ) + - COUNT( * ) - - ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT 67 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT COUNT ( * ) / MIN ( + col1 ) + - COUNT ( * ) - - ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT 67 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 33 = NULL
----

query II rowsort
SELECT 66 AS col2, + col2 * + 78 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
66
4602
66
5304
66
7488

query II rowsort
SELECT col2 * 47 + + col0 AS col0, + 36 AS col1 FROM tab1 AS cor0
----
2858
36
3287
36
4563
36

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col2 FROM tab1 AS cor0
----
-61
-61
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT col1 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT - col2 + + ( - CAST( NULL AS SIGNED ) ) + col0 * + col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4875
SELECT - col2 + + ( - CAST ( NULL AS INTEGER ) ) + col0 * + col2 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col0 + + - ( 6 ) + col0 FROM tab1
----
110
169
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT MIN( ALL - 25 ) AS col2 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-4877
SELECT MIN ( ALL - 25 ) AS col2 FROM tab2
----
-25

query I rowsort
SELECT + col1 * - 5 AS col2 FROM tab0
----
-105
-405
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4879
SELECT ALL + CAST( NULL AS DECIMAL ) / - 73 * + 80 + + COUNT( * ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT ALL + CAST ( NULL AS REAL ) / - 73 * + 80 + + COUNT ( * ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4880
SELECT ALL + col1, + 62 * col0 AS col2 FROM tab2 WHERE + col2 * + 58 + CAST( NULL AS DECIMAL ) / col1 IS NULL
----
51
2852
67
4650
77
3968

skipif mysql # not compatible
query II rowsort label-4880
SELECT ALL + col1, + 62 * col0 AS col2 FROM tab2 WHERE + col2 * + 58 + CAST ( NULL AS REAL ) / col1 IS NULL
----
51
2852
67
4650
77
3968

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4881
SELECT DISTINCT * FROM tab0 WHERE - + col0 / + col1 + - CAST( - col0 AS SIGNED ) BETWEEN - CAST( NULL AS SIGNED ) AND 56
----

skipif mysql # not compatible
query III rowsort label-4881
SELECT DISTINCT * FROM tab0 WHERE - + col0 / + col1 + - CAST ( - col0 AS INTEGER ) BETWEEN - CAST ( NULL AS INTEGER ) AND 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL + 60 + + COUNT( * ) + 92 * - - COUNT( * ) AS col2 FROM tab2 cor0
----
339

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL + 60 + + COUNT ( * ) + 92 * - - COUNT ( * ) AS col2 FROM tab2 cor0
----
339

onlyif mysql # aggregate syntax: 
query II rowsort label-4883
SELECT ALL - COUNT( * ), - 32 AS col2 FROM tab0 AS cor0
----
-3
-32

skipif mysql # not compatible
query II rowsort label-4883
SELECT ALL - COUNT ( * ), - 32 AS col2 FROM tab0 AS cor0
----
-3
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT - col0 FROM tab2 AS cor0 WHERE ( + - CAST( NULL AS SIGNED ) IS NULL )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4884
SELECT - col0 FROM tab2 AS cor0 WHERE ( + - CAST ( NULL AS INTEGER ) IS NULL )
----
-46
-64
-75

query I rowsort
SELECT - - col1 - - + 5 AS col2 FROM tab2 AS cor0
----
56
72
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 * + - col0 col2 FROM tab1 AS cor0
----
-1632
-2720
-2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL + col2 + ( - - CAST( + col1 AS SIGNED ) ) AS col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL + col2 + ( - - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT + col1 * + + ( - - col2 ) * col2 AS col1 FROM tab1
----
129024
17405
217328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4889
SELECT - CAST( + 33 AS SIGNED ), ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

skipif mysql # not compatible
query II rowsort label-4889
SELECT - CAST ( + 33 AS INTEGER ), ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-33
NULL
-33
NULL
-33
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT ALL - col0 DIV + - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - col0 / + - col1 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - ( + 97 ) ) col1, col0 * + col0 AS col1 FROM tab1
----
-97
2601
-97
7225
-97
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT - CAST( + 46 AS SIGNED ) AS col2 FROM tab1
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-4892
SELECT - CAST ( + 46 AS INTEGER ) AS col2 FROM tab1
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL COUNT( * ) * + 78 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL COUNT ( * ) * + 78 FROM tab2
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT - 99 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - 99 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4895
SELECT ALL + MIN( DISTINCT - + CAST( - + 65 AS SIGNED ) ), - CAST( - 68 AS SIGNED ) AS col0 FROM tab0
----
65
68

skipif mysql # not compatible
query II rowsort label-4895
SELECT ALL + MIN ( DISTINCT - + CAST ( - + 65 AS INTEGER ) ), - CAST ( - 68 AS INTEGER ) AS col0 FROM tab0
----
65
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT COUNT( * ) * + 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-4896
SELECT COUNT ( * ) * + 42 FROM tab2
----
126

query I rowsort
SELECT 9 * - 11 FROM tab2
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT + CAST( - - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4898
SELECT + CAST ( - - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT CAST( 79 AS SIGNED ) * SUM( ALL 11 ) FROM tab0
----
2607

skipif mysql # not compatible
query I rowsort label-4899
SELECT CAST ( 79 AS INTEGER ) * SUM ( ALL 11 ) FROM tab0
----
2607

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ( MAX( 96 ) ) AS col0 FROM tab2 WHERE NOT + 57 - + col2 / - col2 >= - col1 / - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT ( MAX ( 96 ) ) AS col0 FROM tab2 WHERE NOT + 57 - + col2 / - col2 >= - col1 / - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL 0 - - COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL 0 - - COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT COUNT( * ) * 92 AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-4902
SELECT COUNT ( * ) * 92 AS col1 FROM tab1
----
276

query I rowsort
SELECT ALL - col1 + - 40 AS col2 FROM tab2
----
-107
-117
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL COUNT( * ) * 64 + COUNT( 90 + - col2 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL COUNT ( * ) * 64 + COUNT ( 90 + - col2 ) FROM tab2
----
195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT COUNT( * ) + 97 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-4906
SELECT COUNT ( * ) + 97 FROM tab2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT ALL 5 AS col0 FROM tab0 WHERE ( CAST( - 68 AS SIGNED ) - - ( 67 ) ) IS NOT NULL
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL 5 AS col0 FROM tab0 WHERE ( CAST ( - 68 AS INTEGER ) - - ( 67 ) ) IS NOT NULL
----
5
5
5

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col1 AND ( - col1 + col2 * col0 )
----

query I rowsort
SELECT + 90 * col0 AS col0 FROM tab1 WHERE NULL IN ( - col1 / col1 )
----

query I rowsort
SELECT - col0 * col1 - - col2 AS col0 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT ALL 49 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL 49 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col2 - - 34 = col2
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 58 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( 39 ) FROM tab2 WHERE NOT NULL <> ( col2 )
----

query I rowsort
SELECT DISTINCT + 82 FROM tab0 WHERE NOT - 41 * 9 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 39 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 63 * - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 83 - - col1 FROM tab1
----
130
88
97

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + 7 / + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 / + col1 IN ( col2 + - 43 * - col0 )
----

query I rowsort
SELECT DISTINCT 73 + + col0 FROM tab0
----
160
170
88

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( col0 ) IN ( col0 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <> ( - col0 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT 38 * - COUNT( * ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-4924
SELECT 38 * - COUNT ( * ) FROM tab0
----
-114

query I rowsort
SELECT - 63 * - 78 FROM tab1
----
4914
4914
4914

query I rowsort
SELECT DISTINCT + col1 + - 3 * - ( 58 ) AS col2 FROM tab1
----
179
188
221

query I rowsort
SELECT ALL - 75 FROM tab2 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL - 76 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 68 - - 10 AS col1 FROM tab2 AS cor0
----
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + COUNT( * ) * + 16 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-4931
SELECT + COUNT ( * ) * + 16 FROM tab0
----
48

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 12 col1 FROM tab1
----
-168
-564
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4934
SELECT - col0 FROM tab0 WHERE NOT ( col1 ) + + 4 * + CAST( + 58 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4934
SELECT - col0 FROM tab0 WHERE NOT ( col1 ) + + 4 * + CAST ( + 58 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT - + MAX( DISTINCT 3 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT - + MAX ( DISTINCT 3 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - ( 14 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-14
-14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * col0 + + col1 * col0 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col1 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 43 col1 FROM tab2 AS cor0 WHERE 72 NOT BETWEEN col0 * - 20 + ( + 1 ) * - 42 AND + col1 * - col1
----
107
118
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL + ( col1 ) + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + ( col1 ) + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL + MIN( DISTINCT + 93 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + MIN ( DISTINCT + 93 ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL - col2 * + 57 AS col0 FROM tab1 cor0
----
-3363
-3876
-5472

query I rowsort
SELECT ALL + col1 + - col0 FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab1 cor0
----
-97

query I rowsort
SELECT DISTINCT - + 78 * + 98 AS col1 FROM tab0 AS cor0
----
-7644

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4947
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND ( col2 / ( - 14 ) )
----

skipif mysql # not compatible
query III rowsort label-4947
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( col2 / ( - 14 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL 87 * - + ( ( + COUNT( * ) ) ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL 87 * - + ( ( + COUNT ( * ) ) ) FROM tab1
----
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT ALL ( - col1 ) DIV col0 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL ( - col1 ) / col0 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL - SUM( col0 ) AS col2 FROM tab0 WHERE ( + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL - SUM ( col0 ) AS col2 FROM tab0 WHERE ( + col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT COUNT( * ) * - 60 col2 FROM tab0
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4951
SELECT COUNT ( * ) * - 60 col2 FROM tab0
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT ALL - 33 DIV + col1 * 97 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL - 33 / + col1 * 97 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
2093
4056
5567

query I rowsort
SELECT 99 * + col0 AS col0 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL ( - COUNT( * ) ) * COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL ( - COUNT ( * ) ) * COUNT ( * ) FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 61 col2 FROM tab2
----
-3111
-4087
-4697

query I rowsort
SELECT DISTINCT - col1 + + ( 27 ) AS col1 FROM tab1
----
-20
13
22

query I rowsort
SELECT col2 * 92 FROM tab0 WHERE NOT + 23 IS NULL
----
4324
9108
920

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT SUM( - col2 ) * 19 FROM tab1
----
-4237

skipif mysql # not compatible
query I rowsort label-4959
SELECT SUM ( - col2 ) * 19 FROM tab1
----
-4237

query I rowsort
SELECT ALL - 79 + + col2 AS col2 FROM tab0 AS cor0
----
-32
-69
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col2 FROM tab1 AS cor0 WHERE NOT ( ( + 96 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - 54 BETWEEN + col2 - col1 AND 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT ( CAST( NULL AS SIGNED ) ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ( CAST ( NULL AS INTEGER ) ) * col2 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> ( 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4965
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST( NULL AS SIGNED ) <> + 67
----

skipif mysql # not compatible
query IIIIII rowsort label-4965
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST ( NULL AS INTEGER ) <> + 67
----

query I rowsort
SELECT DISTINCT col2 + + + col1 + + col1 AS col2 FROM tab1
----
124
162
69

query I rowsort
SELECT DISTINCT + 44 + + col1 + - col2 FROM tab1 AS cor0
----
-10
-38
23

query I rowsort
SELECT 4 + col0 AS col0 FROM tab0 AS cor0
----
101
19
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 - + 9 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 5 ) <> col0 * col0
----

query I rowsort
SELECT 40 + + + 25 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - col1 * + col1 - + col0 FROM tab2 AS cor0
----
-2647
-4564
-5993

query I rowsort
SELECT DISTINCT - + 81 AS col0 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT - - col2 + + col0 + + - col0 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT DISTINCT col0 AS col1, - 40 - - col2 FROM tab0 AS cor0
----
15
7
87
-30
97
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT 55 * + 99 * ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
16335

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4976
SELECT 55 * + 99 * ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
16335

query II rowsort
SELECT col1 * + + 66, - 32 AS col0 FROM tab2
----
3366
-32
4422
-32
5082
-32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0, + COUNT( * ) FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-4979
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2
----
0
3

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL NOT IN ( - col0 )
----

query I rowsort
SELECT ALL - 54 * - - 48 + - - col2 - + col0 * col1 FROM tab0
----
-2590
-3760
-4409

query III rowsort
SELECT * FROM tab0 WHERE + 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 64 * + col1 + - col0 AND col1
----

query I rowsort
SELECT + - col2 - - col2 * - col2 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4985
SELECT 85 * + CAST( NULL AS SIGNED ) - + col0 + + 99 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT 85 * + CAST ( NULL AS INTEGER ) - + col0 + + 99 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 17 - - col1 FROM tab0 AS cor0
----
-16
4
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4988
SELECT - col0 / 53 - + col0 FROM tab0 WHERE NOT ( CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) / col0 / + 54 - 88 + CAST( - 99 - col0 AS SIGNED ) * - col1 ) NOT BETWEEN col2 * - ( - col0 ) - col1 AND col2 + + 51
----

skipif mysql # not compatible
query I rowsort label-4988
SELECT - col0 / 53 - + col0 FROM tab0 WHERE NOT ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / col0 / + 54 - 88 + CAST ( - 99 - col0 AS INTEGER ) * - col1 ) NOT BETWEEN col2 * - ( - col0 ) - col1 AND col2 + + 51
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - - col1
----

query I rowsort
SELECT 53 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL AND ( NULL BETWEEN ( col1 ) AND NULL )
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT + col0 AS col2, col2 + - + 75 * + + ( + ( - 70 ) ) AS col0 FROM tab0 AS cor0
----
15
5297
87
5260
97
5349

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 51 NOT IN ( - 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 21 AS col1, 25 FROM tab0 cor0
----
21
25
21
25
21
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 * - col1 ) AND ( col1 ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT - COUNT( * ) DIV - + 77 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT - COUNT ( * ) / - + 77 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( - col1 / - + 79 + + 66 ) AND 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( + + 90 AS SIGNED ) + col2 IN ( + col2 - 67 )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4998
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( + + 90 AS INTEGER ) + col2 IN ( + col2 - 67 )
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 NOT IN ( + 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 99 ) IN ( + 69 * col1 * col1 + - 71 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT DISTINCT - 94, + COUNT( * ) * + 96 AS col0 FROM tab1
----
-94
288

skipif mysql # not compatible
query II rowsort label-5001
SELECT DISTINCT - 94, + COUNT ( * ) * + 96 AS col0 FROM tab1
----
-94
288

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL - MIN( DISTINCT - 94 ) FROM tab0 WHERE ( col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - MIN ( DISTINCT - 94 ) FROM tab0 WHERE ( col2 ) IS NULL
----
NULL

query I rowsort
SELECT 21 AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 9 * col0 + col2 * col2 AS col1 FROM tab2
----
2176
4039
943

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - COUNT( DISTINCT + col0 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5005
SELECT - COUNT ( DISTINCT + col0 ) col1 FROM tab0
----
-3

query I rowsort
SELECT + - 34 + - col0 + 61 AS col2 FROM tab2 AS cor0
----
-19
-37
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( - + col2 * + - col2 + - + ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + + + ( + + col0 ) + + col2 FROM tab1
----
198
229
250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5009
SELECT COUNT( * ) * 11 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT COUNT ( * ) * 11 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 - - + col2 AS col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT col2 - + 61 FROM tab2 AS cor0
----
-21
-3
-38

query I rowsort
SELECT + col0 - + 51 AS col1 FROM tab0 AS cor0
----
-36
36
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - + col1 * + col2 IN ( - + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT IN ( ( - + 55 ), - col2, + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col2 ) NOT IN ( ( - + 55 ), - col2, + 77 )
----
0

query II rowsort
SELECT - 31 AS col0, - 6 * - + 28 FROM tab0 cor0 WHERE NULL IS NULL
----
-31
168
-31
168
-31
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + 15 * + ( + COUNT( * ) ) FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + 15 * + ( + COUNT ( * ) ) FROM tab1 cor0
----
45

query I rowsort
SELECT - 75 + + col2 + + - 43 + + col0 FROM tab1
----
26
29
41

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab0 WHERE NOT + + col1 * + 35 IS NULL
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT ALL 96 AS col1, COUNT( ALL col2 ) FROM tab0
----
96
3

skipif mysql # not compatible
query II rowsort label-5019
SELECT ALL 96 AS col1, COUNT ( ALL col2 ) FROM tab0
----
96
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT + col0 DIV + 45 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT + col0 / + 45 FROM tab0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT DISTINCT 76 + + col0 DIV - col1 FROM tab2
----
75
76

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT 76 + + col0 / - col1 FROM tab2
----
75
76

query I rowsort
SELECT DISTINCT 3 + - - 27 AS col2 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL + - COUNT( + col0 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN 51 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + - COUNT ( + col0 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN 51 AND NULL
----
0

query I rowsort
SELECT + 21 + col0 AS col0 FROM tab0
----
108
118
36

query I rowsort
SELECT 10 * + - 46 + col2 FROM tab2
----
-402
-420
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5027
SELECT + MIN( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT + MIN ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT - COUNT( DISTINCT col0 ) FROM tab0 WHERE ( NULL <> 28 ) OR col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5028
SELECT - COUNT ( DISTINCT col0 ) FROM tab0 WHERE ( NULL <> 28 ) OR col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - col0 * - col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5030
SELECT * FROM tab0 AS cor0 WHERE NOT 20 BETWEEN NULL AND - + col1 + + 99 * 31 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5030
SELECT * FROM tab0 AS cor0 WHERE NOT 20 BETWEEN NULL AND - + col1 + + 99 * 31 * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + 80 AS col0 FROM tab2 cor0
----
-80

query I rowsort
SELECT col0 * - 32 AS col2 FROM tab2
----
-1472
-2048
-2400

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 + + + 34 FROM tab0 cor0 WHERE NOT col2 + col0 / - col0 * + col1 + - col1 * + + 35 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - ( - - ( - 12 ) ) >= + - 19 * + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5036
SELECT DISTINCT 50 DIV - 2 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT 50 / - 2 FROM tab1 AS cor0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5037
SELECT COUNT( * ) DIV + 47 + + + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5037
SELECT COUNT ( * ) / + 47 + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 89 col2 FROM tab1
----
-7
21
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * + 66 + + - col2 + - col1 col2 FROM tab2
----
4891
4899
4942

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < ( col1 + + + col0 )
----

query II rowsort
SELECT DISTINCT - col1 + - col0 + - col1 AS col1, - 62 FROM tab1
----
-185
-62
-79
-62
-95
-62

query I rowsort
SELECT 81 + + 14 FROM tab1
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 94 + - col0 FROM tab0
----
-109
-181
-191

query I rowsort
SELECT + col2 * + ( + - col1 ) AS col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - + 91 AS col0 FROM tab2 AS cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT ( + - COUNT( DISTINCT - col0 ) ), + 93 AS col1 FROM tab2 AS cor0
----
-3
93

skipif mysql # not compatible
query II rowsort label-5047
SELECT ( + - COUNT ( DISTINCT - col0 ) ), + 93 AS col1 FROM tab2 AS cor0
----
-3
93

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 + - 51, col1, - + col0, - + ( + 5 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - col2 col0 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT 57 + 93 * + col0 FROM tab0 cor0
----
1452
8148
9078

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL <= + col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL - SUM( + - col1 ) - + 71 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - SUM ( + - col1 ) - + 71 FROM tab2 AS cor0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - 61 - + COUNT( * ) AS col0 FROM tab2 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - 61 - + COUNT ( * ) AS col0 FROM tab2 cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT + + MAX( ALL + + 68 ) AS col1 FROM tab0 cor0
----
68

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + + MAX ( ALL + + 68 ) AS col1 FROM tab0 cor0
----
68

query I rowsort
SELECT DISTINCT + 31 * - col1 * ( + col1 ) - + + 81 FROM tab0 AS cor0
----
-112
-13752
-203472

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT col1 DIV - col0 col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT col1 / - col0 col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL ( - 44 ) - - 31 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT ALL - 79 AS col0 FROM tab0 WHERE NOT + - col2 = - CAST( - - 7 AS SIGNED )
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - 79 AS col0 FROM tab0 WHERE NOT + - col2 = - CAST ( - - 7 AS INTEGER )
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT DISTINCT - 55 * - CAST( NULL AS SIGNED ) * - ( - 85 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT - 55 * - CAST ( NULL AS INTEGER ) * - ( - 85 ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * + col0 = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL > NULL )
----

query I rowsort
SELECT DISTINCT 0 * + + 99 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 * - ( - + col0 ) AS col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + 26 * - 16 * + 49 AS col2 FROM tab1 AS cor0
----
-20384

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5066
SELECT ALL * FROM tab1 WHERE NOT + col2 / CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5066
SELECT ALL * FROM tab1 WHERE NOT + col2 / CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 81 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5068
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT DISTINCT + col1 AS col0, - col0 + 25 FROM tab2 cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT ALL 70 AS col0, - ( + ( SUM( col2 ) ) ) AS col1 FROM tab1 AS cor0
----
70
-223

skipif mysql # not compatible
query II rowsort label-5070
SELECT ALL 70 AS col0, - ( + ( SUM ( col2 ) ) ) AS col1 FROM tab1 AS cor0
----
70
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) <= - col1
----

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) <= - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT + + COUNT( * ) DIV - 90 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT + + COUNT ( * ) / - 90 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5073
SELECT ALL col0 AS col2, - col2 + + 31 DIV col1 + + 35 + + col1 FROM tab2 cor0
----
46
63
64
72
75
44

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL col0 AS col2, - col2 + + 31 / col1 + + 35 + + col1 FROM tab2 cor0
----
46
63
64
72
75
44

query I rowsort
SELECT - - ( + 59 ) FROM tab0 AS cor0
----
59
59
59

query II rowsort
SELECT DISTINCT + - col0, + 71 AS col1 FROM tab2 AS cor0
----
-46
71
-64
71
-75
71

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT MIN( ALL 77 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT MIN ( ALL 77 ) FROM tab0
----
77

query I rowsort
SELECT ALL - 21 + col0 AS col0 FROM tab2
----
25
43
54

query I rowsort
SELECT DISTINCT col0 * + - col2 + col1 AS col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT ALL - 53 + col1 * + col1 FROM tab0
----
-52
388
6508

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT - ( + - COUNT( * ) ) + 57 AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT - ( + - COUNT ( * ) ) + 57 AS col1 FROM tab1
----
60

query I rowsort
SELECT + 10 + + col0 + + + col2 FROM tab1
----
154
157
169

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT ALL - col2 + 49 DIV + - col0 AS col0 FROM tab0 AS cor0
----
-10
-50
-99

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL - col2 + 49 / + - col0 AS col0 FROM tab0 AS cor0
----
-10
-50
-99

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * col0 + + + col2 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT - COUNT( DISTINCT - 60 ) + - 84 AS col0 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - COUNT ( DISTINCT - 60 ) + - 84 AS col0 FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5087
SELECT + COUNT( * ) DIV - COUNT( * ) - + 71, - 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-72
-84

skipif mysql # not compatible
query II rowsort label-5087
SELECT + COUNT ( * ) / - COUNT ( * ) - + 71, - 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-72
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT MIN( ALL - 64 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-5088
SELECT MIN ( ALL - 64 ) FROM tab0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT - 8 - - - 39 * - col0 DIV col0 FROM tab2
----
31
31
31

skipif mysql # not compatible
query I rowsort label-5089
SELECT - 8 - - - 39 * - col0 / col0 FROM tab2
----
31
31
31

query I rowsort
SELECT ALL - 43 + + + col2 AS col0 FROM tab1 AS cor0
----
16
25
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT + + COUNT( ALL + + CAST( - ( + col1 ) AS SIGNED ) ) - + + 37 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5091
SELECT + + COUNT ( ALL + + CAST ( - ( + col1 ) AS INTEGER ) ) - + + 37 FROM tab1 AS cor0
----
-34

query II rowsort
SELECT + 61 AS col2, col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + + MIN( - col0 ) - + SUM( ALL - col0 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5093
SELECT + + MIN ( - col0 ) - + SUM ( ALL - col0 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
105

query I rowsort
SELECT - 99 - col0 AS col0 FROM tab2 AS cor0
----
-145
-163
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT - 99 - - + COUNT( * ) AS col1 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT - 99 - - + COUNT ( * ) AS col1 FROM tab2 cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 36 IS NULL
----

query I rowsort
SELECT - - 40 * - col0 AS col1 FROM tab2 AS cor0
----
-1840
-2560
-3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * + col0 col0 FROM tab0
----
-4263
-4753
-735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT ALL - - CAST( + col1 AS SIGNED ) * - ( col1 ) + - col0 FROM tab0 WHERE NULL IS NULL
----
-528
-6576
-98

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - - CAST ( + col1 AS INTEGER ) * - ( col1 ) + - col0 FROM tab0 WHERE NULL IS NULL
----
-528
-6576
-98

query II rowsort
SELECT col1, - 75 * - - col0 FROM tab1
----
14
-3825
47
-6825
5
-6375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 8 ) col2 FROM tab0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * 29 FROM tab2 AS cor0
----
1479
1943
2233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 * - - 37 col1 FROM tab0 AS cor0
----
1850

onlyif mysql # aggregate syntax: 
query II rowsort label-5105
SELECT DISTINCT - + 65 AS col2, 62 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-65
65

skipif mysql # not compatible
query II rowsort label-5105
SELECT DISTINCT - + 65 AS col2, 62 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-65
65

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE 37 IS NULL
----

query I rowsort
SELECT col1 * - 37 AS col2 FROM tab0
----
-2997
-37
-777

query I rowsort
SELECT ( - + 93 ) FROM tab2
----
-93
-93
-93

query I rowsort
SELECT 35 * + 6 AS col0 FROM tab0
----
210
210
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT COUNT( DISTINCT - 10 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5110
SELECT COUNT ( DISTINCT - 10 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL + 45 + + + 28 + - col0 AS col2 FROM tab0 AS cor0
----
-14
-24
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COUNT( * ) + + + AVG ( + + col1 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + + AVG ( + + col1 ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( - 97 ) AS col2, + col1 * + col1 col1 FROM tab2 cor0
----
-97
2601
-97
4489
-97
5929

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 + 38 + 14 + 59 FROM tab2 cor0
----
34
44
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + + - col0 * - col2 * + + col2 col0 FROM tab1 AS cor0
----
295939
420805
470098

query II rowsort
SELECT + - col1 + col0 AS col1, col1 * + col2 FROM tab2 AS cor0
----
-13
3080
-5
1173
8
3886

query I rowsort
SELECT + - col0 + + + 23 FROM tab1 AS cor0
----
-28
-62
-68

query I rowsort
SELECT col1 + + + 54 - + col2 * - col1 FROM tab2
----
1278
3211
4007

query I rowsort
SELECT - 54 + + col1 FROM tab0
----
-33
-53
27

query I rowsort
SELECT ALL + 61 + - col2 FROM tab1
----
-35
-7
2

query I rowsort
SELECT col1 + + - col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT 85 * - 55 FROM tab1, tab0 AS cor0
----
-4675

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL COUNT( * ) + - ( - - COUNT( * ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL COUNT ( * ) + - ( - - COUNT ( * ) ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT + + ( + - COUNT( * ) ) - COUNT( * ) col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5127
SELECT DISTINCT + + ( + - COUNT ( * ) ) - COUNT ( * ) col2 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5128
SELECT DISTINCT + COUNT( * ) DIV - - 9 * + COUNT( * ) AS col2, 62 FROM tab0 AS cor0
----
0
62

skipif mysql # not compatible
query II rowsort label-5128
SELECT DISTINCT + COUNT ( * ) / - - 9 * + COUNT ( * ) AS col2, 62 FROM tab0 AS cor0
----
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT + + COUNT( DISTINCT - col2 ) - + COUNT( * ) + ( + 33 ) * - COUNT( * ) * - - 30 AS col0 FROM tab1 cor0
----
-2970

skipif mysql # not compatible
query I rowsort label-5129
SELECT + + COUNT ( DISTINCT - col2 ) - + COUNT ( * ) + ( + 33 ) * - COUNT ( * ) * - - 30 AS col0 FROM tab1 cor0
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT + 12 + + MAX( ALL + col0 ) FROM tab0 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 12 + + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
109

query I rowsort
SELECT 8 + - 58 FROM tab2
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + MAX( + - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + MAX ( + - col1 ) FROM tab2
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 47 / col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / col2 * 16 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 37 AS col2 FROM tab1 cor0
----
-37
-37
-37

query I rowsort
SELECT - + 71 AS col2 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL ( MAX( + col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL ( MAX ( + col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

query I rowsort
SELECT ALL - - col2 * + 52 AS col0 FROM tab1 AS cor0
----
3068
3536
4992

query I rowsort
SELECT ALL 93 * - + col1 FROM tab2
----
-4743
-6231
-7161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NOT + + col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT ( + - 42 ) AS col0 FROM tab0 AS cor0
----
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 71 / - col1 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * col0 - - 0 - - col1 AS col1 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # DIV for integer division: 
query I rowsort label-5144
SELECT 94 DIV - - 6 + + col2 * - col2 FROM tab1 AS cor0
----
-3466
-4609
-9201

skipif mysql # not compatible
query I rowsort label-5144
SELECT 94 / - - 6 + + col2 * - col2 FROM tab1 AS cor0
----
-3466
-4609
-9201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 col1, col0 * - 27 + - ( - 73 ) AS col2 FROM tab2 AS cor0
----
-81
-1169
-81
-1655
-81
-1952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT 72 DIV - SUM( ALL + - 11 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT 72 / - SUM ( ALL + - 11 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT col1 * + + 82 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT ALL + 49 + 67 FROM tab0
----
116
116
116

query II rowsort
SELECT + col0 * - ( - col1 ) * + 17 AS col0, - 77 FROM tab1
----
12138
-77
7225
-77
72709
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col2 AS col2, + col0 * - col1 AS col2 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

query I rowsort
SELECT ALL + - 73 / - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 23 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 58 + + col0 col1 FROM tab1 AS cor0
----
3507
4035
5619

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL + MIN( + 8 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL + MIN ( + 8 ) FROM tab1 AS cor0
----
8

query I rowsort
SELECT DISTINCT - col1 + col1 * - + col2 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT - ( - 95 ) * - col2 FROM tab0
----
-4465
-9405
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT col1 + - 67 * + - CAST( + 79 AS SIGNED ) AS col1 FROM tab2
----
5344
5360
5370

skipif mysql # not compatible
query I rowsort label-5157
SELECT col1 + - 67 * + - CAST ( + 79 AS INTEGER ) AS col1 FROM tab2
----
5344
5360
5370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5158
SELECT ALL - 32 * 75, - col0 * + 47 * 58 * - CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab2
----
-2400
-11165696
-2400
-15333750
-2400
-5768216

skipif mysql # not compatible
query II rowsort label-5158
SELECT ALL - 32 * 75, - col0 * + 47 * 58 * - CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab2
----
-2400
-11165696
-2400
-15333750
-2400
-5768216

onlyif mysql # aggregate syntax: 
query II rowsort label-5159
SELECT ALL - 26 + + + COUNT( * ) AS col0, + COUNT( DISTINCT - col1 ) AS col1 FROM tab1
----
-23
3

skipif mysql # not compatible
query II rowsort label-5159
SELECT ALL - 26 + + + COUNT ( * ) AS col0, + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1
----
-23
3

query I rowsort
SELECT DISTINCT - col0 + - col0 * + 28 - col0 AS col0 FROM tab0
----
-2610
-2910
-450

query I rowsort
SELECT ALL - - 27 FROM tab2 WHERE 97 IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT - + 90 - + COUNT( * ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT - + 90 - + COUNT ( * ) FROM tab1 AS cor0
----
-93

query II rowsort
SELECT - - col1 + + col2 + - 89 * + + 28 * - col0, col2 * - 97 AS col1 FROM tab1 AS cor0
----
127202
-9312
211884
-5723
226887
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT MIN( DISTINCT - - 71 ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5164
SELECT MIN ( DISTINCT - - 71 ) FROM tab1 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT + - col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + - col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 77 / - 36 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - MAX( 76 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-76

skipif mysql # not compatible
query I rowsort label-5167
SELECT - MAX ( 76 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - - ( + - col0 )
----

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + ( + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL + SUM( - 99 ) AS col0 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL + SUM ( - 99 ) AS col0 FROM tab0 AS cor0
----
-297

query II rowsort
SELECT ALL - - 75 AS col2, col1 FROM tab1 AS cor0
----
75
14
75
47
75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 > + 47
----
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 > + 47
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT - col1 * - 39 NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2 * + - col1 )
----

query I rowsort
SELECT ( + - col0 ) * + + col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 97 = - 51 * - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - 43 * + 34 * COUNT( * ) * - 51 FROM tab2, tab0 AS cor0
----
671058

skipif mysql # not compatible
query I rowsort label-5179
SELECT - 43 * + 34 * COUNT ( * ) * - 51 FROM tab2, tab0 AS cor0
----
671058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT ( CAST( NULL AS SIGNED ) ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT ( CAST ( NULL AS INTEGER ) ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL + + ( SUM( + col0 ) ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL + + ( SUM ( + col0 ) ) AS col0 FROM tab0 cor0
----
199

query I rowsort
SELECT ALL - 31 * + col2 AS col2 FROM tab0 AS cor0
----
-1457
-3069
-310

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = - col1 / - 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 23 FROM tab0 AS cor0 WHERE - 4 * col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 - + - ( col0 ) + - col1 * col2 FROM tab1 AS cor0
----
-1197
-151
-3037

query I rowsort
SELECT - 18 + - - 14 + - 10 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + 22 + 53 AS col2 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + col2 * + 29 AS col1 FROM tab2 AS cor0
----
1160
1682
667

query I rowsort
SELECT 62 * - 93 FROM tab1
----
-5766
-5766
-5766

query II rowsort
SELECT ALL - col2 * + col2 AS col0, col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE - 92 - 76 + col1 NOT BETWEEN + col2 AND NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5192
SELECT DISTINCT + COUNT( * ) + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 91 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT + COUNT ( * ) + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 91 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5193
SELECT + ( - - col1 ) AS col0, col1 DIV - + col2 + - 47 + + col2 * - 52 FROM tab0
----
1
-5195
21
-569
81
-2492

skipif mysql # not compatible
query II rowsort label-5193
SELECT + ( - - col1 ) AS col0, col1 / - + col2 + - 47 + + col2 * - 52 FROM tab0
----
1
-5195
21
-569
81
-2492

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL + ( + - MIN( ALL col2 ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL + ( + - MIN ( ALL col2 ) ) AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT 93 + + COUNT( ALL col1 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT 93 + + COUNT ( ALL col1 ) FROM tab1
----
96

query II rowsort
SELECT ALL - col0 * col1 - ( - col1 ) + col1 + + col1 AS col2, - 39 + + 23 AS col1 FROM tab0 AS cor0
----
-1764
-16
-94
-16
-972
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT DISTINCT + - COUNT( * ) - - 70 AS col2 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT + - COUNT ( * ) - - 70 AS col2 FROM tab2 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - ( - 83 ) + - col2 col1 FROM tab1 AS cor0
----
4838
5576
7872

query I rowsort
SELECT ALL + col2 - + - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT + + ( + + COUNT( ALL - col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT + + ( + + COUNT ( ALL - col2 ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + MAX( ALL 85 ) AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + MAX ( ALL 85 ) AS col1 FROM tab0
----
85

query I rowsort
SELECT 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL - + 24 AS col1 FROM tab2 AS cor0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( + 27 ) ) col0 FROM tab0 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + SUM( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5205
SELECT + SUM ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col0 * - + col1 <> - 78
----

query II rowsort
SELECT ALL + col0 AS col2, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT - 55 + col1 + + col0, + col0 FROM tab1 AS cor0
----
10
51
35
85
83
91

query I rowsort
SELECT 41 FROM tab0 AS cor0 WHERE ( ( + + 2 ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5210
SELECT - CAST( + 15 AS SIGNED ) + - + MAX( - - col0 ) DIV - MIN( ALL + - 96 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5210
SELECT - CAST ( + 15 AS INTEGER ) + - + MAX ( - - col0 ) / - MIN ( ALL + - 96 ) FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col2 FROM tab2 AS cor0
----
38

query I rowsort
SELECT 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL 57 + + - col2 AS col2 FROM tab0
----
-42
10
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1, ( 73 ) * - col2 * - 56, + - ( - col1 ), ( 28 ), 43 )
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE - 91 * + col0 * 15 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 - - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 - 32 + - - col2 * + 8 FROM tab2 AS cor0
----
203
365
499

query I rowsort
SELECT DISTINCT + + 11 AS col1 FROM tab1 AS cor0
----
11

query I rowsort
SELECT ALL - col0 - - 2 + + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-142
-145
-157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col2 FROM tab1 WHERE NOT - col0 + - 38 = - 71 * - + col0 - - col1 + + 39
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5221
SELECT ALL col0 + - ( CAST( + 55 AS DECIMAL ) ) * + - ( - ( + col0 ) ) col1, 72 FROM tab1 WHERE NOT + col1 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5221
SELECT ALL col0 + - ( CAST ( + 55 AS REAL ) ) * + - ( - ( + col0 ) ) col1, 72 FROM tab1 WHERE NOT + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + - 72 + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + - 72 + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT COUNT( * ) + - - MIN( col1 ) AS col0 FROM tab1 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT COUNT ( * ) + - - MIN ( col1 ) AS col0 FROM tab1 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL + 48 - 26 FROM tab1
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 AS col0, + 72 col1 FROM tab2 cor0
----
-23
72
-40
72
-58
72

query II rowsort
SELECT ALL - - col1 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - - AVG ( ALL - col1 ) AS col2 FROM tab0 WHERE NOT NULL = 45
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5228
SELECT 69 DIV 48, col2 FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-5228
SELECT 69 / 48, col2 FROM tab2
----
1
23
1
40
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + - COUNT( * ) + + + ( 79 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5229
SELECT + - COUNT ( * ) + + + ( 79 ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
70

query II rowsort
SELECT 40 AS col0, - col2 * + col2 * 81 FROM tab0
----
40
-178929
40
-793881
40
-8100

query II rowsort
SELECT DISTINCT col0 AS col1, ( - 19 ) FROM tab2 AS cor0
----
46
-19
64
-19
75
-19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 - + 81 NOT BETWEEN - col0 AND 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * - col0 - - 83 + col2 - col1 col1 FROM tab1 AS cor0
----
-1988
-200915
-9831

query I rowsort
SELECT ALL - col0 * + col1 * + - col0 AS col2 FROM tab2 cor0
----
107916
315392
376875

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 97 IS NOT NULL
----

query I rowsort
SELECT col2 + col2 * - + col1 AS col0 FROM tab1
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + SUM( ( - 75 ) ) AS col1 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + SUM ( ( - 75 ) ) AS col1 FROM tab1
----
-225

query III rowsort
SELECT * FROM tab0 WHERE + 63 > - col1 * 1 * + col0 + col1 * + col0 OR col0 * + - col0 * + col2 <> + - col0 + + 10 - + col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 10 * - - col2 * - - col1 AS col1 FROM tab2
----
11730
30800
38860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL col1 + - CAST( - + 18 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL col1 + - CAST ( - + 18 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 54 + - col1 FROM tab2
----
-105
-121
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-5242
SELECT DISTINCT - 48 DIV + col0 * - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT - 48 / + col0 * - col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5243
SELECT ALL 8 DIV col2 + + col0 * col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL 8 / col2 + + col0 * col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT CAST( - 17 AS SIGNED ) AS col0 FROM tab2
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-5244
SELECT CAST ( - 17 AS INTEGER ) AS col0 FROM tab2
----
-17
-17
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT + col2 DIV col1 * - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT + col2 / col1 * - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + + + 2 + + 46 FROM tab2 AS cor0
----
106
71
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5247
SELECT + COUNT( DISTINCT 62 ) DIV - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT + COUNT ( DISTINCT 62 ) / - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT COUNT( * ) + + 59 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT COUNT ( * ) + + 59 FROM tab0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 * + col2 col1 FROM tab2 AS cor0 WHERE + col2 <> ( NULL )
----

query I rowsort
SELECT - col1 * 28 + - 19 - - + col0 * + col1 FROM tab2 AS cor0
----
2753
3130
899

query I rowsort
SELECT col0 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 / - + 47 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT + COUNT( col1 ) DIV ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5254
SELECT + COUNT ( col1 ) / ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT + ( + - 16 ) FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5256
SELECT col1 * col2 col1, CAST( NULL AS SIGNED ) col0 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5256
SELECT col1 * col2 col1, CAST ( NULL AS INTEGER ) col0 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT MAX( ALL - + col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5257
SELECT MAX ( ALL - + col2 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT - col0 - col0 + - - col2 + + col2 FROM tab2
----
-34
-46
-48

query III rowsort
SELECT * FROM tab0 WHERE NOT 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 - 59 > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 71 ) col0 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT - col2 + + 72 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT + col0 * - col0 - - col1 FROM tab0 WHERE NOT + - col2 NOT BETWEEN col1 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5264
SELECT + col0 * - col0 - - col1 FROM tab0 WHERE NOT + - col2 NOT BETWEEN col1 * + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT + + 58 * col1 DIV - + 40 AS col1 FROM tab0 AS cor0
----
-1
-117
-30

skipif mysql # not compatible
query I rowsort label-5265
SELECT + + 58 * col1 / - + 40 AS col1 FROM tab0 AS cor0
----
-1
-117
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL + MAX( - col2 ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + MAX ( - col2 ) AS col2 FROM tab0 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT + 98 * - CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
-4508
-6272
-7350

skipif mysql # not compatible
query I rowsort label-5267
SELECT + 98 * - CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
-4508
-6272
-7350

onlyif mysql # DIV for integer division: 
query I rowsort label-5268
SELECT 23 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT 23 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 / col0 IS NOT NULL
----

query I rowsort
SELECT ALL 59 + + col0 FROM tab0 cor0 WHERE NULL IS NULL
----
146
156
74

query I rowsort
SELECT + ( - - 66 ) AS col0 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL + + COUNT( * ) * 7 AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL + + COUNT ( * ) * 7 AS col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT DISTINCT col0 * col2 DIV col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT col0 * col2 / col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT ALL COUNT( * ) * + + CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL COUNT ( * ) * + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT 59 + COUNT( ALL + col0 ) + COUNT( * ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT 59 + COUNT ( ALL + col0 ) + COUNT ( * ) FROM tab0
----
65

query I rowsort
SELECT ALL 7 + - col2 AS col2 FROM tab0
----
-3
-40
-92

query I rowsort
SELECT col2 + - + 43 AS col2 FROM tab2
----
-20
-3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT - + COUNT( * ) * 3 FROM tab0 WHERE - - ( - col1 ) IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5279
SELECT - + COUNT ( * ) * 3 FROM tab0 WHERE - - ( - col1 ) IS NOT NULL
----
-9

query I rowsort
SELECT ALL 10 * + - 16 * + - col0 AS col2 FROM tab1 AS cor0
----
13600
14560
8160

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 28 * - 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL - MAX( DISTINCT + 26 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - MAX ( DISTINCT + 26 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT + + MAX( 74 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
74

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + + MAX ( 74 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5284
SELECT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL - CAST( - 4 AS SIGNED ) - 14 + - 32 FROM tab2 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - CAST ( - 4 AS INTEGER ) - 14 + - 32 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5286
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) >= - - ( - 62 ) + col0 + col2
----

skipif mysql # not compatible
query III rowsort label-5286
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= - - ( - 62 ) + col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT - - MAX( DISTINCT + col0 ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - - MAX ( DISTINCT + col0 ) AS col1 FROM tab2 cor0
----
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 19 + - col1 = - - 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL + - CAST( - 23 AS SIGNED ) - - col1 AS col2 FROM tab0 cor0
----
104
24
44

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL + - CAST ( - 23 AS INTEGER ) - - col1 AS col2 FROM tab0 cor0
----
104
24
44

query I rowsort
SELECT DISTINCT col2 - + col1 * - 16 * + col2 AS col0 FROM tab2 AS cor0
----
18791
49320
62234

query I rowsort
SELECT col0 FROM tab2 WHERE ( + + 96 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT MAX( ALL - ( + 40 ) ) AS col2 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-5292
SELECT MAX ( ALL - ( + 40 ) ) AS col2 FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT DISTINCT - 6 AS col2, + MAX( DISTINCT - col1 ) AS col0 FROM tab0
----
-6
-1

skipif mysql # not compatible
query II rowsort label-5293
SELECT DISTINCT - 6 AS col2, + MAX ( DISTINCT - col1 ) AS col0 FROM tab0
----
-6
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT + col1 DIV col1 * + col1 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5294
SELECT + col1 / col1 * + col1 AS col2 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 80 AS col1, 19 + + - ( col2 ) AS col2 FROM tab0
----
-80
-28
-80
-80
-80
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT + col2 DIV - 21 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5297
SELECT + col2 / - 21 AS col1 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL OR NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 27 + ( - + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 34 < + col0 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 55 * - + col1 FROM tab2 AS cor0
----
2805
3685
4235

query I rowsort
SELECT ALL 61 * - col2 AS col0 FROM tab1 AS cor0
----
-3599
-4148
-5856

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT + COUNT( * ) + + SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-5303
SELECT + COUNT ( * ) + + SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5304
SELECT * FROM tab1 AS cor0 WHERE - 47 BETWEEN + CAST( NULL AS SIGNED ) + + ( 77 ) + + col0 + 12 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5304
SELECT * FROM tab1 AS cor0 WHERE - 47 BETWEEN + CAST ( NULL AS INTEGER ) + + ( 77 ) + + col0 + 12 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col2 * - col0 IS NULL
----

query II rowsort
SELECT DISTINCT - col1, + col0 * + 60 + - ( - 52 ) AS col2 FROM tab1
----
-14
3112
-47
5512
-5
5152

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT COUNT( * ) + 71 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5307
SELECT COUNT ( * ) + 71 FROM tab1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT + col0 + 67 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + col0 + 67 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT COUNT( DISTINCT - 51 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5309
SELECT COUNT ( DISTINCT - 51 ) col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 89 + col1 * - col0 AS col0 FROM tab2
----
-2257
-4839
-4936

query I rowsort
SELECT ALL + col0 + - 8 FROM tab1
----
43
77
83

query II rowsort
SELECT ALL col2 + + 97 * - - col2 AS col2, + 46 FROM tab1
----
5782
46
6664
46
9408
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT + COUNT( * ) * 94 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT + COUNT ( * ) * 94 FROM tab2
----
282

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 >= + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT - - ( - - 44 ) * MIN( + - col2 ) AS col2 FROM tab0 AS cor0
----
-4356

skipif mysql # not compatible
query I rowsort label-5315
SELECT - - ( - - 44 ) * MIN ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-4356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 16 + - col0 col2 FROM tab0
----
-112
-82
50

query I rowsort
SELECT + 22 + col1 AS col0 FROM tab2
----
73
89
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5318
SELECT ALL + COUNT( * ) + COUNT( * ) + - SUM( - 26 ) / - 78 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + COUNT ( * ) + COUNT ( * ) + - SUM ( - 26 ) / - 78 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 41, col0 + 17 col1 FROM tab2 AS cor0
----
41
63
41
81
41
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT + + MAX( + + col0 ) FROM tab0 AS cor0 WHERE - col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT + + MAX ( + + col0 ) FROM tab0 AS cor0 WHERE - col1 > NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col1 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT - + col1 AS col1, - ( - - col1 ) * - col1 + - ( - 82 ) + + + col2 * col0 AS col2 FROM tab1 AS cor0
----
-14
5174
-47
8479
-5
5122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT MIN( + CAST( - 40 AS SIGNED ) ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5323
SELECT MIN ( + CAST ( - 40 AS INTEGER ) ) FROM tab0 AS cor0
----
-40

query II rowsort
SELECT + col1, + col0 + - col2 FROM tab1 cor0
----
14
-45
47
23
5
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT DISTINCT CAST( + + 59 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT CAST ( + + 59 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT col1 * + - col1 + + col1 AS col2 FROM tab0 cor0
----
-420
-6480
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT DISTINCT - - 68 DIV col1 FROM tab1 AS cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - - 68 / col1 FROM tab1 AS cor0
----
1
13
4

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 BETWEEN - col0 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col0, 2 AS col2 FROM tab2 AS cor0
----
46
2
64
2
75
2

query I rowsort
SELECT col2 * - - col2 * col1 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT COUNT( * ) FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5332
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 53 col0 FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5334
SELECT - col1 DIV - col2, col2 FROM tab2 AS cor0
----
1
40
1
58
2
23

skipif mysql # not compatible
query II rowsort label-5334
SELECT - col1 / - col2, col2 FROM tab2 AS cor0
----
1
40
1
58
2
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5335
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2, 69 * col1, + 59, + col1 * 66 * - CAST( NULL AS SIGNED ) * + col2, col2 )
----

skipif mysql # not compatible
query III rowsort label-5335
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2, 69 * col1, + 59, + col1 * 66 * - CAST ( NULL AS INTEGER ) * + col2, col2 )
----

query I rowsort
SELECT ALL + + col2 / + col0 + col1 + - col2 * - 77 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT - - 62 + + MAX( ALL - col0 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT - - 62 + + MAX ( ALL - col0 ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL - col1 * - + 18 + 54 AS col2 FROM tab2 AS cor0
----
1260
1440
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 * - 6 col0 FROM tab1 AS cor0
----
324
324
324

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT DISTINCT + 46 AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-5340
SELECT DISTINCT + 46 AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
46
3

query I rowsort
SELECT + - 66 FROM tab1 AS cor0 WHERE - 53 > + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * + + 65 FROM tab1 AS cor0
----
-3055
-325
-910

query I rowsort
SELECT DISTINCT ( 49 ) * 73 AS col2 FROM tab1 AS cor0
----
3577

query I rowsort
SELECT - + col2 * + - col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 76 * - col1 < NULL )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 51 + + + col1 AS col1 FROM tab0
----
-30
-50
30

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - col2
----

query I rowsort
SELECT + col2 * col1 + - col0 FROM tab2
----
1127
3016
3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT + col1 / - col2 + + 41 + + 22 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT + col1 / - col2 + + 41 + + 22 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 66 + + col2 + - - col0 + col1, + col2 FROM tab2
----
115
40
134
58
54
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT DISTINCT + 65 + COUNT( * ) DIV + - 1 AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + 65 + COUNT ( * ) / + - 1 AS col1 FROM tab1
----
62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 81 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE - 10 IS NULL
----

query I rowsort
SELECT + 18 * 45 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3b3ded2f47c4e49be852fd38dcc2e3a3

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL + COUNT( * ) + - + 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + COUNT ( * ) + - + 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

query I rowsort
SELECT col2 - - - col1 AS col0 FROM tab1
----
21
54
82

query I rowsort
SELECT ALL - + 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT ALL 99 DIV - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL 99 / - col0 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5361
SELECT DISTINCT - 70 DIV 34 AS col0 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - 70 / 34 AS col0 FROM tab1 cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - SUM( ALL col2 ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5362
SELECT - SUM ( ALL col2 ) AS col2 FROM tab0 cor0
----
-156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = + 12
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT DISTINCT - col1 DIV + - col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT - col1 / + - col1 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab1 AS cor0 WHERE - 64 - - 18 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 * - + col1 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL + MIN( ALL 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + MIN ( ALL 80 ) FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT MIN( DISTINCT - 64 ) AS col0 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-5368
SELECT MIN ( DISTINCT - 64 ) AS col0 FROM tab1
----
-64

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 18 * + col1 AS col1 FROM tab1
----
252
846
90

query I rowsort
SELECT - col2 * ( - + col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5372
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 58 * + CAST( - col0 AS DECIMAL ) * + col1
----

skipif mysql # not compatible
query III rowsort label-5372
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 58 * + CAST ( - col0 AS REAL ) * + col1
----

query I rowsort
SELECT ALL - - col0 * - col2 - - ( 30 ) AS col0 FROM tab0 AS cor0
----
-675
-840
-9573

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL + MIN( + - 97 ) + - ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + MIN ( + - 97 ) + - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-100

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 61 * col0 + - col2 + + col0 + - ( col2 ) AS col2 FROM tab0
----
5374
5816
836

query I rowsort
SELECT ALL - - 88 + + 15 + + + 73 - + + 37 * - + col1 * 57 FROM tab1 AS cor0
----
10721
29702
99299

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT col0 * + ( - - 14 ) + - col1 DIV + + col2 + 43 AS col1 FROM tab2 AS cor0
----
1092
685
938

skipif mysql # not compatible
query I rowsort label-5378
SELECT col0 * + ( - - 14 ) + - col1 / + + col2 + 43 AS col1 FROM tab2 AS cor0
----
1092
685
938

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < - col0
----

query I rowsort
SELECT ALL + col2 + col2 + + + col0 * col2 FROM tab1
----
5088
5133
6324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + ( + + col1 ) FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ( + 46 ) AS col1 FROM tab1
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT ALL MAX( DISTINCT - col0 ) * - COUNT( * ) + + - 98 AS col1 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL MAX ( DISTINCT - col0 ) * - COUNT ( * ) + + - 98 AS col1 FROM tab0
----
-53

query I rowsort
SELECT DISTINCT 9 + - col1 AS col1 FROM tab0
----
-12
-72
8

query I rowsort
SELECT ALL + col2 + col1 * - col2 FROM tab2
----
-1150
-3040
-3828

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 + - + col2 ) IN ( - ( + col0 ), col2, - ( - col2 ) * col1 + col2 - + - col1 / col2 - + - col1 + + col2 )
----

query I rowsort
SELECT - col2 - + 32 FROM tab1 AS cor0
----
-100
-128
-91

query I rowsort
SELECT - 54 - 69 - - 22 AS col0 FROM tab1 cor0
----
-101
-101
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT + MAX( DISTINCT + 93 ) AS col2 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + MAX ( DISTINCT + 93 ) AS col2 FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5390
SELECT + col1 DIV CAST( + - col1 AS SIGNED ) + col2 + - 86 AS col0 FROM tab0 AS cor0
----
-40
-77
12

skipif mysql # not compatible
query I rowsort label-5390
SELECT + col1 / CAST ( + - col1 AS INTEGER ) + col2 + - 86 AS col0 FROM tab0 AS cor0
----
-40
-77
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 35 = - + 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 * + col0 + + col2 - col1 AS col0 FROM tab0 AS cor0
----
41
424
583

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 58 * + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) / col2 > 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + 93 AS col2 FROM tab2
----
139
157
168

query I rowsort
SELECT 22 + + col2 FROM tab2
----
45
62
80

query I rowsort
SELECT DISTINCT ( + 41 ) * + col2 FROM tab1 WHERE NOT ( 17 ) NOT BETWEEN + 3 * + col1 AND - ( - col0 ) * 29
----
2419

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL - ( + MIN( ALL - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - ( + MIN ( ALL - col2 ) ) FROM tab0
----
99

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL 18 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5402
SELECT ALL * FROM tab1 WHERE NULL <= 9 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5402
SELECT ALL * FROM tab1 WHERE NULL <= 9 * CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT DISTINCT 35 + col1 DIV - col2 col1 FROM tab2
----
33
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5403
SELECT DISTINCT 35 + col1 / - col2 col1 FROM tab2
----
33
34

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( 43 * - 63 + + col2 * col1 )
----

query I rowsort
SELECT 63 - + 33 AS col2 FROM tab2
----
30
30
30

query I rowsort
SELECT - 15 - - 78 * + 74 FROM tab2
----
5757
5757
5757

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT DISTINCT ( col1 ) AS col2 FROM tab0 WHERE CAST( - col2 AS SIGNED ) < ( + 72 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT ( col1 ) AS col2 FROM tab0 WHERE CAST ( - col2 AS INTEGER ) < ( + 72 )
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - 40 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT MAX( DISTINCT col0 ) FROM tab2 WHERE col1 + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT MAX ( DISTINCT col0 ) FROM tab2 WHERE col1 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT + ( ( + col0 ) ) AS col1 FROM tab0 WHERE NOT 86 NOT IN ( col0 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5414
SELECT * FROM tab1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query III rowsort label-5414
SELECT * FROM tab1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) / col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - col0 + + col2
----

query I rowsort
SELECT 44 FROM tab1 AS cor0 WHERE NOT - 77 NOT BETWEEN - col0 * - col1 + + col0 AND col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 23 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 85 * + col2 BETWEEN ( + col1 * + col1 + col2 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT DISTINCT 73 FROM tab0 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT 73 FROM tab0 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 6 ) + + 54 FROM tab1 cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT ALL CAST( 72 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL CAST ( 72 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + 89 + 66 IS NULL
----
51
85
91

query I rowsort
SELECT - 2 + 3 * col0 FROM tab0 AS cor0
----
259
289
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT col2 DIV + col1 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5425
SELECT col2 / + col1 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND col0 + + 31
----

query III rowsort
SELECT * FROM tab0 WHERE + 55 = - col1 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5428
SELECT * FROM tab0 cor0 CROSS JOIN tab1 WHERE 3 > ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-5428
SELECT * FROM tab0 cor0 CROSS JOIN tab1 WHERE 3 > ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 FROM tab2 WHERE ( NULL ) BETWEEN + col1 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT 59 * - COUNT( * ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5430
SELECT 59 * - COUNT ( * ) FROM tab0 AS cor0
----
-177

query I rowsort
SELECT + - ( + 64 ) * + col1 AS col2 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT + 51 + - col0 * - 37 AS col2 FROM tab2 AS cor0 WHERE + 53 - col0 IS NOT NULL
----
1753
2419
2826

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT MIN( ALL col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT MIN ( ALL col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + COUNT( * ) * 14 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5434
SELECT + COUNT ( * ) * 14 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL - col0 + + 44 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - 84 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-5436
SELECT - 84 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) <> col2
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) <> col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col0 FROM tab0 AS cor0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 - - 61 col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + 66 AND ( col0 - col2 * col2 )
----

query I rowsort
SELECT 65 FROM tab1 WHERE + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT DISTINCT + col1 DIV col2 - 30 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-28
-29
-30

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT + col1 / col2 - 30 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-28
-29
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE col2 = col2 + col2
----
0

skipif mysql # not compatible
query I rowsort label-5442
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE col2 = col2 + col2
----
0

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col0 FROM tab2 WHERE + col2 NOT IN ( + 93 / 68 + 45 * col1 )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + col1 col0 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT - ( - - CAST( NULL AS SIGNED ) ) + AVG ( 3 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT - ( - - CAST ( NULL AS INTEGER ) ) + AVG ( 3 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT + col1 + - - CAST( - col2 AS SIGNED ) + col2 col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5446
SELECT + col1 + - - CAST ( - col2 AS INTEGER ) + col2 col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5447
SELECT - CAST( - col0 AS SIGNED ) + + 64 DIV 77 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5447
SELECT - CAST ( - col0 AS INTEGER ) + + 64 / 77 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL + - 66 - + COUNT( ALL - col1 ) * + COUNT( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL + - 66 - + COUNT ( ALL - col1 ) * + COUNT ( ALL - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL + col0 - - col0 + + col1 AS col0 FROM tab1 AS cor0
----
116
175
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT ALL col2 - + CAST( NULL AS SIGNED ) + - 51 * 8 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL col2 - + CAST ( NULL AS INTEGER ) + - 51 * 8 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT ALL col1 - - col1 DIV - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
50
67
76

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL col1 - - col1 / - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
50
67
76

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - 23 ) <= ( NULL )
----

query I rowsort
SELECT - 16 AS col1 FROM tab0 WHERE NOT 28 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL - SUM( ALL col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - SUM ( ALL col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - MIN( DISTINCT 20 ) * + ( 5 ) * 58 - 23 FROM tab1
----
-5823

skipif mysql # not compatible
query I rowsort label-5456
SELECT - MIN ( DISTINCT 20 ) * + ( 5 ) * 58 - 23 FROM tab1
----
-5823

query I rowsort
SELECT - 33 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT DISTINCT - col2 * 63 FROM tab1 cor0
----
-3717
-4284
-6048

query II rowsort
SELECT + + 20 AS col1, + col2 AS col0 FROM tab2 cor0
----
20
23
20
40
20
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT 92 AS col2, COUNT( * ) * + MIN( ALL 58 ) AS col0 FROM tab0 cor0
----
92
174

skipif mysql # not compatible
query II rowsort label-5460
SELECT 92 AS col2, COUNT ( * ) * + MIN ( ALL 58 ) AS col0 FROM tab0 cor0
----
92
174

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5462
SELECT ALL - - COUNT( * ), COUNT( ALL - - 28 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5462
SELECT ALL - - COUNT ( * ), COUNT ( ALL - - 28 ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL - 23 * + col1 + + 93 FROM tab1 cor0
----
-22
-229
-988

query I rowsort
SELECT DISTINCT col0 * 16 FROM tab0 AS cor0
----
1392
1552
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + 99 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0 / + - col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * - col2 * 81 * - - ( col2 ) col1 FROM tab1
----
-12688245
-16854480
-33592320

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT + - 34 * COUNT( * ) FROM tab2 WHERE + 28 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT + - 34 * COUNT ( * ) FROM tab2 WHERE + 28 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT IN ( col2 * - 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND + col1 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND + col1 * + col1 IS NULL
----
0

query I rowsort
SELECT + ( col1 ) * 46 AS col1 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT - 79 * + ( + 37 ) AS col2 FROM tab2
----
-2923
-2923
-2923

query I rowsort
SELECT ALL 23 * 44 + col2 AS col1 FROM tab0
----
1022
1059
1111

query I rowsort
SELECT DISTINCT + col2 + - + 35 - + col2 * - col0 FROM tab0
----
717
845
9667

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL > col1 ) )
----

query I rowsort
SELECT ALL 20 AS col0 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + col0 * - + 89 FROM tab2 AS cor0
----
-4094
-5696
-6675

query I rowsort
SELECT DISTINCT - 12 + col2 AS col2 FROM tab0
----
-2
35
87

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 82 * - 45 * - 78 FROM tab0
----
287820

query II rowsort
SELECT - - col1 * - col2 * - col2, 9 AS col0 FROM tab2 cor0
----
123200
9
225388
9
26979
9

query I rowsort
SELECT ALL 59 AS col2 FROM tab1 AS cor0 WHERE NOT - ( col2 ) / - 69 - - col1 + - col0 * - 37 - + ( 9 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + - COUNT( * ) * - + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5482
SELECT + - COUNT ( * ) * - + COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT ALL col2 * + col1 * + 87 FROM tab0 AS cor0
----
18270
331209
8613

query I rowsort
SELECT ALL 15 * + - col1 + + col2 AS col1 FROM tab1
----
-114
-16
-637

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT 20 DIV + ( - + col2 ) AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT 20 / + ( - + col2 ) AS col1 FROM tab0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 59 col1 FROM tab1
----
106
64
73

query I rowsort
SELECT ALL + col1 + 4 FROM tab0
----
25
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL + 6 + SUM( ALL + + col1 ) + - 74 AS col1 FROM tab2
----
127

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + 6 + SUM ( ALL + + col1 ) + - 74 AS col1 FROM tab2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL 88 + MIN( DISTINCT + col1 ) FROM tab2
----
139

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL 88 + MIN ( DISTINCT + col1 ) FROM tab2
----
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 + - col0 col0 FROM tab1
----
-36
-70
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5491
SELECT DISTINCT + col2 * CAST( - 52 AS SIGNED ) - + col1 DIV - col0 FROM tab0 AS cor0
----
-2439
-5148
-520

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT + col2 * CAST ( - 52 AS INTEGER ) - + col1 / - col0 FROM tab0 AS cor0
----
-2439
-5148
-520

query II rowsort
SELECT - 46, + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-46
-2
-46
-32
-46
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 NOT IN ( col0 + - 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 AS col1, 39 FROM tab0 AS cor0
----
-10
39
-47
39
-99
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL >= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5495
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL >= NULL )
----
0

query I rowsort
SELECT DISTINCT - col0 * + 65 + + col0 AS col2 FROM tab0 AS cor0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT 50 * SUM( - + col0 ) FROM tab2 AS cor0
----
-9250

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT 50 * SUM ( - + col0 ) FROM tab2 AS cor0
----
-9250

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( + - col2 - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 22 col1, col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-22
59
-22
68
-22
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 50 / - + 16 + 9 * col0 / + 10 AND - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 47 <= - 81
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + 61 * + col0 FROM tab1
----
3111
5185
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - COUNT( * ) FROM tab2 WHERE NOT col1 / col2 / - + col2 + - 76 - 36 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col1 / col2 / - + col2 + - 76 - 36 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL ( + MIN( DISTINCT - 81 ) ) + - 20 * 74 FROM tab1 WHERE NOT ( + col1 * 0 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL ( + MIN ( DISTINCT - 81 ) ) + - 20 * 74 FROM tab1 WHERE NOT ( + col1 * 0 ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL MAX( DISTINCT - col2 ) + - COUNT( col0 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL MAX ( DISTINCT - col2 ) + - COUNT ( col0 ) FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ALL 10 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL 10 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
13

query I rowsort
SELECT col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - - ( - 7 ) + col0 FROM tab1 AS cor0
----
44
78
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT ALL + - COUNT( - CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + - COUNT ( - CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( + col1 * - - col2 * - col1 * col1, col0 + + 10 + col0 )
----

query I rowsort
SELECT + 3 + + 15 AS col1 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT - CAST( + col1 AS SIGNED ) - + 85 FROM tab1 cor0
----
-132
-90
-99

skipif mysql # not compatible
query I rowsort label-5514
SELECT - CAST ( + col1 AS INTEGER ) - + 85 FROM tab1 cor0
----
-132
-90
-99

query I rowsort
SELECT + 36 - + col2 + - 32 FROM tab0 AS cor0
----
-43
-6
-95

query I rowsort
SELECT - - 51 - + col0 AS col0 FROM tab1 AS cor0
----
-34
-40
0

query I rowsort
SELECT - + col1 + + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT + col2 - CAST( - 26 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5518
SELECT + col2 - CAST ( - 26 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT ALL + col0 DIV + + col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + col0 / + + col0 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 20 NOT IN ( col1, + 98 )
----

query I rowsort
SELECT DISTINCT + 46 + - - col0 FROM tab1
----
131
137
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT + 91 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + 91 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT COUNT( DISTINCT - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - ( col2 ) * col2 col1 FROM tab2
----
12167
195112
64000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT CAST( - AVG ( DISTINCT - col1 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 <> col0 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT CAST ( - AVG ( DISTINCT - col1 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 <> col0 + + col0
----
NULL

query I rowsort
SELECT - col2 * + 37 AS col2 FROM tab2
----
-1480
-2146
-851

query III rowsort
SELECT DISTINCT 80, + col2 AS col2, + - ( + col2 ) AS col0 FROM tab0
----
9 values hashing to 8368fb0ddacb23fecd9f644d0f125a22

query II rowsort
SELECT + col1, col1 * + 91 AS col2 FROM tab1
----
14
1274
47
4277
5
455

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + + col2 * + - 55 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5531
SELECT + + col0 DIV + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5531
SELECT + + col0 / + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col1 * col0 * 19 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + 54 ) col0 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT ALL 17 AS col0 FROM tab1 WHERE col0 BETWEEN - + 64 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT COUNT( * ) + - ( - + 80 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-5535
SELECT COUNT ( * ) + - ( - + 80 ) FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8, 37 * 23 col2 FROM tab2, tab1 AS cor0
----
18 values hashing to 2d2cbe0d347dfe4e3fed43e2d1fb0532

query I rowsort
SELECT 65 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * + col2 + + col0 col0 FROM tab0
----
1190
2572
337

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 42 * 76 * - - col2 IS NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE + col0 BETWEEN - col2 AND - 46
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 8 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 25 + 44 AS col0 FROM tab0
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT DISTINCT col2 - + col0 DIV col2 * - + col1 AS col0 FROM tab1 AS cor0
----
115
64
96

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT col2 - + col0 / col2 * - + col1 AS col0 FROM tab1 AS cor0
----
115
64
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 BETWEEN + 54 AND NULL
----

query I rowsort
SELECT col2 * - 59 AS col2 FROM tab0 cor0
----
-2773
-5841
-590

query I rowsort
SELECT - col2 * - - ( - col2 ) FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + 13 * col2 FROM tab0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT col0 = - + col2 * - col1 + col2 + - col1 + 84 * col0 * - + col1
----
3

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT col0 = - + col2 * - col1 + col2 + - col1 + 84 * col0 * - + col1
----
3

query I rowsort
SELECT - col1 * + - col2 AS col0 FROM tab2 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT NULL <> col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT DISTINCT col0 * 8 DIV + 99 col2 FROM tab2
----
3
5
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5551
SELECT DISTINCT col0 * 8 / + 99 col2 FROM tab2
----
3
5
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT DISTINCT col2 DIV 84 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT col2 / 84 AS col1 FROM tab0
----
0
1

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NOT + - 16 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + - ( + 2 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL - + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT + 5 * - COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5556
SELECT + 5 * - COUNT ( * ) FROM tab1 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + 30 IS NULL AND - col1 < col1
----

query I rowsort
SELECT + col1 + + + col0 AS col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT + COUNT( * ) * + MIN( ALL col2 ) * 69 - + COUNT( * ) FROM tab1 AS cor0
----
12210

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + COUNT ( * ) * + MIN ( ALL col2 ) * 69 - + COUNT ( * ) FROM tab1 AS cor0
----
12210

query III rowsort
SELECT * FROM tab0 cor0 WHERE 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT ALL - SUM( ALL - + ( - col1 ) ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5561
SELECT ALL - SUM ( ALL - + ( - col1 ) ) col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - col0 * - col1 + - - 98 FROM tab0
----
1313
1925
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT CAST( 5 AS SIGNED ) - MIN( ALL col0 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5563
SELECT CAST ( 5 AS INTEGER ) - MIN ( ALL col0 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ( + col0 ) * - col0 - - - col1 AS col0 FROM tab1 AS cor0
----
-2615
-7230
-8328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - col2, + 61 col2 FROM tab0 AS cor0
----
-100
61
-128
61
-31
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5566
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - col0 BETWEEN ( + 69 ) AND CAST( - 52 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5566
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - col0 BETWEEN ( + 69 ) AND CAST ( - 52 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT DISTINCT MIN( + ( 51 ) ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5567
SELECT DISTINCT MIN ( + ( 51 ) ) col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE + 53 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT 11 * - col0 AS col1, + col0 FROM tab1 cor0
----
-1001
91
-561
51
-935
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5570
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 / - col2 col2, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5570
SELECT ALL - CAST ( NULL AS REAL ) * col2 / - col2 col2, - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 18 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL + CAST( + + 36 AS SIGNED ) FROM tab1
----
36
36
36

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + CAST ( + + 36 AS INTEGER ) FROM tab1
----
36
36
36

query I rowsort
SELECT ALL col0 * - + 8 AS col0 FROM tab0
----
-120
-696
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + 76 col0 FROM tab0
----
-1596
-6156
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT SUM( ALL - + ( + col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5575
SELECT SUM ( ALL - + ( + col2 ) ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT MAX( + 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-5576
SELECT MAX ( + 71 ) FROM tab1
----
71

query II rowsort
SELECT 30 * col2 * + + col1 AS col1, col1 FROM tab2
----
116580
67
35190
51
92400
77

query I rowsort
SELECT - 16 AS col1 FROM tab0 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT ALL - col0 + + + 15 FROM tab2 WHERE NOT ( ( NOT + - 42 BETWEEN ( - - col2 ) AND + 53 ) )
----

query I rowsort
SELECT ALL + 57 * 63 FROM tab2
----
3591
3591
3591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 63 ) col0 FROM tab2 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + 39 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT 78 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT 78 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5584
SELECT DISTINCT * FROM tab0 WHERE - - col2 NOT BETWEEN col2 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5584
SELECT DISTINCT * FROM tab0 WHERE - - col2 NOT BETWEEN col2 + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT MIN( + + 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-5585
SELECT MIN ( + + 41 ) FROM tab2
----
41

query I rowsort
SELECT col0 * - 98 FROM tab2
----
-4508
-6272
-7350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL + MIN( 24 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + MIN ( 24 ) FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5590
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) * - 7 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5590
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) * - 7 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 84 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5592
SELECT * FROM tab2 WHERE + + col0 + - CAST( + 13 AS SIGNED ) = + + 83
----

skipif mysql # not compatible
query III rowsort label-5592
SELECT * FROM tab2 WHERE + + col0 + - CAST ( + 13 AS INTEGER ) = + + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT DISTINCT COUNT( * ) col1 FROM tab0 WHERE - 16 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5593
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 WHERE - 16 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ( - COUNT( ALL - - col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5594
SELECT ( - COUNT ( ALL - - col1 ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 24 + - col1 * + col2 AS col2 FROM tab1
----
-1368
-319
-3220

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT ALL col1 + - - col1 + + 13 DIV + col1 FROM tab1
----
12
28
94

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL col1 + - - col1 + + 13 / + col1 FROM tab1
----
12
28
94

query II rowsort
SELECT - 73 + + 20 + - 43, - col0 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-96
-15
-96
-87
-96
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL - - MIN( + 93 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - - MIN ( + 93 ) FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT col2 + CAST( - col1 AS SIGNED ) FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-5599
SELECT col2 + CAST ( - col1 AS INTEGER ) FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5600
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col1 + - col1 + + + col1 + + + col2 * - col1 + + CAST( + - col2 AS DECIMAL ) * - 83
----

skipif mysql # not compatible
query III rowsort label-5600
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col1 + - col1 + + + col1 + + + col2 * - col1 + + CAST ( + - col2 AS REAL ) * - 83
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, col2 + + - col2 + - col0 * - - col1 col1 FROM tab1 cor0
----
-59
-425
-68
-4277
-96
-714

query I rowsort
SELECT ALL + 14 * 24 + + + col2 AS col2 FROM tab2 cor0
----
359
376
394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5603
SELECT + + 0, - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-5603
SELECT + + 0, - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + + 86 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 67, ( col2 ) col1 FROM tab0 AS cor0
----
67
10
67
47
67
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 67
----

query II rowsort
SELECT col2, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 41 NOT IN ( - - col2 + 6 * + col2, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT CAST( + MIN( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT CAST ( + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN + 83 / col1 * - col2 AND + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT COUNT( * ) * ( - 32 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-5611
SELECT COUNT ( * ) * ( - 32 ) FROM tab2
----
-96

query I rowsort
SELECT DISTINCT col2 * + ( - + col1 ) AS col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <> - + ( + - 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + MIN( + ( - col1 ) ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5614
SELECT + MIN ( + ( - col1 ) ) AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT 3 * + MIN( - + col2 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5615
SELECT 3 * + MIN ( - + col2 ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT MAX( DISTINCT 60 ) + + COUNT( * ) AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT MAX ( DISTINCT 60 ) + + COUNT ( * ) AS col0 FROM tab0
----
63

query I rowsort
SELECT 95 * - - col0 * - 19 * - 64 FROM tab2
----
5313920
7393280
8664000

query I rowsort
SELECT ( + ( - + col2 ) ) * - col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT - col0 * - col0 * + ( - col0 ) FROM tab0 AS cor0
----
-3375
-658503
-912673

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT + - 3 * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + - 3 * + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5621
SELECT - COUNT( * ) DIV - 98 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT - COUNT ( * ) / - 98 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL 75 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL 75 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 <= - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 36, - col2 col0 FROM tab0 AS cor0
----
36
-10
36
-47
36
-99

query I rowsort
SELECT DISTINCT col2 + - 80 AS col2 FROM tab2
----
-22
-40
-57

query I rowsort
SELECT ALL + 90 * + col0 FROM tab2
----
4140
5760
6750

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE + col1 + col2 IN ( col2 )
----

query I rowsort
SELECT 63 * + col2 + col2 FROM tab2
----
1472
2560
3712

query II rowsort
SELECT DISTINCT 60 + - 71 AS col0, + col1 * - - col2 FROM tab0
----
-11
210
-11
3807
-11
99

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - + 36 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT ALL - col0 - col1 + - 93 DIV + col0 AS col1 FROM tab2
----
-142
-143
-99

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - col0 - col1 + - 93 / + col0 AS col1 FROM tab2
----
-142
-143
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + 8 + + SUM( ALL + col2 ) AS col1 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-5634
SELECT + 8 + + SUM ( ALL + col2 ) AS col1 FROM tab2
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - - 79 col0, 76 * + 12 AS col0 FROM tab1
----
138
912
147
912
175
912

query I rowsort
SELECT ALL 61 - + 49 AS col1 FROM tab1
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5637
SELECT 49 + + - 83 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-34
NULL
-34
NULL
-34
NULL

skipif mysql # not compatible
query II rowsort label-5637
SELECT 49 + + - 83 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-34
NULL
-34
NULL
-34
NULL

query I rowsort
SELECT - - ( + 54 ) + + + col1 FROM tab0 AS cor0
----
135
55
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5639
SELECT + col0 * + col2 + + + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
690
783
9506

skipif mysql # not compatible
query I rowsort label-5639
SELECT + col0 * + col2 + + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
690
783
9506

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT DISTINCT - 11 DIV + col1 FROM tab0
----
-11
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT - 11 / + col1 FROM tab0
----
-11
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT 87 DIV col0 col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5642
SELECT 87 / col0 col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT COUNT( col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT COUNT ( col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - COUNT( DISTINCT - 19 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5644
SELECT - COUNT ( DISTINCT - 19 ) AS col0 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL - col1 AS col2, + 59 FROM tab2 AS cor0
----
-51
59
-67
59
-77
59

query I rowsort
SELECT DISTINCT - - ( + 25 ) AS col1 FROM tab1 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT DISTINCT + COUNT( * ) * + MIN( - 28 ) FROM tab0 AS cor0 WHERE + col2 * - + col1 IS NOT NULL
----
-84

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT + COUNT ( * ) * + MIN ( - 28 ) FROM tab0 AS cor0 WHERE + col2 * - + col1 IS NOT NULL
----
-84

query I rowsort
SELECT ALL - ( - + 10 ) AS col2 FROM tab0 cor0
----
10
10
10

query I rowsort
SELECT DISTINCT - - 31 AS col1 FROM tab2 AS cor0
----
31

query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 FROM tab1
----
14
14
47
47
5
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 60 * + 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - 30 FROM tab1
----
-1410
-150
-420

query I rowsort
SELECT ALL - 30 * + col2 * - - col2 AS col0 FROM tab0
----
-294030
-3000
-66270

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab2 WHERE NOT + 74 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 86 AS col0, - col0 AS col1 FROM tab2
----
86
-46
86
-64
86
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT + CAST( - 28 AS SIGNED ) AS col2 FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-5656
SELECT + CAST ( - 28 AS INTEGER ) AS col2 FROM tab0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT + COUNT( * ) * + ( 33 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
297

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + COUNT ( * ) * + ( 33 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
297

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE + col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT ALL - 87 + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-78

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL - 87 + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT - + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5660
SELECT - + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT ALL 0 + - ( + col1 ) * - col2 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5662
SELECT + 61 DIV - col0 + + + col0 + - col1 * + col2, + 21 * + col2 AS col0 FROM tab2
----
-1128
483
-3016
840
-3811
1218

skipif mysql # not compatible
query II rowsort label-5662
SELECT + 61 / - col0 + + + col0 + - col1 * + col2, + 21 * + col2 AS col0 FROM tab2
----
-1128
483
-3016
840
-3811
1218

query I rowsort
SELECT DISTINCT 85 + + col0 - - col2 * + col2 FROM tab2
----
1749
3524
660

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL + 70 * + - 36 + - MIN( ALL + 21 ) + MIN( ALL - col2 ) FROM tab2 AS cor0
----
-2599

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL + 70 * + - 36 + - MIN ( ALL + 21 ) + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
-2599

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL + + MAX( ALL + + col0 ) * + 16 FROM tab1 AS cor0
----
1456

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL + + MAX ( ALL + + col0 ) * + 16 FROM tab1 AS cor0
----
1456

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT DISTINCT + 24 DIV - - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT + 24 / - - col0 FROM tab1
----
0

query II rowsort
SELECT - 19, + col1 FROM tab1
----
-19
14
-19
47
-19
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT + 18 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT + 18 / + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT - COUNT( * ) + COUNT( DISTINCT + - 79 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT + - 79 ) FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 11 col1 FROM tab2
----
34
51
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 14 col2 FROM tab1
----
1190
1274
714

query I rowsort
SELECT ALL col1 + + ( + col1 ) * - col0 AS col2 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT ALL + 28 + - col0 AS col2 FROM tab1
----
-23
-57
-63

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 54 * - 61 - + col1 AS col0 FROM tab1 AS cor0
----
3247
3280
3289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2, + 73 col1 FROM tab0 AS cor0
----
-10
73
-47
73
-99
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT MIN( ALL - 67 ) AS col1 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5677
SELECT MIN ( ALL - 67 ) AS col1 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT ALL + 53 * - 84 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-4452
-4452
-4452

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 + - + col1 * - col1 - + + 76 AS col2 FROM tab1 cor0 WHERE NOT ( - 40 * + - col1 ) >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 96 col0 FROM tab0 AS cor0
----
-2016
-7776
-96

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col0 FROM tab2 AS cor0 WHERE - col0 + + + col1 * - - col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - ( + - ( + col0 ) ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL COUNT( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5685
SELECT ALL COUNT ( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - - MIN( - - 3 ) AS col2 FROM tab2 WHERE NOT + col2 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT - - MIN ( - - 3 ) AS col2 FROM tab2 WHERE NOT + col2 * col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 89 + - ( col0 ) FROM tab1
----
-2
38
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT + + 8 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col0 * + CAST( NULL AS SIGNED ) <> + 77
----

skipif mysql # not compatible
query I rowsort label-5688
SELECT + + 8 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col0 * + CAST ( NULL AS INTEGER ) <> + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + + COUNT( ALL col0 ) + - COUNT( * ) + + 65 AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5689
SELECT + + COUNT ( ALL col0 ) + - COUNT ( * ) + + 65 AS col1 FROM tab1 AS cor0
----
65

query I rowsort
SELECT - + 36 + - + col2 AS col2 FROM tab1 cor0
----
-104
-132
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT + 55 + COUNT( * ) FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-5691
SELECT + 55 + COUNT ( * ) FROM tab0 cor0
----
58

query I rowsort
SELECT col0 + - + col1 * 3 * + col1 AS col2 FROM tab0 AS cor0
----
-1236
-19668
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL - 12 + + SUM( DISTINCT - + col2 ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL - 12 + + SUM ( DISTINCT - + col2 ) FROM tab0
----
-168

query I rowsort
SELECT 5 AS col0 FROM tab0 cor0
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5695
SELECT - 9 AS col0, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
-9
NULL
-9
NULL
-9
NULL

skipif mysql # not compatible
query II rowsort label-5695
SELECT - 9 AS col0, CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
-9
NULL
-9
NULL
-9
NULL

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5698
SELECT DISTINCT - col2 * + 52 * + CAST( NULL AS DECIMAL ) - + 77 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT - col2 * + 52 * + CAST ( NULL AS REAL ) - + 77 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT DISTINCT + + col0 * col0 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5699
SELECT DISTINCT + + col0 * col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + MAX( + col1 ) - + COUNT( * ) + - + 97 + + 67 AS col2 FROM tab2 cor0
----
44

skipif mysql # not compatible
query I rowsort label-5700
SELECT + MAX ( + col1 ) - + COUNT ( * ) + - + 97 + + 67 AS col2 FROM tab2 cor0
----
44

query III rowsort
SELECT * FROM tab0 WHERE 85 IS NULL
----

query I rowsort
SELECT ( + col0 ) + - col2 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab2 WHERE + 80 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT + 34 + - 77 * - - COUNT( * ) FROM tab0
----
-197

skipif mysql # not compatible
query I rowsort label-5704
SELECT + 34 + - 77 * - - COUNT ( * ) FROM tab0
----
-197

query I rowsort
SELECT 82 * - + 6 AS col0 FROM tab1
----
-492
-492
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL + 51 * - COUNT( * ) FROM tab1 WHERE NOT NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + 51 * - COUNT ( * ) FROM tab1 WHERE NOT NULL <= col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 33 col2 FROM tab0
----
1551
3267
330

query I rowsort
SELECT ALL col1 * 38 FROM tab2 AS cor0
----
1938
2546
2926

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ALL - SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE + col2 + - 59 * - col0 + + col2 NOT BETWEEN + col1 AND NULL
----

query II rowsort
SELECT col0 + 82, + col0 FROM tab0
----
169
87
179
97
97
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 * col0 + col1 col0 FROM tab2
----
-4457
-6195
-7283

query I rowsort
SELECT ALL AVG ( DISTINCT - col1 ) FROM tab0 WHERE - + col0 >= - - 11 / - col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT + col0 DIV + ( col1 ) AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + col0 / + ( col1 ) AS col1 FROM tab2
----
0
1

query I rowsort
SELECT ALL - 79 + 76 * - col0 AS col2 FROM tab2
----
-3575
-4943
-5779

query II rowsort
SELECT ( - col2 ) AS col0, col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT MAX( + - col0 ), COUNT( * ) AS col0 FROM tab1
----
-51
3

skipif mysql # not compatible
query II rowsort label-5718
SELECT MAX ( + - col0 ), COUNT ( * ) AS col0 FROM tab1
----
-51
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 44 - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT + CAST( 12 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-5720
SELECT + CAST ( 12 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT + + ( - col0 ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 95 / - col0 AND 93 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT - - 76 + CAST( - ( ( + + 67 ) ) AS SIGNED ) * CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT - - 76 + CAST ( - ( ( + + 67 ) ) AS INTEGER ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT ALL - ( 86 ) / ( AVG ( ALL + 67 ) ) AS col1, + MIN( col0 ) * - 87 FROM tab2 WHERE NULL = - col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5724
SELECT ALL - ( 86 ) / ( AVG ( ALL + 67 ) ) AS col1, + MIN ( col0 ) * - 87 FROM tab2 WHERE NULL = - col1
----
NULL
NULL

query I rowsort
SELECT ALL - 56 + - col2 FROM tab2
----
-114
-79
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT 54 * + - 2 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-5726
SELECT 54 * + - 2 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

query I rowsort
SELECT + col0 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
2139
4136
5683

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 13 IS NULL
----

query II rowsort
SELECT 41 AS col2, col0 FROM tab0 cor0
----
41
15
41
87
41
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5730
SELECT + 71 - + + CAST( NULL AS DECIMAL ) + - + 3 - + + 27 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT + 71 - + + CAST ( NULL AS REAL ) + - + 3 - + + 27 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT 54 - - + COUNT( * ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-5731
SELECT 54 - - + COUNT ( * ) FROM tab1
----
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 33 NOT IN ( + + ( + + col0 ), 39 + ( - 1 ), - ( + col2 ) * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col1 FROM tab1 AS cor0 WHERE ( NULL ) = - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5734
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 95 AS col0 FROM tab0 cor0 WHERE - 50 IS NOT NULL
----
-95
-95
-95

query I rowsort
SELECT ALL + 24 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT DISTINCT - + CAST( 73 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT - + CAST ( 73 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT - - ( + 48 ) DIV - col0 + - 87 FROM tab2 AS cor0
----
-87
-87
-88

skipif mysql # not compatible
query I rowsort label-5739
SELECT - - ( + 48 ) / - col0 + - 87 FROM tab2 AS cor0
----
-87
-87
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT + MAX( DISTINCT + - col2 ), - COUNT( * ) * - 2 AS col1 FROM tab0 cor0
----
-10
6

skipif mysql # not compatible
query II rowsort label-5740
SELECT + MAX ( DISTINCT + - col2 ), - COUNT ( * ) * - 2 AS col1 FROM tab0 cor0
----
-10
6

query I rowsort
SELECT ALL col2 * + 47 FROM tab1
----
2773
3196
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 WHERE NULL > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5743
SELECT DISTINCT + 9 DIV + + col1 + + col0 AS col0 FROM tab1
----
51
86
91

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT + 9 / + + col1 + + col0 AS col0 FROM tab1
----
51
86
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - 14 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL - COUNT( * ) + 25 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - COUNT ( * ) + 25 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5746
SELECT DISTINCT * FROM tab2 WHERE - col2 + col1 + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5746
SELECT DISTINCT * FROM tab2 WHERE - col2 + col1 + CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col0 / 67 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + - ( + col0 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT 88 + + col2 * - - col1 AS col2 FROM tab0 cor0
----
187
298
3895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * - col1 col2 FROM tab2 AS cor0
----
3927
5159
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT + 2 + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----
2

skipif mysql # not compatible
query I rowsort label-5751
SELECT + 2 + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 * 60 + - - 16 * - col2 + + 50 NOT BETWEEN col0 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - - 99 FROM tab1 AS cor0
----
52
85
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT ALL - ( - col0 ) DIV + ( + - 24 ) - 83 * - - col2 FROM tab0 AS cor0
----
-3901
-8221
-833

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL - ( - col0 ) / + ( + - 24 ) - 83 * - - col2 FROM tab0 AS cor0
----
-3901
-8221
-833

query I rowsort
SELECT ALL ( 78 ) AS col1 FROM tab1
----
78
78
78

query II rowsort
SELECT DISTINCT 23, col1 FROM tab1
----
23
14
23
47
23
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT ( ( - COUNT( * ) ) ) DIV + - 8 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5757
SELECT ( ( - COUNT ( * ) ) ) / + - 8 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT - COUNT( * ) col1, COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5758
SELECT - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1
----
-3
3

query I rowsort
SELECT DISTINCT 74 * + col2 FROM tab2
----
1702
2960
4292

query III rowsort
SELECT * FROM tab0 WHERE NOT - 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT - MIN( ALL + - ( - 91 ) ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-5761
SELECT - MIN ( ALL + - ( - 91 ) ) FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT - - MIN( 86 ) FROM tab2 cor0
----
86

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT - - MIN ( 86 ) FROM tab2 cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL - - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT + + CAST( 67 AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif mysql # not compatible
query I rowsort label-5765
SELECT + + CAST ( 67 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, 21 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT MIN( col2 ) * COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-5767
SELECT MIN ( col2 ) * COUNT ( * ) FROM tab1
----
177

query II rowsort
SELECT ALL + ( col0 ) AS col1, 14 FROM tab1
----
51
14
85
14
91
14

query I rowsort
SELECT - - 83 * col0 + 19 AS col1 FROM tab2 AS cor0
----
3837
5331
6244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 87 + COUNT( * ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5770
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 87 + COUNT ( * ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 32 + + + 70 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - ( col1 ) FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5774
SELECT DISTINCT + - SUM( ALL col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT + - SUM ( ALL col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL + MIN( + col0 ) * - 86 col1 FROM tab0
----
-1290

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5775
SELECT ALL + MIN ( + col0 ) * - 86 col1 FROM tab0
----
-1290

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5776
SELECT AVG ( ALL ( + - CAST( NULL AS DECIMAL ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT AVG ( ALL ( + - CAST ( NULL AS REAL ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT + ( - - 52 ) AS col0 FROM tab1
----
52
52
52

query I rowsort
SELECT DISTINCT - col2 * + 22 FROM tab2
----
-1276
-506
-880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5779
SELECT ALL CAST( NULL AS DECIMAL ) + + 48 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL CAST ( NULL AS REAL ) + + 48 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - AVG ( ( ( - 55 ) ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 * - 45 col0 FROM tab1 AS cor0
----
4455
4455
4455

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT IN ( - 35, + col0 + + 87, 83 ) OR NOT + 55 >= - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 73 + + col1 AS col1 FROM tab2 AS cor0
----
-22
-6
4

query I rowsort
SELECT - col2 + col0 - col1 AS col0 FROM tab0 AS cor0
----
-113
-3
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT ALL - 80 + - CAST( + + 23 AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4075dadda88ee5f6a84abede0a0e9aa0

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL - 80 + - CAST ( + + 23 AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4075dadda88ee5f6a84abede0a0e9aa0

query I rowsort
SELECT ALL + + 10 * col0 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-2286
-834
555

query I rowsort
SELECT DISTINCT col1 + col0 + + 74 + col0 * - + col1 FROM tab0 AS cor0
----
-1045
-1645
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col2 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT - - MAX( - 65 ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5789
SELECT - - MAX ( - 65 ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT + col2 * + 63 AS col1 FROM tab1 AS cor0
----
3717
4284
6048

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < + + 14 / ( + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT + + MAX( + col0 ) * MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT + + MAX ( + col0 ) * MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT DISTINCT - COUNT( ALL + 57 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT - COUNT ( ALL + 57 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + 38 AS col0, 59 FROM tab2 AS cor0
----
38
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col0 col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT 51 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-5796
SELECT 51 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT + + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5797
SELECT + + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL ( + COUNT( + - col2 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL ( + COUNT ( + - col2 ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT COUNT( * ) FROM tab0 WHERE NOT 21 * - ( + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT COUNT ( * ) FROM tab0 WHERE NOT 21 * - ( + col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT + 31 * - COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-5800
SELECT + 31 * - COUNT ( * ) FROM tab0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT + ( - MIN( ALL col0 ) ) DIV - 56 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5801
SELECT + ( - MIN ( ALL col0 ) ) / - 56 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 45 + + col0 AS col1 FROM tab0 AS cor0
----
132
142
60

query I rowsort
SELECT - + ( + 56 ) FROM tab2 WHERE + col0 > + col0 * + + col1
----

query I rowsort
SELECT DISTINCT 26 * col0 AS col2 FROM tab2 AS cor0
----
1196
1664
1950

query I rowsort
SELECT - ( + col0 ) * - col0 * 98 FROM tab2 AS cor0
----
207368
401408
551250

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5806
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - - col1 + - col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-5806
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - - col1 + - col1 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 91 * col1 > NULL
----

query I rowsort
SELECT + col1 * - 41 FROM tab2 AS cor0
----
-2091
-2747
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - SUM( ALL col1 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-5809
SELECT - SUM ( ALL col1 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-195

query I rowsort
SELECT - ( - + ( - col1 ) ) + - 98 FROM tab2
----
-149
-165
-175

query I rowsort
SELECT col1 * + col2 + - + col0 FROM tab2
----
1127
3016
3811

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT ALL - col1 DIV - col0 + - col2 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - col1 / - col0 + - col2 FROM tab2
----
-22
-39
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT - + CAST( + ( col1 ) AS SIGNED ) + + 74 * + - col1 AS col1 FROM tab0 AS cor0
----
-1575
-6075
-75

skipif mysql # not compatible
query I rowsort label-5814
SELECT - + CAST ( + ( col1 ) AS INTEGER ) + + 74 * + - col1 AS col1 FROM tab0 AS cor0
----
-1575
-6075
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT DISTINCT - col1 / + - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - col1 / + - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT + ( - col0 ) DIV - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5816
SELECT + ( - col0 ) / - col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col2 * - 22 FROM tab0 AS cor0
----
1034
2178
220

query I rowsort
SELECT 0 * col2 - + 22 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT SUM( DISTINCT 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5820
SELECT SUM ( DISTINCT 94 ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT + - ( - - 27 ) FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT - col0 DIV + 61 + - 20 AS col2 FROM tab2 cor0
----
-20
-21
-21

skipif mysql # not compatible
query I rowsort label-5822
SELECT - col0 / + 61 + - 20 AS col2 FROM tab2 cor0
----
-20
-21
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT ALL ( - + col2 ) DIV 23 DIV + - 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL ( - + col2 ) / 23 / + - 61 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col2 / + col2 AS col0, - 18 AS col2 FROM tab2 AS cor0 WHERE NOT 66 + + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 36 FROM tab1 AS cor0 WHERE NULL <= - col1 + 76
----

query II rowsort
SELECT col1, col0 * - col1 * - - col2 AS col0 FROM tab0
----
1
-9603
21
-18270
81
-57105

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT MIN( + 40 ) * - 27 col0 FROM tab0
----
-1080

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5827
SELECT MIN ( + 40 ) * - 27 col0 FROM tab0
----
-1080

query II rowsort
SELECT col2 * + col2 * + - col2 AS col0, + 32 AS col2 FROM tab1
----
-205379
32
-314432
32
-884736
32

query I rowsort
SELECT + col0 * - 19 FROM tab0
----
-1653
-1843
-285

query I rowsort
SELECT DISTINCT + col2 * - col0 * + col2 AS col0 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT - ( 77 ) * - col0 - + 80 FROM tab0
----
1075
6619
7389

query II rowsort
SELECT 56, col2 AS col1 FROM tab0
----
56
10
56
47
56
99

query I rowsort
SELECT ( - col2 ) AS col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1 - - - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT - MAX( + - 75 ) AS col1 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - MAX ( + - 75 ) AS col1 FROM tab0 cor0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT ALL + + COUNT( * ) DIV - 14 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + + COUNT ( * ) / - 14 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT - + 93, - COUNT( 13 ) AS col1 FROM tab1 AS cor0
----
-93
-3

skipif mysql # not compatible
query II rowsort label-5836
SELECT - + 93, - COUNT ( 13 ) AS col1 FROM tab1 AS cor0
----
-93
-3

query I rowsort
SELECT - 29 + + col1 FROM tab2
----
22
38
48

query I rowsort
SELECT 91 * col2 - ( + col1 ) * - col1 FROM tab0
----
10838
1351
9010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5839
SELECT - 29 * + col2 - 91 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT - 29 * + col2 - 91 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - - 7 FROM tab2
----
53
71
82

query I rowsort
SELECT + col1 + + 23 * - col2 AS col2 FROM tab2 WHERE + col1 * - col1 IS NOT NULL
----
-1267
-478
-843

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT 14 + 17 * + COUNT( * ) AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-5842
SELECT 14 + 17 * + COUNT ( * ) AS col2 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT 98 - 84 * COUNT( * ) AS col0 FROM tab1
----
-154

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT 98 - 84 * COUNT ( * ) AS col0 FROM tab1
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5844
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT - 48 + - SUM( col2 ) AS col1 FROM tab2 WHERE col1 NOT IN ( + col1 * - col1 + + ( col0 ) )
----
-169

skipif mysql # not compatible
query I rowsort label-5845
SELECT - 48 + - SUM ( col2 ) AS col1 FROM tab2 WHERE col1 NOT IN ( + col1 * - col1 + + ( col0 ) )
----
-169

query I rowsort
SELECT 16 * 69 FROM tab0 WHERE col2 IS NOT NULL
----
1104
1104
1104

query I rowsort
SELECT 75 * - col2 AS col1 FROM tab0
----
-3525
-7425
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + 47 * - MAX( DISTINCT 46 ) + - 39 FROM tab2
----
-2201

skipif mysql # not compatible
query I rowsort label-5848
SELECT + 47 * - MAX ( DISTINCT 46 ) + - 39 FROM tab2
----
-2201

query I rowsort
SELECT ALL 39 * + col1 + col0 FROM tab1
----
1924
280
597

query I rowsort
SELECT + col1 - 18 AS col2 FROM tab1
----
-13
-4
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL COUNT( * ) * + 36 AS col2 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL COUNT ( * ) * + 36 AS col2 FROM tab2
----
108

query I rowsort
SELECT ALL + ( + 86 ) * col1 FROM tab2
----
4386
5762
6622

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - col2 ) * col0 BETWEEN + 34 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * 22 AS col2 FROM tab1
----
-1034
-110
-308

query I rowsort
SELECT ALL col1 * 37 FROM tab1
----
1739
185
518

query I rowsort
SELECT DISTINCT - 96 * ( + 24 * + col1 ) FROM tab0
----
-186624
-2304
-48384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( col0 ) col2 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT 22 DIV col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5859
SELECT 22 / col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT SUM( ALL 4 ) - - SUM( ALL 71 ) AS col0 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-5860
SELECT SUM ( ALL 4 ) - - SUM ( ALL 71 ) AS col0 FROM tab0
----
225

query I rowsort
SELECT col0 + 47 FROM tab1 cor0 WHERE + col1 NOT IN ( 42 )
----
132
138
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5862
SELECT * FROM tab2 AS cor0 WHERE 61 * - CAST( NULL AS SIGNED ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-5862
SELECT * FROM tab2 AS cor0 WHERE 61 * - CAST ( NULL AS INTEGER ) NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab2 cor0 WHERE NOT + col1 * + col2 + 48 IS NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT DISTINCT - MIN( ALL 46 ) AS col1 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - MIN ( ALL 46 ) AS col1 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT + 34 + col1 * - col1 FROM tab0 AS cor0
----
-407
-6527
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 10 ) * col0 + 85 AS col1 FROM tab2
----
545
725
835

query I rowsort
SELECT ALL col0 * + 4 FROM tab1
----
204
340
364

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT IN ( - col2 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * 14 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT ALL 55 DIV ( 71 + + 13 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL 55 / ( 71 + + 13 ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5872
SELECT - SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 56 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 88 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT - MIN( + + ( + 15 ) ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT - MIN ( + + ( + 15 ) ) FROM tab1
----
-15

query I rowsort
SELECT ALL col2 * - - ( - 60 ) AS col0 FROM tab0
----
-2820
-5940
-600

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 46 )
----

query I rowsort
SELECT 21 FROM tab1 WHERE NOT NULL < ( + 92 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 43 > - col0 * 68
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 48 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT COUNT( * ) - + 1 AS col0 FROM tab0 WHERE NOT ( col1 ) <> NULL
----
-1

skipif mysql # not compatible
query I rowsort label-5882
SELECT COUNT ( * ) - + 1 AS col0 FROM tab0 WHERE NOT ( col1 ) <> NULL
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT - SUM( ALL + col0 ) FROM tab2 WHERE NOT ( ( 46 ) ) IN ( - col1 )
----
-185

skipif mysql # not compatible
query I rowsort label-5883
SELECT - SUM ( ALL + col0 ) FROM tab2 WHERE NOT ( ( 46 ) ) IN ( - col1 )
----
-185

query III rowsort
SELECT * FROM tab0 WHERE NOT - 63 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT ( - 62 ) * CAST( + col1 * - 72 AS SIGNED ) + + 7 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
209815
22327
62503

skipif mysql # not compatible
query I rowsort label-5885
SELECT ( - 62 ) * CAST ( + col1 * - 72 AS INTEGER ) + + 7 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
209815
22327
62503

query I rowsort
SELECT ALL - col2 + + + col2 * - col2 AS col2 FROM tab1
----
-3540
-4692
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5887
SELECT ALL + ( + - CAST( col2 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL + ( + - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT - + MAX( - - col2 ) + + 73 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5888
SELECT - + MAX ( - - col2 ) + + 73 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT + - 27 + - 72 FROM tab2 cor0
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT 58 DIV col1 + + 54 * col2 AS col0 FROM tab2 AS cor0
----
1243
2160
3132

skipif mysql # not compatible
query I rowsort label-5890
SELECT 58 / col1 + + 54 * col2 AS col0 FROM tab2 AS cor0
----
1243
2160
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT COUNT( * ) + + 84 AS col2 FROM tab2 WHERE - col0 + + col1 * - col2 IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT COUNT ( * ) + + 84 AS col2 FROM tab2 WHERE - col0 + + col1 * - col2 IS NULL
----
84

query I rowsort
SELECT ALL - - 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL 65 + + col2 FROM tab0
----
112
164
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL + COUNT( col0 ) AS col0 FROM tab2 WHERE ( + col0 ) = ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL + COUNT ( col0 ) AS col0 FROM tab2 WHERE ( + col0 ) = ( + col0 )
----
3

query I rowsort
SELECT - + 38 AS col0 FROM tab1 cor0
----
-38
-38
-38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 - - - col0 + col0 + - col0 * - ( ( + col0 ) ) * - 94 FROM tab0 AS cor0
----
-21197
-711496
-884545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL + + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT - + 2 DIV - + col1 - - col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5899
SELECT - + 2 / - + col1 - - col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) NOT BETWEEN + ( + col0 ) AND 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col1 col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL - MAX( DISTINCT 43 ) FROM tab2 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - MAX ( DISTINCT 43 ) FROM tab2 cor0
----
-43

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE + col0 < ( - 66 / - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 88 ) / + col0 col0 FROM tab0 AS cor0 WHERE NULL = ( ( - 89 ) + col0 * 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT - col0 AS col1 FROM tab0 WHERE ( + col2 ) <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5905
SELECT - col0 AS col1 FROM tab0 WHERE ( + col2 ) <> CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + + 31 + - col2 col0 FROM tab1
----
-22
-31
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5907
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + CAST( col0 AS SIGNED ) AND col1 + - 84
----

skipif mysql # not compatible
query III rowsort label-5907
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + CAST ( col0 AS INTEGER ) AND col1 + - 84
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT + col1 DIV col1 + - + 50 * ( - 88 ) AS col1 FROM tab1
----
4401
4401
4401

skipif mysql # not compatible
query I rowsort label-5908
SELECT + col1 / col1 + - + 50 * ( - 88 ) AS col1 FROM tab1
----
4401
4401
4401

query II rowsort
SELECT - 98 + - + 28 AS col1, col0 FROM tab0
----
-126
15
-126
87
-126
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - MAX( + col1 ) * ( + COUNT( * ) * COUNT( - col0 / col2 ) ) - 82 FROM tab2 WHERE + 25 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT - MAX ( + col1 ) * ( + COUNT ( * ) * COUNT ( - col0 / col2 ) ) - 82 FROM tab2 WHERE + 25 IS NULL
----
NULL

query I rowsort
SELECT - + 12 * col1 / - col2 FROM tab2 AS cor0 WHERE 43 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5913
SELECT - + col0 * - - 80 + - + 5 - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT - + col0 * - - 80 + - + 5 - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * col1 * - col1 FROM tab0 AS cor0 WHERE 76 IS NOT NULL
----
38367
97
98415

query I rowsort
SELECT ALL 97 * col0 FROM tab1
----
4947
8245
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + 37 * - COUNT( * ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-5916
SELECT + 37 * - COUNT ( * ) FROM tab0
----
-111

query I rowsort
SELECT + col0 * + 41 FROM tab0
----
3567
3977
615

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT COUNT( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5919
SELECT DISTINCT COUNT ( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT 40 AS col0, col2 * + - 71 FROM tab2 cor0
----
40
-1633
40
-2840
40
-4118

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 76 + + col0 * - + 55 * + 94 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = - 31
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) <> ( - 33 / + + 89 )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL <= 1 + - + col1
----

query I rowsort
SELECT DISTINCT col2 * 55 AS col1 FROM tab2
----
1265
2200
3190

query II rowsort
SELECT - col0 AS col1, 36 * + - 42 + + - 30 + - + col0 - - col1 * - col1 FROM tab1
----
-51
-1789
-85
-1652
-91
-3842

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5927
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + ( + + col0 ) + + col0 * 53 AND ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-5927
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + ( + + col0 ) + + col0 * 53 AND ( + col1 )
----

query I rowsort
SELECT DISTINCT - col1 + - 58 + 46 AS col0 FROM tab1
----
-17
-26
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5929
SELECT ALL CAST( col0 AS SIGNED ) * + + 30 * + - 81 - col1 FROM tab1
----
-123944
-206555
-221177

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL CAST ( col0 AS INTEGER ) * + + 30 * + - 81 - col1 FROM tab1
----
-123944
-206555
-221177

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT ALL col1 DIV + 91 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL col1 / + 91 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + COUNT( * ) * + + ( + 55 ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-5931
SELECT + COUNT ( * ) * + + ( + 55 ) FROM tab1
----
165

query I rowsort
SELECT DISTINCT 89 * + - col2 FROM tab1
----
-5251
-6052
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ( - COUNT( - - ( 18 ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5933
SELECT ( - COUNT ( - - ( 18 ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + 69 * + COUNT( ALL + - col0 ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-5934
SELECT + 69 * + COUNT ( ALL + - col0 ) FROM tab2
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, + col0 * - col0 col1 FROM tab0
----
15
-225
87
-7569
97
-9409

query I rowsort
SELECT DISTINCT + col2 + col0 + - + col1 AS col1 FROM tab2 AS cor0
----
18
27
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * + col2 + + 28 col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5938
SELECT DISTINCT col0 * + col1, - col1 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1215
NULL
1827
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5938
SELECT DISTINCT col0 * + col1, - col1 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1215
NULL
1827
NULL
97
NULL

query I rowsort
SELECT ( - + col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT 4 + - + 36 + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 96 / - 22 IS NULL
----
-41

skipif mysql # not compatible
query I rowsort label-5940
SELECT 4 + - + 36 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 96 / - 22 IS NULL
----
-41

query I rowsort
SELECT - + col1 + + col0 FROM tab1 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT - + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - col1 - col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT DISTINCT - MAX( + col2 ) * - - 91 FROM tab0 cor0
----
-9009

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT - MAX ( + col2 ) * - - 91 FROM tab0 cor0
----
-9009

query I rowsort
SELECT DISTINCT + + col0 * - ( + 31 ) FROM tab0 AS cor0
----
-2697
-3007
-465

query I rowsort
SELECT + 30 * + col2 * 47 FROM tab2 AS cor0
----
32430
56400
81780

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5947
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / col2 / - + col0 + + col1 BETWEEN - col2 - + 30 AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5947
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 / col2 / - + col0 + + col1 BETWEEN - col2 - + 30 AND ( + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT ALL 47 / 16 + 28 * - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL 47 / 16 + 28 * - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT - CAST( NULL AS SIGNED ) * - 44 * - 31 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT - CAST ( NULL AS INTEGER ) * - 44 * - 31 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT DISTINCT - SUM( ALL + 74 ) AS col1 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT - SUM ( ALL + 74 ) AS col1 FROM tab1
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5952
SELECT DISTINCT * FROM tab2 WHERE - col2 <> ( + col1 * - CAST( NULL AS SIGNED ) / col1 + col0 + - col1 - - 75 )
----

skipif mysql # not compatible
query III rowsort label-5952
SELECT DISTINCT * FROM tab2 WHERE - col2 <> ( + col1 * - CAST ( NULL AS INTEGER ) / col1 + col0 + - col1 - - 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT + 82 DIV - - ( + - col2 ) + col0 * col1 + - 34 * + 11 FROM tab1 WHERE + col0 * + 27 * + col0 IS NOT NULL
----
340
3902
50

skipif mysql # not compatible
query I rowsort label-5953
SELECT + 82 / - - ( + - col2 ) + col0 * col1 + - 34 * + 11 FROM tab1 WHERE + col0 * + 27 * + col0 IS NOT NULL
----
340
3902
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5954
SELECT DISTINCT 10 AS col1, - 54 * + COUNT( * ) FROM tab0
----
10
-162

skipif mysql # not compatible
query II rowsort label-5954
SELECT DISTINCT 10 AS col1, - 54 * + COUNT ( * ) FROM tab0
----
10
-162

query II rowsort
SELECT DISTINCT 43 AS col0, 24 FROM tab2 AS cor0 WHERE NULL NOT IN ( 15 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5956
SELECT ALL COUNT( * ) * MAX( - col1 ) DIV - - 50 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL COUNT ( * ) * MAX ( - col1 ) / - - 50 AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
64

query I rowsort
SELECT DISTINCT col2 * + + 35 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1645
3465
350

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - + col0 * + + 56 * + 13 AS col1 FROM tab0 AS cor0
----
-10920
-63336
-70616

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 82 - 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT SUM( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5962
SELECT SUM ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5963
SELECT ALL CAST( NULL AS SIGNED ) + - 33 AS col1 FROM tab2 AS cor0 WHERE + col0 * + col2 + - ( 31 ) IS NOT NULL OR + 3 * + col1 * col1 <= NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL CAST ( NULL AS INTEGER ) + - 33 AS col1 FROM tab2 AS cor0 WHERE + col0 * + col2 + - ( 31 ) IS NOT NULL OR + 3 * + col1 * col1 <= NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT - 20 DIV - MIN( col0 ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5964
SELECT - 20 / - MIN ( col0 ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + ( + col0 ) * + col2 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN - 39 + - + col0 AND + + col1
----
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 * + + col1 col2 FROM tab1 AS cor0
----
-1128
-120
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5967
SELECT ALL COUNT( + col0 ) + - SUM( ALL - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * 49 + + ( + 11 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL COUNT ( + col0 ) + - SUM ( ALL - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 49 + + ( + 11 ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5968
SELECT - ( 50 ) * - 43 + - - 99 DIV col2 * - col0 * 63 AS col0 FROM tab2 WHERE NOT + col1 + - 90 IS NULL
----
-2575
-5914
-9442

skipif mysql # not compatible
query I rowsort label-5968
SELECT - ( 50 ) * - 43 + - - 99 / col2 * - col0 * 63 AS col0 FROM tab2 WHERE NOT + col1 + - 90 IS NULL
----
-2575
-5914
-9442

query I rowsort
SELECT DISTINCT col1 * - 71 FROM tab0
----
-1491
-5751
-71

query I rowsort
SELECT ALL - 37 + col0 AS col1 FROM tab2
----
27
38
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + COUNT( * ) FROM tab1 WHERE NOT + col0 * col0 - + col0 * col1 * col0 - + col1 + col1 - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5971
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + col0 * col0 - + col0 * col1 * col0 - + col1 + col1 - col2 IS NULL
----
3

query I rowsort
SELECT + 58 + + col2 * + col0 FROM tab2 cor0
----
1116
2618
4408

query I rowsort
SELECT col0 + + 70 + - col2 - - 86 * + col2 * - col2 AS col0 FROM tab0 cor0
----
-189936
-842818
-8453

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5974
SELECT * FROM tab2 WHERE 88 * col0 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) - + col2
----

skipif mysql # not compatible
query III rowsort label-5974
SELECT * FROM tab2 WHERE 88 * col0 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL + + col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL 71 + 37 FROM tab1
----
108
108
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 * - col0 col1 FROM tab2 cor0
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT DISTINCT COUNT( * ) + + MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT + + col1 * col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5981
SELECT ALL + 19 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL + 19 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE - + col1 + - ( + - col1 ) + + + col1 * 45 IN ( + col1, ( - col2 ) ) AND NOT + col2 * col2 + + col1 / col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5982
SELECT CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE - + col1 + - ( + - col1 ) + + + col1 * 45 IN ( + col1, ( - col2 ) ) AND NOT + col2 * col2 + + col1 / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT col1 - CAST( + 4 AS SIGNED ) * - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-26
-34
167

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT col1 - CAST ( + 4 AS INTEGER ) * - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-26
-34
167

onlyif mysql # DIV for integer division: 
query II rowsort label-5984
SELECT ALL col0 DIV col0, ( - + col2 ) col0 FROM tab0 cor0
----
1
-10
1
-47
1
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5984
SELECT ALL col0 / col0, ( - + col2 ) col0 FROM tab0 cor0
----
1
-10
1
-47
1
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT ALL + + 51 DIV - col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL + + 51 / - col0 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT ALL + 19 DIV - + COUNT( DISTINCT + + col1 ) - SUM( ALL + + col2 ) FROM tab1 AS cor0
----
-229

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL + 19 / - + COUNT ( DISTINCT + + col1 ) - SUM ( ALL + + col2 ) FROM tab1 AS cor0
----
-229

query I rowsort
SELECT + - col2 AS col2 FROM tab0 WHERE + - col2 + col0 BETWEEN - col1 * - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT + 22 + - COUNT( * ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5988
SELECT + 22 + - COUNT ( * ) AS col1 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT MIN( + col0 ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5989
SELECT DISTINCT MIN ( + col0 ) col0 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + 95, + 23 )
----

query II rowsort
SELECT ALL col0 * - col0 AS col0, - col1 * + ( + col0 ) * col1 * + + col0 FROM tab0
----
-225
-1476225
-7569
-3337929
-9409
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT ( - 73 ) * - - CAST( NULL AS SIGNED ) * - MAX( - col0 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5992
SELECT ( - 73 ) * - - CAST ( NULL AS INTEGER ) * - MAX ( - col0 ) col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 18 BETWEEN + col0 AND - 45
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - 4, + col2 * - col1 * col2 + - 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( - col2 * + - CAST( NULL AS SIGNED ) * - col1 + - - col1 / + 11 * col1 ) AND 88
----

skipif mysql # not compatible
query I rowsort label-5995
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( - col2 * + - CAST ( NULL AS INTEGER ) * - col1 + - - col1 / + 11 * col1 ) AND 88
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT DISTINCT COUNT( * ) AS col2, - MIN( ALL + 31 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5996
SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( ALL + 31 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-31

query I rowsort
SELECT ALL - ( + - col0 ) AS col0 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * col2 + + + col0 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 3 col0, 61 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f829e9eb95fb45ccaa031943e7fbdae9

query I rowsort
SELECT 44 * - 11 FROM tab0
----
-484
-484
-484

query I rowsort
SELECT ALL - - 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT + + 3 + - - 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6003
SELECT col0 * + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-6003
SELECT col0 * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - ( - 48 ) AS col2 FROM tab1
----
48
48
48

query I rowsort
SELECT ALL - 13 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6006
SELECT DISTINCT + 74, CAST( NULL AS SIGNED ) + - col0 * - col0 AS col1 FROM tab0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-6006
SELECT DISTINCT + 74, CAST ( NULL AS INTEGER ) + - col0 * - col0 AS col1 FROM tab0
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT - + MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT - + MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + + 28 AS col2 FROM tab2 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col1 FROM tab0 AS cor0 WHERE NOT ( ( - 37 IS NOT NULL ) )
----

query I rowsort
SELECT - 7 + + + col0 * - - col2 AS col2 FROM tab1 AS cor0
----
4889
5008
6181

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6011
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IN ( - - col0, CAST( NULL AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6011
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IN ( - - col0, CAST ( NULL AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 41 * - col1 + col1 + + + col0 * + + 24 * - col1 + col0 * - 93 <= - + col1 + + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - - ( - - col0 ) FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT - 71 + col0 AS col2 FROM tab1
----
-20
14
20

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE + col0 * + 70 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6016
SELECT + CAST( col2 AS SIGNED ) AS col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-6016
SELECT + CAST ( col2 AS INTEGER ) AS col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6017
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1, + 71 AS col1 FROM tab0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-6017
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1, + 71 AS col1 FROM tab0
----
NULL
71

query III rowsort
SELECT * FROM tab1 WHERE + 50 - - ( - col2 ) >= 29 * col1
----

query I rowsort
SELECT DISTINCT - col2 + col1 + + 86 * col2 * - + 87 * + col0 FROM tab2
----
-19153883
-32546691
-7915928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6020
SELECT + CAST( NULL AS SIGNED ) * - 29 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT + CAST ( NULL AS INTEGER ) * - 29 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL + + 11 * + MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-253

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + + 11 * + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-253

query II rowsort
SELECT + 16 + - col1 - - col1 AS col1, - 85 + - 28 + - col0 FROM tab2
----
16
-159
16
-177
16
-188

query I rowsort
SELECT ALL + col2 - - - 19 AS col1 FROM tab1 AS cor0
----
40
49
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 98 / col1 ) NOT BETWEEN 36 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - ( + + col1 ) - col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT ALL - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT + + 83 * - - 37 * - + MAX( DISTINCT - 65 ) FROM tab1 AS cor0
----
199615

skipif mysql # not compatible
query I rowsort label-6027
SELECT + + 83 * - - 37 * - + MAX ( DISTINCT - 65 ) FROM tab1 AS cor0
----
199615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 77 ) col1 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - SUM( DISTINCT - - 41 ) * + - MIN( ALL - - 30 ) FROM tab1 AS cor0
----
1230

skipif mysql # not compatible
query I rowsort label-6029
SELECT - SUM ( DISTINCT - - 41 ) * + - MIN ( ALL - - 30 ) FROM tab1 AS cor0
----
1230

query II rowsort
SELECT ALL col0, 26 AS col1 FROM tab1
----
51
26
85
26
91
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT - - COUNT( * ) * + 34 AS col2 FROM tab1 WHERE NOT + col1 >= + col0
----
102

skipif mysql # not compatible
query I rowsort label-6031
SELECT - - COUNT ( * ) * + 34 AS col2 FROM tab1 WHERE NOT + col1 >= + col0
----
102

query II rowsort
SELECT + col2, + col2 * 95 FROM tab1
----
59
5605
68
6460
96
9120

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 11 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT COUNT( * ) FROM tab1 WHERE NOT 55 = 38
----
3

skipif mysql # not compatible
query I rowsort label-6034
SELECT COUNT ( * ) FROM tab1 WHERE NOT 55 = 38
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6035
SELECT ALL 46 AS col2, COUNT( * ) AS col0 FROM tab0 WHERE ( + - col0 ) NOT BETWEEN - col2 AND - col2
----
46
3

skipif mysql # not compatible
query II rowsort label-6035
SELECT ALL 46 AS col2, COUNT ( * ) AS col0 FROM tab0 WHERE ( + - col0 ) NOT BETWEEN - col2 AND - col2
----
46
3

query I rowsort
SELECT DISTINCT - col2 * + 28 FROM tab0
----
-1316
-2772
-280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6037
SELECT ALL - + COUNT( * ) DIV - MAX( - - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL - + COUNT ( * ) / - MAX ( - - col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * + - col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT + - 47 AS col1 FROM tab2 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col0 FROM tab1 cor0
----
-81
-81
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 59 * col2 AS col2, + col0 FROM tab1 AS cor0
----
3481
85
4012
91
5664
51

query I rowsort
SELECT + - 98 FROM tab0 cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT COUNT( * ) * - 9 col1 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6045
SELECT COUNT ( * ) * - 9 col1 FROM tab1
----
-27

query I rowsort
SELECT + 96 + + + col1 FROM tab2 WHERE - - col2 + + col1 + col1 * + + col1 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 38 / + 47 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT COUNT( * ) + - - 45 col1 FROM tab1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6048
SELECT COUNT ( * ) + - - 45 col1 FROM tab1
----
48

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT IN ( 26 - + - col1 + col2 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( NOT NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL COUNT( ALL - - col0 ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL COUNT ( ALL - - col0 ) + + COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT + + col1 * - col0 * - col1 + col0 + 44 DIV + 47 * col1 AS col0 FROM tab2 cor0
----
119692
336750
379520

skipif mysql # not compatible
query I rowsort label-6052
SELECT + + col1 * - col0 * - col1 + col0 + 44 / + 47 * col1 AS col0 FROM tab2 cor0
----
119692
336750
379520

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 + - + 24 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT + SUM( - ( - + col1 ) ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT + SUM ( - ( - + col1 ) ) FROM tab0 AS cor0
----
103

query II rowsort
SELECT DISTINCT + col1, + 82 * + - col0 AS col0 FROM tab1 AS cor0
----
14
-4182
47
-7462
5
-6970

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6056
SELECT DISTINCT - 69 * CAST( NULL AS DECIMAL ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - 69 * CAST ( NULL AS REAL ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 65 FROM tab0 WHERE NOT NULL <= col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT CAST( - + 68 AS SIGNED ) - - 12 * col2 * + - col0 - + col2 FROM tab2
----
-12787
-30828
-52326

skipif mysql # not compatible
query I rowsort label-6058
SELECT CAST ( - + 68 AS INTEGER ) - - 12 * col2 * + - col0 - + col2 FROM tab2
----
-12787
-30828
-52326

query I rowsort
SELECT - 91 - + - 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL col0 + 63 * + col0 * - col0 AS col0 FROM tab1
----
-163812
-455090
-521612

query III rowsort
SELECT * FROM tab0 WHERE 99 BETWEEN - - 54 + 93 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 - - col0 + - 52 * col1, + col0 col0 FROM tab0 AS cor0
----
-4107
15
-915
87
135
97

query I rowsort
SELECT DISTINCT 95 + - + col0 * - - col2 FROM tab0 AS cor0
----
-610
-775
-9508

query II rowsort
SELECT - + 74 + + + col1 + + - col1 * + - 28, - col1 * + 74 AS col2 FROM tab1 AS cor0
----
1289
-3478
332
-1036
71
-370

query I rowsort
SELECT ALL + 55 * - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-2828
-3743
-4275

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT + - 48 FROM tab1 AS cor0
----
-48

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - ( - + 49 ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT ALL COUNT( + - 69 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL COUNT ( + - 69 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT - 8 * + COUNT( * ) AS col0 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT - 8 * + COUNT ( * ) AS col0 FROM tab1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT MIN( col2 ) * - - 54 FROM tab2
----
1242

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT MIN ( col2 ) * - - 54 FROM tab2
----
1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6072
SELECT + - COUNT( * ) FROM tab2 WHERE NOT + CAST( - col0 AS SIGNED ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6072
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT + CAST ( - col0 AS INTEGER ) > NULL
----
0

query I rowsort
SELECT + col1 * - ( col1 ) * col2 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT ALL - 15 * - col0 * - 60 FROM tab0
----
-13500
-78300
-87300

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT ALL - col0 DIV + + col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - col0 / + + col0 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT AVG ( - + 14 ) FROM tab1 AS cor0 WHERE NOT col1 + - - col1 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ( + - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6078
SELECT ( + - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - 60 * - col0 FROM tab1 AS cor0
----
3060
5100
5460

query I rowsort
SELECT ALL + + 92 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6081
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif mysql # not compatible
query IIIIII rowsort label-6081
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + col1 + 29 FROM tab2
----
106
80
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 62 + + 1 * + 1 + col0 IS NULL
----

query I rowsort
SELECT + col2 / + col2 FROM tab0 AS cor0 WHERE + 61 IN ( 68 * + col1 )
----

query I rowsort
SELECT ALL - - col0 + + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT + - col1 DIV col1 - + + 97 AS col0 FROM tab2 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-6086
SELECT + - col1 / col1 - + + 97 AS col0 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT 28 * + + ( - - col1 ) FROM tab2
----
1428
1876
2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT - 19 AS col2 FROM tab2 WHERE col2 < + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6088
SELECT - 19 AS col2 FROM tab2 WHERE col2 < + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 89 * + col0 + + + 46 + - col0 FROM tab2
----
4094
5678
6646

query I rowsort
SELECT DISTINCT 3 + - + 15 FROM tab0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6092
SELECT COUNT( * ) - - - CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT COUNT ( * ) - - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT DISTINCT SUM( + - col2 ) - - MAX( - + col2 ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT SUM ( + - col2 ) - - MAX ( - + col2 ) FROM tab1 AS cor0
----
-282

query I rowsort
SELECT - - ( col2 ) + col2 FROM tab2 cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT + 79 + 51, MAX( col1 ) col0 FROM tab1 AS cor0
----
130
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6095
SELECT + 79 + 51, MAX ( col1 ) col0 FROM tab1 AS cor0
----
130
47

query I rowsort
SELECT - col0 + - 2 AS col1 FROM tab0
----
-17
-89
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6097
SELECT - - COUNT( DISTINCT CAST( - col2 AS SIGNED ) ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6097
SELECT - - COUNT ( DISTINCT CAST ( - col2 AS INTEGER ) ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

query II rowsort
SELECT - - 14, col1 FROM tab0 AS cor0
----
14
1
14
21
14
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6100
SELECT ALL + col0, - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6100
SELECT ALL + col0, - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 54 col2, + col1 AS col0 FROM tab0 AS cor0
----
54
1
54
21
54
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col0 col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND 31
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + 97 col0 FROM tab0
----
4559
9603
970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col0 FROM tab1
----
-67
-67
-67

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + 95 + - - col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT ALL 21 DIV + 62 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL 21 / + 62 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6109
SELECT - + SUM( - CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6109
SELECT - + SUM ( - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + 68 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - 74 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT col2 DIV - + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6114
SELECT col2 / - + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + col0 * + col1 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT + 11 * + col2 AS col0 FROM tab0 AS cor0
----
1089
110
517

query II rowsort
SELECT DISTINCT 67, 27 FROM tab2 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL COUNT( * ) + - 60 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL COUNT ( * ) + - 60 FROM tab1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col2 FROM tab1
----
-48
-48
-48

query I rowsort
SELECT + 32 + + col1 * col0 AS col0 FROM tab2
----
2378
4960
5057

query I rowsort
SELECT ALL - col1 + - 24 AS col0 FROM tab2
----
-101
-75
-91

query II rowsort
SELECT - col0 AS col2, 56 AS col2 FROM tab1 AS cor0
----
-51
56
-85
56
-91
56

query I rowsort
SELECT DISTINCT - col2 * + col0 - 30 * + 65 FROM tab1 AS cor0
----
-6846
-6965
-8138

query I rowsort
SELECT + 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NOT NULL > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT - col2 DIV + + 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6127
SELECT - col2 / + + 99 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT DISTINCT + - COUNT( + 68 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT + - COUNT ( + 68 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col0 * 97 FROM tab1 AS cor0
----
4947
8245
8827

query II rowsort
SELECT DISTINCT 67, + col0 FROM tab0
----
67
15
67
87
67
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + 38 + + 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT DISTINCT - + COUNT( * ), - 22 AS col1 FROM tab2 WHERE NOT - 95 + 13 * - col2 IS NULL
----
-3
-22

skipif mysql # not compatible
query II rowsort label-6132
SELECT DISTINCT - + COUNT ( * ), - 22 AS col1 FROM tab2 WHERE NOT - 95 + 13 * - col2 IS NULL
----
-3
-22

query II rowsort
SELECT ALL - col2 AS col1, - ( + 71 ) FROM tab2
----
-23
-71
-40
-71
-58
-71

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 86, col2 FROM tab1
----
-86
59
-86
68
-86
96

query I rowsort
SELECT - + 7 * col1 FROM tab0 AS cor0
----
-147
-567
-7

query II rowsort
SELECT ALL - + col2 AS col2, 56 FROM tab0 cor0
----
-10
56
-47
56
-99
56

query I rowsort
SELECT + 10 * - col0 + - 81 AS col1 FROM tab2
----
-541
-721
-831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE col0 * + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE col0 * + col2 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + col0 + + col2 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 * - - col2 + + 25 AS col1 FROM tab0 cor0
----
-185
-3782
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL ( 11 ) * + COUNT( + col1 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL ( 11 ) * + COUNT ( + col1 ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL 12 * - col1 + 35 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT - 90 DIV 72 * - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6144
SELECT - 90 / 72 * - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6146
SELECT DISTINCT 89 DIV + 21 AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT 89 / + 21 AS col2 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT + COUNT( * ) * 99 * + 51 AS col0 FROM tab2
----
15147

skipif mysql # not compatible
query I rowsort label-6147
SELECT + COUNT ( * ) * 99 * + 51 AS col0 FROM tab2
----
15147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6148
SELECT * FROM tab2 WHERE ( + CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6148
SELECT * FROM tab2 WHERE ( + CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + - col2 * + 36 * + col2 AS col0 FROM tab0
----
34930764
36000
3737628

query II rowsort
SELECT + 25, col2 AS col0 FROM tab1
----
25
59
25
68
25
96

query I rowsort
SELECT ALL - 80 + col2 AS col0 FROM tab2
----
-22
-40
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT MIN( - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6152
SELECT MIN ( - + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + + ( 6 ) * + col0 AS col0 FROM tab0 AS cor0
----
522
582
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT + SUM( - - col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6154
SELECT + SUM ( - - col2 ) col2 FROM tab1 AS cor0
----
223

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON ( NOT ( + 64 IS NOT NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 75 + + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT - + COUNT( * ) * - + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-6157
SELECT - + COUNT ( * ) * - + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT DISTINCT + col2 * - ( + CAST( - - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + col2 * - ( + CAST ( - - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT DISTINCT - ( + col0 ) DIV - col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT - ( + col0 ) / - col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT + - COUNT( + ( col0 ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + - COUNT ( + ( col0 ) ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + COUNT( - - ( + - col0 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6161
SELECT + COUNT ( - - ( + - col0 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT DISTINCT - - SUM( - + 29 ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT - - SUM ( - + 29 ) AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL ( ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, col1 - col1 col2 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL >= + + 74
----

query I rowsort
SELECT 72 AS col2 FROM tab0 WHERE NOT - 77 * - ( - + col2 ) * 70 + - + col0 - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 98 * 57 FROM tab0 AS cor0
----
5586

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <= - + 64 + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT - - 72 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL 18 * - ( + 16 ) - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-297

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL 18 * - ( + 16 ) - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-297

query I rowsort
SELECT 61 * - 95 AS col0 FROM tab1 AS cor0
----
-5795
-5795
-5795

query I rowsort
SELECT DISTINCT col2 + - + 43 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT + 97 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6176
SELECT + 97 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT + + 67 + col1 FROM tab2 AS cor0
----
118
134
144

query I rowsort
SELECT col2 - + - col2 AS col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT + col1 - + 92 FROM tab0 AS cor0
----
-11
-71
-91

query II rowsort
SELECT ALL - - 87, col0 FROM tab2 AS cor0
----
87
46
87
64
87
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT - 90 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT - 90 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 / - 22 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL + 30 + - + col1 FROM tab1 WHERE NOT col2 / col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6184
SELECT - 40 * 37 * - - col1 + col1 DIV col1 FROM tab0
----
-119879
-1479
-31079

skipif mysql # not compatible
query I rowsort label-6184
SELECT - 40 * 37 * - - col1 + col1 / col1 FROM tab0
----
-119879
-1479
-31079

query I rowsort
SELECT - col2 * + col2 * - 24 FROM tab2
----
12696
38400
80736

query I rowsort
SELECT ALL col2 * ( - - col2 ) AS col0 FROM tab1
----
3481
4624
9216

query II rowsort
SELECT - col2 * - col1 AS col1, - 17 FROM tab1
----
1344
-17
295
-17
3196
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6188
SELECT ALL * FROM tab2 cor0 WHERE ( NOT NULL IN ( + - 22 * col2 + - + col0, - col2, + CAST( NULL AS SIGNED ) * col2 / col1 * 32 ) )
----

skipif mysql # not compatible
query III rowsort label-6188
SELECT ALL * FROM tab2 cor0 WHERE ( NOT NULL IN ( + - 22 * col2 + - + col0, - col2, + CAST ( NULL AS INTEGER ) * col2 / col1 * 32 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + 87 <> - 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT 11 + - COUNT( * ) - - 88 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-6190
SELECT 11 + - COUNT ( * ) - - 88 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

query I rowsort
SELECT + col0 * - 73 FROM tab0
----
-1095
-6351
-7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 col1 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT - col0 * + ( + + col0 ) AS col1 FROM tab1 cor0
----
-2601
-7225
-8281

query II rowsort
SELECT DISTINCT col1, - col1 + col2 FROM tab0 AS cor0
----
1
98
21
-11
81
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6195
SELECT DISTINCT + 97 / - COUNT( * ) / - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + 97 / - COUNT ( * ) / - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + + col2 col2 FROM tab0 AS cor0
----
111
163
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT - MIN( + - col0 ) * + COUNT( * ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-6197
SELECT - MIN ( + - col0 ) * + COUNT ( * ) AS col1 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query II rowsort label-6198
SELECT - COUNT( * ) AS col2, 1 AS col1 FROM tab2
----
-3
1

skipif mysql # not compatible
query II rowsort label-6198
SELECT - COUNT ( * ) AS col2, 1 AS col1 FROM tab2
----
-3
1

query I rowsort
SELECT ALL col1 * - col2 + - col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query II rowsort label-6200
SELECT + 90 AS col1, + COUNT( * ) FROM tab2
----
90
3

skipif mysql # not compatible
query II rowsort label-6200
SELECT + 90 AS col1, + COUNT ( * ) FROM tab2
----
90
3

query I rowsort
SELECT DISTINCT + + 76 FROM tab0 WHERE NOT - col1 = - - 57
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6202
SELECT DISTINCT COUNT( * ) AS col0, COUNT( DISTINCT + col2 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6202
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( DISTINCT + col2 ) FROM tab0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 47 * 32 IS NULL
----

query I rowsort
SELECT col1 * + col2 * - col2 + + + ( + col2 ) AS col2 FROM tab0
----
-178882
-2090
-9702

query I rowsort
SELECT + col2 FROM tab2 WHERE + + col0 + - + 60 + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE - 62 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE - 62 IS NULL
----
0

query I rowsort
SELECT ALL col1 - + 58 * col0 FROM tab0 AS cor0
----
-5025
-5625
-789

query I rowsort
SELECT DISTINCT col2 - + col2 + + col1 + 70 * + ( - col1 ) FROM tab2 AS cor0
----
-3519
-4623
-5313

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT - - col2 DIV - - ( col1 ) - - col2 * col2 * - - 36 col1 FROM tab0 AS cor0
----
352935
3600
79524

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6209
SELECT - - col2 / - - ( col1 ) - - col2 * col2 * - - 36 col1 FROM tab0 AS cor0
----
352935
3600
79524

query I rowsort
SELECT 61 - - - 91 FROM tab2
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - COUNT( - - 52 ) - - MIN( - col0 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-6211
SELECT - COUNT ( - - 52 ) - - MIN ( - col0 ) FROM tab0
----
-100

query I rowsort
SELECT col1 * - 16 AS col1 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT 69 * + + col0 AS col1 FROM tab1
----
3519
5865
6279

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - 11 / 56 * - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT ALL SUM( + CAST( col1 AS SIGNED ) ) * - - ( MAX( ALL - + 47 ) ) AS col0 FROM tab0
----
-4841

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL SUM ( + CAST ( col1 AS INTEGER ) ) * - - ( MAX ( ALL - + 47 ) ) AS col0 FROM tab0
----
-4841

query I rowsort
SELECT ALL + col0 * + 21 AS col0 FROM tab0
----
1827
2037
315

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL + MAX( + 75 ) col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6217
SELECT ALL + MAX ( + 75 ) col0 FROM tab2
----
75

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * - ( ( - - 67 ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - + 26 AS col1 FROM tab1 AS cor0
----
-1326
-2210
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + MIN( + - 26 ) col1 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6221
SELECT + MIN ( + - 26 ) col1 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT DISTINCT 80 * + col2 FROM tab1 AS cor0
----
4720
5440
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT MAX( + 79 ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-6223
SELECT MAX ( + 79 ) AS col0 FROM tab2
----
79

query I rowsort
SELECT - + col2 * - col0 + + col0 AS col2 FROM tab1 AS cor0
----
4947
5100
6279

query II rowsort
SELECT DISTINCT + ( - 94 ) AS col2, + 90 FROM tab0 AS cor0
----
-94
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - col2 >= - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT + 12 * - COUNT( * ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6227
SELECT DISTINCT + 12 * - COUNT ( * ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL SUM( col1 ) * + COUNT( - - col0 ) AS col2 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL SUM ( col1 ) * + COUNT ( - - col0 ) AS col2 FROM tab2
----
585

query I rowsort
SELECT DISTINCT ( col1 ) * + + 27 FROM tab1
----
1269
135
378

query I rowsort
SELECT ALL col2 + - 91 * - col2 FROM tab1 WHERE - 88 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT DISTINCT + col2 + - 57 DIV + - col2 FROM tab0
----
15
48
99

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + col2 + - 57 / + - col2 FROM tab0
----
15
48
99

query I rowsort
SELECT ALL col1 * col1 + + col1 AS col1 FROM tab1
----
210
2256
30

query I rowsort
SELECT DISTINCT + col2 - - - 60 FROM tab1 WHERE col1 * - 24 + col0 + + 98 * col0 <= - col1
----

query I rowsort
SELECT - 73 + col2 AS col1 FROM tab1
----
-14
-5
23

query I rowsort
SELECT ALL + + col0 + - 80 FROM tab0 AS cor0
----
-65
17
7

query I rowsort
SELECT ALL + ( - 68 ) AS col1 FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT ALL 79 * 15 DIV - col2 FROM tab2
----
-20
-29
-51

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL 79 * 15 / - col2 FROM tab2
----
-20
-29
-51

query I rowsort
SELECT DISTINCT - col0 + 58 AS col0 FROM tab1
----
-27
-33
7

query I rowsort
SELECT ALL ( col1 ) + - col2 AS col0 FROM tab0
----
-98
11
34

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT 12 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6242
SELECT 12 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
15

query II rowsort
SELECT ALL - col0 + + col1 AS col2, col0 AS col0 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85

query I rowsort
SELECT + - 11 + + col0 AS col2 FROM tab0 AS cor0
----
4
76
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT - + col0 + + + col2 - - 34 DIV 33 FROM tab1 AS cor0
----
-22
-25
46

skipif mysql # not compatible
query I rowsort label-6245
SELECT - + col0 + + + col2 - - 34 / 33 FROM tab1 AS cor0
----
-22
-25
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6246
SELECT - - COUNT( DISTINCT - col2 ) AS col1, - 39 col2 FROM tab2 AS cor0
----
3
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6246
SELECT - - COUNT ( DISTINCT - col2 ) AS col1, - 39 col2 FROM tab2 AS cor0
----
3
-39

query I rowsort
SELECT DISTINCT + + ( - ( + col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT col0 * - 44 * - + col1 FROM tab0
----
4268
53460
80388

query I rowsort
SELECT DISTINCT - 88 * + + 99 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + ( + col0 ), + col1 + col2 AS col1 FROM tab1
----
51
110
85
64
91
115

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT + col0 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL ( - SUM( ALL + 23 ) ) * + 96 FROM tab2 AS cor0
----
-6624

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL ( - SUM ( ALL + 23 ) ) * + 96 FROM tab2 AS cor0
----
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - - COUNT( * ) FROM tab2 WHERE NOT + ( col1 ) > + 54 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT + ( col1 ) > + 54 + - col2
----
0

query II rowsort
SELECT 51 AS col1, 21 FROM tab2
----
51
21
51
21
51
21

query I rowsort
SELECT - - 6 + col0 AS col2 FROM tab0 cor0
----
103
21
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - - 74 * - - 37 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - - 74 * - - 37 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 29 * col2 + - - col1 + col1 * col1 AS col1 FROM tab0 AS cor0
----
2873
752
8005

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL - 68 * MIN( ALL - 17 ) / - MIN( - 47 ) AS col1 FROM tab0 AS cor0 WHERE 18 + + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - 68 * MIN ( ALL - 17 ) / - MIN ( - 47 ) AS col1 FROM tab0 AS cor0 WHERE 18 + + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - - ( - col0 ) AS col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL col0 * + ( 48 ) + 15 + - col1 FROM tab1
----
2449
4090
4336

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT ALL col1 DIV col1 * + col0 col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6261
SELECT ALL col1 / col1 * + col0 col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT - 94 + + col0 FROM tab1
----
-3
-43
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6263
SELECT + COUNT( * ) AS col1, 69 + + 88 FROM tab2 WHERE - 42 IS NULL
----
0
157

skipif mysql # not compatible
query II rowsort label-6263
SELECT + COUNT ( * ) AS col1, 69 + + 88 FROM tab2 WHERE - 42 IS NULL
----
0
157

query I rowsort
SELECT DISTINCT col2 + 38 * + col0 FROM tab2
----
1771
2472
2908

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT COUNT( * ) col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6265
SELECT COUNT ( * ) col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT - - col2 + - + col0 AS col0, col2 - + + col0 + + - col0 * - col2 FROM tab2 cor0
----
-17
4333
-23
1035
-24
2536

query I rowsort
SELECT + + ( col0 ) + - + 92 AS col2 FROM tab0 cor0
----
-5
-77
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col0 FROM tab2 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT - MIN( DISTINCT 85 ) FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT - MIN ( DISTINCT 85 ) FROM tab1 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - - MAX( col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - - MAX ( col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + + 90 AS col0 FROM tab0 cor0
----
90

query I rowsort
SELECT - ( - + col2 ) FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT 61 * - + SUM( ALL col0 ) FROM tab1
----
-13847

skipif mysql # not compatible
query I rowsort label-6273
SELECT 61 * - + SUM ( ALL col0 ) FROM tab1
----
-13847

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + ( - col2 ) AND - 94 - - + 77
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 90, 23 AS col0 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT - + col1 * 10 FROM tab2 cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT - COUNT( * ) * - 62 col0 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6278
SELECT - COUNT ( * ) * - 62 col0 FROM tab2 AS cor0
----
186

query I rowsort
SELECT - + col2 + - 98 FROM tab2 cor0
----
-121
-138
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL MAX( DISTINCT - 23 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL MAX ( DISTINCT - 23 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT - - col0 DIV 52 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6281
SELECT - - col0 / 52 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT col2 * + col2 + - + col0 FROM tab2 cor0
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL COUNT( * ) * + + 94 AS col2 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL COUNT ( * ) * + + 94 AS col2 FROM tab2 AS cor0
----
282

query I rowsort
SELECT - 16 * + - col0 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6285
SELECT + CAST( NULL AS DECIMAL ) * 54 * - 7 + - 79 * - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT + CAST ( NULL AS REAL ) * 54 * - 7 + - 79 * - 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col1 ) * + + 67 AS col0 FROM tab2 AS cor0
----
3417
4489
5159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6287
SELECT DISTINCT + - 92 - + 1 AS col0 FROM tab0 WHERE NOT ( NOT ( ( CAST( + ( - 47 ) AS SIGNED ) * 16 IS NOT NULL ) ) )
----
-93

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT + - 92 - + 1 AS col0 FROM tab0 WHERE NOT ( NOT ( ( CAST ( + ( - 47 ) AS INTEGER ) * 16 IS NOT NULL ) ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT ALL 80 + + COUNT( * ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL 80 + + COUNT ( * ) FROM tab1
----
83

query I rowsort
SELECT ALL - + 44 FROM tab2 WHERE 37 - + 37 IS NOT NULL
----
-44
-44
-44

query I rowsort
SELECT + - 39 FROM tab2 WHERE 28 IS NULL
----

query I rowsort
SELECT ALL 13 + + col0 AS col1 FROM tab1
----
104
64
98

query I rowsort
SELECT DISTINCT + - 66 FROM tab2 WHERE + 72 NOT IN ( 96, - col1 + col1 * - col0 / - + col0, + + col0, col0 )
----
-66

query I rowsort
SELECT DISTINCT + 38 + + 28 AS col2 FROM tab0
----
66

query I rowsort
SELECT ALL + - col1 + + + col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT + COUNT( * ), 22 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
19

skipif mysql # not compatible
query II rowsort label-6295
SELECT + COUNT ( * ), 22 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
19

query I rowsort
SELECT col0 + col1 * + col0 AS col2 FROM tab0
----
1230
1914
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6297
SELECT + 16 DIV CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-6297
SELECT + 16 / CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT ALL + col1 - 92 DIV - 68 AS col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL + col1 - 92 / - 68 AS col0 FROM tab1
----
15
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT ALL - 87 + CAST( col0 AS SIGNED ) * + 89 FROM tab0
----
1248
7656
8546

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - 87 + CAST ( col0 AS INTEGER ) * + 89 FROM tab0
----
1248
7656
8546

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL <> col2
----

query I rowsort
SELECT DISTINCT col2 * + col0 + col2 * col1 FROM tab2 WHERE col0 + - col2 IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT 11 * + col1 = col0 * col0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE + 65 > - col0
----
-3

skipif mysql # not compatible
query I rowsort label-6303
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE + 65 > - col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT - ( + ( - CAST( - col2 AS SIGNED ) ) ) AS col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6304
SELECT - ( + ( - CAST ( - col2 AS INTEGER ) ) ) AS col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + 93 AS col1 FROM tab0
----
93
93
93

query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab2 WHERE 69 >= 67
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT COUNT( * ) * 0 FROM tab0 WHERE NOT + 86 <= - 66
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT COUNT ( * ) * 0 FROM tab0 WHERE NOT + 86 <= - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL - COUNT( col0 ) FROM tab2 WHERE NOT col0 - - col0 * - col2 <= ( - col1 * 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL - COUNT ( col0 ) FROM tab2 WHERE NOT col0 - - col0 * - col2 <= ( - col1 * 29 )
----
-1

query I rowsort
SELECT ALL + 12 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
12
12
12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 55 / - 20 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 33 BETWEEN NULL AND + col1
----

query I rowsort
SELECT 73 + - col2 * + col2 AS col2 FROM tab0
----
-2136
-27
-9728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6314
SELECT col2 / + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6314
SELECT col2 / + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 3 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 75 ) BETWEEN col2 / + col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 + ( + 46 ) IN ( col1 * 17 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6318
SELECT + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab0 WHERE col1 / CAST( NULL AS SIGNED ) IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6318
SELECT + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab0 WHERE col1 / CAST ( NULL AS INTEGER ) IN ( CAST ( col2 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 47 * col1 IN ( - 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 24 - + col2 AS col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT 63 * col1 + 9 FROM tab1 WHERE NOT col2 IS NULL
----
2970
324
891

query I rowsort
SELECT col0 / - col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 * + 35 + + col2 * 64 col2 FROM tab2
----
-1713
-625
527

query I rowsort
SELECT DISTINCT - col0 * - 66 + col0 * 57 AS col0 FROM tab2
----
5658
7872
9225

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT + COUNT( * ) * 52 AS col1 FROM tab1 cor0
----
156

skipif mysql # not compatible
query I rowsort label-6326
SELECT + COUNT ( * ) * 52 AS col1 FROM tab1 cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT SUM( ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6328
SELECT SUM ( ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
51
85
91

query I rowsort
SELECT ALL + AVG ( 4 ) * 23 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - ( 95 ) + col2 FROM tab0 AS cor0
----
-48
-85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND 63
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6332
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND 63
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 52 )
----

query I rowsort
SELECT 78 + - 25 AS col1 FROM tab0 cor0
----
53
53
53

query III rowsort
SELECT * FROM tab2 cor0 WHERE 5 * - col2 + 53 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 * + col0 col1 FROM tab1 AS cor0
----
2805
4675
5005

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6337
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - CAST( col1 AS SIGNED ) ) NOT IN ( + ( - 78 ) / - col2 )
----

skipif mysql # not compatible
query III rowsort label-6337
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 * - CAST ( col1 AS INTEGER ) ) NOT IN ( + ( - 78 ) / - col2 )
----

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab0 cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6339
SELECT CAST( 47 AS SIGNED ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT CAST ( 47 AS INTEGER ) / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6340
SELECT + 57 DIV + COUNT( * ) AS col2 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-6340
SELECT + 57 / + COUNT ( * ) AS col2 FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT SUM( ALL col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6341
SELECT SUM ( ALL col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL + MIN( ALL - 1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL + MIN ( ALL - 1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6343
SELECT + ( - COUNT( * ) ) DIV 39 - - SUM( ALL col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6343
SELECT + ( - COUNT ( * ) ) / 39 - - SUM ( ALL col1 ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT col1 + + col0 + 3 AS col1 FROM tab2
----
100
144
145

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT + ( + 19 ) + 23 DIV ( + 80 ) FROM tab1 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-6345
SELECT + ( + 19 ) + 23 / ( + 80 ) FROM tab1 AS cor0
----
19
19
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 43 NOT IN ( col2 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 - col2 + 89 FROM tab2 AS cor0
----
117
126
98

query I rowsort
SELECT - ( 8 ) * col1 + col0 * - col2 FROM tab1 AS cor0
----
-5008
-5055
-6564

query I rowsort
SELECT - + col0 * + + col0 + 67 + + col1 FROM tab1 cor0
----
-2520
-7153
-8167

query I rowsort
SELECT 52 + - col2 + + 67 * - ( - col2 ) * col1 FROM tab0 cor0
----
14112
255074
6586

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT + col2 DIV - - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT + col2 / - - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 38 * - - 79 FROM tab1
----
3002
3002
3002

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL + MIN( + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + MIN ( + col0 ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab2 WHERE NOT - 84 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL - - 37 * - - 20 * - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-2217

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL - - 37 * - - 20 * - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-2217

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - MAX( ALL - - 58 ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6356
SELECT - MAX ( ALL - - 58 ) FROM tab0 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT + MIN( ALL col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 - + col1 / - 82 = 32
----
46

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT + MIN ( ALL col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 - + col1 / - 82 = 32
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( - - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + 68 ) FROM tab2 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-6361
SELECT + + 20 AS col1, MIN( ALL + col0 ) FROM tab1 AS cor0
----
20
51

skipif mysql # not compatible
query II rowsort label-6361
SELECT + + 20 AS col1, MIN ( ALL + col0 ) FROM tab1 AS cor0
----
20
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) >= ( + - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) >= ( + - 26 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( - + ( - 10 ) ) AND ( + 40 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 72 )
----

query I rowsort
SELECT + col1 * - 10 FROM tab1
----
-140
-470
-50

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT ( + col1 + - col2 ) < ( 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6367
SELECT DISTINCT * FROM tab2 WHERE - + col2 <> ( col0 * - CAST( 96 AS SIGNED ) - 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6367
SELECT DISTINCT * FROM tab2 WHERE - + col2 <> ( col0 * - CAST ( 96 AS INTEGER ) - 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT COUNT( * ) * 55 col0 FROM tab1 WHERE NOT + 0 + + 42 + + 81 * + col0 IN ( col0 )
----
165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6368
SELECT DISTINCT COUNT ( * ) * 55 col0 FROM tab1 WHERE NOT + 0 + + 42 + + 81 * + col0 IN ( col0 )
----
165

query I rowsort
SELECT ALL + 10 AS col2 FROM tab2 WHERE ( - col1 ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / 13 + col0 col0 FROM tab0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL + 45 + - ( - col2 ) AS col1 FROM tab2
----
103
68
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col1 AS col2, - 64 + - col1 col2 FROM tab1
----
196
-78
2209
-111
25
-69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - col1 >= ( NULL ) ) )
----

query I rowsort
SELECT 26 + col2 AS col0 FROM tab0 AS cor0
----
125
36
73

query I rowsort
SELECT + col2 + - + 23 + 95 AS col0 FROM tab1 AS cor0
----
131
140
168

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6377
SELECT ALL + 39 DIV col1 FROM tab0 AS cor0
----
0
1
39

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + 39 / col1 FROM tab0 AS cor0
----
0
1
39

query I rowsort
SELECT - ( col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - + ( 2 ) + - 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query II rowsort
SELECT + 80 AS col0, + 42 AS col0 FROM tab0 AS cor0
----
80
42
80
42
80
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL MAX( - 16 ) AS col2 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL MAX ( - 16 ) AS col2 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT DISTINCT col1 * + col2 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 60 * + + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT + col0 DIV + - 72 - - col1 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-6383
SELECT + col0 / + - 72 - - col1 FROM tab2 AS cor0
----
51
66
77

query I rowsort
SELECT + + 74 * + - 63 + + + 5 FROM tab1 AS cor0
----
-4657
-4657
-4657

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT ALL + col2 + + - col1 DIV - col2 AS col1 FROM tab2 cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + col2 + + - col1 / - col2 AS col1 FROM tab2 cor0
----
25
41
59

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NULL <> - col1 - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT DISTINCT col1 DIV col1 + - col2 AS col1 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT col1 / col1 + - col2 AS col1 FROM tab2
----
-22
-39
-57

query II rowsort
SELECT ALL col1, col2 * - col2 AS col0 FROM tab2
----
51
-529
67
-3364
77
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT ALL SUM( + 19 ) + 6 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL SUM ( + 19 ) + 6 FROM tab1
----
63

query II rowsort
SELECT col0, + 94 AS col1 FROM tab1
----
51
94
85
94
91
94

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + 41 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT CAST( NULL AS SIGNED ) / ( + 97 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6392
SELECT CAST ( NULL AS INTEGER ) / ( + 97 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL 75 - + MIN( ALL + + col1 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL 75 - + MIN ( ALL + + col1 ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE col1 IN ( + 95 * - - col1 - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE col1 IN ( + 95 * - - col1 - + col0 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( - col0, - col0 * + + col1 * + col0 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT + + col0 DIV + col2 + + ( col1 ) * - 4 FROM tab1 WHERE NOT - col2 >= col1 DIV - ( - - col0 )
----
-187
-19
-56

skipif mysql # not compatible
query I rowsort label-6397
SELECT + + col0 / + col2 + + ( col1 ) * - 4 FROM tab1 WHERE NOT - col2 >= col1 / - ( - - col0 )
----
-187
-19
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6399
SELECT - - SUM( + col2 ) AS col1, - 44 * MAX( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
121
-2552

skipif mysql # not compatible
query II rowsort label-6399
SELECT - - SUM ( + col2 ) AS col1, - 44 * MAX ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
121
-2552

onlyif mysql # DIV for integer division: 
query I rowsort label-6400
SELECT + - col2 DIV + 98 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6400
SELECT + - col2 / + 98 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= + + 20
----

query I rowsort
SELECT ALL - col0 * 24 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-3450
-6464
-6825

query I rowsort
SELECT ( - col1 ) * + + 88 FROM tab1
----
-1232
-4136
-440

query I rowsort
SELECT DISTINCT 80 * col2 FROM tab1
----
4720
5440
7680

query I rowsort
SELECT + ( + + col1 ) * - col1 + + - col0 AS col1 FROM tab1
----
-110
-2300
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT MIN( - + 1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6406
SELECT MIN ( - + 1 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL + MIN( DISTINCT + col0 ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6407
SELECT ALL + MIN ( DISTINCT + col0 ) col1 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT 63 * COUNT( * ) * - + MIN( col1 ) AS col0 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-6408
SELECT 63 * COUNT ( * ) * - + MIN ( col1 ) AS col0 FROM tab0
----
-189

query I rowsort
SELECT + 45 * col0 FROM tab0
----
3915
4365
675

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT ALL - col0 + - - col2 + + - ( + col2 ) DIV - col2 FROM tab1
----
-22
-25
46

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL - col0 + - - col2 + + - ( + col2 ) / - col2 FROM tab1
----
-22
-25
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL - + SUM( + 15 ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - + SUM ( + 15 ) AS col0 FROM tab0 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6412
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST( + 19 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-6412
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( + 19 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-6413
SELECT + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-81

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
52

query I rowsort
SELECT + col1 * col1 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6416
SELECT ALL - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + 77 < + 77 * + col1 - col0 + + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * + 77 < + 77 * + col1 - col0 + + - CAST ( NULL AS REAL )
----

query II rowsort
SELECT DISTINCT - - col2 - + - col1 + + + 74 * - 65 AS col1, col2 + + 47 FROM tab0 cor0
----
-4682
94
-4710
146
-4779
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT - SUM( - + 66 ) * - - 88 AS col0 FROM tab0 AS cor0
----
17424

skipif mysql # not compatible
query I rowsort label-6418
SELECT - SUM ( - + 66 ) * - - 88 AS col0 FROM tab0 AS cor0
----
17424

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT - ( - + MIN( + 35 ) ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6419
SELECT - ( - + MIN ( + 35 ) ) FROM tab1 AS cor0
----
35

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 19 BETWEEN ( - ( - col1 ) ) AND NULL
----

query I rowsort
SELECT - col0 * - - 27 AS col0 FROM tab0 AS cor0
----
-2349
-2619
-405

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 40 IS NOT NULL OR NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT col1 * - + 77 * + - ( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE ( NULL ) >= - 22
----

skipif mysql # not compatible
query I rowsort label-6423
SELECT col1 * - + 77 * + - ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE ( NULL ) >= - 22
----

query I rowsort
SELECT - 70 * + col0 FROM tab2
----
-3220
-4480
-5250

query I rowsort
SELECT ALL col0 + - + col2 * 90 * + 60 AS col0 FROM tab0
----
-253785
-534503
-53913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE - 20 < ( + col0 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6427
SELECT ALL 58, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
58
NULL
58
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6427
SELECT ALL 58, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
58
NULL
58
NULL
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6428
SELECT + COUNT( ALL + CAST( NULL AS DECIMAL ) ) - + SUM( - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6428
SELECT + COUNT ( ALL + CAST ( NULL AS REAL ) ) - + SUM ( - col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT col2 - - CAST( + - 78 AS SIGNED ) FROM tab1
----
-10
-19
18

skipif mysql # not compatible
query I rowsort label-6429
SELECT col2 - - CAST ( + - 78 AS INTEGER ) FROM tab1
----
-10
-19
18

query I rowsort
SELECT DISTINCT - col2 + - 53 FROM tab1
----
-112
-121
-149

query I rowsort
SELECT - 42 AS col2 FROM tab0 WHERE NULL IS NULL
----
-42
-42
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + - col2 * + 28 + + 27 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= + col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6435
SELECT DISTINCT 20 AS col1, + 29 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
20
32

skipif mysql # not compatible
query II rowsort label-6435
SELECT DISTINCT 20 AS col1, + 29 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
20
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT + COUNT( * ) * - COUNT( * ) + - + 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-6436
SELECT + COUNT ( * ) * - COUNT ( * ) + - + 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + col1 * - - col1 * col2 - - - 94
----

query II rowsort
SELECT ALL + + col1 AS col0, - ( - + col2 ) FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT - ( + 34 ) FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT + + SUM( - 15 ) FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6440
SELECT + + SUM ( - 15 ) FROM tab2 cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT - - ( + - col2 ) DIV col1 DIV - - ( col2 ) + + 48 FROM tab1 cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-6441
SELECT - - ( + - col2 ) / col1 / - - ( col2 ) + + 48 FROM tab1 cor0
----
48
48
48

query II rowsort
SELECT col2 AS col1, + ( - col0 ) * col1 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + SUM( - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6443
SELECT + SUM ( - + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT - CAST( COUNT( 64 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6444
SELECT - CAST ( COUNT ( 64 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL + + SUM( ALL + - 32 ) * 11 * - - COUNT( * ) * SUM( DISTINCT ( + 4 ) ) AS col2 FROM tab1 AS cor0
----
-12672

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + + SUM ( ALL + - 32 ) * 11 * - - COUNT ( * ) * SUM ( DISTINCT ( + 4 ) ) AS col2 FROM tab1 AS cor0
----
-12672

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL - - MIN( DISTINCT - 33 ) * - 93 AS col1 FROM tab0 AS cor0
----
3069

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - - MIN ( DISTINCT - 33 ) * - 93 AS col1 FROM tab0 AS cor0
----
3069

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT - col1 DIV + + 12 AS col1 FROM tab2 AS cor0
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-6447
SELECT - col1 / + + 12 AS col1 FROM tab2 AS cor0
----
-4
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT + SUM( - col1 ) * COUNT( DISTINCT + col2 ) FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT + SUM ( - col1 ) * COUNT ( DISTINCT + col2 ) FROM tab0
----
-309

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL 68 FROM tab1, tab2 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 + + - col0 - col0 col0 FROM tab0
----
-132
-192
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT + COUNT( * ) + + 40 * MIN( - col0 ) * - + 62 * - 87 AS col0 FROM tab2 AS cor0
----
-16181997

skipif mysql # not compatible
query I rowsort label-6452
SELECT + COUNT ( * ) + + 40 * MIN ( - col0 ) * - + 62 * - 87 AS col0 FROM tab2 AS cor0
----
-16181997

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 37 + - col2 - col0 * + col0 BETWEEN NULL AND - - col1 / + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT 81 * 88 + + COUNT( 6 ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
7134

skipif mysql # not compatible
query I rowsort label-6454
SELECT 81 * 88 + + COUNT ( 6 ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
7134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT CAST( NULL AS SIGNED ) + - + col2 + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT CAST ( NULL AS INTEGER ) + - + col2 + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 9 * - col0 AS col1 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT - 94 - - - 43 AS col0 FROM tab2 cor0
----
-137
-137
-137

query I rowsort
SELECT - col1 - + 78 FROM tab2 AS cor0
----
-129
-145
-155

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 IS NULL )
----

query II rowsort
SELECT + 8 + + col0 + col1, col1 FROM tab0 AS cor0
----
104
81
106
1
116
21

query I rowsort
SELECT ALL - - col2 * + 63 - - 93 FROM tab1 AS cor0
----
3810
4377
6141

query I rowsort
SELECT - col1 + + ( + col1 ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col1 + - - 62 + + 37, col0 + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
150
41
166
83
176
51

onlyif mysql # DIV for integer division: 
query II rowsort label-6464
SELECT DISTINCT - col1 DIV + 27 AS col1, - col1 AS col1 FROM tab1
----
-1
-47
0
-14
0
-5

skipif mysql # not compatible
query II rowsort label-6464
SELECT DISTINCT - col1 / + 27 AS col1, - col1 AS col1 FROM tab1
----
-1
-47
0
-14
0
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT col1 DIV + 85 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT col1 / + 85 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col2 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN - ( + + 29 ) AND - 64
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT + 88 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - - 14 + col0 FROM tab2 WHERE NOT - col2 * + + col1 * + + ( - - 79 ) NOT BETWEEN ( col1 ) AND 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL MIN( + - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL MIN ( + - col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT + 99 + + col2 FROM tab1 AS cor0
----
158
167
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL - MAX( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL - MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - ( - col0 )
----

query I rowsort
SELECT ALL - 70 AS col2 FROM tab2 cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT col1 * + + ( - - 50 ) FROM tab0 AS cor0
----
1050
4050
50

query I rowsort
SELECT col2 * + 4 + - col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL - 54 + col2 * col0 FROM tab0
----
651
816
9549

query II rowsort
SELECT ALL - col0 AS col1, + col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT COUNT( DISTINCT 36 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6479
SELECT COUNT ( DISTINCT 36 ) AS col0 FROM tab2
----
1

query II rowsort
SELECT + 12 AS col0, ( - col1 ) + + - col2 AS col2 FROM tab0
----
12
-100
12
-128
12
-31

query I rowsort
SELECT ALL 73 * col1 FROM tab0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT ALL + COUNT( + + 40 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL + COUNT ( + + 40 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL + 27 + MAX( ALL + 71 ) * - COUNT( * ) FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL + 27 + MAX ( ALL + 71 ) * - COUNT ( * ) FROM tab2
----
-186

query II rowsort
SELECT + col2 AS col2, 63 * col2 FROM tab0
----
10
630
47
2961
99
6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - 24 * + - col0 FROM tab1
----
14
1224
47
2184
5
2040

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab1 WHERE - 26 + - col2 / - 78 * + col2 + - 62 IS NULL
----

query I rowsort
SELECT + 66 * 22 AS col1 FROM tab0
----
1452
1452
1452

query I rowsort
SELECT col2 * - + ( - + col1 ) FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL 54 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 54 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6490
SELECT * FROM tab0 AS cor0 WHERE NULL <= + col2 * + CAST( + - col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6490
SELECT * FROM tab0 AS cor0 WHERE NULL <= + col2 * + CAST ( + - col1 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT + 78 * + MIN( DISTINCT - - ( col0 ) ) col1 FROM tab2 cor0
----
3588

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6491
SELECT DISTINCT + 78 * + MIN ( DISTINCT - - ( col0 ) ) col1 FROM tab2 cor0
----
3588

query I rowsort
SELECT ALL + + 10 AS col1 FROM tab2 AS cor0 WHERE NOT 43 / col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT - - COUNT( * ) + - + 36 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6493
SELECT - - COUNT ( * ) + - + 36 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT - + 91 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT DISTINCT - col0 + - 68 FROM tab1
----
-119
-153
-159

query III rowsort
SELECT * FROM tab2 WHERE - + 71 > + - 48
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + col0 <= NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) - 68 AS col2 FROM tab1 AS cor0
----
-21
-54
-63

query II rowsort
SELECT - col1, - 93 - - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 + - col2 AND + 81
----

query I rowsort
SELECT - 72 * - 36 * + 40 + col2 FROM tab2 AS cor0
----
103703
103720
103738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 * - + 50 col2, + 60 FROM tab1 AS cor0
----
-3250
60
-3250
60
-3250
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN + col0 AND - 14 + + col1 * - 74 + - + col0 + - - col2
----

query II rowsort
SELECT ALL col1 - - col2 + col1, + col0 AS col2 FROM tab2 cor0
----
125
46
192
75
194
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6504
SELECT ALL col1, - CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
51
-46
67
-75
77
-64

skipif mysql # not compatible
query II rowsort label-6504
SELECT ALL col1, - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
51
-46
67
-75
77
-64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6505
SELECT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 * - col1, - 69 AS col2 FROM tab2 AS cor0
----
-2346
-69
-4928
-69
-5025
-69

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL = col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT DISTINCT - COUNT( * ) AS col0, 39 * - 48 + - + 78 FROM tab2
----
-3
-1950

skipif mysql # not compatible
query II rowsort label-6508
SELECT DISTINCT - COUNT ( * ) AS col0, 39 * - 48 + - + 78 FROM tab2
----
-3
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT + 94 * SUM( DISTINCT - - 86 ) FROM tab1
----
8084

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT + 94 * SUM ( DISTINCT - - 86 ) FROM tab1
----
8084

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT ALL - + col0 * col2 DIV + col1 FROM tab0 WHERE NOT + + col2 * - col2 DIV + col2 - + col1 IS NULL
----
-41
-8
-9603

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - + col0 * col2 / + col1 FROM tab0 WHERE NOT + + col2 * - col2 / + col2 - + col1 IS NULL
----
-41
-8
-9603

query II rowsort
SELECT ALL col2 AS col2, + 70 * - 35 AS col0 FROM tab0
----
10
-2450
47
-2450
99
-2450

query I rowsort
SELECT ALL - col0 * - + 46 AS col1 FROM tab2 AS cor0
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT MAX( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6513
SELECT MAX ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT + 47 * SUM( - 71 ) * - 51 AS col1 FROM tab2 AS cor0 WHERE NOT - 7 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT + 47 * SUM ( - 71 ) * - 51 AS col1 FROM tab2 AS cor0 WHERE NOT - 7 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT - col2 * - + CAST( - col0 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-6515
SELECT - col2 * - + CAST ( - col0 AS INTEGER ) FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT COUNT( * ) * + - MAX( DISTINCT + 86 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-774

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6517
SELECT DISTINCT COUNT ( * ) * + - MAX ( DISTINCT + 86 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-774

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + - ( ( + - 25 ) ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 NOT BETWEEN - - 76 * - + col0 AND - - 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT - 71 * - + ( CAST( + + 66 AS SIGNED ) ) FROM tab1 AS cor0
----
4686
4686
4686

skipif mysql # not compatible
query I rowsort label-6520
SELECT - 71 * - + ( CAST ( + + 66 AS INTEGER ) ) FROM tab1 AS cor0
----
4686
4686
4686

query I rowsort
SELECT ALL + ( - col2 ) FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - ( ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT + - 21 * + COUNT( * ) col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6523
SELECT + - 21 * + COUNT ( * ) col2 FROM tab2 AS cor0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT ALL + 80 DIV + col0 + col1 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL + 80 / + col0 + col1 FROM tab1
----
15
47
5

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NULL NOT IN ( col0, + 50 - + + col2 )
----

query II rowsort
SELECT DISTINCT col2 AS col0, ( col0 ) * col0 AS col2 FROM tab1
----
59
7225
68
8281
96
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL - ( - 76 ) * 25 + + 69 * - COUNT( * ) + + 79 FROM tab0
----
1772

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - ( - 76 ) * 25 + + 69 * - COUNT ( * ) + + 79 FROM tab0
----
1772

query I rowsort
SELECT ALL col2 * - col1 * 24 + 51 + + col2 + - col2 * + 3 FROM tab2
----
-28147
-73949
-93329

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6529
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL OR - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6529
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL OR - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6531
SELECT ALL + + MAX( ( col0 ) ) AS col0, CAST( + 95 AS SIGNED ) + - 45 + + 32 col2 FROM tab0 AS cor0
----
97
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6531
SELECT ALL + + MAX ( ( col0 ) ) AS col0, CAST ( + 95 AS INTEGER ) + - 45 + + 32 col2 FROM tab0 AS cor0
----
97
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT + - 41 * col2 * + 43 + - 24 DIV - 68 FROM tab0 AS cor0
----
-174537
-17630
-82861

skipif mysql # not compatible
query I rowsort label-6532
SELECT + - 41 * col2 * + 43 + - 24 / - 68 FROM tab0 AS cor0
----
-174537
-17630
-82861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6533
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6533
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
56

query I rowsort
SELECT ALL col0 - ( col0 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT DISTINCT COUNT( * ) * 76 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT COUNT ( * ) * 76 FROM tab2
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-6537
SELECT COUNT( * ) AS col1, 17 + - 95 FROM tab0 AS cor0
----
3
-78

skipif mysql # not compatible
query II rowsort label-6537
SELECT COUNT ( * ) AS col1, 17 + - 95 FROM tab0 AS cor0
----
3
-78

query I rowsort
SELECT ALL + 5 FROM tab2 cor0 WHERE + col2 + col2 BETWEEN NULL AND + + col0
----

query I rowsort
SELECT 53 * 80 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4240
4240
4240

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE 59 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT col0 * + col0 + - col2 FROM tab1 cor0
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ( + - ( COUNT( * ) ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6542
SELECT ( + - ( COUNT ( * ) ) ) FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col2 ) * 53 * - 11 IS NULL
----

query II rowsort
SELECT - col2 AS col1, - col2 AS col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query II rowsort
SELECT ALL ( + 5 ) AS col1, - col1 AS col2 FROM tab1
----
5
-14
5
-47
5
-5

query I rowsort
SELECT ALL 55 * - 52 FROM tab0
----
-2860
-2860
-2860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6547
SELECT ALL + col2 * col1 AS col1, 98 - CAST( - col0 AS SIGNED ) + + + 99 AS col2 FROM tab0
----
210
284
3807
212
99
294

skipif mysql # not compatible
query II rowsort label-6547
SELECT ALL + col2 * col1 AS col1, 98 - CAST ( - col0 AS INTEGER ) + + + 99 AS col2 FROM tab0
----
210
284
3807
212
99
294

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT ALL 0 DIV - col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6548
SELECT ALL 0 / - col0 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT + COUNT( * ) * + + 61 AS col1 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + COUNT ( * ) * + + 61 AS col1 FROM tab2
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT ( CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6550
SELECT ( CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL MAX( ALL + + col0 ) * + 75 FROM tab1
----
6825

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL MAX ( ALL + + col0 ) * + 75 FROM tab1
----
6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * - 66 col2 FROM tab1
----
-5874

query I rowsort
SELECT ALL + 71 * + - col2 AS col0 FROM tab1
----
-4189
-4828
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT DISTINCT MIN( - col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT MIN ( - col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-243

query I rowsort
SELECT - col0 * - col1 + + col0 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT col2 * + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT ALL - ( - + SUM( + - 62 ) ) AS col0 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL - ( - + SUM ( + - 62 ) ) AS col0 FROM tab2 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - COUNT( + 73 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6557
SELECT - COUNT ( + 73 ) AS col0 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT ALL col2 DIV 63 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL col2 / 63 AS col1 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT 91 + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6559
SELECT 91 + COUNT ( * ) FROM tab1
----
94

query I rowsort
SELECT col1 * + col1 FROM tab2 AS cor0 WHERE ( col0 / + col1 - col2 ) IS NOT NULL
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-6561
SELECT ALL + col1 DIV - 49 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL + col1 / - 49 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + - 47 + + 27 FROM tab0 AS cor0 WHERE NOT 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT + COUNT( * ) + 77 AS col1 FROM tab0 AS cor0 WHERE 80 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-6563
SELECT + COUNT ( * ) + 77 AS col1 FROM tab0 AS cor0 WHERE 80 IS NULL
----
77

query II rowsort
SELECT - + 14 AS col2, + 69 FROM tab1 AS cor0
----
-14
69
-14
69
-14
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + COUNT( * ) + + + COUNT( * ) * + - 7 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6565
SELECT + COUNT ( * ) + + + COUNT ( * ) * + - 7 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT ( + 0 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6567
SELECT - COUNT( - - 20 ) DIV + - 2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6567
SELECT - COUNT ( - - 20 ) / + - 2 FROM tab0
----
1

query I rowsort
SELECT - 91 * + col2 * 77 FROM tab1
----
-413413
-476476
-672672

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 10 IS NOT NULL )
----

query I rowsort
SELECT ALL + col2 + - 13 AS col1 FROM tab1
----
46
55
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL ( + COUNT( * ) ) + + 40 AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL ( + COUNT ( * ) ) + + 40 AS col0 FROM tab0
----
43

query I rowsort
SELECT DISTINCT col0 * 77 + - col1 * + col2 AS col0 FROM tab1
----
2583
3811
6250

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( col1 + + + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT + SUM( DISTINCT + - 14 ) - - - 84 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + SUM ( DISTINCT + - 14 ) - - - 84 FROM tab2 AS cor0
----
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = - col0 * + - 69 * col1 - ( 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6576
SELECT * FROM tab0 WHERE + ( - CAST( NULL AS SIGNED ) ) = - col2
----

skipif mysql # not compatible
query III rowsort label-6576
SELECT * FROM tab0 WHERE + ( - CAST ( NULL AS INTEGER ) ) = - col2
----

query I rowsort
SELECT 29 * - col2 AS col0 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT DISTINCT ( + col2 ) * + + col1 + - 37 AS col1 FROM tab2
----
1136
3043
3849

query II rowsort
SELECT ALL + 53, col2 AS col0 FROM tab0 AS cor0
----
53
10
53
47
53
99

query I rowsort
SELECT + - 5 * + 2 AS col2 FROM tab1 AS cor0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + - col2 + - 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - + col2 ) * + 72 * - col0 AS col0 FROM tab0 AS cor0
----
-50760
-62640
-691416

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT + MAX( ALL + + col1 ) + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6583
SELECT DISTINCT + MAX ( ALL + + col1 ) + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col2 * - col1 - col0 * - col2 FROM tab2 AS cor0
----
2231
5640
8236

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + SUM( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6585
SELECT + SUM ( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - - col1 * - + col1 * + + col0 * col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT MIN( ALL - + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6587
SELECT MIN ( ALL - + col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT ALL - - col1 * - 3 + - col0 AS col2 FROM tab2 WHERE NOT - + 70 <> NULL
----

query I rowsort
SELECT DISTINCT + ( + 8 ) AS col0 FROM tab2
----
8

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT - + col2 DIV 9 * + 86 + + + 50 * 37 col1 FROM tab2 AS cor0
----
1334
1506
1678

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6591
SELECT - + col2 / 9 * + 86 + + + 50 * 37 col1 FROM tab2 AS cor0
----
1334
1506
1678

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 IS NOT NULL
----

query II rowsort
SELECT col0, col1 * + col2 + + ( + 89 ) FROM tab0 cor0
----
15
3896
87
299
97
188

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT 22 + - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6595
SELECT 22 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 62 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT DISTINCT - MIN( ALL + - CAST( - col0 AS SIGNED ) ) col1 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6597
SELECT DISTINCT - MIN ( ALL + - CAST ( - col0 AS INTEGER ) ) col1 FROM tab2
----
-46

query I rowsort
SELECT ( + col2 ) * col2 * + col2 AS col2 FROM tab1 AS cor0
----
205379
314432
884736

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT - - 82 - - col2 DIV + 45 AS col0 FROM tab0 cor0
----
82
83
84

skipif mysql # not compatible
query I rowsort label-6599
SELECT - - 82 - - col2 / + 45 AS col0 FROM tab0 cor0
----
82
83
84

query I rowsort
SELECT ALL col2 * 91 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4277
9009
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT ALL + col0 / + col1 * + ( - CAST( NULL AS SIGNED ) ) + 38 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL + col0 / + col1 * + ( - CAST ( NULL AS INTEGER ) ) + 38 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 4 * + - col2 FROM tab1
----
236
272
384

query I rowsort
SELECT ALL col1 * - col2 * + 56 FROM tab0
----
-11760
-213192
-5544

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT MIN( DISTINCT + col0 ) + - COUNT( DISTINCT + col0 ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6605
SELECT MIN ( DISTINCT + col0 ) + - COUNT ( DISTINCT + col0 ) AS col2 FROM tab2
----
43

query I rowsort
SELECT ALL col0 + + - 80 FROM tab1
----
-29
11
5

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * col2 FROM tab1 WHERE + col1 + + col1 IS NULL
----

query I rowsort
SELECT + - ( - 85 ) AS col2 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT - COUNT( ALL + - ( - + col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6610
SELECT - COUNT ( ALL + - ( - + col2 ) ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ( - col0 ) - - col1 AS col1, 3 AS col2 FROM tab2 AS cor0
----
-8
3
13
3
5
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 35 < + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 59 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6614
SELECT + + COUNT( DISTINCT + + ( + CAST( NULL AS SIGNED ) ) ) * + 15 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT + + COUNT ( DISTINCT + + ( + CAST ( NULL AS INTEGER ) ) ) * + 15 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 + - col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6617
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, + 60, - + ( + CAST( NULL AS SIGNED ) ) * - - 89 )
----

skipif mysql # not compatible
query III rowsort label-6617
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, + 60, - + ( + CAST ( NULL AS INTEGER ) ) * - - 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL + - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL + - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + - 67 BETWEEN - col0 * 7 * 82 AND - col0 * + col1 + - col2
----

query I rowsort
SELECT DISTINCT 7 * - - col1 FROM tab1
----
329
35
98

query II rowsort
SELECT DISTINCT - col2, - col2 AS col0 FROM tab0
----
-10
-10
-47
-47
-99
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 * - col2 ) NOT BETWEEN + col0 AND - 60 + - + col1 / - + col1
----

query I rowsort
SELECT ( + 89 ) AS col0 FROM tab1
----
89
89
89

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
10
47
99

query I rowsort
SELECT col2 * + 80 AS col0 FROM tab1
----
4720
5440
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col0 FROM tab1
----
63

query II rowsort
SELECT - col1 AS col0, + 99 AS col0 FROM tab0
----
-1
99
-21
99
-81
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col1 FROM tab2 AS cor0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 53 <= - + 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 + - - col2 col2 FROM tab0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT + + 3 + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6632
SELECT + + 3 + + COUNT ( * ) FROM tab0 cor0
----
6

query I rowsort
SELECT ALL 1 + - - col0 - - + col0 FROM tab0 AS cor0
----
175
195
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT ALL - 51 DIV + col2 - 36 * col2 FROM tab0 cor0
----
-1693
-3564
-365

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL - 51 / + col2 - 36 * col2 FROM tab0 cor0
----
-1693
-3564
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - MAX( + 24 ) FROM tab0 AS cor0 WHERE ( NULL > - + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT - MAX ( + 24 ) FROM tab0 AS cor0 WHERE ( NULL > - + 95 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6636
SELECT - CAST( + 10 AS SIGNED ) FROM tab1 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-6636
SELECT - CAST ( + 10 AS INTEGER ) FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL - 38 * - - col2 FROM tab2
----
-1520
-2204
-874

onlyif mysql # DIV for integer division: 
query II rowsort label-6638
SELECT ALL 87 DIV - - col2, + col1 AS col1 FROM tab2
----
1
67
2
77
3
51

skipif mysql # not compatible
query II rowsort label-6638
SELECT ALL 87 / - - col2, + col1 AS col1 FROM tab2
----
1
67
2
77
3
51

query II rowsort
SELECT - col0 AS col2, col1 FROM tab1 WHERE ( ( + 88 ) ) / 80 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 39 IS NULL
----

query I rowsort
SELECT DISTINCT 81 * - col0 + + col1 * - col1 AS col0 FROM tab2
----
-10564
-11113
-6327

query I rowsort
SELECT ALL col2 - col1 + + col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col0 * col2 * + 1 + - col2 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT 59 * 88 FROM tab1 AS cor0
----
5192
5192
5192

query I rowsort
SELECT + + 64 + 81 AS col1 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND - - 48
----

query II rowsort
SELECT col0, 45 AS col2 FROM tab0
----
15
45
87
45
97
45

query II rowsort
SELECT col0 AS col0, 38 AS col1 FROM tab2
----
46
38
64
38
75
38

query I rowsort
SELECT - col2 - + col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 13 + - - col0 AND + + col2
----

query II rowsort
SELECT col1 AS col0, col1 + + ( - - col1 ) - + col2 + + col2 AS col2 FROM tab0 AS cor0
----
1
2
21
42
81
162

query I rowsort
SELECT col1 * - 40 + col1 * + col1 * - + 29 FROM tab1 AS cor0
----
-6244
-65941
-925

query I rowsort
SELECT DISTINCT + col0 * + 2 AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ( - + col1 ) FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col0, + 6 * col1 FROM tab1 AS cor0
----
51
84
85
30
91
282

query I rowsort
SELECT ALL - - 86 AS col1 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT + + ( - - SUM( + 68 ) ) * - + ( COUNT( + + col1 ) ) FROM tab1 AS cor0
----
-612

skipif mysql # not compatible
query I rowsort label-6656
SELECT + + ( - - SUM ( + 68 ) ) * - + ( COUNT ( + + col1 ) ) FROM tab1 AS cor0
----
-612

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 98 IS NOT NULL
----

query I rowsort
SELECT ALL - 95 + 17 AS col2 FROM tab1 WHERE - col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 84 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 72 + + col0, col1 + 58 col0 FROM tab0
----
159
79
169
59
87
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT ALL COUNT( col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL COUNT ( col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - col0 * col1 * + 62 + + 59 + - 75 FROM tab1
----
-26366
-265190
-44284

query I rowsort
SELECT ALL + col2 + + + col2 - 23 * col2 * + col1 AS col2 FROM tab2
----
-26933
-70760
-89262

query III rowsort
SELECT * FROM tab1 WHERE + + col0 < - - 59
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 41 + - col0, 3 col2 FROM tab1 AS cor0
----
-126
3
-132
3
-92
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 7 * - col2 / - + 70 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + 7 * - col2 / - + 70 IS NULL
----
-9

query I rowsort
SELECT DISTINCT - + 55 * + 35 AS col1 FROM tab0 AS cor0
----
-1925

query I rowsort
SELECT DISTINCT + 86 * - - col1 + col0 AS col1 FROM tab0
----
183
1893
6981

query III rowsort
SELECT * FROM tab2 WHERE + + col2 >= - 57 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT SUM( DISTINCT col0 ) - - COUNT( - - col2 ) FROM tab2 cor0
----
188

skipif mysql # not compatible
query I rowsort label-6670
SELECT SUM ( DISTINCT col0 ) - - COUNT ( - - col2 ) FROM tab2 cor0
----
188

query I rowsort
SELECT DISTINCT + 43 * col0 + + ( + col2 ) FROM tab2 cor0
----
2001
2792
3283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6672
SELECT ALL COUNT( * ) DIV - COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL COUNT ( * ) / - COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - - 45 - + col2 FROM tab0 AS cor0
----
-2
-54
35

query I rowsort
SELECT 57 + + col2 + col1 AS col2 FROM tab2 AS cor0
----
131
174
182

query I rowsort
SELECT + - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT - 57 + - - 17 AS col1 FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6677
SELECT DISTINCT - 33 - + CAST( NULL AS SIGNED ) + + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT - 33 - + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col0 + + col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT + col2 + + + col1 AS col2 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT col2 * - 51 * col2 FROM tab1
----
-177531
-235824
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT 14 * + CAST( NULL AS SIGNED ) * - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT 14 * + CAST ( NULL AS INTEGER ) * - + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + + 0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT + COUNT( * ) * + MIN( 84 ) AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT + COUNT ( * ) * + MIN ( 84 ) AS col0 FROM tab0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6684
SELECT DISTINCT col1 * 85 / + col1 + col2 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT col1 * 85 / + col1 + col2 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 * + col1 * - col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT ALL col0 DIV 49 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL col0 / 49 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

query I rowsort
SELECT + 67 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT 21 * + COUNT( * ) AS col1, 69 AS col1 FROM tab2 cor0
----
63
69

skipif mysql # not compatible
query II rowsort label-6689
SELECT 21 * + COUNT ( * ) AS col1, 69 AS col1 FROM tab2 cor0
----
63
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT - MAX( DISTINCT + - 17 ) FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-6690
SELECT - MAX ( DISTINCT + - 17 ) FROM tab1 cor0
----
17

query II rowsort
SELECT + col2 * + col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 67 + - 37 = col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6693
SELECT DISTINCT - COUNT( * ) DIV - 78 AS col1, 45 AS col2 FROM tab2 cor0
----
0
45

skipif mysql # not compatible
query II rowsort label-6693
SELECT DISTINCT - COUNT ( * ) / - 78 AS col1, 45 AS col2 FROM tab2 cor0
----
0
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT DISTINCT 59 + - CAST( NULL AS SIGNED ) + ( - + col1 ) * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT 59 + - CAST ( NULL AS INTEGER ) + ( - + col1 ) * col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 70 + + + col2 AS col0 FROM tab2
----
110
128
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT + SUM( ALL + 42 ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-6697
SELECT + SUM ( ALL + 42 ) FROM tab1
----
126

query I rowsort
SELECT ALL - ( + 53 ) AS col0 FROM tab1
----
-53
-53
-53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 5 + + 87 * + + col1 >= col2
----

query I rowsort
SELECT DISTINCT 54 + - 99 * 66 FROM tab1
----
-6480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT - CAST( col2 AS SIGNED ) col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6701
SELECT - CAST ( col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT 82 AS col0, + 68 + + COUNT( * ) FROM tab2
----
82
71

skipif mysql # not compatible
query II rowsort label-6702
SELECT 82 AS col0, + 68 + + COUNT ( * ) FROM tab2
----
82
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6703
SELECT + col1 * - 6 * + col1, - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2646
NULL
-39366
NULL
-6
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6703
SELECT + col1 * - 6 * + col1, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2646
NULL
-39366
NULL
-6
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6704
SELECT DISTINCT + col0 * CAST( - col2 AS SIGNED ) + 73 FROM tab2
----
-2487
-4277
-985

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + col0 * CAST ( - col2 AS INTEGER ) + 73 FROM tab2
----
-2487
-4277
-985

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + 48 + - COUNT( * ) FROM tab2, tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6705
SELECT + 48 + - COUNT ( * ) FROM tab2, tab0 AS cor0
----
39

query I rowsort
SELECT + 72 + + 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afb14c7b1dc8c7b4f69c45a9b5a921ae

query III rowsort
SELECT * FROM tab2 WHERE - 61 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 - 7 FROM tab0
----
-106
-17
-54

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE 41 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6711
SELECT ALL 23 * + - ( COUNT( * ) ) * + SUM( DISTINCT + - col2 ) - + SUM( DISTINCT - - CAST( 33 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
15354

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL 23 * + - ( COUNT ( * ) ) * + SUM ( DISTINCT + - col2 ) - + SUM ( DISTINCT - - CAST ( 33 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
15354

query I rowsort
SELECT - col2 * - ( + - col2 ) - - 76 * - + col2 AS col2 FROM tab1 cor0
----
-16512
-7965
-9792

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6713
SELECT + CAST( ( - col2 ) AS SIGNED ) DIV - col0 + col1 - + col1 * - col1 - + col1 - + - 52 + + ( + col1 ) + - 94 * - col1 FROM tab1 AS cor0
----
1579
552
6726

skipif mysql # not compatible
query I rowsort label-6713
SELECT + CAST ( ( - col2 ) AS INTEGER ) / - col0 + col1 - + col1 * - col1 - + col1 - + - 52 + + ( + col1 ) + - 94 * - col1 FROM tab1 AS cor0
----
1579
552
6726

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL 2 - - COUNT( * ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL 2 - - COUNT ( * ) FROM tab2 AS cor0
----
5

query II rowsort
SELECT DISTINCT + + col1 * + col0, + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN 41 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT + 39 * - COUNT( * ) AS col1 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-6716
SELECT + 39 * - COUNT ( * ) AS col1 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT col2 * + + col1 * - 58 AS col1 FROM tab1
----
-17110
-185368
-77952

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6718
SELECT ALL * FROM tab1 WHERE NOT + CAST( - - col1 AS DECIMAL ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6718
SELECT ALL * FROM tab1 WHERE NOT + CAST ( - - col1 AS REAL ) + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT - 88 * - - 28 * + + CAST( 90 AS SIGNED ) AS col2 FROM tab1
----
-221760
-221760
-221760

skipif mysql # not compatible
query I rowsort label-6719
SELECT - 88 * - - 28 * + + CAST ( 90 AS INTEGER ) AS col2 FROM tab1
----
-221760
-221760
-221760

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT MIN( ALL + col1 ) * COUNT( * ) + + 61 AS col1 FROM tab2
----
214

skipif mysql # not compatible
query I rowsort label-6720
SELECT MIN ( ALL + col1 ) * COUNT ( * ) + + 61 AS col1 FROM tab2
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL + MIN( - 33 ) * + COUNT( * ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + MIN ( - 33 ) * + COUNT ( * ) FROM tab2
----
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <> + + 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 * + col2 * col1 col2 FROM tab1
----
17995
194956
81984

query II rowsort
SELECT DISTINCT col2, col2 + col0 + - col2 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT DISTINCT + 56 DIV - col0 AS col2 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT + 56 / - col0 AS col2 FROM tab0 AS cor0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + MIN( ALL + + 86 ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6726
SELECT + MIN ( ALL + + 86 ) FROM tab2 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-6727
SELECT DISTINCT 79 DIV col1, + 27 AS col0 FROM tab0
----
0
27
3
27
79
27

skipif mysql # not compatible
query II rowsort label-6727
SELECT DISTINCT 79 / col1, + 27 AS col0 FROM tab0
----
0
27
3
27
79
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT 56 DIV - - 1 + + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9a76417a0e660b9e47db42d33f8268c3

skipif mysql # not compatible
query I rowsort label-6728
SELECT 56 / - - 1 + + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9a76417a0e660b9e47db42d33f8268c3

query I rowsort
SELECT ALL - col1 * - + col1 * - 45 AS col0 FROM tab1 cor0
----
-1125
-8820
-99405

query II rowsort
SELECT DISTINCT + col0, - col2 * col2 FROM tab1 AS cor0
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT + col2 * + - col1 + + col1 FROM tab0 AS cor0
----
-189
-3726
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 40 ) col1 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT - ( col0 ) FROM tab0 AS cor0 WHERE NOT col1 * + 22 + + - col0 IS NOT NULL
----

query I rowsort
SELECT + - 46 AS col0 FROM tab2 cor0
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6735
SELECT + AVG ( DISTINCT + ( + col1 ) ) / + CAST( NULL AS SIGNED ) + + 96 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT + AVG ( DISTINCT + ( + col1 ) ) / + CAST ( NULL AS INTEGER ) + + 96 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT COUNT( + col1 ) * + + 42 AS col0 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6736
SELECT COUNT ( + col1 ) * + + 42 AS col0 FROM tab1 AS cor0
----
126

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 24 FROM tab1 AS cor0 WHERE + col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT + - COUNT( DISTINCT ( - col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6739
SELECT + - COUNT ( DISTINCT ( - col1 ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - ( col1 ) AS col0, + col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT + col0, ( col0 ) FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT DISTINCT - col0 AS col2, 43 FROM tab2 AS cor0
----
-46
43
-64
43
-75
43

query II rowsort
SELECT + 44 + - col1 AS col1, - col2 AS col1 FROM tab1
----
-3
-68
30
-96
39
-59

query I rowsort
SELECT ALL + 85 + + 1 AS col2 FROM tab2
----
86
86
86

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 87 FROM tab1 WHERE - + col2 + - col1 IS NOT NULL
----
87
87
87

query I rowsort
SELECT col0 * + 72 + + col2 + 56 AS col0 FROM tab2 AS cor0
----
3391
4704
5514

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + MIN( ALL - col0 ) + 14 * - + ( MIN( + + col1 ) ) AS col2 FROM tab0 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-6748
SELECT + MIN ( ALL - col0 ) + 14 * - + ( MIN ( + + col1 ) ) AS col2 FROM tab0 cor0
----
-111

query I rowsort
SELECT + 29 + - col0 AS col0 FROM tab0 AS cor0
----
-58
-68
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT - CAST( NULL AS SIGNED ) * col0 + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT - CAST ( NULL AS INTEGER ) * col0 + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 88 - + col2 * + + 19 FROM tab0 AS cor0
----
-102
-1793
-805

query I rowsort
SELECT DISTINCT 9 + - col1 FROM tab0 AS cor0
----
-12
-72
8

query I rowsort
SELECT + ( + 68 ) AS col2 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT - - MIN( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6754
SELECT - - MIN ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 * + + col0 * + col0 + + col1 <> + col1 * 65
----

query I rowsort
SELECT ALL col1 * + 88 * - col1 AS col2 FROM tab0
----
-38808
-577368
-88

query I rowsort
SELECT - 19 * + + 56 FROM tab0 WHERE NOT - ( - col2 ) BETWEEN NULL AND 9
----
-1064
-1064
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT + 24 * SUM( + ( col2 ) ) FROM tab0
----
3744

skipif mysql # not compatible
query I rowsort label-6758
SELECT + 24 * SUM ( + ( col2 ) ) FROM tab0
----
3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT DISTINCT ( - 92 ) FROM tab1 WHERE NOT + col1 + + 35 / + col0 <> - ( + + col2 ) + - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT ( - 92 ) FROM tab1 WHERE NOT + col1 + + 35 / + col0 <> - ( + + col2 ) + - CAST ( - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - 91 * - - MIN( DISTINCT + - col2 ) col0 FROM tab0
----
9009

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6760
SELECT - 91 * - - MIN ( DISTINCT + - col2 ) col0 FROM tab0
----
9009

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + 25 BETWEEN + col0 AND - 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6762
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 78 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 78 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - 70 * MIN( DISTINCT col1 ) FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-6763
SELECT - 70 * MIN ( DISTINCT col1 ) FROM tab0
----
-70

query I rowsort
SELECT DISTINCT ( + - 19 ) FROM tab0 cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + SUM( ALL + - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6765
SELECT + SUM ( ALL + - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + 22 * + col2 FROM tab1
----
1298
1496
2112

query I rowsort
SELECT ALL col2 + - col2 * - + 69 * col1 * - 67 + + - 36 * - 23 AS col0 FROM tab2
----
-14237972
-17964092
-5421928

query I rowsort
SELECT + 55 + - - 82 * + - col1 * - + col1 FROM tab2
----
213337
368153
486233

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT - - COUNT( col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6769
SELECT DISTINCT - - COUNT ( col2 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + 58 ) * + - col2 FROM tab1 cor0
----
-3422
-3944
-5568

query II rowsort
SELECT col2, col2 FROM tab1 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT + 16 / - SUM( DISTINCT + 17 ) + - - 31 FROM tab0 cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT + 16 / - SUM ( DISTINCT + 17 ) + - - 31 FROM tab0 cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT 54 AS col1 FROM tab1 AS cor0 WHERE NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL + + 19 * + COUNT( * ) * 58 AS col2 FROM tab0 AS cor0
----
3306

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + + 19 * + COUNT ( * ) * 58 AS col2 FROM tab0 AS cor0
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT - 1 * COUNT( * ) col2 FROM tab2 WHERE NULL BETWEEN NULL AND - - col0 * col0 + 48
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6775
SELECT - 1 * COUNT ( * ) col2 FROM tab2 WHERE NULL BETWEEN NULL AND - - col0 * col0 + 48
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT col0 DIV 3 FROM tab0
----
29
32
5

skipif mysql # not compatible
query I rowsort label-6776
SELECT col0 / 3 FROM tab0
----
29
32
5

query I rowsort
SELECT ALL 80 + - col2 + + col2 FROM tab1
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL 89 + + COUNT( * ) + 47 FROM tab0
----
139

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL 89 + + COUNT ( * ) + 47 FROM tab0
----
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 54 col2 FROM tab0
----
-10
54
-47
54
-99
54

query I rowsort
SELECT + col1 / + 63 * + + 7 FROM tab1 WHERE + + col1 BETWEEN 44 * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6781
SELECT 68 AS col0, COUNT( * ) AS col0 FROM tab2
----
68
3

skipif mysql # not compatible
query II rowsort label-6781
SELECT 68 AS col0, COUNT ( * ) AS col0 FROM tab2
----
68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT - 75 - + + COUNT( * ) - + COUNT( * ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6782
SELECT - 75 - + + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT + + 65 * + COUNT( * ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + + 65 * + COUNT ( * ) FROM tab2 AS cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT DISTINCT col2 DIV + col0 + col0 * + col1 col0 FROM tab1 AS cor0
----
425
4277
715

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6784
SELECT DISTINCT col2 / + col0 + col0 * + col1 col0 FROM tab1 AS cor0
----
425
4277
715

query I rowsort
SELECT - 42 + - 13 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL - col1 * + + col1 + + 80 FROM tab1 AS cor0
----
-116
-2129
55

query I rowsort
SELECT col0 + + 7 * 92 FROM tab1 cor0
----
695
729
735

query I rowsort
SELECT ( - 74 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT - col2 + + CAST( + col2 AS SIGNED ) + + - col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6789
SELECT - col2 + + CAST ( + col2 AS INTEGER ) + + - col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 45 + col2 + 89 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = 93
----

query I rowsort
SELECT DISTINCT col1 + - col0 + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL - MIN( DISTINCT - + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL - MIN ( DISTINCT - + col0 ) FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT CAST( + + ( - - MIN( + + 71 ) ) AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-6794
SELECT CAST ( + + ( - - MIN ( + + 71 ) ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
213

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 63
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 46 / col2 / - - col0 IS NOT NULL
----

query I rowsort
SELECT + 9 + 69 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT 49 * col1 FROM tab1
----
2303
245
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6799
SELECT + - CAST( + 63 AS SIGNED ) + MIN( - - col0 ) * - + 51 * - - 84 col2 FROM tab0 WHERE NOT - ( - 96 ) IS NULL
----
-64323

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6799
SELECT + - CAST ( + 63 AS INTEGER ) + MIN ( - - col0 ) * - + 51 * - - 84 col2 FROM tab0 WHERE NOT - ( - 96 ) IS NULL
----
-64323

query I rowsort
SELECT ALL + ( - 26 ) FROM tab1
----
-26
-26
-26

query II rowsort
SELECT DISTINCT 43 AS col1, - 80 AS col1 FROM tab0
----
43
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - - ( COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6802
SELECT ALL - - ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6803
SELECT DISTINCT 58 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT 58 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 * col0 AS col0 FROM tab2 WHERE ( NULL ) <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 97 < 49 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + col1 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * 97 AS col0 FROM tab0
----
-2037
-7857
-97

query III rowsort
SELECT * FROM tab1 WHERE col0 * 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6809
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT CAST( col1 AS SIGNED ) col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6810
SELECT CAST ( col1 AS INTEGER ) col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT ALL ( col1 ) * CAST( NULL AS SIGNED ) + col0 * col1 FROM tab2 WHERE NOT - ( col1 ) / col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL ( col1 ) * CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab2 WHERE NOT - ( col1 ) / col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT MIN( + col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6812
SELECT DISTINCT MIN ( + col1 ) col2 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * 58 col2 FROM tab1 WHERE - col0 IS NOT NULL
----
3538
3538
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT DISTINCT COUNT( ALL ( + col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT COUNT ( ALL ( + col1 ) ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 32 NOT BETWEEN 66 - col2 AND - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL MIN( col2 ) col2 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6816
SELECT ALL MIN ( col2 ) col2 FROM tab0
----
10

query I rowsort
SELECT 54 - col2 FROM tab0
----
-45
44
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( 11 )
----

query I rowsort
SELECT DISTINCT + col0 * + ( - col0 ) FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + COUNT( * ) * MAX( ALL col1 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-6822
SELECT + COUNT ( * ) * MAX ( ALL col1 ) FROM tab2
----
231

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE col1 NOT BETWEEN ( + col2 / + 17 ) AND 45
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 + 72 col1 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL - MAX( ALL - col1 ) * + 64 FROM tab1
----
320

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - MAX ( ALL - col1 ) * + 64 FROM tab1
----
320

query III rowsort
SELECT * FROM tab2 WHERE 38 > 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 74 + - col2 ) <= NULL
----

query I rowsort
SELECT - 17 FROM tab1 WHERE NOT ( + col0 ) <= ( col0 * - 18 )
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT CAST( col1 AS SIGNED ) - col2 * ( ( col0 ) ) AS col0 FROM tab0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-6829
SELECT CAST ( col1 AS INTEGER ) - col2 * ( ( col0 ) ) AS col0 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT 4 * 47 FROM tab0 AS cor0
----
188
188
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( - col1 ) <= col1
----
-3

skipif mysql # not compatible
query I rowsort label-6831
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( - col1 ) <= col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6832
SELECT ALL + COUNT( * ) * - 91 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + COUNT ( * ) * - 91 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 <= ( + col1 * col0 + - 30 / + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 <= ( + col1 * col0 + - 30 / + 50 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 - 30 col0 FROM tab0 AS cor0 WHERE NOT - col0 + col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT ALL + ( ( COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL + ( ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 97 col2 FROM tab2 AS cor0
----
-4947
-6499
-7469

query I rowsort
SELECT ALL + 11 FROM tab1 AS cor0 WHERE 33 NOT BETWEEN ( 11 ) AND + 54 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT MAX( + 1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6838
SELECT MAX ( + 1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 26 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT - col2 / - col1 - - 89 IN ( col2 * col2 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT + CAST( + 6 AS SIGNED ) AS col1 FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6841
SELECT + CAST ( + 6 AS INTEGER ) AS col1 FROM tab2
----
6
6
6

query I rowsort
SELECT 39 * + 51 FROM tab1
----
1989
1989
1989

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 32 / + col0 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6844
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE col1 IN ( CAST( NULL AS DECIMAL ) / 46 + ( CAST( - 12 AS SIGNED ) + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE col1 IN ( CAST ( NULL AS REAL ) / 46 + ( CAST ( - 12 AS INTEGER ) + col1 ) )
----

query I rowsort
SELECT + ( - col1 ) AS col0 FROM tab2 cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT CAST( NULL AS SIGNED ) + MIN( 89 ) FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT CAST ( NULL AS INTEGER ) + MIN ( 89 ) FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT + 8 * + + SUM( - + col0 ) * + 7 AS col0 FROM tab0
----
-11144

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT + 8 * + + SUM ( - + col0 ) * + 7 AS col0 FROM tab0
----
-11144

query I rowsort
SELECT + col1 + col2 + - + col1 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT + col0 + + 27 FROM tab2
----
102
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT + 37 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT + - col0 + - ( + + ( col2 ) ) FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT col2 * - col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-1600
-3364
-529

query I rowsort
SELECT + col2 + + col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 64 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT + + 77 * + 17 + - MIN( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
1250

skipif mysql # not compatible
query I rowsort label-6857
SELECT + + 77 * + 17 + - MIN ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
1250

query I rowsort
SELECT 73 * - 18 FROM tab2 AS cor0
----
-1314
-1314
-1314

query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab1 WHERE NULL >= ( 11 / col0 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT MIN( 0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT MIN ( 0 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - 97 * - col2 + - 3 AS col2 FROM tab0
----
4556
9600
967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT DISTINCT 68 + + - CAST( + ( - + col0 ) AS SIGNED ) * + ( + col1 ) AS col0 FROM tab0
----
1283
165
1895

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT 68 + + - CAST ( + ( - + col0 ) AS INTEGER ) * + ( + col1 ) AS col0 FROM tab0
----
1283
165
1895

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT + COUNT( * ) - + ( + 45 ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-6863
SELECT + COUNT ( * ) - + ( + 45 ) AS col2 FROM tab0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT CAST( - COUNT( * ) AS SIGNED ) - - 9 AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6864
SELECT CAST ( - COUNT ( * ) AS INTEGER ) - - 9 AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT ALL SUM( DISTINCT - ( col2 ) ) + - ( + COUNT( * ) ) FROM tab2
----
-124

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL SUM ( DISTINCT - ( col2 ) ) + - ( + COUNT ( * ) ) FROM tab2
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6866
SELECT * FROM tab0 WHERE - + col1 - + col2 = - CAST( NULL AS SIGNED ) - col1
----

skipif mysql # not compatible
query III rowsort label-6866
SELECT * FROM tab0 WHERE - + col1 - + col2 = - CAST ( NULL AS INTEGER ) - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL + COUNT( * ) + - + 82 - + MAX( - + 86 ) * - ( + ( + COUNT( * ) ) * + COUNT( * ) ) FROM tab2
----
-853

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + COUNT ( * ) + - + 82 - + MAX ( - + 86 ) * - ( + ( + COUNT ( * ) ) * + COUNT ( * ) ) FROM tab2
----
-853

query I rowsort
SELECT ALL - 91 AS col1 FROM tab1 cor0
----
-91
-91
-91

query I rowsort
SELECT ALL - - col2 * 51 - + col0 FROM tab2 AS cor0
----
1127
1976
2883

query I rowsort
SELECT - col1 * - + col1 FROM tab1 cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT - + MIN( DISTINCT + + 25 ) AS col1 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6871
SELECT - + MIN ( DISTINCT + + 25 ) AS col1 FROM tab0 AS cor0
----
-25

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 82 * - col1 AS col0 FROM tab1 AS cor0
----
-1148
-3854
-410

query I rowsort
SELECT ALL col2 - - col1 FROM tab0 AS cor0 WHERE + col0 * 30 IS NOT NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT 32 - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
23

skipif mysql # not compatible
query I rowsort label-6875
SELECT 32 - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
23

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL + CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT + col1 DIV col2 + + col1 + col2 FROM tab0 AS cor0
----
100
129
33

skipif mysql # not compatible
query I rowsort label-6878
SELECT + col1 / col2 + + col1 + col2 FROM tab0 AS cor0
----
100
129
33

query I rowsort
SELECT ALL 29 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - - SUM( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-6881
SELECT - - SUM ( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT 50 * 72 + - col0 FROM tab0 WHERE NOT col2 IS NULL
----
3503
3513
3585

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 16 + + col2 IN ( - + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 94 * - col1 + + + col2 ) NOT BETWEEN ( NULL ) AND ( + ( 86 ) * + 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT - - ( - COUNT( * ) ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6885
SELECT DISTINCT - - ( - COUNT ( * ) ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND NULL
----
0

query I rowsort
SELECT ALL - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - AVG ( + + col2 ) FROM tab1 cor0 WHERE NOT ( + col0 ) NOT BETWEEN + 92 * - col2 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 2 ) >= ( ( col1 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 16 + - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT ALL - COUNT( CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL - COUNT ( CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL - 30 + 53 FROM tab1
----
23
23
23

query I rowsort
SELECT + col0 - - + 28 FROM tab2 AS cor0
----
103
74
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT + + 24 DIV + col0 + - 94 AS col2 FROM tab0 AS cor0
----
-93
-94
-94

skipif mysql # not compatible
query I rowsort label-6893
SELECT + + 24 / + col0 + - 94 AS col2 FROM tab0 AS cor0
----
-93
-94
-94

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - col0 + - - col2 - + 57 * + 39 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6895
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - col0 + - - col2 - + 57 * + 39 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 + - 9 col0 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT + - col1 * - 47 * - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-103870
-1180
-9226

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6898
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST( col1 AS SIGNED ) BETWEEN ( + + col2 + - + col0 * - + 66 ) AND ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6898
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST ( col1 AS INTEGER ) BETWEEN ( + + col2 + - + col0 * - + 66 ) AND ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 80, + col0 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6900
SELECT * FROM tab2 WHERE - ( - - col1 ) >= CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6900
SELECT * FROM tab2 WHERE - ( - - col1 ) >= CAST ( - - col1 AS INTEGER )
----

query I rowsort
SELECT + ( - - col2 ) + - 81 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col2 * 7 )
----

query I rowsort
SELECT ALL + col2 + + ( - - col0 ) AS col1 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6903
SELECT + col0 DIV - - CAST( - - col1 AS SIGNED ) AS col2, col1 AS col0 FROM tab0
----
0
81
4
21
97
1

skipif mysql # not compatible
query II rowsort label-6903
SELECT + col0 / - - CAST ( - - col1 AS INTEGER ) AS col2, col1 AS col0 FROM tab0
----
0
81
4
21
97
1

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT BETWEEN - col0 AND + col1
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT ALL - col2 + - 80 DIV 89 * 43 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - col2 + - 80 / 89 * 43 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - + col0 * - - 83 AS col1 FROM tab1 AS cor0
----
-4233
-7055
-7553

query II rowsort
SELECT - col0 AS col0, col0 + + - col2 * + + col1 * col0 AS col0 FROM tab2 AS cor0
----
-46
-53912
-64
-197056
-75
-291375

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT + SUM( - - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT + SUM ( - - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT ALL SUM( + col0 ) * 64 FROM tab2
----
11840

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL SUM ( + col0 ) * 64 FROM tab2
----
11840

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 78 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - + ( + + col1 ) * + 83 AS col0 FROM tab2 AS cor0
----
-4233
-5561
-6391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 38 * + - 82 AS col2, 52 col1 FROM tab2 AS cor0
----
-3116
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT ALL ( - col2 ) * col1 + col0 * - + ( CAST( col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL ( - col2 ) * col1 + col0 * - + ( CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT + - SUM( col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6915
SELECT + - SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT + + MAX( + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6916
SELECT + + MAX ( + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT MIN( ALL - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6917
SELECT MIN ( ALL - col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 83 ) BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 70 * 34 AS col1 FROM tab0
----
2380

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT ALL + 12 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + 12 / + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6921
SELECT + CAST( NULL AS SIGNED ) * - col1 * - - 59 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT + CAST ( NULL AS INTEGER ) * - col1 * - - 59 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 36 * - - col2 FROM tab1
----
2124
2448
3456

query II rowsort
SELECT 35, - 42 AS col0 FROM tab2
----
35
-42
35
-42
35
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-6924
SELECT DISTINCT + col2 + + col2 DIV + 55 AS col2, col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
60
1
69
1
97
1

skipif mysql # not compatible
query II rowsort label-6924
SELECT DISTINCT + col2 + + col2 / + 55 AS col2, col1 / + col1 AS col0 FROM tab1 AS cor0
----
60
1
69
1
97
1

query II rowsort
SELECT DISTINCT 90, + ( 62 ) AS col1 FROM tab2
----
90
62

query I rowsort
SELECT DISTINCT - 68 * - col0 - - col2 AS col0 FROM tab1 AS cor0
----
3564
5839
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT + + SUM( DISTINCT + - col0 ) AS col2 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6927
SELECT + + SUM ( DISTINCT + - col0 ) AS col2 FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT + 22 - 83 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT + 22 - 83 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-227

query I rowsort
SELECT - 7 - - col2 AS col0 FROM tab1
----
52
61
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT COUNT( * ) - - 0, MIN( ALL + col0 ) AS col0 FROM tab1
----
3
51

skipif mysql # not compatible
query II rowsort label-6930
SELECT COUNT ( * ) - - 0, MIN ( ALL + col0 ) AS col0 FROM tab1
----
3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT - MIN( - col1 ) - - + 80 AS col0 FROM tab1
----
127

skipif mysql # not compatible
query I rowsort label-6931
SELECT - MIN ( - col1 ) - - + 80 AS col0 FROM tab1
----
127

query II rowsort
SELECT DISTINCT col0 + - 42 AS col0, 95 FROM tab2
----
22
95
33
95
4
95

query II rowsort
SELECT - col2 - - - 25 AS col1, - col1 FROM tab1
----
-121
-14
-84
-5
-93
-47

query I rowsort
SELECT ALL + ( + 10 ) FROM tab1
----
10
10
10

query III rowsort
SELECT * FROM tab2 WHERE NOT 43 * - col2 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 56 ) * - 75 col2 FROM tab2 AS cor0
----
-4200
-4200
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL COUNT( 10 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL COUNT ( 10 ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6938
SELECT ALL 81 DIV - col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL 81 / - col0 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + 93 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
93
93
93

query I rowsort
SELECT - - ( - + ( - - ( col0 ) ) ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 > + 11
----

query II rowsort
SELECT + col2 AS col2, 2 FROM tab1 cor0
----
59
2
68
2
96
2

query II rowsort
SELECT col1, + 96 FROM tab0 AS cor0
----
1
96
21
96
81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT - col0 + + col1 * + 76 AS col1 FROM tab2 AS cor0
----
3830
5017
5788

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT col0 * 72 DIV - col1 + - col0 FROM tab1
----
-1309
-230
-313

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT col0 * 72 / - col1 + - col0 FROM tab1
----
-1309
-230
-313

query I rowsort
SELECT - - col2 * col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND 71 / - col0
----

query I rowsort
SELECT DISTINCT - 25 + - col0 AS col0 FROM tab0
----
-112
-122
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT + - COUNT( * ) + COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6949
SELECT + - COUNT ( * ) + COUNT ( * ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = 23 / - + 21 + + col2
----

query II rowsort
SELECT DISTINCT - + 74 * - 84, + col2 * + 85 AS col1 FROM tab2 AS cor0
----
6216
1955
6216
3400
6216
4930

query II rowsort
SELECT DISTINCT + col0 + + col2, col1 AS col1 FROM tab1 AS cor0
----
144
5
147
14
159
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6953
SELECT - MAX( DISTINCT - + col1 ) DIV + 46 + - COUNT( * ) - + 51 AS col0 FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6953
SELECT - MAX ( DISTINCT - + col1 ) / + 46 + - COUNT ( * ) - + 51 AS col0 FROM tab0 cor0
----
-54

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE + - col1 IS NULL
----

query I rowsort
SELECT + - ( 92 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT - col0 - + + col1 * - 0 AS col0 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT ALL ( + col1 ) - + 41 AS col1, - col0 FROM tab2 AS cor0
----
10
-46
26
-75
36
-64

query I rowsort
SELECT col1 + - 30 * + col2 AS col2 FROM tab0 AS cor0 WHERE + 94 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 89 * + col2 + 72 col2 FROM tab2 AS cor0
----
-104325
-274048
-345782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6960
SELECT ALL COUNT( ALL col0 ) + - 48 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL COUNT ( ALL col0 ) + - 48 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + 88 * 94 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 31 <= + - 34
----

query I rowsort
SELECT ALL - col2 - - + col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query II rowsort label-6964
SELECT DISTINCT + ( 80 ) DIV + + col1 AS col0, 49 col2 FROM tab2 AS cor0
----
1
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6964
SELECT DISTINCT + ( 80 ) / + + col1 AS col0, 49 col2 FROM tab2 AS cor0
----
1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT COUNT( * ) - - - 92 AS col1 FROM tab0 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT COUNT ( * ) - - - 92 AS col1 FROM tab0 cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6966
SELECT ALL + col1, - 7 * - CAST( + + col1 AS SIGNED ) FROM tab1
----
14
98
47
329
5
35

skipif mysql # not compatible
query II rowsort label-6966
SELECT ALL + col1, - 7 * - CAST ( + + col1 AS INTEGER ) FROM tab1
----
14
98
47
329
5
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6967
SELECT ALL - col0 col1, + CAST( + + col2 AS SIGNED ) AS col0 FROM tab0
----
-15
47
-87
10
-97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6967
SELECT ALL - col0 col1, + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6968
SELECT - 0, + CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-6968
SELECT - 0, + CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab1
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT 78 * - + 89 * SUM( + - ( + 89 ) ) AS col2 FROM tab2
----
1853514

skipif mysql # not compatible
query I rowsort label-6969
SELECT 78 * - + 89 * SUM ( + - ( + 89 ) ) AS col2 FROM tab2
----
1853514

query I rowsort
SELECT DISTINCT + col0 * 91 + + + col2 FROM tab0 AS cor0
----
1412
7927
8926

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 97 IS NULL
----

query II rowsort
SELECT ALL - col0 AS col2, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( ( - + col2 ) ) IS NULL OR NOT + 8 * + col2 + + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( ( - + col2 ) ) IS NULL OR NOT + 8 * + col2 + + - col1 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - - ( + COUNT( * ) ) + - + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6975
SELECT - - ( + COUNT ( * ) ) + - + COUNT ( * ) FROM tab0 cor0
----
0

query I rowsort
SELECT + - col0 FROM tab1 cor0 WHERE NOT ( - col0 ) >= 0 - col1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT DISTINCT + - COUNT( * ) * 45 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + - COUNT ( * ) * 45 FROM tab2 AS cor0
----
-135

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 83 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 < - 16
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 8 col1 FROM tab0 cor0 WHERE NULL IS NULL
----
376
792
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 * col2 col1 FROM tab1
----
1416
1632
2304

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 63 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 + col2 col1 FROM tab2
----
108
125
143

query II rowsort
SELECT DISTINCT col2 + col2 + + 93 AS col2, - col1 FROM tab0
----
113
-21
187
-81
291
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL 10 + - - 70 + + - COUNT( * ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL 10 + - - 70 + + - COUNT ( * ) FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT - 91 + 37 AS col2 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL + 23 + 59 * + 77 * - MIN( col1 ) AS col1 FROM tab0
----
-4520

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL + 23 + 59 * + 77 * - MIN ( col1 ) AS col1 FROM tab0
----
-4520

query I rowsort
SELECT DISTINCT 26 * + + col2 FROM tab1 cor0
----
1534
1768
2496

query I rowsort
SELECT + ( + + 59 ) + + ( + - ( + col2 ) ) FROM tab0 cor0
----
-40
12
49

query I rowsort
SELECT + - col0 * 29 + + - 99 + - col2 + - col1 + col0 AS col2 FROM tab0 AS cor0
----
-2566
-2915
-647

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT DISTINCT - 95 + + + ( col1 ) * col0 * - col0 * + col1 - - col2 DIV col1 AS col1 FROM tab0
----
-1476320
-3338024
-9405

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - 95 + + + ( col1 ) * col0 * - col0 * + col1 - - col2 / col1 AS col1 FROM tab0
----
-1476320
-3338024
-9405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL + col0 * + + 12 + - + col0 AS col2 FROM tab0
----
1067
165
957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT ALL + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) / - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) / - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT - COUNT( * ) * + + CAST( - 7 AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6996
SELECT - COUNT ( * ) * + + CAST ( - 7 AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
18

query II rowsort
SELECT ALL + + 86, col2 FROM tab0 WHERE NOT - col0 - + 20 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col2 * col1 * - - col0 IN ( 13, - 97 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col2 * col1 * - - col0 IN ( 13, - 97 * - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT COUNT( - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT COUNT ( - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7000
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) / - 17 * + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7000
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) / - 17 * + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 * - 4 * - col0 AS col2, 17 AS col2 FROM tab0 AS cor0
----
2820
17
3480
17
38412
17

query I rowsort
SELECT + + 77 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT DISTINCT + + COUNT( ( - - 13 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT + + COUNT ( ( - - 13 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL + + 55 + + COUNT( * ) FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL + + 55 + + COUNT ( * ) FROM tab0 cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7005
SELECT - COUNT( * ) DIV - + 19 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7005
SELECT - COUNT ( * ) / - + 19 col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT 97, col0 AS col0 FROM tab1 AS cor0
----
97
51
97
85
97
91

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + col0 <= + col2 * col1
----
14
47
5

query I rowsort
SELECT + ( + col2 ) * 77 FROM tab0 AS cor0
----
3619
7623
770

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + + MIN( + col0 ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7010
SELECT + + MIN ( + col0 ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-7011
SELECT + col2 DIV - 73 - + + col2 + + col2, col0 FROM tab0 cor0
----
-1
97
0
15
0
87

skipif mysql # not compatible
query II rowsort label-7011
SELECT + col2 / - 73 - + + col2 + + col2, col0 FROM tab0 cor0
----
-1
97
0
15
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT + MAX( DISTINCT + col1 ) + + 98 AS col1 FROM tab2 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-7012
SELECT + MAX ( DISTINCT + col1 ) + + 98 AS col1 FROM tab2 AS cor0
----
175

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 / - + 60 * col1 + col0 + + 3 * + col2 IS NULL
----

query I rowsort
SELECT col2 + + col1 + + col0 AS col1 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ALL - COUNT( * ) + - 94 col1 FROM tab1
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7015
SELECT ALL - COUNT ( * ) + - 94 col1 FROM tab1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT DISTINCT COUNT( DISTINCT col1 ) + + MAX( ALL 10 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT COUNT ( DISTINCT col1 ) + + MAX ( ALL 10 ) FROM tab0
----
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7018
SELECT + col2 * 79 - col1 DIV - col1 FROM tab0
----
3714
7822
791

skipif mysql # not compatible
query I rowsort label-7018
SELECT + col2 * 79 - col1 / - col1 FROM tab0
----
3714
7822
791

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT 6, 11 * + MAX( col2 ) AS col2 FROM tab2
----
6
638

skipif mysql # not compatible
query II rowsort label-7019
SELECT 6, 11 * + MAX ( col2 ) AS col2 FROM tab2
----
6
638

query I rowsort
SELECT 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL col2 * - 34 FROM tab1 AS cor0
----
-2006
-2312
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT - - SUM( ALL 21 ) * - + 96 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-6048

skipif mysql # not compatible
query I rowsort label-7022
SELECT - - SUM ( ALL 21 ) * - + 96 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-6048

query I rowsort
SELECT col1 * col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7024
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7025
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7025
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL

query II rowsort
SELECT DISTINCT col1 * + col2 * + col1 * col2, col2 + col0 AS col2 FROM tab2
----
1375929
69
15100996
133
9486400
104

query I rowsort
SELECT ALL + ( + 36 ) AS col1 FROM tab2, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT + 29 * + col1 FROM tab1
----
1363
145
406

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT + 24 DIV + - 89 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + 24 / + - 89 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7030
SELECT ALL col0 DIV 11 AS col1, + col1 * 97 * - 13 * - col2 FROM tab0
----
1
4800627
7
264810
8
124839

skipif mysql # not compatible
query II rowsort label-7030
SELECT ALL col0 / 11 AS col1, + col1 * 97 * - 13 * - col2 FROM tab0
----
1
4800627
7
264810
8
124839

query I rowsort
SELECT ALL - 96 * - col1 * - - col0 AS col2 FROM tab1
----
40800
410592
68544

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 BETWEEN + col0 * + 77 + + col0 AND - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT - + COUNT( * ) FROM tab0 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) + + + 9 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-7033
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) + + + 9 IS NULL )
----
-3

query I rowsort
SELECT col1 + - col1 + - col0 - col1 AS col2 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE - col2 >= + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7037
SELECT DISTINCT - ( - - COUNT( * ) ) DIV + - 5 - - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 45 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT - ( - - COUNT ( * ) ) / + - 5 - - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 45 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NULL NOT BETWEEN NULL AND 12 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7041
SELECT COUNT( * ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7041
SELECT COUNT ( * ) / + + COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT COUNT( * ) * + + 45 * - + CAST( NULL AS SIGNED ) + 89 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT COUNT ( * ) * + + 45 * - + CAST ( NULL AS INTEGER ) + 89 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT + CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7043
SELECT + CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT COUNT( * ) * + + 72 AS col1 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-7044
SELECT COUNT ( * ) * + + 72 AS col1 FROM tab2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT MIN( + + 48 ) col1 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7045
SELECT MIN ( + + 48 ) col1 FROM tab0
----
48

query I rowsort
SELECT DISTINCT + 90 + col2 AS col2 FROM tab2
----
113
130
148

query I rowsort
SELECT ALL col1 + - - ( - - 39 ) FROM tab1
----
44
53
86

query I rowsort
SELECT 51 - col2 AS col0 FROM tab0
----
-48
4
41

query I rowsort
SELECT DISTINCT - 63 + - 3 AS col2 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT + COUNT( * ) + + COUNT( - ( 86 ) ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT + COUNT ( * ) + + COUNT ( - ( 86 ) ) AS col0 FROM tab0
----
6

query I rowsort
SELECT + + col0 + - - 82 AS col0 FROM tab1 AS cor0
----
133
167
173

query II rowsort
SELECT ALL col0 * col2 * - col1, + col2 FROM tab2
----
-197120
40
-291450
58
-53958
23

query I rowsort
SELECT ALL - + col2 * 96 * + - 71 * - col0 AS col1 FROM tab0 cor0
----
-4805280
-5929920
-65454048

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) * 14 NOT IN ( - col0 )
----

query I rowsort
SELECT - 17 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - + 89 AS col1 FROM tab1 AS cor0
----
-89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 61 BETWEEN ( + ( + col1 ) ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7058
SELECT col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 1 * col2 AS col0, 60 col0 FROM tab2 AS cor0
----
23
60
40
60
58
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT ALL 79 AS col0, + COUNT( * ) AS col1 FROM tab2
----
79
3

skipif mysql # not compatible
query II rowsort label-7060
SELECT ALL 79 AS col0, + COUNT ( * ) AS col1 FROM tab2
----
79
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7061
SELECT ALL CAST( - + ( - col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL CAST ( - + ( - col0 ) AS INTEGER ) FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 79 > - - col2
----
51
14
96

query II rowsort
SELECT ALL 14 AS col0, col2 FROM tab1
----
14
59
14
68
14
96

query III rowsort
SELECT * FROM tab2 WHERE NOT 32 + - 37 <= + + 61 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT COUNT( * ) * + MIN( DISTINCT + 1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT COUNT ( * ) * + MIN ( DISTINCT + 1 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab2 WHERE NOT + 22 > - 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT - ( CAST( + col2 AS SIGNED ) ) + - ( - 20 ) AS col1 FROM tab1
----
-39
-48
-76

skipif mysql # not compatible
query I rowsort label-7068
SELECT - ( CAST ( + col2 AS INTEGER ) ) + - ( - 20 ) AS col1 FROM tab1
----
-39
-48
-76

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - - ( col2 )
----

query I rowsort
SELECT ALL - col2 + 45 AS col2 FROM tab0 AS cor0
----
-2
-54
35

query I rowsort
SELECT 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col1 * - + col2 + col1 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-7074
SELECT + col0 DIV col0 AS col0, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-7074
SELECT + col0 / col0 AS col0, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT MIN( - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT MIN ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL ( 95 ) + col1 FROM tab2 AS cor0
----
146
162
172

query I rowsort
SELECT ALL col0 * 45 * - 23 FROM tab1 AS cor0
----
-52785
-87975
-94185

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT - MAX( + 27 ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT - MAX ( + 27 ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + col2 + - + col2 AS col2, col2 AS col1 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 * 20 col0 FROM tab1
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab1 WHERE NOT ( + col1 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT ( + col1 IS NULL )
----
3

query II rowsort
SELECT - ( - + col2 ) + - - col2 AS col0, col1 AS col0 FROM tab0
----
198
1
20
21
94
81

query I rowsort
SELECT DISTINCT - col2 - + + col1 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7084
SELECT - COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 60 + - col1 FROM tab0 AS cor0
----
-141
-61
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7086
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - col0 - + + col1 + + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 92 * - col0 FROM tab2 AS cor0 WHERE NOT 27 NOT BETWEEN - 53 * col0 + + col0 + 46 + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 65 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT + + COUNT( * ) * + ( 98 ) + + - ( - - 40 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
842

skipif mysql # not compatible
query I rowsort label-7090
SELECT + + COUNT ( * ) * + ( 98 ) + + - ( - - 40 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
842

query I rowsort
SELECT ALL + col1 * + + col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < col2 + + 80 - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT - col0 DIV + 95 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT - col0 / + 95 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
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-7094
SELECT DISTINCT - + SUM ( + col2 ) col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT + MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7095
SELECT + MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + + 5 FROM tab0 cor0
----
5
5
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( + - 69 ) + + + col2 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT col2 * + + col2 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7099
SELECT - - ( - + col1 ), 4 + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7099
SELECT - - ( - + col1 ), 4 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT DISTINCT + - MIN( col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT + - MIN ( col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= - - 81
----

query II rowsort
SELECT DISTINCT - - col0, + col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7103
SELECT DISTINCT col2, CAST( - - 0 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-7103
SELECT DISTINCT col2, CAST ( - - 0 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * + col0 col0 FROM tab0
----
1044
1164
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL MIN( ALL 24 ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL MIN ( ALL 24 ) AS col2 FROM tab0
----
24

query I rowsort
SELECT ALL - col1 + + + 7 FROM tab0
----
-14
-74
6

query I rowsort
SELECT DISTINCT col0 * + - 93 + col2 - + col1 * - col1 AS col2 FROM tab2
----
-1654
-2428
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT DISTINCT 64 + + SUM( ALL 31 ) FROM tab0 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT 64 + + SUM ( ALL 31 ) FROM tab0 AS cor0
----
157

query I rowsort
SELECT DISTINCT + 77 * + + ( + col0 ) FROM tab2 AS cor0
----
3542
4928
5775

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 82 >= + 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + 57 * col0 AS col2 FROM tab1 AS cor0
----
2907
4845
5187

query I rowsort
SELECT ALL + col1 * - 84 AS col1 FROM tab0 AS cor0
----
-1764
-6804
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT + - COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7114
SELECT + - COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL col2 * + col0 + - col1 + col1 * + col0 FROM tab0 AS cor0
----
1839
2676
9699

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT DISTINCT ( - - col2 ) DIV col2 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT ( - - col2 ) / col2 AS col0 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL AND + 67 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 92 - col1 AS col1 FROM tab2
----
2065
3603
5269

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT 65 * + 27 + - + COUNT( ALL - 14 ) * - 79 AS col2 FROM tab1
----
1992

skipif mysql # not compatible
query I rowsort label-7119
SELECT 65 * + 27 + - + COUNT ( ALL - 14 ) * - 79 AS col2 FROM tab1
----
1992

query II rowsort
SELECT DISTINCT col2 - 87 + col0 * col0 AS col1, 62 AS col2 FROM tab2
----
2052
62
4049
62
5596
62

query I rowsort
SELECT ALL - col0 + + 69 AS col2 FROM tab2
----
-6
23
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT ALL - CAST( NULL AS SIGNED ) - + 39 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7122
SELECT ALL - CAST ( NULL AS INTEGER ) - + 39 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + - col2 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7124
SELECT + - CAST( NULL AS SIGNED ) * - + 69 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-7124
SELECT + - CAST ( NULL AS INTEGER ) * - + 69 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT - 49 * + + COUNT( * ) + - ( + - 98 ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7125
SELECT - 49 * + + COUNT ( * ) + - ( + - 98 ) FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT DISTINCT + + ( + MIN( + col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + + ( + MIN ( + col2 ) ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7127
SELECT + CAST( NULL AS SIGNED ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7127
SELECT + CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7128
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col2 + + CAST( + + 6 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7128
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col2 + + CAST ( + + 6 AS INTEGER )
----

query I rowsort
SELECT ( + + 14 ) FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL 82 + + col1 FROM tab0
----
103
163
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT DISTINCT COUNT( * ) + SUM( ALL - - 94 ) - - CAST( - MIN( DISTINCT - + 83 ) AS SIGNED ) AS col0 FROM tab2
----
368

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT COUNT ( * ) + SUM ( ALL - - 94 ) - - CAST ( - MIN ( DISTINCT - + 83 ) AS INTEGER ) AS col0 FROM tab2
----
368

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT ALL + col2 + + + col0 DIV col2 AS col1 FROM tab1 cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL + col2 + + + col0 / col2 AS col1 FROM tab1 cor0
----
60
69
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 11
----

query I rowsort
SELECT DISTINCT + - col0 * + col1 - + col0 AS col2 FROM tab1 cor0
----
-4368
-510
-765

query I rowsort
SELECT DISTINCT 79 + + col1 AS col1 FROM tab2 AS cor0
----
130
146
156

query I rowsort
SELECT ALL + col1 - + 97 AS col1 FROM tab1 WHERE NULL <= + - col1 - col2
----

query I rowsort
SELECT + ( - 16 ) - col1 - - col2 FROM tab2
----
-25
-44
-53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7138
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 - + + CAST( + - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7138
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 - + + CAST ( + - col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7139
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT - - 82 + - ( + - col1 ) + + ( - col1 ) * - ( CAST( NULL AS SIGNED ) ) >= NULL )
----

skipif mysql # not compatible
query III rowsort label-7139
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NOT - - 82 + - ( + - col1 ) + + ( - col1 ) * - ( CAST ( NULL AS INTEGER ) ) >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT ALL + - col1 * ( - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL + - col1 * ( - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 19 * col0 * + ( - - 49 ) IS NULL
----

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN NULL AND - col0 * - 42 * + - col0
----
15
87
97

query I rowsort
SELECT - 91 AS col0 FROM tab2 AS cor0 WHERE 74 IS NOT NULL
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT - - 31 + - CAST( NULL AS SIGNED ) - + 23 - + 41 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT - - 31 + - CAST ( NULL AS INTEGER ) - + 23 - + 41 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE 27 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT DISTINCT - col2 DIV + + col1 AS col0 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT - col2 / + + col1 AS col0 FROM tab0
----
-99
0

query I rowsort
SELECT DISTINCT - col2 + - 51 FROM tab2
----
-109
-74
-91

query II rowsort
SELECT col1 AS col1, col2 - + 7 FROM tab1
----
14
89
47
61
5
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, - 48 * + col1 FROM tab0 WHERE - + col0 * + + col1 - + col0 IS NOT NULL
----
10
-1008
47
-3888
99
-48

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( - col2 ) = col1 * - 36
----
10
47
99

query I rowsort
SELECT ALL - col0 * - 75 AS col2 FROM tab2 AS cor0
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT - MIN( + col1 ) * - 87 FROM tab1 AS cor0
----
435

skipif mysql # not compatible
query I rowsort label-7153
SELECT - MIN ( + col1 ) * - 87 FROM tab1 AS cor0
----
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT DISTINCT - CAST( + AVG ( ALL - - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT - CAST ( + AVG ( ALL - - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-34

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 0 NOT BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 92 FROM tab2, tab2 AS cor0 WHERE NOT NULL <> - - 77
----

query I rowsort
SELECT DISTINCT - ( + 28 ) FROM tab1 WHERE NOT ( NULL = - 27 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col0 NOT BETWEEN - ( col2 ) AND - 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8 * col0 col0, col0 FROM tab0
----
-120
15
-696
87
-776
97

query I rowsort
SELECT - col2 + - - col1 + + ( - - ( + ( ( - 26 ) ) ) ) FROM tab2 AS cor0
----
-17
11
2

query I rowsort
SELECT - + col2 + - - 94 - - col2 * - 20 * + 96 FROM tab2 AS cor0
----
-111324
-44089
-76746

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7162
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) * - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7162
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) * - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7163
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE + col0 + + 17 * + col0 BETWEEN - 61 + - col2 + ( 30 ) * 65 AND + col1 * + 57 * - ( - 0 )
----

query I rowsort
SELECT ALL + 51 FROM tab2 WHERE NULL IS NULL
----
51
51
51

query I rowsort
SELECT + ( - - 45 ) FROM tab0
----
45
45
45

query I rowsort
SELECT ALL ( ( - col0 ) ) + + 99 * col1 AS col1 FROM tab0
----
1992
2
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT + COUNT( ALL + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT + COUNT ( ALL + col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 19 + col1 FROM tab2 AS cor0
----
70
86
96

query II rowsort
SELECT DISTINCT 7 AS col0, 70 * - 96 * 98 AS col2 FROM tab1 AS cor0
----
7
-658560

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE - col0 - + col2 / + 25 IS NOT NULL
----
46
64
75

query II rowsort
SELECT col0, col0 FROM tab1 AS cor0 WHERE - 84 NOT BETWEEN + col1 AND NULL
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + + col2 + - 19 + + col2 FROM tab2 AS cor0
----
27
61
97

query II rowsort
SELECT DISTINCT col2 AS col2, 8 FROM tab1 cor0
----
59
8
68
8
96
8

query I rowsort
SELECT + 70 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT COUNT( * ) * - 24 AS col0 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7178
SELECT COUNT ( * ) * - 24 AS col0 FROM tab0 AS cor0
----
-72

query II rowsort
SELECT 26 * - col2 AS col0, - col0 AS col2 FROM tab2
----
-1040
-64
-1508
-75
-598
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT - ( ( + col1 ) ) DIV - 60 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7180
SELECT - ( ( + col1 ) ) / - 60 AS col2 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT + col1 DIV 67 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7181
SELECT + col1 / 67 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT col1 * - CAST( col1 AS SIGNED ) * + col2 AS col0 FROM tab2
----
-237160
-260362
-59823

skipif mysql # not compatible
query I rowsort label-7182
SELECT col1 * - CAST ( col1 AS INTEGER ) * + col2 AS col0 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7183
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) <= - 42
----

skipif mysql # not compatible
query III rowsort label-7183
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) <= - 42
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE - - 0 * + + 95 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6, 93 col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * - + 99 AS col1 FROM tab1 AS cor0
----
-1386
-4653
-495

query I rowsort
SELECT - col1 * + 89 FROM tab2 cor0
----
-4539
-5963
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT + COUNT( DISTINCT + - 81 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7188
SELECT + COUNT ( DISTINCT + - 81 ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0, col2 * col0 * + + col1 col2 FROM tab2 AS cor0
----
46
53958
64
197120
75
291450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7191
SELECT DISTINCT - 4, 8 * - SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-7191
SELECT DISTINCT - 4, 8 * - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-4
NULL

query I rowsort
SELECT - col1 + - - col1 + - col2 + - 96 AS col0 FROM tab2 cor0
----
-119
-136
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - - col2 * + - 55, ( + - ( col1 ) ) + - - col2 col2 FROM tab0 AS cor0
----
-2504
-34
-529
-11
-5444
98

query I rowsort
SELECT - - ( - - col0 ) * + 64 + - + col2 FROM tab0 AS cor0
----
5558
6109
913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT col2 * + ( ( + CAST( NULL AS SIGNED ) ) ) + - - ( + col0 ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7195
SELECT col2 * + ( ( + CAST ( NULL AS INTEGER ) ) ) + - - ( + col0 ) col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col1 + 79 AS col1, col0 FROM tab2
----
130
46
146
75
156
64

query I rowsort
SELECT 65 + + - 7 + + 1 FROM tab0
----
59
59
59

query I rowsort
SELECT DISTINCT + col0 + + ( - col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COUNT( * ) * 71 + + + COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( * ) * 71 + + + COUNT ( * ) FROM tab0
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT DISTINCT 80 / + CAST( NULL AS SIGNED ) + + + ( + + 68 ) + CAST( - + COUNT( * ) AS SIGNED ) * - AVG ( ALL col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT 80 / + CAST ( NULL AS INTEGER ) + + + ( + + 68 ) + CAST ( - + COUNT ( * ) AS INTEGER ) * - AVG ( ALL col2 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7201
SELECT * FROM tab0 AS cor0 WHERE 85 / + - col1 * col0 * col2 < - CAST( NULL AS SIGNED ) / + CAST( - col0 AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-7201
SELECT * FROM tab0 AS cor0 WHERE 85 / + - col1 * col0 * col2 < - CAST ( NULL AS INTEGER ) / + CAST ( - col0 AS INTEGER ) + + col1
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 69 IS NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col1 * - + col0 / - + 88 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 33 ) col2 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - SUM( + + 5 ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7205
SELECT - SUM ( + + 5 ) AS col2 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT + - COUNT( * ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7206
SELECT + - COUNT ( * ) col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL > col0 * + + 21 ) OR NOT col1 * + 64 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 60 col1, col2 FROM tab1
----
60
59
60
68
60
96

query II rowsort
SELECT ALL - 46 AS col0, ( - col1 ) AS col0 FROM tab1
----
-46
-14
-46
-47
-46
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT - SUM( + - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7210
SELECT - SUM ( + - col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7211
SELECT COUNT( * ), - COUNT( DISTINCT + ( + CAST( + - 76 AS SIGNED ) ) ) AS col2 FROM tab2
----
3
-1

skipif mysql # not compatible
query II rowsort label-7211
SELECT COUNT ( * ), - COUNT ( DISTINCT + ( + CAST ( + - 76 AS INTEGER ) ) ) AS col2 FROM tab2
----
3
-1

query II rowsort
SELECT - 23, + col2 AS col1 FROM tab0
----
-23
10
-23
47
-23
99

query I rowsort
SELECT - + 48 AS col0 FROM tab1 WHERE NOT + col1 * - 39 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 12, + 37 col1 FROM tab0 AS cor0
----
12
37
12
37
12
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT - + col0 DIV col1 AS col0 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-7215
SELECT - + col0 / col1 AS col0 FROM tab0 cor0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT col2 * + CAST( - - col2 AS SIGNED ) FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-7216
SELECT col2 * + CAST ( - - col2 AS INTEGER ) FROM tab0
----
100
2209
9801

query I rowsort
SELECT - 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT 64 * - col2 * + - col0 + col0 AS col0 FROM tab1
----
313395
321045
396123

query I rowsort
SELECT col2 + 52 * + 53 * - + 14 * + 39 FROM tab0 AS cor0
----
-1504677
-1504729
-1504766

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL COUNT( - - 10 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL COUNT ( - - 10 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 > col0 - 93 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 37 * + - 89 FROM tab1 AS cor0
----
3293

query I rowsort
SELECT ALL + col0 * - 51 FROM tab2 AS cor0
----
-2346
-3264
-3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col1 AND - col1 * - - col2
----

query I rowsort
SELECT + 41 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL + 53 + - - col1 FROM tab0 WHERE ( ( NOT + + col0 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7228
SELECT DISTINCT + MAX( ALL col1 ) * CAST( NULL AS DECIMAL ) + - COUNT( * ) * - + COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7228
SELECT DISTINCT + MAX ( ALL col1 ) * CAST ( NULL AS REAL ) + - COUNT ( * ) * - + COUNT ( * ) col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT 34 DIV 1 col2 FROM tab0
----
34
34
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7229
SELECT 34 / 1 col2 FROM tab0
----
34
34
34

query III rowsort
SELECT * FROM tab2 WHERE + 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT 24 IN ( + 7 )
----
23
40
58

query I rowsort
SELECT + col1 + - - col2 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT + col1 * col0 - col2 AS col1 FROM tab1
----
366
4209
618

query I rowsort
SELECT + 6 * + 98 - + col1 AS col0 FROM tab1
----
541
574
583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( - col1 ) * col0 AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7237
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 < col1 * + CAST( 61 * col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7237
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 < col1 * + CAST ( 61 * col1 AS INTEGER )
----

query I rowsort
SELECT + col0 + 17 FROM tab0
----
104
114
32

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + + col2 NOT BETWEEN 87 AND NULL
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT - 4 + - COUNT( - col1 + - col0 ) * COUNT( * ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-7240
SELECT - 4 + - COUNT ( - col1 + - col0 ) * COUNT ( * ) FROM tab2
----
-13

query I rowsort
SELECT col0 FROM tab1 WHERE ( 38 + - col2 ) BETWEEN - col2 AND ( + col0 )
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( - 8 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 34 - col2 FROM tab1
----
-25
-34
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > + 68 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( + 69 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 - 0 FROM tab0 WHERE NOT col2 IN ( col2 * + col0 + 97 )
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( - ( - col0 ) * 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT - MIN( DISTINCT ( col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT - MIN ( DISTINCT ( col2 ) ) FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 27 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7251
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = col2 + CAST( + col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7251
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = col2 + CAST ( + col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7252
SELECT - MIN( ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT - MIN ( ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) > col0
----
75
67
58

query I rowsort
SELECT ( ( + 50 ) ) FROM tab0 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT COUNT( * ) + - 98 FROM tab1 AS cor0 WHERE NOT col2 + col1 < NULL
----
-98

skipif mysql # not compatible
query I rowsort label-7255
SELECT COUNT ( * ) + - 98 FROM tab1 AS cor0 WHERE NOT col2 + col1 < NULL
----
-98

query I rowsort
SELECT ALL 78 * + 80 FROM tab0 AS cor0
----
6240
6240
6240

query I rowsort
SELECT ALL + 71 + + col1 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT DISTINCT + 60 * 85 FROM tab2 AS cor0
----
5100

query I rowsort
SELECT ALL 63 + col0 AS col0 FROM tab0
----
150
160
78

query I rowsort
SELECT ALL + col0 + 79 FROM tab2
----
125
143
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 97 col2 FROM tab1
----
4947
8245
8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col2 FROM tab1 WHERE NOT ( - 27 ) IS NOT NULL
----

query I rowsort
SELECT 77 * 59 AS col2 FROM tab1 cor0
----
4543
4543
4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7264
SELECT + COUNT( * ) DIV + ( + 73 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7264
SELECT + COUNT ( * ) / + ( + 73 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * 26 AS col2 FROM tab2 AS cor0
----
-1196
-1664
-1950

query I rowsort
SELECT + 1 * + col1 + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( - col1 ) BETWEEN ( - col0 / + CAST( NULL AS SIGNED ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( - col1 ) BETWEEN ( - col0 / + CAST ( NULL AS INTEGER ) ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT - + 50 + - COUNT( * ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-7268
SELECT - + 50 + - COUNT ( * ) FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col1 * + 50 FROM tab1 AS cor0
----
2350
250
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7271
SELECT 28 + COUNT( * ) DIV - 84 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7271
SELECT 28 + COUNT ( * ) / - 84 FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL + - 55 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + ( 93 ) + col2 * col0 FROM tab2 cor0
----
1151
2653
4443

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT DISTINCT - COUNT( * ) * + MAX( DISTINCT + col1 + - col1 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT - COUNT ( * ) * + MAX ( DISTINCT + col1 + - col1 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - ( col2 ) + 6 AS col1 FROM tab1 cor0
----
-53
-62
-90

query I rowsort
SELECT + - col0 + 47 AS col2 FROM tab2 cor0
----
-17
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT + COUNT( * ) + 8 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7277
SELECT + COUNT ( * ) + 8 FROM tab0 AS cor0
----
11

query I rowsort
SELECT - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT - 77 + - + col1 + 86 * - col2 AS col0 FROM tab1
----
-5156
-5972
-8347

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( 76 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( 78 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT 96 + COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT 96 + COUNT ( * ) FROM tab2
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + 44 col0 FROM tab0
----
125
45
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 1 / + 51 + - col0 ) BETWEEN col0 * + 24 AND - col2 * + 46
----

query III rowsort
SELECT * FROM tab1 WHERE + 50 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-9

query I rowsort
SELECT ALL 94 + 84 AS col1 FROM tab0
----
178
178
178

query I rowsort
SELECT ALL col1 - - col2 + col1 FROM tab2
----
125
192
194

query I rowsort
SELECT DISTINCT ( - + col2 ) + col0 AS col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT 82 - - ( 5 ) FROM tab1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7293
SELECT DISTINCT col1 DIV + 53 + col2 - - 20 AS col0 FROM tab1 AS cor0
----
116
79
88

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT col1 / + 53 + col2 - - 20 AS col0 FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT DISTINCT ( + + 33 ) - + 29 AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT - 80 - - 53 AS col0 FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT DISTINCT + 43 DIV + ( col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT + 43 / + ( col2 ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT - 55, col0 FROM tab1
----
-55
51
-55
85
-55
91

query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 59 ) col2 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + + col0 * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 > ( + 87 )
----
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + 34 - + 77 * col0 )
----

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) - col2 IN ( + col2 + + 61 )
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT MAX( 38 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT MAX ( 38 ) FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT col0 + ( col0 ) / 11 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 / col0 + 62 * ( col0 ) FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + col1 / - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * 32 + - col2 AS col1 FROM tab1 WHERE NOT + col2 - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT + 54 * - COUNT( ALL - col2 ) AS col0 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-7311
SELECT + 54 * - COUNT ( ALL - col2 ) AS col0 FROM tab0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT DISTINCT ( MIN( col1 ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT ( MIN ( col1 ) ) AS col0 FROM tab2
----
51

query I rowsort
SELECT + col0 * 99 * - col1 AS col2 FROM tab0
----
-120285
-180873
-9603

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col2 * + col2 - col2 + + 93 ) <= ( + 8 * 18 - col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * + - col0 col1 FROM tab1
----
4386
7310
7826

query I rowsort
SELECT ALL col0 + + col1 * + 87 FROM tab1
----
1269
4180
520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7317
SELECT DISTINCT * FROM tab2 WHERE + CAST( - + 32 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7317
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - + 32 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + + col1 - col2 FROM tab2 AS cor0
----
101
74
84

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = + col0 / + col1 + + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT - ( + - SUM( ALL + 88 ) ) FROM tab1 AS cor0 WHERE + 20 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT - ( + - SUM ( ALL + 88 ) ) FROM tab1 AS cor0 WHERE + 20 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7321
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, col1 AS col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7321
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, col1 AS col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col2 FROM tab1 AS cor0
----
82

query I rowsort
SELECT ALL - - col2 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 WHERE ( col2 * - + col1 * col1 - 52 IS NULL )
----

query I rowsort
SELECT ( - col2 ) - + + 29 AS col0 FROM tab1
----
-125
-88
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7326
SELECT col1 - - CAST( NULL AS SIGNED ) / + - col0 / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7326
SELECT col1 - - CAST ( NULL AS INTEGER ) / + - col0 / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - 64 AS col0 FROM tab1
----
-123
-132
-160

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7328
SELECT ALL CAST( + col0 AS DECIMAL ) + col2 + col0 + - col1 * + ( + CAST( NULL AS SIGNED ) ) / + 34 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL CAST ( + col0 AS REAL ) + col2 + col0 + - col1 * + ( + CAST ( NULL AS INTEGER ) ) / + 34 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7329
SELECT ALL + col1 - - - col1, - col0 * col0 * - 41 / + + col1 * 87 + - col0 * CAST( NULL AS DECIMAL ) col2 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7329
SELECT ALL + col1 - - - col1, - col0 * col0 * - 41 / + + col1 * 87 + - col0 * CAST ( NULL AS REAL ) col2 FROM tab2
----
0
NULL
0
NULL
0
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col1 BETWEEN col2 AND col2 / col1
----

query I rowsort
SELECT 23 + 88 FROM tab2 AS cor0
----
111
111
111

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7332
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) <= col2 + col0
----

skipif mysql # not compatible
query III rowsort label-7332
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) <= col2 + col0
----

query I rowsort
SELECT - 90 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT ALL - + col1 * ( + - col1 ) + - col2 + - col0 DIV - 21 FROM tab0 AS cor0
----
-94
435
6514

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - + col1 * ( + - col1 ) + - col2 + - col0 / - 21 FROM tab0 AS cor0
----
-94
435
6514

query II rowsort
SELECT col0, - col2 * - - col0 FROM tab2 AS cor0
----
46
-1058
64
-2560
75
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT COUNT( * ) * + COUNT( + col1 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7336
SELECT COUNT ( * ) * + COUNT ( + col1 ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL MIN( + 52 ) AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL MIN ( + 52 ) AS col2 FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL + 61 * + + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT 54 IS NULL
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7338
SELECT ALL + 61 * + + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT 54 IS NULL
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT DISTINCT + ( - + col0 ) DIV - col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + ( - + col0 ) / - col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT - + MAX( + - 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-7340
SELECT - + MAX ( + - 71 ) FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT - MIN( + 20 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-7341
SELECT - MIN ( + 20 ) FROM tab2
----
-20

query I rowsort
SELECT 0 * + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 30 FROM tab1 WHERE NOT ( col0 * col0 * 33 ) IN ( - 6, + col1 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT col2 * 6 DIV - + 22 AS col1 FROM tab2
----
-10
-15
-6

skipif mysql # not compatible
query I rowsort label-7344
SELECT col2 * 6 / - + 22 AS col1 FROM tab2
----
-10
-15
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, col0 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT DISTINCT MIN( DISTINCT + + col2 ) AS col0 FROM tab0 WHERE NOT ( - 68 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT MIN ( DISTINCT + + col2 ) AS col0 FROM tab0 WHERE NOT ( - 68 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 59 + 33 FROM tab0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + - ( 2 ) > + - col0
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT 81 * + COUNT( * ) AS col1 FROM tab2 WHERE + col2 + col0 BETWEEN 24 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT 81 * + COUNT ( * ) AS col1 FROM tab2 WHERE + col2 + col0 BETWEEN 24 AND + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 15 + col1 + + col1 col2 FROM tab2 AS cor0
----
119
139
87

query I rowsort
SELECT DISTINCT + - col2 + + 68 AS col1 FROM tab0 AS cor0
----
-31
21
58

query I rowsort
SELECT ALL - col1 * + + col2 - - col1 * + 99 + + col2 * - + col1 * 93 AS col0 FROM tab2 AS cor0
----
-105213
-281897
-358651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + - col2 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-25
-43
-8

query I rowsort
SELECT DISTINCT ( - + 23 ) - col2 AS col0 FROM tab1 AS cor0
----
-119
-82
-91

query I rowsort
SELECT + 18 + - col1 + col0 FROM tab1 AS cor0
----
55
62
98

query I rowsort
SELECT + + 41 + col0 - - col0 AS col1 FROM tab2 cor0
----
133
169
191

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT - col0 + col1 + + ( - col2 ) * col2 DIV + - 47 FROM tab0 AS cor0
----
-64
112
113

skipif mysql # not compatible
query I rowsort label-7359
SELECT - col0 + col1 + + ( - col2 ) * col2 / + - 47 FROM tab0 AS cor0
----
-64
112
113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - 4 * - 85 + - - col1 col0 FROM tab1 AS cor0
----
-20055
-23073
-32626

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL - COUNT( DISTINCT - + 79 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - COUNT ( DISTINCT - + 79 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT - MAX( ALL 52 ) AS col0 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT - MAX ( ALL 52 ) AS col0 FROM tab1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7363
SELECT * FROM tab0 WHERE col0 * - col1 < col1 * + CAST( - - ( col0 ) AS SIGNED ) * col1 * + + 14 * - col2 + + col0 * - 61
----

skipif mysql # not compatible
query III rowsort label-7363
SELECT * FROM tab0 WHERE col0 * - col1 < col1 * + CAST ( - - ( col0 ) AS INTEGER ) * col1 * + + 14 * - col2 + + col0 * - 61
----

query II rowsort
SELECT DISTINCT col2, col2 + + ( - 67 ) AS col0 FROM tab1
----
59
-8
68
1
96
29

query I rowsort
SELECT ALL + 81 * - col0 + 85 FROM tab0
----
-1130
-6962
-7772

query III rowsort
SELECT * FROM tab0 WHERE ( 54 * + - 54 * col0 * 83 ) <= - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 26 + + col1 FROM tab2
----
25
41
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7368
SELECT * FROM tab0 WHERE 82 + col2 * col2 * CAST( NULL AS SIGNED ) * + - 37 > ( 41 ) / 54 + col0 + 51 / + 39
----

skipif mysql # not compatible
query III rowsort label-7368
SELECT * FROM tab0 WHERE 82 + col2 * col2 * CAST ( NULL AS INTEGER ) * + - 37 > ( 41 ) / 54 + col0 + 51 / + 39
----

query I rowsort
SELECT 96 * - col2 * - - col1 AS col1 FROM tab0
----
-20160
-365472
-9504

query II rowsort
SELECT + col0, 86 * + col0 FROM tab1
----
51
4386
85
7310
91
7826

query II rowsort
SELECT ALL + col1 * - col0 * - col1 AS col0, col0 * + 20 * + + ( - - 35 ) AS col1 FROM tab1
----
201019
63700
2125
59500
9996
35700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col0 FROM tab0 AS cor0
----
-29

query II rowsort
SELECT col1 AS col2, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT + 88 * - + col1 FROM tab0 AS cor0
----
-1848
-7128
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT DISTINCT + 49 * col0 DIV - col0 AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT + 49 * col0 / - col0 AS col1 FROM tab2
----
-49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7377
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7377
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - - col2 NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7379
SELECT ALL + COUNT( * ) col0 FROM tab0 WHERE NOT - - col2 * - - 32 / 22 + - ( + CAST( NULL AS SIGNED ) ) + - + col2 / + 17 + - col1 >= - + col2 * - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7379
SELECT ALL + COUNT ( * ) col0 FROM tab0 WHERE NOT - - col2 * - - 32 / 22 + - ( + CAST ( NULL AS INTEGER ) ) + - + col2 / + 17 + - col1 >= - + col2 * - col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7380
SELECT - col1 DIV + col0 col1, + col2 FROM tab0 AS cor0
----
-5
47
0
10
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7380
SELECT - col1 / + col0 col1, + col2 FROM tab0 AS cor0
----
-5
47
0
10
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * + + 89 + + col0 * + - col0 col2, + col2 AS col0 FROM tab2 AS cor0
----
-10949
40
-11588
58
-6655
23

query I rowsort
SELECT + - ( + - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - ( + - col2 ) * - + col2 + + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-110
-2256
-9900

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN col2 AND - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 26 > NULL
----

query II rowsort
SELECT DISTINCT col2 * + 11, + col0 FROM tab1
----
1056
51
649
85
748
91

query II rowsort
SELECT 28 * 58 AS col0, 50 + + col0 + - col0 FROM tab2
----
1624
50
1624
50
1624
50

query II rowsort
SELECT col0 * + col0, + col1 AS col1 FROM tab2
----
2116
51
4096
77
5625
67

query I rowsort
SELECT ALL + 51 * col2 * - col2 + + 7 FROM tab0
----
-112652
-499844
-5093

query II rowsort
SELECT + 46 * - col0, 81 * - + 65 AS col1 FROM tab1
----
-2346
-5265
-3910
-5265
-4186
-5265

query I rowsort
SELECT - col1 * col0 FROM tab1 WHERE + - 35 * - 6 / + col0 - + col1 * - col0 - - - 45 + + ( - col2 ) + - col1 - + col1 + 16 / col1 * 11 / col0 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + 72 + + col2 + + col2 + - col1 + + 76 IS NULL
----

query I rowsort
SELECT ( + 44 ) AS col0 FROM tab2
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7395
SELECT ALL - MIN( col1 ) + COUNT( * ) AS col0, ( + - CAST( COUNT( * ) AS SIGNED ) ) * + 53 col2 FROM tab0 AS cor0
----
2
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7395
SELECT ALL - MIN ( col1 ) + COUNT ( * ) AS col0, ( + - CAST ( COUNT ( * ) AS INTEGER ) ) * + 53 col2 FROM tab0 AS cor0
----
2
-159

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT + + COUNT( col0 ) + + + 26 AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7397
SELECT + + COUNT ( col0 ) + + + 26 AS col2 FROM tab2 AS cor0
----
29

query I rowsort
SELECT - ( - 45 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 15 - + col0 col2 FROM tab1 AS cor0
----
-100
-106
-66

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 AS cor0 WHERE - col2 IN ( col1, - ( - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 7 + col0 - + col1 AS col2 FROM tab1 cor0
----
44
51
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT - SUM( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - SUM ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL 58 AS col0 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT col2 - 60 AS col1 FROM tab2 AS cor0
----
-2
-20
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL + MAX( DISTINCT + + 94 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + MAX ( DISTINCT + + 94 ) FROM tab1 AS cor0
----
94

query I rowsort
SELECT col0 - - + ( + + col2 ) FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT + - 90 - + 74 + - - col2 * col1 AS col2 FROM tab1 AS cor0
----
1180
131
3032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 - + col2 * col2 col0 FROM tab2
----
-1496
-3231
-460

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND 9 - ( - ( - 75 ) )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 - - ( 84 ) + + - col2 * 21 col1 FROM tab2
----
-1074
-339
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT - COUNT( - ( - col0 ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT - COUNT ( - ( - col0 ) ) AS col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col0 FROM tab1 WHERE - + col0 IS NOT NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7414
SELECT ALL 10 FROM tab0 WHERE - + CAST( 86 AS SIGNED ) NOT IN ( col0 * + col1 )
----
10
10
10

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL 10 FROM tab0 WHERE - + CAST ( 86 AS INTEGER ) NOT IN ( col0 * + col1 )
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL + 16 * - + COUNT( * ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + 16 * - + COUNT ( * ) FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT ALL + CAST( 64 AS SIGNED ) AS col0 FROM tab0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + CAST ( 64 AS INTEGER ) AS col0 FROM tab0
----
64
64
64

query I rowsort
SELECT col1 * - col2 FROM tab0 WHERE NOT 15 IN ( - 46, + col0 + + 56 )
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT DISTINCT + - MIN( DISTINCT - col0 ) + 86 FROM tab2 WHERE ( NULL ) NOT IN ( + col1, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT + - MIN ( DISTINCT - col0 ) + 86 FROM tab2 WHERE ( NULL ) NOT IN ( + col1, - col1 )
----
NULL

query I rowsort
SELECT - ( - - 89 ) AS col0 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT 4 / - 6 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT 4 / - 6 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + MAX( DISTINCT - 64 ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + MAX ( DISTINCT - 64 ) FROM tab2 AS cor0
----
-64

query I rowsort
SELECT + - ( + + 87 ) AS col0 FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7424
SELECT col1 / - col1 - - CAST( NULL AS DECIMAL ) + - 76 * + col0 + - 55 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT col1 / - col1 - - CAST ( NULL AS REAL ) + - 76 * + col0 + - 55 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - COUNT( + 89 ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7425
SELECT - COUNT ( + 89 ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT DISTINCT - COUNT( * ) + + - COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT MAX( DISTINCT 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7427
SELECT MAX ( DISTINCT 75 ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT - + 53 * col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT + COUNT( * ) * - 45 AS col0 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + COUNT ( * ) * - 45 AS col0 FROM tab2
----
-135

query I rowsort
SELECT + 91 * + col1 + - 86 FROM tab2
----
4555
6011
6921

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= + ( ( ( - 55 ) ) )
----

query II rowsort
SELECT - 32, col2 FROM tab0 cor0
----
-32
10
-32
47
-32
99

query I rowsort
SELECT - 65 + 62 + + col0 * + col0 * 1 AS col1 FROM tab2 AS cor0
----
2113
4093
5622

query I rowsort
SELECT + + 43 * + 0 * col1 - - - 17 * + 42 + - - col2 FROM tab0 AS cor0
----
-615
-667
-704

query I rowsort
SELECT - col2 * 13 + 51 FROM tab0 AS cor0
----
-1236
-560
-79

query I rowsort
SELECT - col2 + + 13 AS col0 FROM tab1 AS cor0
----
-46
-55
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1 + + col2 col2, + ( - - col0 ) FROM tab0 AS cor0
----
100
97
11
87
48
15

query I rowsort
SELECT ALL 50 * col0 FROM tab0 AS cor0
----
4350
4850
750

query II rowsort
SELECT col2 + 95 AS col0, ( + col2 ) FROM tab2 cor0
----
118
23
135
40
153
58

query II rowsort
SELECT ALL + + col1 * + - col1 - - col2, col0 FROM tab1 AS cor0
----
-100
51
-2141
91
34
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT DISTINCT + - col0 DIV + + col0 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT + - col0 / + + col0 AS col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 10 BETWEEN col0 AND - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 33 AS col1, + ( - - col0 ) FROM tab2
----
33
46
33
64
33
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT ALL - 26 AS col0, - COUNT( DISTINCT col2 ) col1 FROM tab1
----
-26
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7446
SELECT ALL - 26 AS col0, - COUNT ( DISTINCT col2 ) col1 FROM tab1
----
-26
-3

query I rowsort
SELECT + ( + + 88 ) AS col0 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT ALL - ( - ( - - ( + col1 ) ) ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL - ( - 27 ) FROM tab2 AS cor0 WHERE + 96 NOT IN ( - col0, + 76, col2 )
----
27
27
27

query II rowsort
SELECT ALL - + col0, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - - 65 + - - col0 * + - col0 * col0 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
-132586
-614060
-753506

query III rowsort
SELECT * FROM tab2 WHERE NOT 11 IS NOT NULL
----

query I rowsort
SELECT 54 + col2 + - + 22 AS col2 FROM tab1
----
100
128
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT ALL CAST( NULL AS SIGNED ) * - 30 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL CAST ( NULL AS INTEGER ) * - 30 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL < NULL )
----

query II rowsort
SELECT DISTINCT + 1, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - 1 + + + col0 + - 79 * + 64 AS col0 FROM tab2
----
-5048
-5061
-5069

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + SUM( DISTINCT - 81 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-7459
SELECT + SUM ( DISTINCT - 81 ) FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT DISTINCT 68 / CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7460
SELECT DISTINCT 68 / CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT ALL + COUNT( * ) + CAST( - - ( - + 34 ) AS SIGNED ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + COUNT ( * ) + CAST ( - - ( - + 34 ) AS INTEGER ) FROM tab1
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT - ( - col2 ) - + col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT + 98 * + col2 AS col0 FROM tab1 AS cor0
----
5782
6664
9408

query II rowsort
SELECT DISTINCT + + 79, col2 AS col2 FROM tab0 AS cor0
----
79
10
79
47
79
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + + col0 col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT ALL - 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT - 39 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

query I rowsort
SELECT + - col2 * - col0 FROM tab0 AS cor0 WHERE ( NULL ) < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT DISTINCT - 65 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - 65 / + col0 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL col1 * - 97 AS col2 FROM tab1 cor0
----
-1358
-4559
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT + SUM( ALL - 40 ) AS col1 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + SUM ( ALL - 40 ) AS col1 FROM tab1 AS cor0
----
-120

query I rowsort
SELECT - ( - ( 67 ) ) AS col0 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7474
SELECT ( - + MIN( - - col0 ) ) * + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7474
SELECT ( - + MIN ( - - col0 ) ) * + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( 74 ) AS col1 FROM tab2
----
-74

query I rowsort
SELECT ALL 60 FROM tab2 WHERE - col2 NOT IN ( ( + ( - + col0 ) ) )
----
60
60
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT + COUNT( ALL + col1 ) AS col1, - 17 AS col1 FROM tab2
----
3
-17

skipif mysql # not compatible
query II rowsort label-7477
SELECT + COUNT ( ALL + col1 ) AS col1, - 17 AS col1 FROM tab2
----
3
-17

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - - 58 * col1 + + col2 + 29 NOT BETWEEN NULL AND + col0 * - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 + + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 4 * 16 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT - + 76 * ( + MIN( ALL + 46 ) ) FROM tab1 AS cor0
----
-3496

skipif mysql # not compatible
query I rowsort label-7483
SELECT - + 76 * ( + MIN ( ALL + 46 ) ) FROM tab1 AS cor0
----
-3496

query I rowsort
SELECT DISTINCT 96 FROM tab0 AS cor0 WHERE NOT NULL > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 14 col0 FROM tab1 AS cor0
----
14

query II rowsort
SELECT + col1 + col1 * + 1, + col2 FROM tab0 AS cor0
----
162
47
2
99
42
10

query I rowsort
SELECT + col1 + - - 89 FROM tab0 cor0
----
110
170
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT - 52 * + COUNT( * ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT - 52 * + COUNT ( * ) FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 28 + col0 + 88 col0 FROM tab1 AS cor0
----
1825
2083
2827

query II rowsort
SELECT ALL - - 29, col0 + + col1 + 33 * + 75 AS col2 FROM tab2 AS cor0
----
29
2572
29
2616
29
2617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 + + + col0 col1 FROM tab1 AS cor0
----
38
72
78

query I rowsort
SELECT ALL - col0 * col2 * - + col0 AS col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT + 87 + - COUNT( * ) + + 32 * - - 64 FROM tab2
----
2132

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + 87 + - COUNT ( * ) + + 32 * - - 64 FROM tab2
----
2132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - col2 * + + CAST( + col0 AS SIGNED ) - - 51 * + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - col2 * + + CAST ( + col0 AS INTEGER ) - - 51 * + col1 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col0 NOT BETWEEN NULL AND col0 * - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 18 ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( 59 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL + CAST( - col0 AS SIGNED ) - - col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + CAST ( - col0 AS INTEGER ) - - col0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col2 ) col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL - col1 * + ( + col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + + ( - + ( + col2 ) ) * 4 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT DISTINCT + COUNT( * ) * MAX( + 78 ), - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
234
-3

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT + COUNT ( * ) * MAX ( + 78 ), - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
234
-3

query I rowsort
SELECT ALL + 78 AS col0 FROM tab0 AS cor0 WHERE ( NOT + + col0 IS NOT NULL )
----

query I rowsort
SELECT ALL ( - ( + - 71 ) ) FROM tab2 AS cor0
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7505
SELECT DISTINCT + - COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT ALL - CAST( - 79 AS SIGNED ) col2 FROM tab2 cor0
----
79
79
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7506
SELECT ALL - CAST ( - 79 AS INTEGER ) col2 FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT DISTINCT 55 * col2 * - - 9 AS col2 FROM tab2
----
11385
19800
28710

query I rowsort
SELECT DISTINCT 57 * - 68 AS col1 FROM tab1
----
-3876

query I rowsort
SELECT + 75 * - col0 FROM tab2 WHERE NOT NULL IN ( col2, 3 / + col0 - + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / - + 98 IS NOT NULL
----

query I rowsort
SELECT + 80 * col0 AS col0 FROM tab0 AS cor0
----
1200
6960
7760

query I rowsort
SELECT ALL - - 62 FROM tab1 cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7513
SELECT DISTINCT 51, COUNT( * ) AS col1 FROM tab0 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-7513
SELECT DISTINCT 51, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
51
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT DISTINCT COUNT( * ) + + + CAST( NULL AS SIGNED ) + - - 46 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - - 46 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT MIN( DISTINCT - 64 ) + 53 AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-7516
SELECT MIN ( DISTINCT - 64 ) + 53 AS col1 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab1 cor0
----
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 19 ) NOT IN ( + 2, 21 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL - 48 + - COUNT( * ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - 48 + - COUNT ( * ) AS col0 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + 42 * 83 FROM tab2
----
51
3486
67
3486
77
3486

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - - 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 - + col1 col2 FROM tab0
----
-142
-62
-82

query I rowsort
SELECT DISTINCT - col0 + + 17 FROM tab0
----
-70
-80
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT MIN( ALL 70 ) + - + 68 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7526
SELECT MIN ( ALL 70 ) + - + 68 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL + + 63 - - MAX( ALL + - col2 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + + 63 - - MAX ( ALL + - col2 ) FROM tab0 AS cor0
----
53

query II rowsort
SELECT DISTINCT + col0, - 25 FROM tab0 AS cor0
----
15
-25
87
-25
97
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 59 / col1 AND + - 96 + + - 64 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col0 - - col1 + - 9 - - - 75 col0 FROM tab2 AS cor0
----
2313
4921
5008

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT + col0 DIV col0 * + 77 AS col2 FROM tab1 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-7531
SELECT + col0 / col0 * + 77 AS col2 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT ALL + col0 - - 8 AS col2 FROM tab1 AS cor0
----
59
93
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7533
SELECT + CAST( - + MAX( + - 74 ) AS SIGNED ) * - 46 AS col2 FROM tab0 cor0
----
-3404

skipif mysql # not compatible
query I rowsort label-7533
SELECT + CAST ( - + MAX ( + - 74 ) AS INTEGER ) * - 46 AS col2 FROM tab0 cor0
----
-3404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT - CAST( NULL AS SIGNED ) * + 67 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT - CAST ( NULL AS INTEGER ) * + 67 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL - - COUNT( - - 80 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL - - COUNT ( - - 80 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT ALL col1 * ( 40 ) * + col2 + col2, col0 FROM tab2
----
123240
64
155498
75
46943
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT 4 DIV - col2 * - - 18 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT 4 / - col2 * - - 18 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7538
SELECT + + CAST( col0 AS SIGNED ) col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7538
SELECT + + CAST ( col0 AS INTEGER ) col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL + + 4 AS col1 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT ALL - - 81 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col0 FROM tab1
----
8

query I rowsort
SELECT ALL - 92 FROM tab0 WHERE NULL NOT BETWEEN + col1 * + col2 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT DISTINCT - col2 DIV - col1 * + col2 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7544
SELECT DISTINCT - col2 / - col1 * + col2 col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 10 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + COUNT( + col2 ) * - MAX( - col0 ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7547
SELECT + COUNT ( + col2 ) * - MAX ( - col0 ) FROM tab1 AS cor0
----
153

query I rowsort
SELECT - + ( - 72 ) FROM tab1 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + - col1
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT ALL + 15 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT - col0 + 48 AS col1 FROM tab1 AS cor0 WHERE 20 IS NOT NULL
----
-3
-37
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - COUNT( * ) + MIN( DISTINCT - ( 66 ) ) + - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
-254

skipif mysql # not compatible
query I rowsort label-7553
SELECT - COUNT ( * ) + MIN ( DISTINCT - ( 66 ) ) + - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - + col1 ) col2, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - 52 + + 29 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT + - SUM( ALL - col1 ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7556
SELECT DISTINCT + - SUM ( ALL - col1 ) col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT col0 * + - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 83 + 71 * - col0 * 69 FROM tab1 AS cor0
----
-249932
-416498
-445892

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT + col2 DIV - 72 + - - col1 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-7559
SELECT + col2 / - 72 + - - col1 FROM tab1 AS cor0
----
13
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, + 0 col0 FROM tab1 AS cor0 WHERE col0 + + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT - - col2 * + + col1 * col1 + - + col1 AS col2, col2 AS col2 FROM tab1 AS cor0
----
1470
59
150165
68
18802
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL - 68 * + - 73 + - COUNT( * ) + COUNT( * ) * - 42 FROM tab1 AS cor0 WHERE NOT col0 + col1 IS NULL
----
4835

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - 68 * + - 73 + - COUNT ( * ) + COUNT ( * ) * - 42 FROM tab1 AS cor0 WHERE NOT col0 + col1 IS NULL
----
4835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT DISTINCT + ( - CAST( col0 AS SIGNED ) ) col0 FROM tab1 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7564
SELECT DISTINCT + ( - CAST ( col0 AS INTEGER ) ) col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL col2 + + 30 + col1 AS col2 FROM tab0
----
130
158
61

query I rowsort
SELECT DISTINCT col0 * - col0 * - - col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-163840
-326250
-48668

query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col1 * + 20 AS col1 FROM tab0 AS cor0
----
-1701
-21
-441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT - CAST( + col2 AS SIGNED ) * ( + col1 ) + col1 FROM tab2
----
-1122
-3003
-3819

skipif mysql # not compatible
query I rowsort label-7569
SELECT - CAST ( + col2 AS INTEGER ) * ( + col1 ) + col1 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT - 58, - 15 * - - SUM( DISTINCT + col1 ) * ( + 73 ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-58
-72273

skipif mysql # not compatible
query II rowsort label-7570
SELECT - 58, - 15 * - - SUM ( DISTINCT + col1 ) * ( + 73 ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-58
-72273

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT 88 + + col2 DIV - + col2 + + 62 FROM tab0 cor0 WHERE NOT - 57 IS NULL
----
149
149
149

skipif mysql # not compatible
query I rowsort label-7571
SELECT 88 + + col2 / - + col2 + + 62 FROM tab0 cor0 WHERE NOT - 57 IS NULL
----
149
149
149

query I rowsort
SELECT - - ( - + ( col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col1 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col1 < + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - col2 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL + 55 + col1 AS col2 FROM tab0 AS cor0 WHERE + 60 * - col1 IS NOT NULL
----
136
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL COUNT( * ) * - + ( - MIN( + col0 ) ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL COUNT ( * ) * - + ( - MIN ( + col0 ) ) AS col2 FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * - - col0 col2 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT DISTINCT - col1 * + + col1 * col2 AS col2 FROM tab2
----
-237160
-260362
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + - ( - + col0 ) * + col0 * - col1 col0 FROM tab2 WHERE NOT + 53 - - - col2 * - + col2 * col0 IS NULL
----
-107929
-315405
-376888

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT col0 DIV + 59 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7580
SELECT col0 / + 59 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT DISTINCT - MIN( ALL ( - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - MIN ( ALL ( - col1 ) ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT DISTINCT col0 * col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT col0 * col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + + col2 + + + col2 FROM tab1
----
177
204
288

query I rowsort
SELECT DISTINCT + 43 + + + AVG ( - col1 ) FROM tab1 WHERE NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL - MAX( ALL + ( + - ( + col1 ) ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - MAX ( ALL + ( + - ( + col1 ) ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7587
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7587
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 * + col0 FROM tab2 AS cor0 WHERE col0 > + col0 + col2 + + col2
----

query I rowsort
SELECT DISTINCT - 95 - + 31 AS col0 FROM tab1 cor0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT - col0 DIV 78 col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7590
SELECT - col0 / 78 col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - - 20 - + + 3 - col0 + + + 2 AS col2 FROM tab0 AS cor0
----
-68
-78
4

query I rowsort
SELECT DISTINCT + 76 * 42 * - - 11 FROM tab0 cor0
----
35112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + + col1 - col1 - + col0 col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT + - 36 - 9 FROM tab1 AS cor0
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 19 <= + col2 )
----

query I rowsort
SELECT DISTINCT + col2 + - + 49 FROM tab1
----
10
19
47

query I rowsort
SELECT + - 15 FROM tab1, tab0 AS cor0 WHERE + 53 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7598
SELECT col1 * + col0 - - col2 + + col1 - + col2 * - - col2 * - 41 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7598
SELECT col1 * + col0 - - col2 + + col1 - + col2 * - - col2 * - 41 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT + col0 - - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT + col0 - - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL 68 * - COUNT( * ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL 68 * - COUNT ( * ) FROM tab1
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
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-7601
SELECT DISTINCT - MIN ( ALL - + col0 ) col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT - 86 AS col0, - col0 FROM tab0 AS cor0
----
-86
-15
-86
-87
-86
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT ALL col0 DIV 39 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL col0 / 39 FROM tab0 AS cor0
----
0
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < - 38
----
0

skipif mysql # not compatible
query I rowsort label-7605
SELECT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < - 38
----
0

query I rowsort
SELECT + ( - 52 ) AS col0 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT 68 * + col1 * - + col1 FROM tab1
----
-13328
-150212
-1700

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + + 22 NOT BETWEEN + + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7609
SELECT - - COUNT( * ) DIV - + ( 88 ) FROM tab1 AS cor0 WHERE NOT col2 + + - CAST( NULL AS SIGNED ) - - + col0 NOT BETWEEN + + 47 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT - - COUNT ( * ) / - + ( 88 ) FROM tab1 AS cor0 WHERE NOT col2 + + - CAST ( NULL AS INTEGER ) - - + col0 NOT BETWEEN + + 47 AND - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT ALL - CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL - CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col2 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT DISTINCT + MIN( DISTINCT - 69 ) * + 54 FROM tab1
----
-3726

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT + MIN ( DISTINCT - 69 ) * + 54 FROM tab1
----
-3726

query I rowsort
SELECT + 52 + col1 + - 8 * - ( col0 ) AS col0 FROM tab2
----
471
641
719

query II rowsort
SELECT + col2, - 45 * + + 65 FROM tab1 WHERE + 87 IS NOT NULL
----
59
-2925
68
-2925
96
-2925

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7615
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + + 6 * col2 col1, - 62 AS col0 FROM tab0
----
235
-62
495
-62
50
-62

query I rowsort
SELECT col0 + + col2 * + col0 FROM tab1
----
4947
5100
6279

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7619
SELECT ALL col1 + - col2 DIV ( col0 ) col1 FROM tab0 AS cor0
----
0
21
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7619
SELECT ALL col1 + - col2 / ( col0 ) col1 FROM tab0 AS cor0
----
0
21
78

query I rowsort
SELECT DISTINCT - ( - - 22 ) FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT MIN( ALL - 12 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7621
SELECT MIN ( ALL - 12 ) FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT - SUM( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7622
SELECT - SUM ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL 81 * - + col2 AS col0 FROM tab2 AS cor0
----
-1863
-3240
-4698

query I rowsort
SELECT DISTINCT + col1 * 97 AS col0 FROM tab0 AS cor0
----
2037
7857
97

query I rowsort
SELECT DISTINCT - col2 * + col0 + - 82 AS col0 FROM tab1
----
-4978
-5097
-6270

query III rowsort
SELECT * FROM tab2 WHERE ( + 9 * + col2 * col2 + - col1 + + col0 * 91 * 6 + - col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7627
SELECT MAX( - + col2 ) * + + COUNT( + 54 ) + + CAST( NULL AS SIGNED ) + 68 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT MAX ( - + col2 ) * + + COUNT ( + 54 ) + + CAST ( NULL AS INTEGER ) + 68 AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - + col2 + + col0, col1 AS col0 FROM tab0 AS cor0
----
-2
1
-32
81
77
21

query I rowsort
SELECT - ( col1 ) + - + 8 FROM tab2 AS cor0
----
-59
-75
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT - ( + CAST( + 58 AS SIGNED ) ) + - col0 FROM tab0 AS cor0
----
-145
-155
-73

skipif mysql # not compatible
query I rowsort label-7630
SELECT - ( + CAST ( + 58 AS INTEGER ) ) + - col0 FROM tab0 AS cor0
----
-145
-155
-73

query I rowsort
SELECT + - 27 + + col0 FROM tab1 cor0
----
24
58
64

query I rowsort
SELECT ALL col0 - col0 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + col0 + 60 * + 82 AS col2 FROM tab0 AS cor0
----
4935
5007
5017

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7634
SELECT ALL + MIN( DISTINCT + + col1 ) DIV - + 32 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + MIN ( DISTINCT + + col1 ) / - + 32 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT - col1 * - + col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT - col0 + - - 29 <= 22 * 86 * col2
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT - col0 + - - 29 <= 22 * 86 * col2
----
0

query I rowsort
SELECT ALL ( + - col0 ) FROM tab2 WHERE NOT NULL < col1 * - - col1 + - 53
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 74 * col2 * col1 + col1 >= - - ( - - col0 ) / + col2
----

query I rowsort
SELECT ALL - + 9 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT CAST( MAX( ALL - 35 ) AS SIGNED ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT CAST ( MAX ( ALL - 35 ) AS INTEGER ) FROM tab1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT + CAST( 14 AS SIGNED ) FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7643
SELECT + CAST ( 14 AS INTEGER ) FROM tab2
----
14
14
14

query I rowsort
SELECT + 31 + + 4 FROM tab0 AS cor0
----
35
35
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 AS col1, + col1 col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + col0 * - ( + 77 ) - - + 46 + - col1 FROM tab2 AS cor0
----
-3547
-4959
-5796

query I rowsort
SELECT 77 + + AVG ( ALL + + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7649
SELECT DISTINCT col1 AS col0, - 67 DIV - - 81 + + 15 AS col1 FROM tab0 cor0
----
1
15
21
15
81
15

skipif mysql # not compatible
query II rowsort label-7649
SELECT DISTINCT col1 AS col0, - 67 / - - 81 + + 15 AS col1 FROM tab0 cor0
----
1
15
21
15
81
15

query I rowsort
SELECT DISTINCT + 16 FROM tab2 AS cor0 WHERE col0 * col1 NOT BETWEEN - col0 * + + 48 * + + col0 AND col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7651
SELECT ALL COUNT( * ), 60 AS col1 FROM tab2 AS cor0
----
3
60

skipif mysql # not compatible
query II rowsort label-7651
SELECT ALL COUNT ( * ), 60 AS col1 FROM tab2 AS cor0
----
3
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL - COUNT( * ) + MAX( + col0 ) AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - COUNT ( * ) + MAX ( + col0 ) AS col0 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT DISTINCT COUNT( * ) * - + SUM( DISTINCT + - col1 ) + ( + - ( COUNT( * ) ) ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT COUNT ( * ) * - + SUM ( DISTINCT + - col1 ) + ( + - ( COUNT ( * ) ) ) FROM tab1
----
195

query I rowsort
SELECT DISTINCT + + 93 * - col1 FROM tab0 AS cor0
----
-1953
-7533
-93

query I rowsort
SELECT + col1 + - - col0 + col0 FROM tab2 cor0
----
143
205
217

query I rowsort
SELECT DISTINCT - col0 + + 78 * + col2 FROM tab0 AS cor0
----
3651
693
7625

query I rowsort
SELECT DISTINCT 89 + col0 FROM tab1
----
140
174
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT + COUNT( * ) * - 37 * 63 FROM tab0
----
-6993

skipif mysql # not compatible
query I rowsort label-7658
SELECT + COUNT ( * ) * - 37 * 63 FROM tab0
----
-6993

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - + COUNT( * ) FROM tab0 cor0 WHERE 62 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT - + COUNT ( * ) FROM tab0 cor0 WHERE 62 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL ( - + COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL ( - + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT + col1 * - ( + 25 ) FROM tab0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - COUNT( * ) * - 36 AS col1 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-7662
SELECT - COUNT ( * ) * - 36 AS col1 FROM tab1
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 75 ) * col1 + - col2 + - - 6 col2 FROM tab2
----
3808
4973
5741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 97 col0 FROM tab2
----
4947
6499
7469

query I rowsort
SELECT ALL + col2 * + ( 86 ) AS col2 FROM tab2
----
1978
3440
4988

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 73 - + + 26 NOT BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - + SUM( + - 59 ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7667
SELECT - + SUM ( + - 59 ) FROM tab2 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL SUM( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL SUM ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7669
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7669
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query II rowsort
SELECT ALL col0, + 97 AS col1 FROM tab1 cor0
----
51
97
85
97
91
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL + - SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + - SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - 10 * + col1 AS col2 FROM tab0 AS cor0
----
-10
-210
-810

query I rowsort
SELECT - 92 FROM tab0 AS cor0 WHERE - - col0 + - col2 > col0 OR NOT - col1 < NULL
----

query I rowsort
SELECT ( - + col1 ) + + col0 * - col1 FROM tab1 AS cor0
----
-430
-4324
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT - + CAST( NULL AS SIGNED ) / col0 + - + 62 + 18 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7676
SELECT - + CAST ( NULL AS INTEGER ) / col0 + - + 62 + 18 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + - col0 * + col2 + - + ( + 30 ) FROM tab0 AS cor0
----
-816
-921
-9634

query I rowsort
SELECT - - ( - col0 ) + + col0 * + col1 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT ALL 27 + - - ( - - ( - col2 ) ) AS col0 FROM tab2
----
-13
-31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - COUNT( * ) + + 45 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-7680
SELECT - COUNT ( * ) + + 45 FROM tab1
----
42

query I rowsort
SELECT ALL + 73 - - col0 AS col2 FROM tab2
----
119
137
148

query II rowsort
SELECT col2 AS col2, - 61 FROM tab1
----
59
-61
68
-61
96
-61

query II rowsort
SELECT DISTINCT col0 AS col0, + col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT - - CAST( + - ( 98 ) AS SIGNED ) FROM tab2 cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-7684
SELECT - - CAST ( + - ( 98 ) AS INTEGER ) FROM tab2 cor0
----
-98
-98
-98

query II rowsort
SELECT - ( - col1 ) AS col1, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT - 35 * - 72 AS col1 FROM tab1 AS cor0
----
2520
2520
2520

query I rowsort
SELECT - col1 * - col0 * - + 97 * + col1 - - col1 FROM tab0 AS cor0
----
-3721578
-9408
-9546174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 88 col1 FROM tab1 AS cor0
----
-88
-88
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 67 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 60 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + col1 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 85 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 3 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + 90 ) col0 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL 79 FROM tab2, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query II rowsort
SELECT ALL + ( + 44 ) * col1 AS col1, ( 52 ) FROM tab1
----
2068
52
220
52
616
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 90 * - - 19 FROM tab1
----
-1710
-1710
-1710

query I rowsort
SELECT ALL - col1 * - 4 * 97 * col0 FROM tab0
----
37636
471420
708876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT ALL - CAST( 98 AS SIGNED ) * - col1 + + + col2 FROM tab2
----
5021
6624
7586

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL - CAST ( 98 AS INTEGER ) * - col1 + + + col2 FROM tab2
----
5021
6624
7586

query I rowsort
SELECT DISTINCT col0 * 30 FROM tab1
----
1530
2550
2730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7703
SELECT - + CAST( NULL AS SIGNED ) * 58 + + - col2 AS col0, - col2, + - col1 + - + col2 + + - col0 + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 5dcf6c6c808f21c5191b870184a96ade

skipif mysql # not compatible
query III rowsort label-7703
SELECT - + CAST ( NULL AS INTEGER ) * 58 + + - col2 AS col0, - col2, + - col1 + - + col2 + + - col0 + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 5dcf6c6c808f21c5191b870184a96ade

query II rowsort
SELECT - - col2 AS col1, ( - + col1 ) FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL <> + col2 - - ( - 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL 48 * COUNT( * ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL 48 * COUNT ( * ) FROM tab0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT CAST( - col1 AS SIGNED ) * + col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-7707
SELECT CAST ( - col1 AS INTEGER ) * + col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT + col2 * + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7710
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN ( CAST( NULL AS SIGNED ) + col2 ) AND ( 16 * - 42 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7710
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN ( CAST ( NULL AS INTEGER ) + col2 ) AND ( 16 * - 42 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - SUM( - col1 ) AS col2 FROM tab2 WHERE NOT + 83 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT - SUM ( - col1 ) AS col2 FROM tab2 WHERE NOT + 83 IS NOT NULL
----
NULL

query I rowsort
SELECT ( 57 ) FROM tab0 WHERE ( NULL ) IS NULL
----
57
57
57

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col2 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT + COUNT( + 17 ) - MIN( DISTINCT - col2 ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7714
SELECT + COUNT ( + 17 ) - MIN ( DISTINCT - col2 ) AS col1 FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7715
SELECT * FROM tab1 WHERE NOT + 92 + + col0 * 21 IN ( + ( CAST( NULL AS SIGNED ) ) * + 56 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-7715
SELECT * FROM tab1 WHERE NOT + 92 + + col0 * 21 IN ( + ( CAST ( NULL AS INTEGER ) ) * + 56 + - col1 )
----

query I rowsort
SELECT - 1 * col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL - SUM( - 69 ) FROM tab1 WHERE + col2 IS NOT NULL
----
207

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - SUM ( - 69 ) FROM tab1 WHERE + col2 IS NOT NULL
----
207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7718
SELECT + col0 * CAST( NULL AS DECIMAL ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT + col0 * CAST ( NULL AS REAL ) + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 72 + + col0 AS col0 FROM tab2 WHERE col2 + - ( + 47 ) IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL = col2 * + 12
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - MAX( 56 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-7722
SELECT - MAX ( 56 ) FROM tab1
----
-56

query I rowsort
SELECT - col1 * + col1 - - 86 AS col0 FROM tab2
----
-2515
-4403
-5843

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7724
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) >= + col1
----

skipif mysql # not compatible
query III rowsort label-7724
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) >= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT 99 DIV - 37 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7725
SELECT 99 / - 37 FROM tab0
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab1 WHERE 48 BETWEEN col0 * 67 AND ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT + col0 DIV + col2 col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7727
SELECT + col0 / + col2 col0 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL + 16 - col2 FROM tab2
----
-24
-42
-7

query I rowsort
SELECT 86 FROM tab2 WHERE NOT - col2 IN ( + col2 )
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL - SUM( - col2 ) * + 37 AS col2 FROM tab1
----
8251

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL - SUM ( - col2 ) * + 37 AS col2 FROM tab1
----
8251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7731
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) - - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) - - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - col2 * col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT ( + col1 ) - + 14 FROM tab1 AS cor0
----
-9
0
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) IN ( - 38 )
----

query I rowsort
SELECT DISTINCT + col1 * 89 FROM tab2 AS cor0
----
4539
5963
6853

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT + 41 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col0 FROM tab1
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - ( + 58 ) AS col2 FROM tab0 cor0
----
-58

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE 18 * col0 > - 65 * ( col1 )
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < col0
----

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab2 AS cor0 WHERE ( + 40 + - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 9 ) col1 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT 83 * 19 FROM tab2 AS cor0
----
1577
1577
1577

query I rowsort
SELECT col1 + - 13 * 83 AS col0 FROM tab2 cor0 WHERE NOT NULL > - col2
----

query I rowsort
SELECT + col1 + col1 FROM tab0 cor0 WHERE NOT - 1 IN ( + col1 )
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT ALL col2 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT CAST( + + 87 AS SIGNED ) * - COUNT( * ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-7748
SELECT CAST ( + + 87 AS INTEGER ) * - COUNT ( * ) FROM tab1
----
-261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7749
SELECT ALL + 12 * + COUNT( + col0 ) DIV COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + 12 * + COUNT ( + col0 ) / COUNT ( * ) FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL - MAX( DISTINCT col0 ) AS col2 FROM tab2 WHERE NOT ( NULL ) >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - MAX ( DISTINCT col0 ) AS col2 FROM tab2 WHERE NOT ( NULL ) >= + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + 41 FROM tab1 AS cor0
----
2091
3485
3731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT CAST( - ( col0 ) AS SIGNED ) * - 32 FROM tab1 AS cor0
----
1632
2720
2912

skipif mysql # not compatible
query I rowsort label-7753
SELECT CAST ( - ( col0 ) AS INTEGER ) * - 32 FROM tab1 AS cor0
----
1632
2720
2912

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT ALL - 68 AS col0, MIN( + + 52 ) AS col1 FROM tab2
----
-68
52

skipif mysql # not compatible
query II rowsort label-7754
SELECT ALL - 68 AS col0, MIN ( + + 52 ) AS col1 FROM tab2
----
-68
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT DISTINCT 15 + + 41 DIV - + COUNT( ALL + 63 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT 15 + + 41 / - + COUNT ( ALL + 63 ) FROM tab2
----
2

query I rowsort
SELECT ALL + col0 / - 85 FROM tab1 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 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-7757
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT + - col2 + 43 FROM tab0 AS cor0
----
-4
-56
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7759
SELECT - 41 + - COUNT( * ) + + + 34 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT - 41 + - COUNT ( * ) + + + 34 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL + SUM( 61 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= col2 / col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + SUM ( 61 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= col2 / col2
----
NULL

query I rowsort
SELECT + - col0 * + + 33 + - ( 29 ) * + col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT - 51 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7762
SELECT - 51 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT 78 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1 / - 91 OR NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 8 * + col0 AS col1 FROM tab1 AS cor0
----
-408
-680
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT + + 77 DIV 56 + col1 * col1 FROM tab0 AS cor0
----
2
442
6562

skipif mysql # not compatible
query I rowsort label-7765
SELECT + + 77 / 56 + col1 * col1 FROM tab0 AS cor0
----
2
442
6562

query I rowsort
SELECT + col1 + + - col0 + - col1 * 38 AS col0 FROM tab1 cor0
----
-1830
-270
-569

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7767
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 77 - + col2 + col2 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7767
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 77 - + col2 + col2 <> CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * - col1 col2 FROM tab1 AS cor0 WHERE 33 IS NOT NULL
----
1302
4371
465

query I rowsort
SELECT ALL + + col1 * - - col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 22 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT - COUNT( * ) + + - 36 + + 50 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7771
SELECT - COUNT ( * ) + + - 36 + + 50 FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT + 73 + col1 FROM tab2
----
124
140
150

query I rowsort
SELECT DISTINCT col0 * + col2 + + + col0 FROM tab1
----
4947
5100
6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT - + 17 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT - + 17 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL 74 - - - MAX( 86 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL 74 - - - MAX ( 86 ) FROM tab2
----
-12

query I rowsort
SELECT DISTINCT + 11 + - col2 AS col0 FROM tab2
----
-12
-29
-47

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + 59 FROM tab1 WHERE NULL < col2
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 = - col0
----

query I rowsort
SELECT DISTINCT col1 - + + col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query II rowsort
SELECT - col0 - + 54, col1 FROM tab2 cor0
----
-100
51
-118
77
-129
67

query I rowsort
SELECT ALL - - col0 - 70 FROM tab0 AS cor0
----
-55
17
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 50 + - 23 NOT IN ( - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7784
SELECT + 75 - 75 DIV - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-7784
SELECT + 75 - 75 / - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT col0 - + + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 - - 10 AS col1 FROM tab2 AS cor0
----
33
50
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT ALL + col1 DIV + + 16 AS col1 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL + col1 / + + 16 AS col1 FROM tab0 AS cor0
----
0
1
5

query I rowsort
SELECT + 1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL >= col2 + ( - col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT + - SUM( ALL + + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT + - SUM ( ALL + + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + - 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col2, - 42 AS col0 FROM tab2 AS cor0
----
46
-42
64
-42
75
-42

query I rowsort
SELECT ALL 36 * + + 47 * - - col0 FROM tab2 cor0
----
108288
126900
77832

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 * col1 * + 65 + + - 59 * + 80 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 79 * + col2 * - col2 FROM tab1
----
-274999
-365296
-728064

query II rowsort
SELECT + col1, - col1 AS col2 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT + ( + - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT + ( + - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7800
SELECT DISTINCT - col0 AS col1, CAST( NULL AS SIGNED ) AS col0, col1 FROM tab2
----
9 values hashing to 11f4aa2a1f32bbb3ca231fbfb91e1bbc

skipif mysql # not compatible
query III rowsort label-7800
SELECT DISTINCT - col0 AS col1, CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab2
----
9 values hashing to 11f4aa2a1f32bbb3ca231fbfb91e1bbc

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT col2 * + - col2 * - - col2 FROM tab1
----
-205379
-314432
-884736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 22 / - 49 - - - ( 58 ) IN ( col2 / 58 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 16 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 + - 66 - - 97 * 85 col2 FROM tab2 AS cor0
----
8087
8087
8087

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 * - 80 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - - col2 * - - col1 + + - col2 FROM tab1
----
1416
150144
18720

query I rowsort
SELECT + col1 * 34 + - col2 AS col0 FROM tab1 AS cor0
----
111
1530
380

query I rowsort
SELECT DISTINCT 85 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 + col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN ( NULL ) AND ( 41 + col0 )
----

query I rowsort
SELECT DISTINCT - 1 * - col1 + - col1 + col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT ALL - CAST( col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - CAST ( col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 39 + - 21 * + ( 90 ) + - - col1 * col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-7814
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col2 ) > col0
----
-1

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col2 ) > col0
----
-1

query I rowsort
SELECT - 77 AS col1 FROM tab1 WHERE NULL IS NULL
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT + 52 * + COUNT( * ) - - 6 + - 14 * + 25 AS col2 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-7817
SELECT + 52 * + COUNT ( * ) - - 6 + - 14 * + 25 AS col2 FROM tab2
----
-188

query I rowsort
SELECT ALL - col2 + 69 AS col1 FROM tab2
----
11
29
46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - 13 > + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + 81 AS col1 FROM tab2
----
104
121
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL + MIN( DISTINCT + col2 ) FROM tab1 WHERE NOT NULL > + col0 OR NOT col0 * + col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + MIN ( DISTINCT + col2 ) FROM tab1 WHERE NOT NULL > + col0 OR NOT col0 * + col2 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT ALL + 95 - + - CAST( + + col1 AS SIGNED ) FROM tab2
----
146
162
172

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + 95 - + - CAST ( + + col1 AS INTEGER ) FROM tab2
----
146
162
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT COUNT( * ) - 64 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT COUNT ( * ) - 64 FROM tab2 AS cor0
----
-61

query II rowsort
SELECT ALL - + col0, 79 * - col1 AS col1 FROM tab1 AS cor0
----
-51
-1106
-85
-395
-91
-3713

query I rowsort
SELECT + + col2 * 91 AS col0 FROM tab2 AS cor0
----
2093
3640
5278

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( 44 * - col2 ) AND - col2
----

query I rowsort
SELECT ALL - - ( + - col1 ) AS col0 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + 49 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-7829
SELECT + 49 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT ALL + col1 DIV + col1 + + + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + col1 / + col1 + + + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT ALL ( 17 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT 54 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
54
54
54

query I rowsort
SELECT + 35 * - + col1 FROM tab0
----
-2835
-35
-735

query I rowsort
SELECT DISTINCT + 66 * - 32 AS col1 FROM tab1
----
-2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 1 * + + col2 col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7836
SELECT DISTINCT - col2 DIV + col0 * col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT - col2 / + col0 * col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - COUNT( ALL - - 46 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7837
SELECT - COUNT ( ALL - - 46 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7838
SELECT DISTINCT + CAST( - - col1 AS SIGNED ), - col2 AS col1 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif mysql # not compatible
query II rowsort label-7838
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ), - col2 AS col1 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT + ( - + 56 ) AS col2 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + col0 * - col2 * - col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7841
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7841
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ( - + 0 ), + col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - COUNT( - + col1 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7843
SELECT - COUNT ( - + col1 ) AS col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 60 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 * - col1 <> NULL
----

query I rowsort
SELECT ALL col2 * + 37 FROM tab2 AS cor0
----
1480
2146
851

query I rowsort
SELECT + col1 * + 50 FROM tab2
----
2550
3350
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT SUM( ALL + 99 ) + 29 FROM tab1
----
326

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT SUM ( ALL + 99 ) + 29 FROM tab1
----
326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT + col2 + - - col2 * CAST( col2 AS SIGNED ) FROM tab0
----
110
2256
9900

skipif mysql # not compatible
query I rowsort label-7849
SELECT + col2 + - - col2 * CAST ( col2 AS INTEGER ) FROM tab0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL SUM( DISTINCT + - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL SUM ( DISTINCT + - col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7851
SELECT ALL COUNT( * ) DIV COUNT( * ) + + 86 AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL COUNT ( * ) / COUNT ( * ) + + 86 AS col2 FROM tab1 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 40 col0 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ( - + MIN( - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7853
SELECT ( - + MIN ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, 20 FROM tab1 AS cor0
----
-14
20
-47
20
-5
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7855
SELECT ALL + 75 col2, - COUNT( * ) FROM tab0
----
75
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7855
SELECT ALL + 75 col2, - COUNT ( * ) FROM tab0
----
75
-3

query I rowsort
SELECT 57 + - col2 * col1 FROM tab0
----
-153
-3750
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-7857
SELECT ALL col0, - col1 + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
51
-13
85
-4
91
-46

skipif mysql # not compatible
query II rowsort label-7857
SELECT ALL col0, - col1 + col1 / + col1 AS col2 FROM tab1 AS cor0
----
51
-13
85
-4
91
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7858
SELECT + 67 * - COUNT( - CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT + 67 * - COUNT ( - CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + + COUNT( * ) + MAX( ALL - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7859
SELECT + + COUNT ( * ) + MAX ( ALL - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT col0 + + 10 AS col0 FROM tab0 AS cor0
----
107
25
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT - 86 + + CAST( NULL AS SIGNED ) * - - SUM( + col2 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7861
SELECT - 86 + + CAST ( NULL AS INTEGER ) * - - SUM ( + col2 ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 - + ( + col2 ) + - + 89 AS col1 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT DISTINCT + col2 / CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + 6 ) * + - col2 <> + col0 * + 27 + - col0
----

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT + col2 / CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + 6 ) * + - col2 <> + col0 * + 27 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + 28 + - - COUNT( ALL + col0 ) * + 20 * - MIN( DISTINCT + 99 ) FROM tab0
----
-5912

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + 28 + - - COUNT ( ALL + col0 ) * + 20 * - MIN ( DISTINCT + 99 ) FROM tab0
----
-5912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT + COUNT( * ) DIV - - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7865
SELECT + COUNT ( * ) / - - COUNT ( * ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT DISTINCT col2 DIV - - ( 86 ) FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT col2 / - - ( 86 ) FROM tab0
----
0
1

query II rowsort
SELECT ALL - 33 AS col1, + 79 FROM tab1
----
-33
79
-33
79
-33
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 31 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 43 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 43 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7870
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7870
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col1 * + - col0 + + col0 AS col1 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT ALL col0 DIV + 99 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL col0 / + 99 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + ( - + 12 ) FROM tab0 cor0
----
12
12
12

query I rowsort
SELECT + - ( - col1 ) AS col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL + - ( - + 93 ) AS col1 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7876
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7876
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT + CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT + CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - - 4 ) AS col2 FROM tab0
----
4
4
4

query II rowsort
SELECT ALL col2 + col1 * col2 * col2, ( col2 ) FROM tab1
----
129120
96
17464
59
217396
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ( + MAX( DISTINCT - ( 81 ) ) ) col1 FROM tab2
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7880
SELECT ( + MAX ( DISTINCT - ( 81 ) ) ) col1 FROM tab2
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col2 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - + 79 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-79

query I rowsort
SELECT DISTINCT + 76 + + + col0 AS col2 FROM tab0 AS cor0 WHERE NULL < - 22 * + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7885
SELECT ALL - CAST( - 15 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NULL < ( + 96 )
----

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL - CAST ( - 15 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NULL < ( + 96 )
----

query I rowsort
SELECT - col0 * col0 AS col2 FROM tab2 AS cor0 WHERE 45 IS NOT NULL
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2 cor0
----
89

query I rowsort
SELECT DISTINCT + + 48 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT DISTINCT - 72 * MAX( ALL - - col0 ) + - COUNT( * ) - 6 FROM tab1 AS cor0
----
-6561

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT - 72 * MAX ( ALL - - col0 ) + - COUNT ( * ) - 6 FROM tab1 AS cor0
----
-6561

query I rowsort
SELECT ALL + col0 - - ( - 58 ) FROM tab1 AS cor0
----
-7
27
33

query II rowsort
SELECT DISTINCT - col0, - col1 * col2 AS col1 FROM tab0 cor0
----
-15
-3807
-87
-210
-97
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= NULL AND - + col2 + + col1 + + 94 IS NULL
----

query II rowsort
SELECT ALL col1, col2 * - col0 FROM tab2
----
51
-1058
67
-4350
77
-2560

query I rowsort
SELECT 8 * + - 23 FROM tab2
----
-184
-184
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL - + SUM( ALL - ( - col2 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - + SUM ( ALL - ( - col2 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 52
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 BETWEEN - 46 AND - col2 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 56 * + + 12 * + - col1 * - col0 FROM tab0
----
1227744
65184
816480

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 73 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL - SUM( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - SUM ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT - col2, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT 12 * - + col2 + + col2 FROM tab2 AS cor0
----
-253
-440
-638

query I rowsort
SELECT ( + + col2 ) * - col0 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7905
SELECT + + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL + MIN( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL + MIN ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - - 15 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
102
112
30

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 86 * 66 + + 94 FROM tab1
----
5770

query I rowsort
SELECT - col0 FROM tab2 WHERE 85 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + ( - col1 ) - - col1 IS NULL
----

query I rowsort
SELECT + - col1 * + 68 FROM tab0 AS cor0
----
-1428
-5508
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - + 55 * + - COUNT( * ) + + - COUNT( ALL + 21 ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-7914
SELECT - + 55 * + - COUNT ( * ) + + - COUNT ( ALL + 21 ) FROM tab1 AS cor0
----
162

query I rowsort
SELECT - col1 * + - col0 + - col2 AS col0 FROM tab0
----
-2
1168
1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT - ( CAST( NULL AS SIGNED ) ) * - 41 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT - ( CAST ( NULL AS INTEGER ) ) * - 41 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - - 1 * 29 AS col0 FROM tab0 AS cor0
----
110
30
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 - col2 col1 FROM tab1 AS cor0
----
-2
26
35

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - + 58 + col0 * - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 72 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - 46 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col1 IN ( - col0 / - - col2, - 9 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, - col0 * + + 15 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT CAST( - 43 AS SIGNED ) FROM tab1
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-7925
SELECT CAST ( - 43 AS INTEGER ) FROM tab1
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT DISTINCT - COUNT( * ) * + 90 AS col0 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT - COUNT ( * ) * + 90 AS col0 FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - SUM( + col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7927
SELECT - SUM ( + col2 ) AS col2 FROM tab2
----
-121

query II rowsort
SELECT ALL col0 AS col2, + 13 FROM tab2 AS cor0
----
46
13
64
13
75
13

query I rowsort
SELECT + col2 + - 97 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN - + col0 - + ( - 7 ) + 2 AND + + col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT SUM( ALL + + col0 ) * + + COUNT( * ) - + - COUNT( * ) + - 4 AS col1 FROM tab2
----
554

skipif mysql # not compatible
query I rowsort label-7930
SELECT SUM ( ALL + + col0 ) * + + COUNT ( * ) - + - COUNT ( * ) + - 4 AS col1 FROM tab2
----
554

onlyif mysql # DIV for integer division: 
query I rowsort label-7931
SELECT + 37 DIV 25 * - col0 DIV + 40 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7931
SELECT + 37 / 25 * - col0 / + 40 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-7932
SELECT - - 6 DIV - + col2 col0, + col1 * col0 FROM tab0 AS cor0
----
0
1215
0
1827
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7932
SELECT - - 6 / - + col2 col0, + col1 * col0 FROM tab0 AS cor0
----
0
1215
0
1827
0
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7933
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - + col1 + col0, CAST( NULL AS SIGNED ) + col0 - - + col2, + 20, col1 )
----

skipif mysql # not compatible
query III rowsort label-7933
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - + col1 + col0, CAST ( NULL AS INTEGER ) + col0 - - + col2, + 20, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col1
----

query I rowsort
SELECT ALL - - 38 * + + col2 AS col0 FROM tab1 cor0
----
2242
2584
3648

query I rowsort
SELECT DISTINCT + + 40 * - + col1 + - - col0 FROM tab1 AS cor0
----
-115
-1789
-509

query I rowsort
SELECT ALL - ( + 10 ) FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT ALL + CAST( - 8 AS SIGNED ) * - col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + CAST ( - 8 AS INTEGER ) * - col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 3 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7940
SELECT DISTINCT + 0 + - col2, - col2 * col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-7940
SELECT DISTINCT + 0 + - col2, - col2 * col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT ALL + 6 + - col1 FROM tab0
----
-15
-75
5

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND 24 + + - col2 AND NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 73 - - col0 AS col2, + col2 * - + col0 - + col2 FROM tab2
----
-27
-1081
-9
-2600
2
-4408

query I rowsort
SELECT + col2 * col2 + - + col0 * + col2 FROM tab1
----
-1534
-1564
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT - COUNT( * ) * COUNT( * ) + 72 FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-7945
SELECT - COUNT ( * ) * COUNT ( * ) + 72 FROM tab1 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT MAX( DISTINCT + ( col0 ) ) + - 70 col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7946
SELECT MAX ( DISTINCT + ( col0 ) ) + - 70 col0 FROM tab2 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7947
SELECT ALL COUNT( * ) + - CAST( - MAX( + col0 ) AS SIGNED ) * 57 * + 45 * 13 col0 FROM tab0
----
3234468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7947
SELECT ALL COUNT ( * ) + - CAST ( - MAX ( + col0 ) AS INTEGER ) * 57 * + 45 * 13 col0 FROM tab0
----
3234468

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT ALL - 1 DIV + - 19 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL - 1 / + - 19 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( + + ( - 45 ) ) AS col1 FROM tab2
----
-45
-45
-45

query I rowsort
SELECT DISTINCT - 12 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - MIN( ALL - col2 ) * - 74 AS col2 FROM tab2
----
-4292

skipif mysql # not compatible
query I rowsort label-7951
SELECT - MIN ( ALL - col2 ) * - 74 AS col2 FROM tab2
----
-4292

query II rowsort
SELECT col2 AS col0, 0 * + ( + col1 ) FROM tab0
----
10
0
47
0
99
0

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab2 AS cor0 WHERE + col1 * 2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 * + + col1 col2 FROM tab2 AS cor0
----
-4947
-6499
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7955
SELECT - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 55 ) col1 FROM tab1 AS cor0
----
-55
-55
-55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 + - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7958
SELECT DISTINCT + ( + CAST( - col2 AS SIGNED ) ) col2, + col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7958
SELECT DISTINCT + ( + CAST ( - col2 AS INTEGER ) ) col2, + col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col2 FROM tab1 AS cor0
----
-97

query II rowsort
SELECT DISTINCT - + col0 AS col2, + col1 * - - 22 FROM tab0 AS cor0
----
-15
1782
-87
462
-97
22

query II rowsort
SELECT + - col0 AS col2, - 68 FROM tab0 AS cor0
----
-15
-68
-87
-68
-97
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT + + COUNT( * ) * + + 23 AS col0 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7962
SELECT + + COUNT ( * ) * + + 23 AS col0 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL + - COUNT( + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + - COUNT ( + col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT - SUM( ALL + CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL - MIN( ALL - + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - MIN ( ALL - + col1 ) FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL COUNT( + - ( + 77 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL COUNT ( + - ( + 77 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7968
SELECT SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT - ( MAX( DISTINCT - - col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7969
SELECT - ( MAX ( DISTINCT - - col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE 99 = + col2
----

query I rowsort
SELECT DISTINCT + + 47 + - 60 AS col0 FROM tab2 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT - 15 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT - 15 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2 + + 86 - - col1 AS col1, col0 AS col0 FROM tab1 cor0
----
150
85
196
51
201
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL + MIN( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 IS NULL )
----
46

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL + MIN ( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 IS NULL )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL 89 * COUNT( - - CAST( + 87 AS SIGNED ) ) + MIN( + col1 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL 89 * COUNT ( - - CAST ( + 87 AS INTEGER ) ) + MIN ( + col1 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col0 * + - col0 + - 59 FROM tab2
----
-2175
-4155
-5684

query I rowsort
SELECT - col2 FROM tab2 WHERE + col0 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - 79 AND 13 * - 74 / - - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7979
SELECT DISTINCT - 24 DIV + - col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT - 24 / + - col1 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL COUNT( * ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7980
SELECT ALL COUNT ( * ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT COUNT( ALL + col1 ) - - + 93 AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-7981
SELECT COUNT ( ALL + col1 ) - - + 93 AS col1 FROM tab1 cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + - col0 * - + col0 > - + col1 AND NOT ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL <= + + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT DISTINCT 88 DIV - 16 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT 88 / - 16 FROM tab2
----
-5

query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT + ( - + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7986
SELECT + ( - + COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ( - + ( COUNT( * ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7987
SELECT ( - + ( COUNT ( * ) ) ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7988
SELECT CAST( NULL AS SIGNED ) * + 42 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT CAST ( NULL AS INTEGER ) * + 42 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 16 ) * col2 FROM tab0 AS cor0
----
1584
160
752

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT DISTINCT + + col0 DIV - + col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT + + col0 / - + col0 AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - MIN( ALL - - 63 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT - MIN ( ALL - - 63 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT col2 + col1 DIV + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 91 IS NULL
----
60
69
97

skipif mysql # not compatible
query I rowsort label-7992
SELECT col2 + col1 / + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 91 IS NULL
----
60
69
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7993
SELECT ALL COUNT( * ) DIV 12 + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL COUNT ( * ) / 12 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE col1 < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL MAX( - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL MAX ( - col1 ) AS col0 FROM tab2
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + col1 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 16 AS col1, col0 + - col1 * + col1 * col0 FROM tab1
----
-16
-200928
-16
-2040
-16
-9945

query II rowsort
SELECT 58, 97 AS col1 FROM tab2
----
58
97
58
97
58
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT - col0 * - CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT - col0 * - CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 8 + + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 78 + col0 AS col1 FROM tab0
----
3681
7819
867

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col2 * + + col2 * ( - + 31 ) * - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1984000
-377177
-6048472

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8004
SELECT DISTINCT + col0 + - 45 + + + 97 + - - col0 * + + col1 DIV - - col1 + - + col1 * - ( col2 ) * + - CAST( - col1 AS SIGNED ) - + 50 FROM tab1
----
150396
1647
18920

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + col0 + - 45 + + + 97 + - - col0 * + + col1 / - - col1 + - + col1 * - ( col2 ) * + - CAST ( - col1 AS INTEGER ) - + 50 FROM tab1
----
150396
1647
18920

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT - col2 - + ( + col1 ) DIV - - 35 FROM tab0
----
-10
-49
-99

skipif mysql # not compatible
query I rowsort label-8005
SELECT - col2 - + ( + col1 ) / - - 35 FROM tab0
----
-10
-49
-99

query I rowsort
SELECT - col0 - + + col0 * + col0 FROM tab1
----
-2652
-7310
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT - MIN( ALL - - 45 ) * + 60 + 86 + SUM( ALL - col2 ) * - COUNT( * ) AS col0 FROM tab2
----
-2251

skipif mysql # not compatible
query I rowsort label-8007
SELECT - MIN ( ALL - - 45 ) * + 60 + 86 + SUM ( ALL - col2 ) * - COUNT ( * ) AS col0 FROM tab2
----
-2251

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT - 99 + + 52 DIV - col2 AS col0 FROM tab1
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 99 + + 52 / - col2 AS col0 FROM tab1
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT DISTINCT + 28 - + col0 - - col2 * - CAST( NULL AS SIGNED ) * + - col1 + - 63 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + 28 - + col0 - - col2 * - CAST ( NULL AS INTEGER ) * + - col1 + - 63 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 39 AS col0 FROM tab1 cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL + - SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL + - SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT + 37 DIV 85 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8012
SELECT + 37 / 85 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT - col0 DIV - - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8013
SELECT - col0 / - - col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - 47 FROM tab2 AS cor0
----
2162
3008
3525

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT ALL + - col1 DIV + 76 + + col0 AS col2 FROM tab2 AS cor0
----
46
63
75

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + - col1 / + 76 + + col0 AS col2 FROM tab2 AS cor0
----
46
63
75

query I rowsort
SELECT 64 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT 90 * - col2 FROM tab0 AS cor0
----
-4230
-8910
-900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 26 col2, - ( + col2 ) * - + 42 + + col0 AS col1 FROM tab0 AS cor0
----
-26
1989
-26
4255
-26
507

query II rowsort
SELECT DISTINCT - col0, col0 - 72 AS col0 FROM tab2 AS cor0
----
-46
-26
-64
-8
-75
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT + + CAST( 14 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8022
SELECT + + CAST ( 14 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8023
SELECT ALL - + 61 AS col0, CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
-61
NULL
-61
NULL
-61
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8023
SELECT ALL - + 61 AS col0, CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
-61
NULL
-61
NULL
-61
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT + CAST( + - CAST( + + col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8024
SELECT + CAST ( + - CAST ( + + col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 68 AS col0, + col1 FROM tab0 AS cor0
----
68
1
68
21
68
81

query I rowsort
SELECT DISTINCT col2 * - ( + + col1 ) FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col1 FROM tab2
----
56
56
56

query I rowsort
SELECT ALL col0 * - - 96 FROM tab1
----
4896
8160
8736

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT NULL < - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT + MIN( DISTINCT + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8033
SELECT + MIN ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 42
----

query I rowsort
SELECT DISTINCT + 55 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
55

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8038
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + 1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8038
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + 1, CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT + col2 AS col1, + ( - col0 ) * col2 AS col0 FROM tab2 AS cor0 WHERE 0 IS NOT NULL
----
23
-1058
40
-2560
58
-4350

query I rowsort
SELECT ALL - col2 - - 99 AS col2 FROM tab0 AS cor0
----
0
52
89

query I rowsort
SELECT col0 + - + col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - + 51 * + col1 + - - col0 + + col0 FROM tab2 AS cor0
----
-2509
-3267
-3799

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + COUNT( * ) + + 45 FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-8043
SELECT + COUNT ( * ) + + 45 FROM tab0 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - 9 * - COUNT( * ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 9 * - COUNT ( * ) AS col2 FROM tab1
----
27

query I rowsort
SELECT + col2 FROM tab0 WHERE + - 45 >= + col2 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8046
SELECT + CAST( + 27 AS SIGNED ), col2 FROM tab1
----
27
59
27
68
27
96

skipif mysql # not compatible
query II rowsort label-8046
SELECT + CAST ( + 27 AS INTEGER ), col2 FROM tab1
----
27
59
27
68
27
96

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT 82 * + COUNT( * ) - + - 89 AS col0 FROM tab2
----
335

skipif mysql # not compatible
query I rowsort label-8048
SELECT 82 * + COUNT ( * ) - + - 89 AS col0 FROM tab2
----
335

query I rowsort
SELECT ALL + + 37 + + - col0 + + col1 * - col1 / - 9 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / - 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 86 * + col2 FROM tab0 AS cor0 WHERE NULL <> 25 / + - col0
----

query I rowsort
SELECT DISTINCT - 70 + + 13 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 93 NOT IN ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT COUNT( * ) * + + ( - 15 ) AS col2 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-8055
SELECT COUNT ( * ) * + + ( - 15 ) AS col2 FROM tab1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8056
SELECT ALL COUNT( * ) * - - 78 - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - 66 * 7 >= 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL COUNT ( * ) * - - 78 - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - 66 * 7 >= 28
----
NULL

query I rowsort
SELECT + 47 * - - 99 AS col1 FROM tab2 AS cor0
----
4653
4653
4653

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 60 + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT MAX( + 60 ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8060
SELECT MAX ( + 60 ) AS col1 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ( - - COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8061
SELECT ( - - COUNT ( * ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT SUM( + + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8062
SELECT SUM ( + + col2 ) AS col1 FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8063
SELECT - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) * + 65 + - COUNT( * ) col2 FROM tab2
----
NULL
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8063
SELECT - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) * + 65 + - COUNT ( * ) col2 FROM tab2
----
NULL
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL COUNT( * ) + - 19 AS col0 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL COUNT ( * ) + - 19 AS col0 FROM tab0
----
-16

query I rowsort
SELECT DISTINCT 47 * + + col0 + - + col1 FROM tab2
----
2111
2931
3458

query I rowsort
SELECT ALL - + col0 * + + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT - ( COUNT( * ) ) * + COUNT( * ) * 92 + 94 FROM tab1 AS cor0
----
-734

skipif mysql # not compatible
query I rowsort label-8067
SELECT - ( COUNT ( * ) ) * + COUNT ( * ) * 92 + 94 FROM tab1 AS cor0
----
-734

query I rowsort
SELECT col2 + - + 13 * - 37 AS col1 FROM tab2 AS cor0
----
504
521
539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT 69 + CAST( NULL AS SIGNED ) * + + col2 + 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-8069
SELECT 69 + CAST ( NULL AS INTEGER ) * + + col2 + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT DISTINCT CAST( AVG ( + col2 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
74

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT CAST ( AVG ( + col2 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 < col0 * 19 - 89 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8072
SELECT col1 * - CAST( NULL AS SIGNED ) + ( + 55 ) + + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT col1 * - CAST ( NULL AS INTEGER ) + ( + 55 ) + + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col1 + - - col0 + ( + col2 ) * col1 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT - + col2 - 91 * - - ( - + 79 ) AS col1 FROM tab0 AS cor0
----
7090
7142
7179

query I rowsort
SELECT DISTINCT col2 * + ( 61 ) AS col1 FROM tab1
----
3599
4148
5856

query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT ALL 6 DIV 23 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL 6 / 23 FROM tab0
----
0
0
0

query I rowsort
SELECT 50 + - 63 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT - ( + 53 ) FROM tab0
----
-53
-53
-53

query I rowsort
SELECT + - col2 + - 46 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND 81 IS NULL
----

query II rowsort
SELECT - col0 * col2 AS col2, col2 + + col0 AS col0 FROM tab2
----
-1058
69
-2560
104
-4350
133

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 43 AND - col1
----

query I rowsort
SELECT + - col2 * 10 + col0 * - col0 + - ( + - 44 ) FROM tab0 AS cor0
----
-10355
-651
-7625

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL + COUNT( * ) * 35 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + COUNT ( * ) * 35 FROM tab1 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT ALL + 30 * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 43 * 51 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + 30 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 43 * 51 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + + ( 93 ) ) ) * col1 col1 FROM tab1 AS cor0
----
-1302
-4371
-465

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 46 > - col0
----

query II rowsort
SELECT DISTINCT - col2 + - - ( + 97 ) * col0 * col2 AS col2, + 74 FROM tab0 AS cor0
----
68338
74
84380
74
931392
74

query I rowsort
SELECT DISTINCT - - 20 * 80 FROM tab0 WHERE - 46 <> + col1
----
1600

query I rowsort
SELECT + col1 + col2 + col1 + + + 34 AS col2 FROM tab0
----
135
243
86

query II rowsort
SELECT ALL + col1 + - ( col1 ) AS col2, col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT 20 + col0 AS col2 FROM tab1
----
105
111
71

query I rowsort
SELECT ALL - - 39 * + col2 AS col2 FROM tab1 AS cor0
----
2301
2652
3744

query I rowsort
SELECT DISTINCT - col2 + + 55 FROM tab2 AS cor0
----
-3
15
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - 46 ) * - - col0, col0 col1 FROM tab1 cor0
----
2346
51
3910
85
4186
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT 42 * + COUNT( * ) FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-8096
SELECT 42 * + COUNT ( * ) FROM tab2 cor0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-8097
SELECT - + 95 DIV + - col2 FROM tab0 cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-8097
SELECT - + 95 / + - col2 FROM tab0 cor0
----
0
2
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 94 col2 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT DISTINCT - col0 + 35 AS col2 FROM tab0
----
-52
-62
20

query I rowsort
SELECT DISTINCT 84 + + col0 * - + ( + + col2 ) AS col0 FROM tab2
----
-2476
-4266
-974

query I rowsort
SELECT DISTINCT - 90 * - col1 + + col2 AS col1 FROM tab2 AS cor0
----
4613
6088
6970

query I rowsort
SELECT + col1 + + 0 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col0 + + - 79 * 83 FROM tab2 AS cor0
----
-6482
-6493
-6511

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT + MIN( - + 48 ) + + + 95 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8104
SELECT + MIN ( - + 48 ) + + + 95 FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL - 71 - + col2 - - col2 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT ALL 17 DIV 48 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL 17 / 48 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * + + 86 + + - col1 - + - col1 AS col2 FROM tab2 AS cor0
----
1978
3440
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT 95 + + - MAX( - + col1 ) FROM tab2 cor0 WHERE + col0 * - - 78 IS NOT NULL
----
146

skipif mysql # not compatible
query I rowsort label-8108
SELECT 95 + + - MAX ( - + col1 ) FROM tab2 cor0 WHERE + col0 * - - 78 IS NOT NULL
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT + + ( - MIN( DISTINCT + col1 ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + + ( - MIN ( DISTINCT + col1 ) ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 col1 FROM tab2 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8111
SELECT DISTINCT + col2 * - col2, + 39 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-100
NULL
-2209
NULL
-9801
NULL

skipif mysql # not compatible
query II rowsort label-8111
SELECT DISTINCT + col2 * - col2, + 39 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-100
NULL
-2209
NULL
-9801
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL + MAX( - + 6 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + MAX ( - + 6 ) FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT - col1 * - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT - col1 * - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 52 NOT BETWEEN + 14 AND col1 * - 91 + col2 * - col2 * col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT SUM( - 37 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-111

skipif mysql # not compatible
query I rowsort label-8115
SELECT SUM ( - 37 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-111

query I rowsort
SELECT DISTINCT ( + 82 ) FROM tab0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * + 65 col0 FROM tab1
----
3640
3640
3640

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT + col2 DIV - + col1 AS col2 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT + col2 / - + col1 AS col2 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8119
SELECT DISTINCT - 25 AS col1, + col2 DIV + - 98 AS col2 FROM tab0 AS cor0
----
-25
-1
-25
0

skipif mysql # not compatible
query II rowsort label-8119
SELECT DISTINCT - 25 AS col1, + col2 / + - 98 AS col2 FROM tab0 AS cor0
----
-25
-1
-25
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col2 ) col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 53 + 9 <> - 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8122
SELECT - + COUNT( * ) + - 55 AS col0, 39 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
-55
39

skipif mysql # not compatible
query II rowsort label-8122
SELECT - + COUNT ( * ) + - 55 AS col0, 39 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
-55
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - MIN( - ( + + 59 ) ) AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-8123
SELECT - MIN ( - ( + + 59 ) ) AS col2 FROM tab0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8124
SELECT DISTINCT - col1 + + + col1 / - + 14 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT - col1 + + + col1 / - + 14 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + 4 FROM tab1
----
204
340
364

query I rowsort
SELECT 92 * - col2 + - col2 FROM tab2
----
-2139
-3720
-5394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT - col0 * + CAST( NULL AS SIGNED ) + - - col0 - col0 + + + 56 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT - col0 * + CAST ( NULL AS INTEGER ) + - - col0 - col0 + + + 56 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 16 + - 75 * + col0 FROM tab0 AS cor0
----
-1141
-6541
-7291

query I rowsort
SELECT + 46 + - + col2 - col1 + + col1 * 42 + col0 AS col0 FROM tab2
----
2160
2810
3227

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL - MIN( DISTINCT - 28 ) + - MIN( + col1 ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - MIN ( DISTINCT - 28 ) + - MIN ( + col1 ) FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT MIN( - 35 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-8131
SELECT MIN ( - 35 ) FROM tab0
----
-35

query I rowsort
SELECT DISTINCT + 45 * + col2 + col1 AS col0 FROM tab2
----
1086
1877
2677

query I rowsort
SELECT 54 + - col0 + col0 FROM tab2 WHERE 50 * + + 47 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT - - 19 - + + COUNT( * ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - - 19 - + + COUNT ( * ) FROM tab1 AS cor0
----
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 39 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT - ( + + MIN( - + col1 ) ) - + + COUNT( * ) + - - MIN( 40 ) FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - ( + + MIN ( - + col1 ) ) - + + COUNT ( * ) + - - MIN ( 40 ) FROM tab1 cor0
----
84

query I rowsort
SELECT DISTINCT + + 84 * col0 + - col0 - col2 FROM tab0 AS cor0
----
1198
7211
7952

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + + 50 ) IS NOT NULL
----

query I rowsort
SELECT - - 86 FROM tab1 AS cor0 WHERE NOT 39 IS NULL
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 13 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT COUNT( * ) * + 16 AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8141
SELECT COUNT ( * ) * + 16 AS col0 FROM tab1
----
48

query II rowsort
SELECT col0 * - col1 AS col0, 38 + - col1 FROM tab2
----
-2346
-13
-4928
-39
-5025
-29

query I rowsort
SELECT DISTINCT 49 FROM tab1 WHERE NOT - 43 > - 27
----
49

query I rowsort
SELECT ALL + col1 * - 30 FROM tab0
----
-2430
-30
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT + + col2 / - - col0 * - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT + + col2 / - - col0 * - col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 56, - 90 col1 FROM tab0 AS cor0
----
-56
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 82
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 71 * + 25 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 85 + + 38 AS col2 FROM tab2
----
123

query I rowsort
SELECT - 43 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - + col1 * col2 * + - col0 + + col0 FROM tab1 AS cor0
----
25160
290927
68595

onlyif mysql # DIV for integer division: 
query I rowsort label-8154
SELECT ALL - - ( - col2 ) DIV + 68 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL - - ( - col2 ) / + 68 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - + col0 + - col2 - + col1 + - col0 * - col2 FROM tab2 AS cor0
----
2379
4150
938

onlyif mysql # DIV for integer division: 
query I rowsort label-8156
SELECT + 50 DIV + col1 + - col0 + - col0 + col1 * col0 FROM tab1 AS cor0
----
265
4096
615

skipif mysql # not compatible
query I rowsort label-8156
SELECT + 50 / + col1 + - col0 + - col0 + col1 * col0 FROM tab1 AS cor0
----
265
4096
615

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT 93 + - COUNT( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8157
SELECT 93 + - COUNT ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 AS cor0 WHERE + 67 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT 16 * + col0 * - 59 + + + 52 AS col2 FROM tab1 cor0
----
-48092
-80188
-85852

query I rowsort
SELECT + 84 + col1 AS col2 FROM tab0
----
105
165
85

query I rowsort
SELECT DISTINCT + 58 + col0 FROM tab1
----
109
143
149

query I rowsort
SELECT ALL col2 + 46 FROM tab2
----
104
69
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT SUM( DISTINCT - col0 ) + + MIN( + 62 ) AS col2 FROM tab0
----
-137

skipif mysql # not compatible
query I rowsort label-8163
SELECT SUM ( DISTINCT - col0 ) + + MIN ( + 62 ) AS col2 FROM tab0
----
-137

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col1 FROM tab1
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL + 34 - COUNT( * ) + SUM( ALL - ( col0 ) ) FROM tab1 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + 34 - COUNT ( * ) + SUM ( ALL - ( col0 ) ) FROM tab1 AS cor0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8167
SELECT - SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL ( + + 69 ) + + col0 + + ( 89 ) FROM tab1 cor0
----
209
243
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT - CAST( - - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8169
SELECT - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT - MAX( 35 ) FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8170
SELECT - MAX ( 35 ) FROM tab0 cor0
----
-35

query I rowsort
SELECT DISTINCT col0 * + 91 + + col1 AS col2 FROM tab0
----
1446
7938
8828

query I rowsort
SELECT - 89 FROM tab0 WHERE NOT col0 * + 95 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT 65 DIV col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8173
SELECT 65 / col2 AS col1 FROM tab2
----
1
1
2

query I rowsort
SELECT 34 * col0 AS col2 FROM tab0
----
2958
3298
510

query I rowsort
SELECT + ( - col0 ) * - col1 AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT 77 * CAST( 71 AS SIGNED ) col2 FROM tab2
----
5467
5467
5467

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8176
SELECT 77 * CAST ( 71 AS INTEGER ) col2 FROM tab2
----
5467
5467
5467

query I rowsort
SELECT DISTINCT 15 + - col2 AS col1 FROM tab2
----
-25
-43
-8

query I rowsort
SELECT ( + 2 ) FROM tab2 WHERE - col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 <> ( - 17 ) - + 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 68 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( col2 )
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( col2 * - col0 + 37 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) IN ( col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT MIN( ALL col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT MIN ( ALL col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE - col1 + - 3 IS NULL
----

query I rowsort
SELECT ALL + col2 * 69 - - col1 AS col1 FROM tab1
----
4076
4739
6638

query I rowsort
SELECT - col1 + + col2 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - MAX( DISTINCT col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8188
SELECT - MAX ( DISTINCT col2 ) FROM tab2
----
-58

query I rowsort
SELECT ALL ( + 14 ) AS col1 FROM tab1
----
14
14
14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 86 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8191
SELECT col2 DIV 66 col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8191
SELECT col2 / 66 col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT DISTINCT - SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL MIN( + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL MIN ( + col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT + col1 + + 48 * col0 AS col1 FROM tab0
----
4197
4657
801

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE 51 * + col1 NOT BETWEEN NULL AND col0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * - col0 col0 FROM tab2
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT 47 * COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8197
SELECT 47 * COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT ALL col0 DIV 7 FROM tab2 AS cor0
----
10
6
9

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL col0 / 7 FROM tab2 AS cor0
----
10
6
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT DISTINCT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8199
SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT SUM( 64 ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT SUM ( 64 ) FROM tab0 AS cor0
----
192

query I rowsort
SELECT DISTINCT + - col2 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1196
-3120
-3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col0 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL - COUNT( * ) + + 83 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL - COUNT ( * ) + + 83 FROM tab1 AS cor0
----
80

query I rowsort
SELECT 2 - 28 AS col1 FROM tab0 WHERE 84 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT - 4 + - + 20 + - 7 * - COUNT( * ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT - 4 + - + 20 + - 7 * - COUNT ( * ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT - CAST( + COUNT( DISTINCT col0 ) AS SIGNED ) - - MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8206
SELECT - CAST ( + COUNT ( DISTINCT col0 ) AS INTEGER ) - - MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
20

query I rowsort
SELECT col0 * - - 45 * - col1 - + ( - col2 ) FROM tab2
----
-105547
-221720
-226067

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + 35 - - MIN( ALL + ( - col0 ) ) * COUNT( * ) FROM tab0
----
-256

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 35 - - MIN ( ALL + ( - col0 ) ) * COUNT ( * ) FROM tab0
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT MAX( + ( col2 ) ) * - COUNT( * ) + + COUNT( DISTINCT - col1 + - 44 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT MAX ( + ( col2 ) ) * - COUNT ( * ) + + COUNT ( DISTINCT - col1 + - 44 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col2 + - ( 60 ) AS col0 FROM tab0
----
-13
-50
39

query I rowsort
SELECT + 66 + - col1 FROM tab2
----
-1
-11
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT MAX( ALL + 48 ) col1 FROM tab0 WHERE NULL NOT IN ( - col1 + 24 * col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8212
SELECT DISTINCT MAX ( ALL + 48 ) col1 FROM tab0 WHERE NULL NOT IN ( - col1 + 24 * col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT - SUM( ALL + 67 ) + 66 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-8213
SELECT - SUM ( ALL + 67 ) + 66 FROM tab0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT ALL col2 + + - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL col2 + + - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - col0 * 12 FROM tab1 AS cor0
----
-1015
-1045
-598

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 = ( col2 - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8218
SELECT * FROM tab0 AS cor0 WHERE + col1 > ( ( - CAST( NULL AS SIGNED ) ) / + 8 )
----

skipif mysql # not compatible
query III rowsort label-8218
SELECT * FROM tab0 AS cor0 WHERE + col1 > ( ( - CAST ( NULL AS INTEGER ) ) / + 8 )
----

query I rowsort
SELECT ALL - ( - + 79 ) FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + + col1 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + + col1 = ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + + col2 col2 FROM tab0 WHERE NOT + + col0 < + col2 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT + 66 DIV + 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8222
SELECT + 66 / + 86 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT 58 - 15 * - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL > - col1
----
58

skipif mysql # not compatible
query I rowsort label-8223
SELECT 58 - 15 * - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL > - col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT 1 + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-8224
SELECT 1 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = + col0
----

query I rowsort
SELECT col2 / col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 59 * col1
----

query I rowsort
SELECT ALL 1 FROM tab1 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8228
SELECT + 80 AS col2, CAST( - col1 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
80
-28
80
-37
80
-9

skipif mysql # not compatible
query II rowsort label-8228
SELECT + 80 AS col2, CAST ( - col1 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
80
-28
80
-37
80
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL + + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL + + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 * 88 col2 FROM tab0 AS cor0
----
-7568
-7568
-7568

query II rowsort
SELECT - 58 AS col1, 27 * - 17 AS col1 FROM tab1 cor0
----
-58
-459
-58
-459
-58
-459

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - - col0 + - col1 * 80 AND + 99
----
23
40
58

query II rowsort
SELECT 56 AS col0, 43 * - col2 AS col0 FROM tab0 AS cor0
----
56
-2021
56
-4257
56
-430

query I rowsort
SELECT ALL 88 FROM tab2 WHERE NOT col1 IS NULL
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <= - 38
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT DISTINCT + ( + ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT + ( + ( + COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT - col0 * + col1 * + - col2 AS col1 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL MIN( col1 ) FROM tab1 WHERE ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL MIN ( col1 ) FROM tab1 WHERE ( col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT + 71 * - COUNT( * ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-8241
SELECT + 71 * - COUNT ( * ) FROM tab2
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT col2 FROM tab2 WHERE NULL IS NULL AND + 54 / CAST( NULL AS SIGNED ) BETWEEN + 88 AND - 42
----

skipif mysql # not compatible
query I rowsort label-8242
SELECT col2 FROM tab2 WHERE NULL IS NULL AND + 54 / CAST ( NULL AS INTEGER ) BETWEEN + 88 AND - 42
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 92 >= - + 70
----

query I rowsort
SELECT DISTINCT - col1 * col2 AS col0 FROM tab2 WHERE NOT 28 IS NOT NULL
----

query I rowsort
SELECT - 72 * 51 * - - col0 * ( + col2 ) * + col2 - + 72 FROM tab2 cor0
----
-376012872
-89354520
-926445672

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE - col2 * - 92 * - col0 * col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 * - 92 * - col0 * col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col1 + + col1 + + col0 AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 + - - col0 * + + 42 * - - col1 * + col2 AS col0 FROM tab1
----
1053209
12215180
2878944

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT DISTINCT - 90 * + + MIN( - 63 ) * + 19 FROM tab2 AS cor0
----
107730

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT - 90 * + + MIN ( - 63 ) * + 19 FROM tab2 AS cor0
----
107730

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT + - 26 DIV + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8251
SELECT + - 26 / + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT - 12 + - col0 * - 69 - col1 - + + col2 DIV + col2 FROM tab0 AS cor0
----
5969
6679
941

skipif mysql # not compatible
query I rowsort label-8252
SELECT - 12 + - col0 * - 69 - col1 - + + col2 / + col2 FROM tab0 AS cor0
----
5969
6679
941

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT - 13 + + 0 DIV + 32 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-8253
SELECT - 13 + + 0 / + 32 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8254
SELECT ALL + 31 * + + ( + + col0 ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + 31 * + + ( + + col0 ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT ALL + + ( - col0 ) DIV col2 * - 52 FROM tab0 AS cor0
----
0
0
416

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + + ( - col0 ) / col2 * - 52 FROM tab0 AS cor0
----
0
0
416

query I rowsort
SELECT DISTINCT + ( - 39 ) AS col0 FROM tab0 AS cor0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 43 * + MIN( - + col2 ) * - COUNT( * ) - 90 * + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 43 * + MIN ( - + col2 ) * - COUNT ( * ) - 90 * + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) < ( 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 + - 19 FROM tab2 AS cor0
----
-65
-83
-94

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( ( + col1 * col0 IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT MIN( - 39 ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-39

skipif mysql # not compatible
query I rowsort label-8261
SELECT MIN ( - 39 ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( + - col1 + - - col2 * col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( + - col1 + - - col2 * col2 ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT ALL CAST( NULL AS SIGNED ) / + 35 / + 7 * - 48 + + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL CAST ( NULL AS INTEGER ) / + 35 / + 7 * - 48 + + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + col0 - - - col2 + + col0 * + 37 AS col0 FROM tab1 AS cor0
----
6687
8101
9487

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 IS NOT NULL ) OR NOT - - 76 <> ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 85 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
85

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT DISTINCT ( CAST( - COUNT( DISTINCT + col1 ) AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT ( CAST ( - COUNT ( DISTINCT + col1 ) AS INTEGER ) ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - - col1 * 15 * 9 col2 FROM tab1 AS cor0
----
57375
577395
96390

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL - - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - ( 28 ), + col0 AS col2 FROM tab2 AS cor0
----
-28
46
-28
64
-28
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8272
SELECT - + 65 + - 21 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 * + 37 BETWEEN 9 AND - - 56 * - - col1
----

skipif mysql # not compatible
query I rowsort label-8272
SELECT - + 65 + - 21 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 * + 37 BETWEEN 9 AND - - 56 * - - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 86 > 16 * col2 - - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT DISTINCT ( - + CAST( 65 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT ( - + CAST ( 65 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8275
SELECT COUNT( * ), + COUNT( * ) + - 5 + CAST( NULL AS SIGNED ) + + - 20 * - AVG ( ALL + 81 ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8275
SELECT COUNT ( * ), + COUNT ( * ) + - 5 + CAST ( NULL AS INTEGER ) + + - 20 * - AVG ( ALL + 81 ) AS col1 FROM tab1
----
3
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 46 * + - col2 / + + 89 - - col0 + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT + 3 * 87 FROM tab2
----
261
261
261

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL - - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 70 * + - 25 AS col0 FROM tab0
----
1750
1750
1750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8281
SELECT - COUNT( * ) * - + COUNT( * ) DIV + ( 11 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8281
SELECT - COUNT ( * ) * - + COUNT ( * ) / + ( 11 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) * + - ( + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8283
SELECT ALL col1 DIV 34 + 84 AS col2, - col1 AS col0 FROM tab2
----
85
-51
85
-67
86
-77

skipif mysql # not compatible
query II rowsort label-8283
SELECT ALL col1 / 34 + 84 AS col2, - col1 AS col0 FROM tab2
----
85
-51
85
-67
86
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - MIN( + + 44 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-8284
SELECT - MIN ( + + 44 ) FROM tab2
----
-44

query I rowsort
SELECT + col1 * + 2 * + ( - col1 ) AS col1 FROM tab0
----
-13122
-2
-882

query I rowsort
SELECT DISTINCT col0 + - 21 FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 41 NOT BETWEEN NULL AND + + col0 * col1 + - + col1
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE - col1 >= - - col0 + - col1
----

query I rowsort
SELECT DISTINCT - 44 * - col1 AS col2 FROM tab0 AS cor0
----
3564
44
924

query I rowsort
SELECT ALL col0 * 15 FROM tab1 AS cor0 WHERE ( ( - ( - + col0 ) ) * - col2 * - col0 ) IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + + SUM( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8292
SELECT + + SUM ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL col1 - - 8 FROM tab0 AS cor0
----
29
89
9

onlyif mysql # DIV for integer division: 
query II rowsort label-8294
SELECT DISTINCT col0 * - col2, - 89 + 55 DIV - 87 - col1 col0 FROM tab2 AS cor0
----
-1058
-140
-2560
-166
-4350
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8294
SELECT DISTINCT col0 * - col2, - 89 + 55 / - 87 - col1 col0 FROM tab2 AS cor0
----
-1058
-140
-2560
-166
-4350
-156

query I rowsort
SELECT DISTINCT - + 18 * + col2 * col2 * - - col2 * - col1 FROM tab2 AS cor0
----
11169306
235305072
88704000

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 76 * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT ALL - 24 DIV - 57 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL - 24 / - 57 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT + 9 * + COUNT( * ) AS col2 FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + 9 * + COUNT ( * ) AS col2 FROM tab1 cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT col0 DIV 39 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8299
SELECT col0 / 39 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT DISTINCT + 2 * - col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT 33 + + col2 AS col0 FROM tab1
----
101
129
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8302
SELECT - 61 + - + 16 - - CAST( NULL AS DECIMAL ) + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 61 + - + 16 - - CAST ( NULL AS REAL ) + + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - - col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 10 col2 FROM tab2
----
36
54
65

query I rowsort
SELECT DISTINCT col1 + - - 41 * - 8 AS col2 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT - + 46 DIV - COUNT( + + col0 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8306
SELECT - + 46 / - COUNT ( + + col0 ) FROM tab1 AS cor0
----
15

query II rowsort
SELECT ALL col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL col2 - + ( + + col1 ) FROM tab2 AS cor0 WHERE NULL < col1 - - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT + 19 + + - COUNT( * ) AS col2 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + 19 + + - COUNT ( * ) AS col2 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND col2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + + col0 ) / - col2 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT + SUM( ALL - - col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT + SUM ( ALL - - col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - COUNT( * ) + - + 13 - 6 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8313
SELECT - COUNT ( * ) + - + 13 - 6 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT 64 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8315
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( - - 11 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8315
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( - - 11 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT col1 * + col2 + ( + col1 ) FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query II rowsort label-8317
SELECT COUNT( * ), 55 * - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3
-165

skipif mysql # not compatible
query II rowsort label-8317
SELECT COUNT ( * ), 55 * - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-8318
SELECT DISTINCT 17 + + col2 + + + col0 + + col2 + col2 DIV - col2 FROM tab0
----
123
125
311

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT 17 + + col2 + + + col0 + + col2 + col2 / - col2 FROM tab0
----
123
125
311

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 77 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col1 * - col0 + - col0, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT + COUNT( + + 20 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8322
SELECT + COUNT ( + + 20 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8323
SELECT ALL - CAST( NULL AS SIGNED ) - - - 64 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL - CAST ( NULL AS INTEGER ) - - - 64 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 22 col2 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT + col2 * - + 86 AS col2 FROM tab2
----
-1978
-3440
-4988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT - col1 * - CAST( - 50 AS SIGNED ) AS col1 FROM tab0
----
-1050
-4050
-50

skipif mysql # not compatible
query I rowsort label-8326
SELECT - col1 * - CAST ( - 50 AS INTEGER ) AS col1 FROM tab0
----
-1050
-4050
-50

query I rowsort
SELECT - 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL <> NULL )
----

query II rowsort
SELECT DISTINCT - 8 AS col2, + 34 * + - col0 FROM tab1 AS cor0
----
-8
-1734
-8
-2890
-8
-3094

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 49 AS col0, 75 AS col1 FROM tab1 AS cor0
----
-49
75
-49
75
-49
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8331
SELECT ALL - + ( - MIN( ALL col0 ) ), CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8331
SELECT ALL - + ( - MIN ( ALL col0 ) ), CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT DISTINCT + + 59 DIV col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + + 59 / col1 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 AS col2 FROM tab2 cor0 WHERE NOT - col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL col1, - col0 + + 69 AS col0 FROM tab0
----
1
-28
21
-18
81
54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8337
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8337
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 + - ( col2 ) col0 FROM tab2
----
17
35
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + 68 * COUNT( * ) AS col2 FROM tab1 WHERE - - 5 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8339
SELECT + 68 * COUNT ( * ) AS col2 FROM tab1 WHERE - - 5 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col2 FROM tab2 WHERE - col1 + + 37 < - col1
----

query II rowsort
SELECT col1 AS col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE 35 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8343
SELECT - 76 * COUNT( * ) - - + COUNT( * ) + - - CAST( - + 13 AS SIGNED ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
-13

skipif mysql # not compatible
query I rowsort label-8343
SELECT - 76 * COUNT ( * ) - - + COUNT ( * ) + - - CAST ( - + 13 AS INTEGER ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
-13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 23 < - 22
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8345
SELECT ALL + 84 DIV - 42 + CAST( + - 97 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
-3
-31
-40

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL + 84 / - 42 + CAST ( + - 97 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
-3
-31
-40

query I rowsort
SELECT DISTINCT col2 + - 96 FROM tab0
----
-49
-86
3

query I rowsort
SELECT + - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col0 * + col2 - 99 * - col1 * + col2 FROM tab0 AS cor0
----
19404
21660
377598

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT + + COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT + + COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8350
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - col1 ) AND NOT NULL > CAST( - ( + 2 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8350
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - col1 ) AND NOT NULL > CAST ( - ( + 2 ) AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8351
SELECT ALL ( + + COUNT( ALL - - col0 ) ), COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8351
SELECT ALL ( + + COUNT ( ALL - - col0 ) ), COUNT ( * ) AS col2 FROM tab2
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8352
SELECT col0, + col2 + 99 DIV + - 38 FROM tab2
----
46
21
64
38
75
56

skipif mysql # not compatible
query II rowsort label-8352
SELECT col0, + col2 + 99 / + - 38 FROM tab2
----
46
21
64
38
75
56

onlyif mysql # DIV for integer division: 
query II rowsort label-8353
SELECT ALL + 89 AS col0, - col2 DIV - + 92 FROM tab0
----
89
0
89
0
89
1

skipif mysql # not compatible
query II rowsort label-8353
SELECT ALL + 89 AS col0, - col2 / - + 92 FROM tab0
----
89
0
89
0
89
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ALL + MIN( ALL - - 91 ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + MIN ( ALL - - 91 ) AS col0 FROM tab0
----
91

query III rowsort
SELECT * FROM tab0 WHERE NOT - 66 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > - col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL + + MIN( + + 74 ) FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + + MIN ( + + 74 ) FROM tab0 cor0
----
74

query I rowsort
SELECT + ( 38 ) AS col0 FROM tab0 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + 20 * - - col0 FROM tab1
----
1020
1700
1820

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8360
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col1, col0 DIV + ( col2 ) + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
-51
NULL
-84
NULL
-90

skipif mysql # not compatible
query II rowsort label-8360
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col1, col0 / + ( col2 ) + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
-51
NULL
-84
NULL
-90

query II rowsort
SELECT ALL + + col2 * + 96 AS col1, + col1 AS col0 FROM tab0 cor0
----
4512
81
9504
1
960
21

query I rowsort
SELECT - col2 + - 16 * col0 AS col1 FROM tab0 AS cor0
----
-1402
-1651
-287

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * 11 <= NULL
----

query I rowsort
SELECT DISTINCT - 42 + + + col2 AS col0 FROM tab2 AS cor0
----
-19
-2
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8365
SELECT - 88 / + - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT - 88 / + - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( - - 63 ) > ( NULL ) )
----

query I rowsort
SELECT DISTINCT + col2 * - col1 + - + col2 + - col1 FROM tab2 AS cor0
----
-1247
-3197
-4011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8369
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN + + ( col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8369
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN + + ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8370
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( + + col2 AS SIGNED ) BETWEEN col0 AND ( + col2 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-8370
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( + + col2 AS INTEGER ) BETWEEN col0 AND ( + col2 * + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 - - col0 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 13 + + - col1 * - + col2 * + col2 FROM tab0
----
178942
2113
9814

query I rowsort
SELECT 31 + 62 AS col2 FROM tab1
----
93
93
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8375
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN + + 86 AND + - col1 + + CAST( NULL AS SIGNED ) - col2
----
0

skipif mysql # not compatible
query I rowsort label-8375
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN + + 86 AND + - col1 + + CAST ( NULL AS INTEGER ) - col2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 IN ( + col0 / + col0, ( - - 21 ) + - + col1, 1 * + col0 + ( + col0 ) + + + 31 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT DISTINCT + ( + CAST( col2 AS SIGNED ) ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + ( + CAST ( col2 AS INTEGER ) ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT + 45 + - + 57 * - + COUNT( * ) * + SUM( DISTINCT + - 49 ) AS col0 FROM tab1 WHERE NULL BETWEEN - 73 AND - ( + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + 45 + - + 57 * - + COUNT ( * ) * + SUM ( DISTINCT + - 49 ) AS col0 FROM tab1 WHERE NULL BETWEEN - 73 AND - ( + 55 )
----
NULL

query I rowsort
SELECT DISTINCT + 78 * 34 FROM tab0 AS cor0
----
2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT + COUNT( * ) - + CAST( + - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8380
SELECT + COUNT ( * ) - + CAST ( + - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + col1 + - 8 AS col2 FROM tab0
----
-104
-74
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL + 74 + 10 * - CAST( col1 AS SIGNED ) FROM tab2
----
-436
-596
-696

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + 74 + 10 * - CAST ( col1 AS INTEGER ) FROM tab2
----
-436
-596
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8384
SELECT - + col1 * - CAST( NULL AS SIGNED ) * col2 / - col1 + + col0 + col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8384
SELECT - + col1 * - CAST ( NULL AS INTEGER ) * col2 / - col1 + + col0 + col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + ( - - 14 ) + + + col2 AS col2 FROM tab2 AS cor0
----
37
54
72

query I rowsort
SELECT - 67 AS col1 FROM tab1 cor0
----
-67
-67
-67

query I rowsort
SELECT ALL - + 13 AS col2 FROM tab0 AS cor0
----
-13
-13
-13

query II rowsort
SELECT + + 22 AS col2, + col1 + col2 AS col1 FROM tab1 AS cor0
----
22
110
22
115
22
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT + MIN( 41 ) AS col1 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT + MIN ( 41 ) AS col1 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8390
SELECT - MIN( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT - MIN ( ALL - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col0, - 70 AS col1 FROM tab0 AS cor0
----
15
-70
87
-70
97
-70

query I rowsort
SELECT DISTINCT - col0 * + + col0 + + col0 FROM tab0 cor0
----
-210
-7482
-9312

query I rowsort
SELECT ( - + col2 ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col1 * + ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8395
SELECT + col1 DIV + - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8395
SELECT + col1 / + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * col1 * 3 FROM tab1
----
4032
885
9588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col1 FROM tab2 AS cor0 WHERE NOT 47 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 + - col0 col1 FROM tab2
----
19
37
8

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT - col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col1 col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8401
SELECT DISTINCT - - COUNT( * ) * - MAX( ALL - col1 ) DIV 43 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT - - COUNT ( * ) * - MAX ( ALL - col1 ) / 43 AS col0 FROM tab1 cor0
----
0

query II rowsort
SELECT - col1 + - col1 AS col1, - 98 * - col1 / + col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col0 * + col1 * - col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT - + MIN( DISTINCT + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - + MIN ( DISTINCT + col2 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT + col2 + - 23 AS col1 FROM tab2 cor0
----
0
17
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT + MAX( - 97 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8405
SELECT + MAX ( - 97 ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - 63 * + col1 AS col0 FROM tab0
----
-1323
-5103
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 58 + - - col1 + 73 + - + col2 AS col2, 90 col0 FROM tab1
----
110
90
49
90
77
90

query I rowsort
SELECT - col1 * ( + ( ( - + col0 ) ) ) FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT ALL - col1 DIV + col0 * - 53 + - 13 FROM tab1 WHERE NULL IS NULL
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL - col1 / + col0 * - 53 + - 13 FROM tab1 WHERE NULL IS NULL
----
-13
-13
-13

query I rowsort
SELECT - ( + 34 ) AS col1 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - 31 + 10 + + 22 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + col2 * - + 51 + + 12 FROM tab0
----
-2385
-498
-5037

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 - - col2 - - + 61 + 88 >= col0 * + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 79 FROM tab2
----
-12
-2
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8415
SELECT ALL 31 - COUNT( * ), + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-8415
SELECT ALL 31 - COUNT ( * ), + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
28
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + - 51 col1 FROM tab0
----
1164
1776
46

query I rowsort
SELECT ALL + col2 + + + 15 FROM tab2 AS cor0
----
38
55
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL 51 * COUNT( * ) col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8418
SELECT ALL 51 * COUNT ( * ) col0 FROM tab1 AS cor0
----
153

query I rowsort
SELECT DISTINCT ( - - 98 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
98

query I rowsort
SELECT ALL + col1 * - col0 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col1, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT - col2 AS col0, - ( + 53 ) - - 68 AS col1 FROM tab0 AS cor0
----
-10
15
-47
15
-99
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 94 AS col2, col0 col2 FROM tab2
----
94
46
94
64
94
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0 + 18
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT - COUNT( * ), 59 AS col2 FROM tab0
----
-3
59

skipif mysql # not compatible
query II rowsort label-8426
SELECT - COUNT ( * ), 59 AS col2 FROM tab0
----
-3
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col2 FROM tab1
----
196
2209
25

query II rowsort
SELECT DISTINCT col2 AS col1, 50 AS col1 FROM tab2
----
23
50
40
50
58
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8429
SELECT + 84 AS col1, + SUM( DISTINCT col1 ) + COUNT( * ) AS col2 FROM tab2
----
84
198

skipif mysql # not compatible
query II rowsort label-8429
SELECT + 84 AS col1, + SUM ( DISTINCT col1 ) + COUNT ( * ) AS col2 FROM tab2
----
84
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, 7 col1 FROM tab2
----
51
7
67
7
77
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col0 col2, + col2 AS col1, + 17 FROM tab2
----
9 values hashing to 091a6fc4172f1ae94e0046f807f829a3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8432
SELECT ALL 63 AS col0, - CAST( NULL AS SIGNED ) FROM tab1
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-8432
SELECT ALL 63 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1
----
63
NULL
63
NULL
63
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT - 87 / + col2 * + + 47 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT - 87 / + col2 * + + 47 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8434
SELECT DISTINCT - 45 AS col0, - CAST( NULL AS SIGNED ) + - COUNT( - 76 ) FROM tab2
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-8434
SELECT DISTINCT - 45 AS col0, - CAST ( NULL AS INTEGER ) + - COUNT ( - 76 ) FROM tab2
----
-45
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, + col1 AS col0 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL + 0 AS col1 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT col0, + ( - - col1 ) FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8438
SELECT DISTINCT - 35 AS col0, ( - + MAX( + ( + CAST( NULL AS DECIMAL ) ) ) ) FROM tab0 AS cor0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-8438
SELECT DISTINCT - 35 AS col0, ( - + MAX ( + ( + CAST ( NULL AS REAL ) ) ) ) FROM tab0 AS cor0
----
-35
NULL

query I rowsort
SELECT - ( - 7 ) * - col1 FROM tab0 AS cor0
----
-147
-567
-7

query I rowsort
SELECT ALL + col0 / - col1 * col1 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8441
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - - ( - - 6 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col0 IN ( + col1, 99 * ( + + col1 ), + 60 * + col0 + + col1, - col2 * 73 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 61 + - col1 AS col0 FROM tab2 AS cor0
----
-16
-6
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT DISTINCT MAX( + col0 ) + + 87 FROM tab1 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT MAX ( + col0 ) + + 87 FROM tab1 AS cor0
----
178

query I rowsort
SELECT + + 37 + - col0 AS col1 FROM tab1 AS cor0
----
-14
-48
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT - - 96 * + ( - 52 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-4995

skipif mysql # not compatible
query I rowsort label-8447
SELECT - - 96 * + ( - 52 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-4995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col1 ) * - - 76 col2 FROM tab1 AS cor0
----
1064
3572
380

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT COUNT( * ) + - COUNT( DISTINCT - col2 ) * + 9 + + - 0 AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8449
SELECT COUNT ( * ) + - COUNT ( DISTINCT - col2 ) * + 9 + + - 0 AS col2 FROM tab0 AS cor0
----
-24

query II rowsort
SELECT - col1 + + 79, - col2 AS col0 FROM tab2 AS cor0
----
12
-58
2
-40
28
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL + 83 * - + COUNT( DISTINCT 97 ) AS col1 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + 83 * - + COUNT ( DISTINCT 97 ) AS col1 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT DISTINCT + + col0 + + 82 AS col1 FROM tab0 WHERE col2 + col2 NOT IN ( + col2 / 29 * col2 + 53, 11 * + + ( + col1 ), + 0, - col1, col0 * - 37 - - 52 * + col2, + 8 - - + col0 + + col2 + - - 92 )
----
169
179
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT + COUNT( * ) + + 96 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT + COUNT ( * ) + + 96 FROM tab1
----
99

query I rowsort
SELECT DISTINCT - col0 + col0 + 79 - - col2 AS col2 FROM tab2
----
102
119
137

query I rowsort
SELECT DISTINCT col1 + + col0 * col2 * col2 AS col1 FROM tab0
----
33216
8721
950698

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 11 * - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col1 AS col2, - ( col1 ) * + col2 FROM tab1
----
-14
-1344
-47
-3196
-5
-295

query I rowsort
SELECT ALL col2 * - 99 + 56 AS col0 FROM tab2 AS cor0
----
-2221
-3904
-5686

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT 38 DIV + + col0 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8459
SELECT 38 / + + col0 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8460
SELECT COUNT( * ) DIV - 76 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8460
SELECT COUNT ( * ) / - 76 FROM tab2
----
0

query I rowsort
SELECT - ( - + ( - col0 ) ) FROM tab0 WHERE NOT + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8462
SELECT ( - - ( - ( + COUNT( * ) ) ) ) AS col1, MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
-3
-96

skipif mysql # not compatible
query II rowsort label-8462
SELECT ( - - ( - ( + COUNT ( * ) ) ) ) AS col1, MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
-3
-96

query I rowsort
SELECT DISTINCT + 77 * + + col0 FROM tab2 AS cor0 WHERE - 80 * + + col2 * + - 42 * 45 IS NOT NULL
----
3542
4928
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE - 39 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE - 39 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8465
SELECT ALL - MIN( + + 5 ) DIV - - 65 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL - MIN ( + + 5 ) / - - 65 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL MAX( DISTINCT - 92 ) AS col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL MAX ( DISTINCT - 92 ) AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT ALL + col0 * - 57 FROM tab2 AS cor0 WHERE NOT + col2 <= + + ( col1 )
----

query I rowsort
SELECT - ( + 64 ) AS col2 FROM tab0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT CAST( + + 31 AS SIGNED ) FROM tab1
----
31
31
31

skipif mysql # not compatible
query I rowsort label-8469
SELECT CAST ( + + 31 AS INTEGER ) FROM tab1
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8470
SELECT ALL col2 DIV + 28 AS col1 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL col2 / + 28 AS col1 FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT col1 / + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT col1 / + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 75 * - - 42 AS col0 FROM tab2
----
-3150
-3150
-3150

query I rowsort
SELECT ALL 89 + - col1 FROM tab1 cor0
----
42
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( ALL col2 ) col2 FROM tab1 WHERE - col0 - + ( + col0 ) IS NULL
----
NULL

query II rowsort
SELECT - col1 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-8476
SELECT + ( + col0 ) DIV + 56 + col1 * + ( - col0 ) AS col0, - col1 FROM tab2 AS cor0
----
-2346
-51
-4927
-77
-5024
-67

skipif mysql # not compatible
query II rowsort label-8476
SELECT + ( + col0 ) / + 56 + col1 * + ( - col0 ) AS col0, - col1 FROM tab2 AS cor0
----
-2346
-51
-4927
-77
-5024
-67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 10 <> + 42
----

query I rowsort
SELECT col2 * 32 - + col0 + - 9 FROM tab0
----
1480
224
3062

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab1 WHERE NOT - ( ( + col1 ) ) / col2 + + - col0 IS NULL OR NULL IS NOT NULL
----
-59
-68
-96

query II rowsort
SELECT - 77 + col1 AS col1, - 25 FROM tab0
----
-56
-25
-76
-25
4
-25

query I rowsort
SELECT - col1 + - 19 AS col1 FROM tab0
----
-100
-20
-40

query I rowsort
SELECT ALL ( + col0 ) + col2 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT + COUNT( DISTINCT col0 ) * 58 + + 52 AS col0 FROM tab2
----
226

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + COUNT ( DISTINCT col0 ) * 58 + + 52 AS col0 FROM tab2
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8485
SELECT ALL CAST( NULL AS SIGNED ) + - col1 AS col1, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-8485
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 AS col1, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL MIN( DISTINCT + + 83 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL MIN ( DISTINCT + + 83 ) FROM tab0
----
83

query I rowsort
SELECT - 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 75 * col2 * - 88 * + + col1 col0 FROM tab0
----
-120582000
-376893000
-63379800

query I rowsort
SELECT ALL + - 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL + - 76 AS col0 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query II rowsort
SELECT + 99, col0 AS col2 FROM tab1 AS cor0
----
99
51
99
85
99
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL + MAX( - 35 ) AS col0 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + MAX ( - 35 ) AS col0 FROM tab1 cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT + MIN( DISTINCT - + 89 ) AS col0 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8495
SELECT + MIN ( DISTINCT - + 89 ) AS col0 FROM tab0 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8496
SELECT - + CAST( - 26 AS SIGNED ) col2 FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8496
SELECT - + CAST ( - 26 AS INTEGER ) col2 FROM tab2 AS cor0
----
26
26
26

query II rowsort
SELECT ALL col0, + col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL - - col2 * - - col2 AS col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT - col2 * + + 5 FROM tab2
----
-115
-200
-290

query II rowsort
SELECT ALL + 31 AS col1, 0 FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col0 + + 38, - col2, - col2 )
----

query I rowsort
SELECT ALL + ( - 60 ) AS col1 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT + - 66 * col1 + + 78 FROM tab1 AS cor0
----
-252
-3024
-846

query I rowsort
SELECT - + 97 * - 21 * 58 AS col1 FROM tab1 AS cor0
----
118146
118146
118146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8505
SELECT ALL - + 33 + - + 13 * + + ( - col2 ) * + CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8505
SELECT ALL - + 33 + - + 13 * + + ( - col2 ) * + CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT MIN( + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8506
SELECT MIN ( + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + col2 col0 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT - 6 + + - col0 FROM tab1 AS cor0
----
-57
-91
-97

query I rowsort
SELECT - col1 + - + col2 AS col1 FROM tab0 AS cor0 WHERE + 42 / - 29 * + - 5 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 25 AND 67
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col0, 53 * + col0 FROM tab0 AS cor0
----
10
4611
47
795
99
5141

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT + COUNT( * ) AS col0, SUM( DISTINCT + 79 ) * - COUNT( * ) col2 FROM tab2 AS cor0
----
3
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8513
SELECT + COUNT ( * ) AS col0, SUM ( DISTINCT + 79 ) * - COUNT ( * ) col2 FROM tab2 AS cor0
----
3
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col0 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8516
SELECT + - MAX( + + col1 ) - SUM( DISTINCT 83 ) FROM tab1 WHERE NOT - col2 BETWEEN + CAST( 58 AS SIGNED ) AND + col2
----
-130

skipif mysql # not compatible
query I rowsort label-8516
SELECT + - MAX ( + + col1 ) - SUM ( DISTINCT 83 ) FROM tab1 WHERE NOT - col2 BETWEEN + CAST ( 58 AS INTEGER ) AND + col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT + COUNT( DISTINCT ( + 50 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8517
SELECT + COUNT ( DISTINCT ( + 50 ) ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - 88 + - col2 * + 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8519
SELECT DISTINCT * FROM tab0 cor0 WHERE + 52 * CAST( NULL AS SIGNED ) + - 50 + - col1 * - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8519
SELECT DISTINCT * FROM tab0 cor0 WHERE + 52 * CAST ( NULL AS INTEGER ) + - 50 + - col1 * - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 25 * + + col2 * ( + col1 )
----

query I rowsort
SELECT DISTINCT - col2 * - - 91 FROM tab2 AS cor0
----
-2093
-3640
-5278

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT DISTINCT - col0 + + col0 + - ( 96 ) DIV - - col1 FROM tab0
----
-1
-4
-96

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - col0 + + col0 + - ( 96 ) / - - col1 FROM tab0
----
-1
-4
-96

query I rowsort
SELECT ALL ( - - 65 ) * + col0 FROM tab0
----
5655
6305
975

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - - 53 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8525
SELECT DISTINCT - 24 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-8525
SELECT DISTINCT - 24 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
-24
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT - col2 DIV - + col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8526
SELECT - col2 / - + col0 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + 21 + - 78 AS col2 FROM tab1
----
-57
-57
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8528
SELECT - COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + - CAST( - 22 AS SIGNED ) IS NULL )
----
1

skipif mysql # not compatible
query I rowsort label-8528
SELECT - COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + - CAST ( - 22 AS INTEGER ) IS NULL )
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 79 > + + 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * 93 * + col0 + - col1 - + col2 AS col2 FROM tab2 AS cor0
----
196714
380811
523000

query I rowsort
SELECT ALL + col2 * 93 + + col0 AS col1 FROM tab1 cor0
----
5572
6415
8979

query I rowsort
SELECT + - 7 - + - 87 AS col2 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT col1 + + - 70 * col1 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT - ( - - CAST( - SUM( ALL + + 86 ) AS SIGNED ) ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT - ( - - CAST ( - SUM ( ALL + + 86 ) AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 83, + col0 + col2 + + - 27 col1 FROM tab0
----
83
169
83
35
83
70

query II rowsort
SELECT DISTINCT col2 AS col2, - 97 * + - 37 FROM tab2
----
23
3589
40
3589
58
3589

query I rowsort
SELECT DISTINCT + ( + + 23 ) AS col2 FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 26 col0, - col0 * + 84, + 70 AS col1 FROM tab1 AS cor0
----
9 values hashing to 4094978db01d4c322bb0afa0b1ddb963

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT MIN( ALL + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8539
SELECT MIN ( ALL + - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT col0 * + ( 12 ) AS col1 FROM tab1
----
1020
1092
612

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + - 7 AS col0 FROM tab0 cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT + COUNT( 47 ) * + 75 AS col2 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8543
SELECT + COUNT ( 47 ) * + 75 AS col2 FROM tab1 AS cor0
----
225

query I rowsort
SELECT + ( ( 54 ) ) AS col1 FROM tab2 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 AS col1, ( + col0 ) col0 FROM tab2 AS cor0
----
38
46
38
64
38
75

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> 56 + col1
----

query I rowsort
SELECT - 97 + 21 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT + col2 + 74 - + + col1 AS col1 FROM tab1 cor0
----
128
156
95

query I rowsort
SELECT col0 * + + col0 * + - col2 * - col2 + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1121710
18927525
6558528

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT + - MAX( DISTINCT + + 3 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + - MAX ( DISTINCT + + 3 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 + - col0 * + 22 AS col1 FROM tab2 AS cor0
----
-1331
-1583
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT 96 + + - SUM( 55 ) AS col0 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-8552
SELECT 96 + + - SUM ( 55 ) AS col0 FROM tab0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8553
SELECT DISTINCT * FROM tab0 WHERE ( col1 NOT BETWEEN - col2 * + 31 AND CAST( + col0 AS SIGNED ) )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-8553
SELECT DISTINCT * FROM tab0 WHERE ( col1 NOT BETWEEN - col2 * + 31 AND CAST ( + col0 AS INTEGER ) )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL - SUM( col0 ) * + COUNT( * ) + - COUNT( * ) + 23 AS col1 FROM tab0
----
-577

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL - SUM ( col0 ) * + COUNT ( * ) + - COUNT ( * ) + 23 AS col1 FROM tab0
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT MAX( + + 28 ) + + + 50 + - + 40 AS col1 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT MAX ( + + 28 ) + + + 50 + - + 40 AS col1 FROM tab2
----
38

query I rowsort
SELECT + col1 + + col2 + - col0 AS col0 FROM tab2
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ( + 72 ) * - - COUNT( DISTINCT 16 ) * 4 AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-8557
SELECT ( + 72 ) * - - COUNT ( DISTINCT 16 ) * 4 AS col2 FROM tab1 AS cor0
----
288

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + + 26 FROM tab1 AS cor0
----
3507
4650
9242

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL ( MIN( 84 ) ) AS col0 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL ( MIN ( 84 ) ) AS col0 FROM tab1 AS cor0
----
84

query I rowsort
SELECT - 23 - col1 - + col0 + - col2 * - + col2 FROM tab2 AS cor0
----
1436
3199
409

onlyif mysql # DIV for integer division: 
query II rowsort label-8561
SELECT ALL + 94 DIV + ( - col0 ), 82 + - + 39 + + 92 AS col0 FROM tab1
----
-1
135
-1
135
-1
135

skipif mysql # not compatible
query II rowsort label-8561
SELECT ALL + 94 / + ( - col0 ), 82 + - + 39 + + 92 AS col0 FROM tab1
----
-1
135
-1
135
-1
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT COUNT( * ) + + 66 + - - 16 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
91

skipif mysql # not compatible
query I rowsort label-8562
SELECT COUNT ( * ) + + 66 + - - 16 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT ALL - + 66 - 55 DIV 39 AS col0 FROM tab2 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL - + 66 - 55 / 39 AS col0 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8564
SELECT + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - + col2 - + col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT + + col0 - col1 + - col1 FROM tab1 AS cor0
----
-3
23
75

query I rowsort
SELECT + + col0 * + col2 + col0 AS col0 FROM tab2 cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT ALL - col1 * CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL - col1 * CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col0 FROM tab1
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8570
SELECT ALL * FROM tab0 WHERE NOT - 39 / - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) NOT BETWEEN NULL AND + + 18
----

skipif mysql # not compatible
query III rowsort label-8570
SELECT ALL * FROM tab0 WHERE NOT - 39 / - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) NOT BETWEEN NULL AND + + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT + COUNT( + col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT + COUNT ( + col1 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT + - col0 + col1 * - - col2 AS col1, col1 * + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1293
1344
210
295
3105
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT DISTINCT - ( CAST( - 37 AS SIGNED ) ) * + col2 FROM tab1
----
2183
2516
3552

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT - ( CAST ( - 37 AS INTEGER ) ) * + col2 FROM tab1
----
2183
2516
3552

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + col0 BETWEEN - 95 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 88 <= + + col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col0 FROM tab2
----
-121

query II rowsort
SELECT DISTINCT 36 AS col0, + 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
36
80

query I rowsort
SELECT - 3 * + col1 AS col2 FROM tab0 AS cor0
----
-243
-3
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 31 * col0 col0 FROM tab0 AS cor0
----
-2697
-3007
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT + CAST( NULL AS SIGNED ) * + + 12 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT + CAST ( NULL AS INTEGER ) * + + 12 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab2 AS cor0 WHERE + 34 <= 27
----

query I rowsort
SELECT ALL + - 94 * + col0 + - - 87 FROM tab2 AS cor0
----
-4237
-5929
-6963

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT ALL CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8584
SELECT * FROM tab0 WHERE ( - + 60 * - col0 + + 6 * + + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8584
SELECT * FROM tab0 WHERE ( - + 60 * - col0 + + 6 * + + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49 col2, col0 AS col1 FROM tab2
----
-49
46
-49
64
-49
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL 71 + + + CAST( - + SUM( col1 ) AS SIGNED ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL 71 + + + CAST ( - + SUM ( col1 ) AS INTEGER ) AS col0 FROM tab1
----
5

query I rowsort
SELECT DISTINCT col0 * - + col2 + col2 AS col2 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE ( - - 36 ) BETWEEN + col2 AND + - CAST( + 51 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8588
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( - - 36 ) BETWEEN + col2 AND + - CAST ( + 51 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - + MAX( - col2 ) * - 58 FROM tab1 AS cor0
----
-3422

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - + MAX ( - col2 ) * - 58 FROM tab1 AS cor0
----
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL - SUM( col0 ) AS col2 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - SUM ( col0 ) AS col2 FROM tab0 cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT ALL - col2 DIV 28 DIV col1 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL - col2 / 28 / col1 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + COUNT( - + col2 ) + + SUM( ALL 21 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8592
SELECT + COUNT ( - + col2 ) + + SUM ( ALL 21 ) FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT - + CAST( 99 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-8593
SELECT - + CAST ( 99 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE + + col2 IS NULL
----

query I rowsort
SELECT 44 * - 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 699f9eae4c279fe744db1a1929c36e63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 94 * ( + col2 ) < col0 + - + col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8597
SELECT DISTINCT CAST( - - 7 AS SIGNED ) AS col1, 94 FROM tab1 AS cor0
----
7
94

skipif mysql # not compatible
query II rowsort label-8597
SELECT DISTINCT CAST ( - - 7 AS INTEGER ) AS col1, 94 FROM tab1 AS cor0
----
7
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL CAST( - 1 AS SIGNED ) * + - 36 + col1 col0 FROM tab2 AS cor0
----
103
113
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8598
SELECT ALL CAST ( - 1 AS INTEGER ) * + - 36 + col1 col0 FROM tab2 AS cor0
----
103
113
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + COUNT( * ) * MAX( + + col2 ) AS col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8599
SELECT + COUNT ( * ) * MAX ( + + col2 ) AS col1 FROM tab2 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT - - COUNT( * ) * + 50 AS col2, - 82 FROM tab2 AS cor0
----
150
-82

skipif mysql # not compatible
query II rowsort label-8600
SELECT - - COUNT ( * ) * + 50 AS col2, - 82 FROM tab2 AS cor0
----
150
-82

query I rowsort
SELECT DISTINCT + col0 * + 78 FROM tab2
----
3588
4992
5850

onlyif mysql # DIV for integer division: 
query II rowsort label-8602
SELECT + col0 * - col0 DIV 1 AS col1, - col2 + + col0 AS col0 FROM tab2
----
-2116
23
-4096
24
-5625
17

skipif mysql # not compatible
query II rowsort label-8602
SELECT + col0 * - col0 / 1 AS col1, - col2 + + col0 AS col0 FROM tab2
----
-2116
23
-4096
24
-5625
17

query II rowsort
SELECT ALL - col1, col1 AS col2 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query II rowsort label-8604
SELECT + 78, + col1 DIV - col0 AS col1 FROM tab1
----
78
0
78
0
78
0

skipif mysql # not compatible
query II rowsort label-8604
SELECT + 78, + col1 / - col0 AS col1 FROM tab1
----
78
0
78
0
78
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * - col1 col0 FROM tab0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL ( - - MAX( ALL - col2 ) ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL ( - - MAX ( ALL - col2 ) ) AS col1 FROM tab1
----
-59

query II rowsort
SELECT ALL col1 AS col1, col0 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 < - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 89 * + 43 FROM tab2
----
3827
3827
3827

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT DISTINCT - 54 * COUNT( * ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT - 54 * COUNT ( * ) FROM tab0
----
-162

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT ALL - col0 DIV - + col0 col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8612
SELECT ALL - col0 / - + col0 col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT + SUM( - 94 ) AS col0 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT + SUM ( - 94 ) AS col0 FROM tab0 AS cor0
----
-282

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8614
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + 2 + col0 / + 19 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT - - CAST ( NULL AS REAL ) + + 2 + col0 / + 19 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 92 * 75 ) BETWEEN NULL AND col0 * + 62
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 75 * col0 ) NOT BETWEEN NULL AND + 3
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 62 - 85 )
----

query I rowsort
SELECT DISTINCT + col2 * + col1 FROM tab2 WHERE NOT NULL <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col1 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - 46 - + MAX( DISTINCT + col0 ) FROM tab1
----
-137

skipif mysql # not compatible
query I rowsort label-8621
SELECT - 46 - + MAX ( DISTINCT + col0 ) FROM tab1
----
-137

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8622
SELECT COUNT( * ) * - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8622
SELECT COUNT ( * ) * - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1
----
0

query I rowsort
SELECT ALL - col2 * col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( col0 ) * + 15 FROM tab2
----
1125
690
960

query I rowsort
SELECT 18 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - 58 - col1 FROM tab1
----
-105
-63
-72

query I rowsort
SELECT 37 FROM tab0 WHERE NOT NULL < col0 + col2
----

query I rowsort
SELECT ALL 60 + + 58 FROM tab0
----
118
118
118

query I rowsort
SELECT ALL 33 FROM tab1 WHERE + col1 / + col2 NOT BETWEEN col2 AND NULL
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT + ( SUM( ALL + 90 ) ) FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + ( SUM ( ALL + 90 ) ) FROM tab1
----
270

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + col0 ) >= + ( 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - 73 FROM tab0
----
-26
-63
26

query I rowsort
SELECT ( 45 ) + + col0 * - col1 AS col0 FROM tab1
----
-380
-4232
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT - 37 * - COUNT( * ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT - 37 * - COUNT ( * ) FROM tab2
----
111

query I rowsort
SELECT ALL 25 * + ( - col2 ) AS col0 FROM tab2 WHERE NOT + 36 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col2 col0 FROM tab1 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT 21 * col0 AS col0 FROM tab0 WHERE ( - 80 ) BETWEEN ( + 5 + + col0 ) AND ( col1 + col0 )
----

query I rowsort
SELECT DISTINCT ( - col1 ) * ( col1 ) AS col2 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( col2 + - col0 ) IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - 23 / 70 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * 63 <> NULL
----

query I rowsort
SELECT ALL col0 * 10 FROM tab2
----
460
640
750

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8643
SELECT * FROM tab1 WHERE ( - col1 + CAST( NULL AS SIGNED ) * 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8643
SELECT * FROM tab1 WHERE ( - col1 + CAST ( NULL AS INTEGER ) * 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL - 96 * - COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL - 96 * - COUNT ( * ) FROM tab2
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8646
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) - col2 / + col2 BETWEEN + 69 AND ( col0 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-8646
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) - col2 / + col2 BETWEEN + 69 AND ( col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8647
SELECT COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 * col1 - 7 AS col2 FROM tab2 AS cor0
----
-1180
-3087
-3893

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 * - col2 + - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * col0 - + col1 col0 FROM tab2 AS cor0
----
2663
3699
4358

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT + COUNT( ALL - col1 ) - + 25 FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8651
SELECT + COUNT ( ALL - col1 ) - + 25 FROM tab0 cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT COUNT( * ) - + 30 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8652
SELECT COUNT ( * ) - + 30 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT DISTINCT - 9 * - 57 + + col2 FROM tab1
----
572
581
609

query I rowsort
SELECT - col1 FROM tab2 WHERE ( + 9 ) <= - col1 + 95
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL COUNT( DISTINCT + 99 ) + 29 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL COUNT ( DISTINCT + 99 ) + 29 FROM tab1
----
30

query I rowsort
SELECT ALL 13 * - 53 FROM tab0
----
-689
-689
-689

query I rowsort
SELECT DISTINCT - 5 * + 47 FROM tab2 AS cor0 WHERE col0 * - col2 >= ( - 18 / 20 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * + col1 col1 FROM tab1 AS cor0
----
2538
270
756

query I rowsort
SELECT col2 * + 8 + + 42 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 19 AS col2 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 83 ) <= + col1 OR NULL IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT ( col1 * + 29 ) IN ( 80 )
----
-10
-47
-99

query I rowsort
SELECT col2 * + ( - 17 ) + 98 AS col1 FROM tab1 WHERE NOT 0 BETWEEN col0 * col0 + - col0 AND NULL
----
-1058
-1534
-905

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN ( - 92 ) AND - col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8666
SELECT ALL * FROM tab2 WHERE NOT ( 66 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8666
SELECT ALL * FROM tab2 WHERE NOT ( 66 ) IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 * 19 FROM tab2
----
1216
1425
874

query I rowsort
SELECT 59 * - + col1 FROM tab2
----
-3009
-3953
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 * + col2 * - col0 col0 FROM tab2
----
238080
404550
98394

query I rowsort
SELECT ALL - 88 * - 45 FROM tab1
----
3960
3960
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT DISTINCT CAST( AVG ( - 82 ) AS SIGNED ) FROM tab1 WHERE NOT ( - ( - 99 ) ) < + 66
----
-82

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT CAST ( AVG ( - 82 ) AS INTEGER ) FROM tab1 WHERE NOT ( - ( - 99 ) ) < + 66
----
-82

query I rowsort
SELECT DISTINCT + ( + col2 ) * - 55 FROM tab1
----
-3245
-3740
-5280

query I rowsort
SELECT - col1 * + 52 AS col2 FROM tab1
----
-2444
-260
-728

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 - - col1 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT 25 * - MAX( ALL 97 DIV 22 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-100

skipif mysql # not compatible
query I rowsort label-8676
SELECT 25 * - MAX ( ALL 97 / 22 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-100

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8678
SELECT DISTINCT 86 DIV MIN( ALL - col2 ) + 66 FROM tab2 AS cor0 WHERE NOT ( + col0 + - 81 ) >= col1 DIV - col2
----
65

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT 86 / MIN ( ALL - col2 ) + 66 FROM tab2 AS cor0 WHERE NOT ( + col0 + - 81 ) >= col1 / - col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT - - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8679
SELECT - - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL SUM( - 25 ) FROM tab0 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL SUM ( - 25 ) FROM tab0 cor0
----
-75

query I rowsort
SELECT DISTINCT 51 * - + 26 + - 7 * + 80 FROM tab0 AS cor0
----
-1886

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8682
SELECT COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT - 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT + + 33 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT col2 + + + 16 AS col0 FROM tab0
----
115
26
63

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab2 WHERE NOT ( + col1 * + 69 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + + 36 ) AS col0 FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT - - COUNT( * ) * + COUNT( + + col1 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8688
SELECT - - COUNT ( * ) * + COUNT ( + + col1 ) AS col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - 40 * 71 * - COUNT( * ) FROM tab2 AS cor0
----
8520

skipif mysql # not compatible
query I rowsort label-8690
SELECT - 40 * 71 * - COUNT ( * ) FROM tab2 AS cor0
----
8520

query I rowsort
SELECT DISTINCT col0 + + - ( + col2 ) FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT ( + col0 ) BETWEEN col2 AND NULL
----
1
81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 14 + - col2 NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT ALL - CAST( - 6 AS SIGNED ) * + col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL OR NOT NULL IS NULL
----
126
486
6

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - CAST ( - 6 AS INTEGER ) * + col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL OR NOT NULL IS NULL
----
126
486
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL 35 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL 35 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
32

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( + - col1 ) AND NULL
----

query I rowsort
SELECT col2 - - - 36 AS col1 FROM tab1
----
23
32
60

query I rowsort
SELECT - 78 - 16 * - - 96 AS col1 FROM tab0
----
-1614
-1614
-1614

query I rowsort
SELECT 50 - - col0 + - 77 AS col1 FROM tab2
----
19
37
48

query I rowsort
SELECT - col1 + ( + ( + 1 ) ) + col1 AS col0 FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT - 93 + - 70 AS col1, col0 AS col1 FROM tab2
----
-163
46
-163
64
-163
75

query I rowsort
SELECT ALL 93 + - col2 - 8 AS col1 FROM tab1
----
-11
17
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ( - COUNT( * ) ) + + + 10 + - MIN( col0 ) * + COUNT( * ) AS col1 FROM tab2
----
-131

skipif mysql # not compatible
query I rowsort label-8704
SELECT ( - COUNT ( * ) ) + + + 10 + - MIN ( col0 ) * + COUNT ( * ) AS col1 FROM tab2
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + MAX( col2 ) - 79 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + MAX ( col2 ) - 79 FROM tab2
----
NULL

query II rowsort
SELECT 48 + col1 AS col0, 29 * ( col1 ) + 8 * - col1 AS col2 FROM tab1 AS cor0
----
53
105
62
294
95
987

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT col2 / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT ALL + col2 * CAST( col1 AS SIGNED ) - - 83 + col1 * - col0 col1 FROM tab0 AS cor0
----
-1534
2675
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8708
SELECT ALL + col2 * CAST ( col1 AS INTEGER ) - - 83 + col1 * - col0 col1 FROM tab0 AS cor0
----
-1534
2675
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 24 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - + MIN( col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8711
SELECT - + MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT DISTINCT - ( + col2 ) * col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - ( + col2 ) * col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL + SUM( ALL - 13 ) + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + SUM ( ALL - 13 ) + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 15 * + 60 * col0 * col1 AS col2 FROM tab0 AS cor0
----
15
1093500
87
1644300
97
87300

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 * + ( - + col0 ) IN ( 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8716
SELECT ALL - col2 AS col0, + col0 DIV + - col1 AS col0 FROM tab2
----
-23
0
-40
0
-58
-1

skipif mysql # not compatible
query II rowsort label-8716
SELECT ALL - col2 AS col0, + col0 / + - col1 AS col0 FROM tab2
----
-23
0
-40
0
-58
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 * + + col1 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8718
SELECT 85, 42 DIV 38 - col0 AS col1 FROM tab1
----
85
-50
85
-84
85
-90

skipif mysql # not compatible
query II rowsort label-8718
SELECT 85, 42 / 38 - col0 AS col1 FROM tab1
----
85
-50
85
-84
85
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL MAX( DISTINCT + col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8719
SELECT ALL MAX ( DISTINCT + col0 ) col1 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT ALL 2 + - MAX( 66 ) FROM tab2 WHERE NOT + ( - ( - CAST( NULL AS SIGNED ) ) ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL 2 + - MAX ( 66 ) FROM tab2 WHERE NOT + ( - ( - CAST ( NULL AS INTEGER ) ) ) >= NULL
----
NULL

query I rowsort
SELECT - ( - 99 ) FROM tab1 AS cor0 WHERE NOT 95 NOT IN ( + 18 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 92 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, - col2 AS col2 FROM tab2 cor0
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - 8 <= NULL
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE 48 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8726
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 * - col0 ) BETWEEN 64 / + CAST( NULL AS DECIMAL ) + col2 AND + col0 + col2
----

skipif mysql # not compatible
query III rowsort label-8726
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 * - col0 ) BETWEEN 64 / + CAST ( NULL AS REAL ) + col2 AND + col0 + col2
----

query I rowsort
SELECT ALL ( + col1 ) * + + col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * - + ( + - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - - MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - - MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 51 + - col0 + col2 FROM tab0 AS cor0
----
-26
53
83

query II rowsort
SELECT ( + col0 ), col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8732
SELECT COUNT( * ) DIV + 23 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8732
SELECT COUNT ( * ) / + 23 AS col0 FROM tab1
----
0

query II rowsort
SELECT 8 AS col1, + 57 AS col0 FROM tab0
----
8
57
8
57
8
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 + + 26 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 + + 26 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT ALL + 93 AS col0, + col2 AS col2 FROM tab0
----
93
10
93
47
93
99

query I rowsort
SELECT DISTINCT 41 + + col1 FROM tab2
----
108
118
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT DISTINCT col2 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT col2 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - + col2 - + 3 AS col2 FROM tab0 AS cor0
----
-102
-13
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT + col1 DIV - - col2 - + col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8739
SELECT + col1 / - - col2 - + col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + - 75 * - - col0 AS col1 FROM tab1 cor0
----
-3825
-6375
-6825

query I rowsort
SELECT ALL - - 39 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT 95 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8743
SELECT 95 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT - CAST( NULL AS SIGNED ) * - + col2 * - col0 + + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT - CAST ( NULL AS INTEGER ) * - + col2 * - col0 + + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 = + col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8746
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( + col2 AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-8746
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( + col2 AS INTEGER ) * - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - col2 ) < + col1 - + + 61 + + - ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < - 60
----

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - 60
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 < + + ( col0 ) * - + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0, col2, - col2 )
----

query II rowsort
SELECT ALL col1, 60 * - + 32 + - - col0 + + 37 FROM tab1
----
14
-1832
47
-1792
5
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT + - COUNT( col0 ) * + 52 + - COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 + + col2 / - - ( 54 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + - COUNT ( col0 ) * + 52 + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 + + col2 / - - ( 54 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + 47 * - - col2 + - + 5 + - col2 FROM tab1
----
2709
3123
4411

query I rowsort
SELECT DISTINCT + - col1 + - col2 AS col0 FROM tab2 WHERE NOT + - col1 BETWEEN NULL AND - 29
----

query I rowsort
SELECT - 51 * - - col2 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE 73 / + col0 = + col2 - - 77
----

query I rowsort
SELECT ALL + - 83 * + 48 FROM tab0 AS cor0
----
-3984
-3984
-3984

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 3 * col2 <> + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT + SUM( - col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT + SUM ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT ALL - CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col2 + - - col1 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL - ( - col0 ) AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
15
87
97

query II rowsort
SELECT - col1 AS col2, - 28 AS col1 FROM tab1
----
-14
-28
-47
-28
-5
-28

query I rowsort
SELECT ALL - 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT col1 * - 46 * + + 87 AS col1 FROM tab2
----
-204102
-268134
-308154

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL + COUNT( * ) * + - MAX( ALL - + col2 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL + COUNT ( * ) * + - MAX ( ALL - + col2 ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT + MIN( + col2 ) * + SUM( DISTINCT col1 ) + - 94 FROM tab1 cor0
----
3800

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT + MIN ( + col2 ) * + SUM ( DISTINCT col1 ) + - 94 FROM tab1 cor0
----
3800

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 + 34 + - - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 46 * - col0 - - + ( - col2 ) + - - ( + - col2 ) + col2 * - 51 + col0 * col1 FROM tab0 AS cor0
----
-1966
-2705
-9612

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL 0 * - + MIN( DISTINCT + + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL 0 * - + MIN ( DISTINCT + + col2 ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8772
SELECT ALL COUNT( CAST( - + 66 AS DECIMAL ) ) + - - SUM( col2 ) DIV - + COUNT( * ) AS col2 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL COUNT ( CAST ( - + 66 AS REAL ) ) + - - SUM ( col2 ) / - + COUNT ( * ) AS col2 FROM tab2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8773
SELECT DISTINCT - 66 DIV - - COUNT( ( + 92 ) ) AS col1 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - 66 / - - COUNT ( ( + 92 ) ) AS col1 FROM tab2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 3 * col1 + 80 + - 33 + - col1 AS col0 FROM tab1
----
141
57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + COUNT( * ) + + SUM( DISTINCT - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-8776
SELECT + COUNT ( * ) + + SUM ( DISTINCT - col2 ) FROM tab2
----
-118

query III rowsort
SELECT * FROM tab0 WHERE NULL = col0 * 53 * 82 * col1
----

query I rowsort
SELECT DISTINCT - 65 + + - col0 FROM tab0
----
-152
-162
-80

query II rowsort
SELECT ALL col1 * - 47 - + + col2, + col1 AS col1 FROM tab2
----
-2420
51
-3207
67
-3659
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 56 col0 FROM tab0
----
-35
-55
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT DISTINCT - 10 * - COUNT( * ) col1 FROM tab1
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8781
SELECT DISTINCT - 10 * - COUNT ( * ) col1 FROM tab1
----
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + 81 + 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 + + col2 + col1 col0 FROM tab2 AS cor0
----
1132
2677
4475

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( + - col1 ) ) = ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1 AS col1, - 36 AS col2 FROM tab0
----
1
-36
21
-36
81
-36

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND + col2 + 28
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + - - 35 NOT IN ( + - col0 + - - 1, 58, ( 19 ) )
----
46
51
23

query II rowsort
SELECT col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT 7 NOT IN ( - + 89, + col1, - + 85 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8789
SELECT + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT 7 NOT IN ( - + 89, + col1, - + 85 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 64 AS col0, col1 * + 42 col0 FROM tab0 AS cor0
----
64
3402
64
42
64
882

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col0 / col2 IS NOT NULL
----

query I rowsort
SELECT col2 * - col0 + + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-4933
-5095
-6232

query I rowsort
SELECT ALL 18 + - col0 - + + 3 AS col1 FROM tab1
----
-36
-70
-76

query I rowsort
SELECT - ( + - col1 ) + + - 15 FROM tab0
----
-14
6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT + SUM( col0 ) * - 37 FROM tab1
----
-8399

skipif mysql # not compatible
query I rowsort label-8795
SELECT + SUM ( col0 ) * - 37 FROM tab1
----
-8399

query III rowsort
SELECT * FROM tab1 WHERE col1 < + ( + + col1 ) + - - ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * + + 32 + - col0 NOT BETWEEN - col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * ( ( - col2 ) ) - col2 + + col0 FROM tab1
----
1299
321
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8799
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT DISTINCT + col0 * + col1 * - col1 - + col1 DIV + - 65 AS col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + col0 * + col1 * - col1 - + col1 / + - 65 AS col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

query II rowsort
SELECT + 82 * 6 AS col2, col0 * ( + - ( + + 21 ) ) + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT + COUNT( DISTINCT + + 59 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT + COUNT ( DISTINCT + + 59 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL - 95 * + COUNT( * ) FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL - 95 * + COUNT ( * ) FROM tab2 AS cor0
----
-285

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8806
SELECT + COUNT( * ) AS col0, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8806
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8807
SELECT DISTINCT col2 * - CAST( + col0 AS SIGNED ), col2 FROM tab2 WHERE + - col0 = NULL
----

skipif mysql # not compatible
query II rowsort label-8807
SELECT DISTINCT col2 * - CAST ( + col0 AS INTEGER ), col2 FROM tab2 WHERE + - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT DISTINCT + COUNT( * ) AS col2, ( - + MAX( DISTINCT + + col1 ) ) AS col0 FROM tab2
----
3
-77

skipif mysql # not compatible
query II rowsort label-8808
SELECT DISTINCT + COUNT ( * ) AS col2, ( - + MAX ( DISTINCT + + col1 ) ) AS col0 FROM tab2
----
3
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8809
SELECT + ( + 91 ) AS col0, COUNT( * ) FROM tab2
----
91
3

skipif mysql # not compatible
query II rowsort label-8809
SELECT + ( + 91 ) AS col0, COUNT ( * ) FROM tab2
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL - COUNT( * ) * 49 AS col0 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - COUNT ( * ) * 49 AS col0 FROM tab1
----
-147

query I rowsort
SELECT 11 * col2 * + col2 AS col0 FROM tab1
----
101376
38291
50864

query II rowsort
SELECT ALL + col1 AS col0, - 69 FROM tab1
----
14
-69
47
-69
5
-69

query I rowsort
SELECT ALL 10 * - - col2 FROM tab0
----
100
470
990

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8815
SELECT + 24 DIV - MIN( + col0 ) * + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 24 / - MIN ( + col0 ) * + COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col1 * + col0 AND - 20
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 - col0 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + ( + 56 ) ) FROM tab2
----
56

query I rowsort
SELECT ALL + 26 * + col1 AS col1 FROM tab1
----
1222
130
364

query I rowsort
SELECT - col0 * - ( + 43 ) FROM tab2 AS cor0
----
1978
2752
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - SUM( + + 41 ) FROM tab0 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-8822
SELECT - SUM ( + + 41 ) FROM tab0 cor0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT ALL + 60 DIV col0 * + - col1 FROM tab0 AS cor0
----
-324
0
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL + 60 / col0 * + - col1 FROM tab0 AS cor0
----
-324
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8824
SELECT + COUNT( * ) DIV - + 62 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT + COUNT ( * ) / - + 62 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT DISTINCT ( 20 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT ( 20 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 83 AND 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8827
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + ( CAST( - 39 AS SIGNED ) ) + - 66
----

skipif mysql # not compatible
query III rowsort label-8827
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + ( CAST ( - 39 AS INTEGER ) ) + - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL COUNT( - + col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL COUNT ( - + col1 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8829
SELECT ALL * FROM tab2 WHERE + CAST( col0 AS SIGNED ) <> - - 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8829
SELECT ALL * FROM tab2 WHERE + CAST ( col0 AS INTEGER ) <> - - 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8830
SELECT COUNT( * ), 56 col1 FROM tab1
----
3
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8830
SELECT COUNT ( * ), 56 col1 FROM tab1
----
3
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 + - col0 col2 FROM tab1
----
-30
-64
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT DISTINCT + COUNT( * ) col2, 78 + 40 FROM tab2
----
3
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8832
SELECT DISTINCT + COUNT ( * ) col2, 78 + 40 FROM tab2
----
3
118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8833
SELECT + CAST( NULL AS DECIMAL ) + - ( 90 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT + CAST ( NULL AS REAL ) + - ( 90 ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL + COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab0 WHERE - col0 + - col2 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE - col0 + - col2 >= ( NULL )
----
0

query I rowsort
SELECT ALL 1 + + - col2 AS col2 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT - + col2 * - col2 + - 6 FROM tab0 cor0
----
2203
94
9795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT ALL + - ( + col2 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + - ( + col2 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT 86 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT 86 / - col2 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 79 - + 38 * + 9 + ( 46 ) + - + 59 col2 FROM tab2 AS cor0
----
-434
-434
-434

query I rowsort
SELECT + - 28 - col2 FROM tab2 cor0
----
-51
-68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL - COUNT( DISTINCT + col1 ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - COUNT ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col0 * + - 16 FROM tab2
----
-1024
-1200
-736

query I rowsort
SELECT 98 * - 58 AS col2 FROM tab2
----
-5684
-5684
-5684

query I rowsort
SELECT DISTINCT - 83 * - 73 FROM tab2
----
6059

query I rowsort
SELECT ALL col2 * + - col2 * + - 86 FROM tab2
----
137600
289304
45494

query II rowsort
SELECT DISTINCT 92 * ( - 43 ) AS col1, ( + - col1 ) FROM tab2
----
-3956
-51
-3956
-67
-3956
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8848
SELECT col0 DIV + CAST( + col0 AS SIGNED ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8848
SELECT col0 / + CAST ( + col0 AS INTEGER ) FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( + col0 ) FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT - col2 AS col0, - col1 * + - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-59
20
-68
2162
-96
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * + + col2 * col0 * + 77 * CAST( - - ( - - 97 ) AS SIGNED ) + + - col0 col2 FROM tab0 AS cor0 WHERE NOT 2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8852
SELECT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + col2 * col0 * + 77 * CAST ( - - ( - - 97 ) AS INTEGER ) + + - col0 col2 FROM tab0 AS cor0 WHERE NOT 2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + + 56 * - col2 FROM tab0 AS cor0
----
39480
48720
537768

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + + 56 * - col2 FROM tab0 AS cor0
----
39480
48720
537768

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + MAX( + + 47 ) AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-8854
SELECT + MAX ( + + 47 ) AS col2 FROM tab0
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NULL IN ( + col2, col0 ) ) )
----

query I rowsort
SELECT col1 * - + ( + - col0 ) AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8857
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0, + 1, + col0, + - 23 * + CAST( col2 AS SIGNED ) * + 24 * - + 92 + - + col1 + - - 57, + col1, - col1 )
----

skipif mysql # not compatible
query III rowsort label-8857
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0, + 1, + col0, + - 23 * + CAST ( col2 AS INTEGER ) * + 24 * - + 92 + - + col1 + - - 57, + col1, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8858
SELECT ALL - ( + 55 ), - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
-55
NULL
-55
NULL
-55
NULL

skipif mysql # not compatible
query II rowsort label-8858
SELECT ALL - ( + 55 ), - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
-55
NULL
-55
NULL
-55
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8859
SELECT - - col0 DIV + 83 + col1 * - 25 AS col1, - col0 * - 6 * - col2 FROM tab2 AS cor0
----
-1275
-6348
-1675
-26100
-1925
-15360

skipif mysql # not compatible
query II rowsort label-8859
SELECT - - col0 / + 83 + col1 * - 25 AS col1, - col0 * - 6 * - col2 FROM tab2 AS cor0
----
-1275
-6348
-1675
-26100
-1925
-15360

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL + MIN( + - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + MIN ( + - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + 98 + + 24 - 43 + - col0 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
2425
5007
5104

query I rowsort
SELECT + col0 + - + 26 FROM tab2 AS cor0
----
20
38
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT ALL - ( + ( + COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL - ( + ( + COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 11 + + - col0 FROM tab0
----
-4
-76
-86

query II rowsort
SELECT DISTINCT + col1 * + ( 75 ) + + + 10 * - + col0, + col2 + - col1 AS col2 FROM tab2
----
3365
-28
4275
-9
5135
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT DISTINCT + MIN( - col1 ) + - MIN( + col1 ) FROM tab2
----
-128

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT + MIN ( - col1 ) + - MIN ( + col1 ) FROM tab2
----
-128

query I rowsort
SELECT ALL 4 * + 38 + - col2 FROM tab1
----
56
84
93

query I rowsort
SELECT DISTINCT - col2 + - - 66 * ( - 15 ) FROM tab2
----
-1013
-1030
-1048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT ALL - CAST( - 47 AS SIGNED ) FROM tab0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - CAST ( - 47 AS INTEGER ) FROM tab0
----
47
47
47

query I rowsort
SELECT ALL + - ( - 18 ) * - + 98 FROM tab1 AS cor0
----
-1764
-1764
-1764

query II rowsort
SELECT 79 - - col2 + - + ( + ( + 26 ) ) - ( - + 35 ) * 48, - 85 AS col0 FROM tab1 AS cor0
----
1792
-85
1801
-85
1829
-85

query I rowsort
SELECT DISTINCT - col2 + - + 25 FROM tab0
----
-124
-35
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + 36 col2 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-135
-46
-83

query II rowsort
SELECT DISTINCT - 97 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
-97
1
-97
21
-97
81

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - MIN( ALL + - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8876
SELECT - MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> + + 58 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT - col0 * - col1 DIV + - ( - col1 ) AS col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8878
SELECT - col0 * - col1 / + - ( - col1 ) AS col1 FROM tab1 cor0
----
51
85
91

query II rowsort
SELECT ALL - col1 AS col0, + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-1
9603
-21
870
-81
705

query II rowsort
SELECT ALL 80, - col2 FROM tab0 WHERE NOT - 2 <> + col2
----

query II rowsort
SELECT ALL + 29, - 76 / - col0 * 78 FROM tab1 WHERE NOT + 88 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 38 AS col2 FROM tab0
----
3306
3686
570

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT + COUNT( * ) * - ( - 3 ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8883
SELECT + COUNT ( * ) * - ( - 3 ) col1 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + 4 ) + col1 = - 79
----

query I rowsort
SELECT ALL - + 78 * - col0 AS col0 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT DISTINCT - MIN( - 11 ) AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - MIN ( - 11 ) AS col2 FROM tab1
----
11

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + + 54 * + 18, 53 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL + 62 + MIN( DISTINCT col0 ) FROM tab0 WHERE CAST( 80 AS SIGNED ) * - 40 IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + 62 + MIN ( DISTINCT col0 ) FROM tab0 WHERE CAST ( 80 AS INTEGER ) * - 40 IS NOT NULL
----
77

query II rowsort
SELECT - 4 * col0 * + col1, col0 + - + col2 AS col2 FROM tab2 AS cor0
----
-19712
24
-20100
17
-9384
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT DISTINCT - 6 * + + col1 + + col1 DIV - 11 FROM tab2 cor0
----
-310
-408
-469

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - 6 * + + col1 + + col1 / - 11 FROM tab2 cor0
----
-310
-408
-469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8891
SELECT COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8891
SELECT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * + col0 > + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT 82 * COUNT( * ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT 82 * COUNT ( * ) FROM tab1 AS cor0
----
246

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query II rowsort
SELECT ALL - col0 * 23 + + col0, ( col0 ) FROM tab0 cor0
----
-1914
87
-2134
97
-330
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT DISTINCT COUNT( * ) * - MAX( + col2 ) AS col0 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT COUNT ( * ) * - MAX ( + col2 ) AS col0 FROM tab2 AS cor0
----
-174

query I rowsort
SELECT - col0 * 88 AS col1 FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL MIN( ALL - col2 ) + - - COUNT( * ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL MIN ( ALL - col2 ) + - - COUNT ( * ) FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL + 89 + + MAX( + col1 ) FROM tab0
----
170

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + 89 + + MAX ( + col1 ) FROM tab0
----
170

query I rowsort
SELECT - 8 + + col2 FROM tab1
----
51
60
88

query I rowsort
SELECT DISTINCT col2 + - - 77 AS col1 FROM tab1
----
136
145
173

query I rowsort
SELECT - 74 + - col0 FROM tab2
----
-120
-138
-149

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE + + col1 * 91 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT col1 * + col1 + + col1 + + + col2 + CAST( NULL AS SIGNED ) * - + 86 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT col1 * + col1 + + col1 + + + col2 + CAST ( NULL AS INTEGER ) * - + 86 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 93 + col2 + - + 80 FROM tab2
----
36
53
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8906
SELECT CAST( - 86 AS SIGNED ) + - col2 + + 14 DIV col2 * - + 79 * + + ( - + 75 ) col2 FROM tab2
----
-109
-126
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8906
SELECT CAST ( - 86 AS INTEGER ) + - col2 + + 14 / col2 * - + 79 * + + ( - + 75 ) col2 FROM tab2
----
-109
-126
-144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 17 IS NULL
----

query I rowsort
SELECT DISTINCT - 72 - - + col2 + - 50 + col1 AS col1 FROM tab0 cor0
----
-22
-91
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT ALL ( - CAST( + 10 AS SIGNED ) ) * - col1 FROM tab2 AS cor0
----
510
670
770

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL ( - CAST ( + 10 AS INTEGER ) ) * - col1 FROM tab2 AS cor0
----
510
670
770

query I rowsort
SELECT DISTINCT - + ( 63 ) AS col0 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL + + 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 + col1 * + col2 <= - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8913
SELECT ALL + COUNT( DISTINCT - 74 ) DIV 50 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + COUNT ( DISTINCT - 74 ) / 50 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col2 * + + 21 * - 69 * + + col0 + col1 * - + 49 * col2 * + + 37 FROM tab0 AS cor0
----
-14094234
-1641360
-7923636

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 56 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT COUNT( DISTINCT - + col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8917
SELECT COUNT ( DISTINCT - + col0 ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - ( - - 34 ) FROM tab1
----
-34

query I rowsort
SELECT - col2 * - - 67 AS col0 FROM tab2
----
-1541
-2680
-3886

query I rowsort
SELECT + col1 * + 72 AS col1 FROM tab0
----
1512
5832
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT ALL + col2 * col0 DIV + 91 AS col2 FROM tab0
----
105
7
9

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + col2 * col0 / + 91 AS col2 FROM tab0
----
105
7
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND 24 * + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - 82 * col0 * - 58 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2, - ( + 29 ) * + - 73 AS col2 FROM tab2 AS cor0
----
-23
2117
-40
2117
-58
2117

query I rowsort
SELECT + + 76 * - col2 + ( ( 5 ) ) AS col1 FROM tab0 WHERE NULL <= col2
----

query I rowsort
SELECT + + col2 + col2 + col0 * col1 * col2 FROM tab0 AS cor0
----
18290
57199
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ( + COUNT( * ) ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT ( + COUNT ( * ) ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 87 + - 23 + - col0 AS col0 FROM tab0 AS cor0
----
-23
-33
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT ALL - SUM( DISTINCT - col2 ) + + + 5 FROM tab2 AS cor0 WHERE NOT + 8 IS NULL
----
126

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - SUM ( DISTINCT - col2 ) + + + 5 FROM tab2 AS cor0 WHERE NOT + 8 IS NULL
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8930
SELECT DISTINCT - + CAST( - - 64 AS SIGNED ), col0 AS col1 FROM tab2 AS cor0
----
-64
46
-64
64
-64
75

skipif mysql # not compatible
query II rowsort label-8930
SELECT DISTINCT - + CAST ( - - 64 AS INTEGER ), col0 AS col1 FROM tab2 AS cor0
----
-64
46
-64
64
-64
75

query I rowsort
SELECT DISTINCT - col2 * + - 14 + + + col0 FROM tab1 AS cor0
----
1043
1395
911

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col2 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT - + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT - + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 * + col1 - - col2 AS col2 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT - 99 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT col2 * + ( - 44 ) AS col2 FROM tab1
----
-2596
-2992
-4224

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT DISTINCT + col2 DIV col0 * - + 64 * + 17 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT + col2 / col0 * - + 64 * + 17 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 57 + + - col1 FROM tab1
----
10
43
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT COUNT( 70 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8939
SELECT COUNT ( 70 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL COUNT( * ) + 7 AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL COUNT ( * ) + 7 AS col0 FROM tab0
----
10

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL > - 86 + col2 * col2 + 54
----

query I rowsort
SELECT DISTINCT + + col1 + + - col2 AS col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 51 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - 81 * + ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT + ( ( CAST( NULL AS SIGNED ) ) ) - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT + ( ( CAST ( NULL AS INTEGER ) ) ) - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 2 * - + 54 + 27 * + 80 = ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 * + - 36 / col1 - + - col1 + 80 FROM tab2 WHERE NOT NULL <> - - col1 * col0 + - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL COUNT( + + 77 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8949
SELECT ALL COUNT ( + + 77 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT BETWEEN - - ( col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + 12 * + - 72 FROM tab0 AS cor0
----
-40608
-85536
-8640

query II rowsort
SELECT ALL - 51, col1 * - 77 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL + MAX( ALL col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + MAX ( ALL col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT + col0 AS col0, - col1 - 83 * - - col1 * - + col0 * + 99 + col0 AS col0 FROM tab1 AS cor0
----
51
5866975
85
3492305
91
35144153

onlyif mysql # DIV for integer division: 
query II rowsort label-8955
SELECT DISTINCT + col1 AS col2, col2 DIV + 53 FROM tab0 cor0
----
1
1
21
0
81
0

skipif mysql # not compatible
query II rowsort label-8955
SELECT DISTINCT + col1 AS col2, col2 / + 53 FROM tab0 cor0
----
1
1
21
0
81
0

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 97 * 60 * - col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT ALL - MAX( - col0 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8958
SELECT ALL - MAX ( - col0 ) col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT - col0 * - 77 AS col2 FROM tab0
----
1155
6699
7469

query II rowsort
SELECT + col0 * + - col2 AS col0, ( - + 58 ) AS col0 FROM tab0
----
-705
-58
-870
-58
-9603
-58

query I rowsort
SELECT col2 - + 6 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
17
34
52

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + - 74 IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT ALL - col0 + + ( + col2 ) + - col2 - + ( - 90 ) * - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - col0 + + ( + col2 ) + - col2 - + ( - 90 ) * - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT - CAST( + 87 AS SIGNED ) FROM tab0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-8964
SELECT - CAST ( + 87 AS INTEGER ) FROM tab0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - col0 + - + ( + - col1 ) - 96 * col0 - + col1 FROM tab0
----
-1455
-8439
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8966
SELECT DISTINCT + + CAST( - - 23 AS SIGNED ) AS col0 FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT + + CAST ( - - 23 AS INTEGER ) AS col0 FROM tab1 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 * - col2 col1 FROM tab1 cor0
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + 38 * + 61 + col0 FROM tab0 AS cor0
----
2333
2405
2415

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 / + 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT MIN( DISTINCT 66 ) + - - 97 FROM tab2
----
163

skipif mysql # not compatible
query I rowsort label-8970
SELECT MIN ( DISTINCT 66 ) + - - 97 FROM tab2
----
163

query I rowsort
SELECT - 0 + + + col2 * - 68 AS col2 FROM tab0
----
-3196
-6732
-680

query III rowsort
SELECT * FROM tab0 WHERE col0 < + col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col1 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 - - col2 col2 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT DISTINCT - COUNT( * ) - + 17 AS col1, - 53 FROM tab0
----
-20
-53

skipif mysql # not compatible
query II rowsort label-8975
SELECT DISTINCT - COUNT ( * ) - + 17 AS col1, - 53 FROM tab0
----
-20
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ALL COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / + col2 NOT BETWEEN - ( + + col1 ) + + col2 - col1 + - + col0 AND NULL
----

query II rowsort
SELECT ALL - ( 21 ) AS col1, + col0 * ( + 80 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-21
1200
-21
6960
-21
7760

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 * + 16 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT + COUNT( * ) * SUM( + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT + COUNT ( * ) * SUM ( + col0 ) FROM tab1 AS cor0
----
681

query I rowsort
SELECT DISTINCT - + 68 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - 83 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + + SUM( - 27 ) col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8983
SELECT + + SUM ( - 27 ) col0 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE + + col1 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 >= col2 * 4 + + - 16
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 - - 1 - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - ( + ( + col0 ) ) AS col1 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( 55 )
----

query I rowsort
SELECT DISTINCT - col1 + col1 * - + col0 AS col0 FROM tab0
----
-1296
-1848
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT ALL + ( + - 99 ) + - - 0 * - col0 + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + ( + - 99 ) + - - 0 * - col0 + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 74 FROM tab1
----
121
79
88

query I rowsort
SELECT + col2 + + + col2 AS col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT col0 * + - 93 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1395
-8091
-9021

query I rowsort
SELECT DISTINCT + col0 - ( - ( - + 86 ) ) FROM tab0 cor0
----
-71
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8995
SELECT 60 * - - ( + + CAST( + col2 AS SIGNED ) ) + + col1 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
3545
-5
4127
-47
5774
-14

skipif mysql # not compatible
query II rowsort label-8995
SELECT 60 * - - ( + + CAST ( + col2 AS INTEGER ) ) + + col1 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
3545
-5
4127
-47
5774
-14

query I rowsort
SELECT - 20 + 49 * col2 * - col2 FROM tab0 AS cor0
----
-108261
-480269
-4920

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 47
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT - ( 15 ) * + 90 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT - ( 15 ) * + 90 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 93 + 25 < col1
----

query I rowsort
SELECT DISTINCT col2 - col2 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - COUNT( * ) * - ( MAX( - col0 ) ) col1 FROM tab1
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9003
SELECT - COUNT ( * ) * - ( MAX ( - col0 ) ) col1 FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT 64 * - + COUNT( * ) AS col2 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT 64 * - + COUNT ( * ) AS col2 FROM tab2
----
-192

query I rowsort
SELECT ( - - 49 ) AS col1 FROM tab2
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 WHERE col0 * - 14 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE col0 * - 14 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT ALL COUNT( * ) * COUNT( * ) AS col1, + SUM( DISTINCT col0 ) AS col1 FROM tab0
----
9
199

skipif mysql # not compatible
query II rowsort label-9008
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1, + SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
9
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT COUNT( * ) * - + 12 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-9009
SELECT COUNT ( * ) * - + 12 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT - MAX( DISTINCT + 86 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT - MAX ( DISTINCT + 86 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL - + COUNT( * ) * - 64 col2 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9011
SELECT ALL - + COUNT ( * ) * - 64 col2 FROM tab2 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - - SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9012
SELECT - - SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT + SUM( ALL + + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9013
SELECT + SUM ( ALL + + col1 ) FROM tab1 cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9014
SELECT SUM( - CAST( NULL AS DECIMAL ) ) AS col1, MAX( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9014
SELECT SUM ( - CAST ( NULL AS REAL ) ) AS col1, MAX ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
NULL
99

query I rowsort
SELECT DISTINCT + 97 * - 55 AS col2 FROM tab0 AS cor0
----
-5335

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * 23 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( 63 ) AS col2 FROM tab2 AS cor0
----
63

query I rowsort
SELECT ALL 9 * - col2 FROM tab1 AS cor0
----
-531
-612
-864

query I rowsort
SELECT ALL 82 * - 24 AS col1 FROM tab1
----
-1968
-1968
-1968

onlyif mysql # DIV for integer division: 
query I rowsort label-9020
SELECT DISTINCT 70 DIV col0 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT 70 / col0 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT ALL + col2 + + 14 AS col2 FROM tab0
----
113
24
61

query I rowsort
SELECT 82 * + 87 * + col2 FROM tab0
----
335298
706266
71340

query I rowsort
SELECT 90 * + ( + 91 ) FROM tab1
----
8190
8190
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 + - 68 * - 84 col1, col2 FROM tab0
----
5735
10
5735
47
5735
99

query I rowsort
SELECT ALL - 63 + + col0 FROM tab1
----
-12
22
28

query I rowsort
SELECT - 68 / + col2 AS col0 FROM tab1 WHERE NOT ( 36 ) >= col0 AND NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col2 FROM tab0 AS cor0 WHERE ( + col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9028
SELECT * FROM tab2 AS cor0 WHERE + 52 * + - col2 >= + - CAST( - 0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9028
SELECT * FROM tab2 AS cor0 WHERE + 52 * + - col2 >= + - CAST ( - 0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN + - ( col1 ) AND + - col1 + + col2
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT col2 * - + col0 + + 58 AS col1 FROM tab0
----
-647
-812
-9545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT DISTINCT + + col0 - - CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + + col0 - - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT - col1 * + col0 * + 29 + 36 - 18 FROM tab1 AS cor0
----
-12307
-124015
-20688

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9033
SELECT ALL * FROM tab2 WHERE + CAST( - - col1 AS SIGNED ) + - col1 + col0 * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9033
SELECT ALL * FROM tab2 WHERE + CAST ( - - col1 AS INTEGER ) + - col1 + col0 * - col0 IS NULL
----

query II rowsort
SELECT - col2 * - col0 * + col1, + col2 FROM tab2
----
197120
40
291450
58
53958
23

query I rowsort
SELECT + 18 - - col0 * col2 FROM tab1 WHERE NOT + + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL SUM( - ( + col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL SUM ( - ( + col2 ) ) AS col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL + + ( - - COUNT( * ) ) col1 FROM tab0 WHERE NOT - - col0 <= + - col2 - - - col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9037
SELECT ALL + + ( - - COUNT ( * ) ) col1 FROM tab0 WHERE NOT - - col0 <= + - col2 - - - col0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 col0 FROM tab1 AS cor0
----
34
34
34

query II rowsort
SELECT ( + col1 ), 1 FROM tab2 AS cor0
----
51
1
67
1
77
1

query I rowsort
SELECT DISTINCT - col0 * - + 36 * + - col2 AS col1 FROM tab1 AS cor0
----
-176256
-180540
-222768

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9042
SELECT + + COUNT( * ) DIV + 94 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9042
SELECT + + COUNT ( * ) / + 94 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT 80 * ( col1 ) FROM tab2 AS cor0
----
4080
5360
6160

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 99
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9045
SELECT + - MAX( - + col1 ) + - COUNT( * ) AS col0, 66 * + 68 FROM tab0 AS cor0
----
-2
4488

skipif mysql # not compatible
query II rowsort label-9045
SELECT + - MAX ( - + col1 ) + - COUNT ( * ) AS col0, 66 * + 68 FROM tab0 AS cor0
----
-2
4488

query I rowsort
SELECT - col0 + 91 * + col0 * - + 24 AS col0 FROM tab1 AS cor0
----
-111435
-185725
-198835

query I rowsort
SELECT col1 + - 6 FROM tab0 AS cor0
----
-5
15
75

query I rowsort
SELECT DISTINCT col2 + col1 * - - col0 * + ( + - 34 ) AS col1 FROM tab1
----
-14391
-145350
-24180

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT ALL - col1 + - - 22 DIV + 98 FROM tab0 WHERE - 21 IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL - col1 + - - 22 / + 98 FROM tab0 WHERE - 21 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col2 + 47 >= NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT - + ( - + CAST( NULL AS SIGNED ) ) * col0 * - + 59 * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT - + ( - + CAST ( NULL AS INTEGER ) ) * col0 * - + 59 * + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT SUM( - col1 ) * + MAX( col2 ) AS col0 FROM tab2 AS cor0
----
-11310

skipif mysql # not compatible
query I rowsort label-9053
SELECT SUM ( - col1 ) * + MAX ( col2 ) AS col0 FROM tab2 AS cor0
----
-11310

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - 11 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + + col1 AS col2 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT DISTINCT col0 + - ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT col0 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 13 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL + 37 AS col2 FROM tab2 cor0 WHERE - col0 * - col2 + 86 IS NOT NULL
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - COUNT( * ) - - 26 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - COUNT ( * ) - - 26 FROM tab1 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT DISTINCT + 1 DIV - + col2 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT + 1 / - + col2 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ( + 41 ) * + COUNT( * ) FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9061
SELECT ( + 41 ) * + COUNT ( * ) FROM tab2 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT + 43, + ( COUNT( + + 10 ) ) AS col1 FROM tab2 AS cor0
----
43
3

skipif mysql # not compatible
query II rowsort label-9062
SELECT + 43, + ( COUNT ( + + 10 ) ) AS col1 FROM tab2 AS cor0
----
43
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 <> + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ( + COUNT( * ) ) * - + 28 + - COUNT( * ) AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9064
SELECT ( + COUNT ( * ) ) * - + 28 + - COUNT ( * ) AS col0 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - COUNT( 4 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9065
SELECT - COUNT ( 4 ) FROM tab2
----
-3

query I rowsort
SELECT ( + - 98 ) * - col1 * col0 FROM tab2 AS cor0
----
229908
482944
492450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * 70, + col2 col1 FROM tab1 cor0
----
-3570
96
-5950
59
-6370
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT DISTINCT - 88 * + col2 FROM tab2 AS cor0
----
-2024
-3520
-5104

query I rowsort
SELECT col1 + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT col0 DIV col0 DIV + col2 + col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9072
SELECT col0 / col0 / + col2 + col2 AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL 63 + col1 FROM tab1
----
110
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + 42 + MIN( ALL - col0 ) col2 FROM tab2
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9074
SELECT + 42 + MIN ( ALL - col0 ) col2 FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT + COUNT( * ) * - - 1 + - + ( 94 ) AS col0 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-9075
SELECT + COUNT ( * ) * - - 1 + - + ( 94 ) AS col0 FROM tab2
----
-91

query I rowsort
SELECT ALL + col1 + 44 AS col0 FROM tab1
----
49
58
91

query I rowsort
SELECT DISTINCT + col0 + 10 AS col0 FROM tab0
----
107
25
97

query I rowsort
SELECT col1 + col1 - col2 * 25 FROM tab2
----
-1316
-473
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + + COUNT( * ) + - + 35 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9079
SELECT + + COUNT ( * ) + - + 35 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT - + col2 + - 6 FROM tab1 AS cor0
----
-102
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT + MIN( + 78 ) * + 5 FROM tab1 AS cor0
----
390

skipif mysql # not compatible
query I rowsort label-9081
SELECT + MIN ( + 78 ) * + 5 FROM tab1 AS cor0
----
390

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + col2 * + 8 FROM tab2
----
207
360
522

query I rowsort
SELECT - 27 - col2 FROM tab2
----
-50
-67
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9085
SELECT CAST( NULL AS SIGNED ) / + 85 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT CAST ( NULL AS INTEGER ) / + 85 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col1 - col0 * col0 AS col2 FROM tab1
----
-1887
-4004
-6800

query I rowsort
SELECT 55 + + 87 FROM tab2
----
142
142
142

query III rowsort
SELECT * FROM tab0 WHERE 51 + + col2 NOT BETWEEN col0 AND NULL
----
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9089
SELECT - SUM( 92 ) DIV - COUNT( * ) AS col2 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-9089
SELECT - SUM ( 92 ) / - COUNT ( * ) AS col2 FROM tab0
----
92

query I rowsort
SELECT DISTINCT col1 - 56 FROM tab1
----
-42
-51
-9

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT col2 NOT BETWEEN - 95 AND + col1 * + col0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - ( + 44 ) * - 65 col1 FROM tab0
----
2763
2773
2845

query I rowsort
SELECT - col1 + 40 AS col1 FROM tab1
----
-7
26
35

query I rowsort
SELECT - 49 + col0 * col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL - COUNT( * ) + - 29 AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL - COUNT ( * ) + - 29 AS col2 FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT COUNT( * ) FROM tab0 WHERE - col1 + - col1 / - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT COUNT ( * ) FROM tab0 WHERE - col1 + - col1 / - col2 IS NULL
----
0

query I rowsort
SELECT + col0 * + 42 - 41 FROM tab2
----
1891
2647
3109

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
23
40
58

query I rowsort
SELECT ALL - 68 AS col2 FROM tab2 WHERE NOT + 13 + col2 NOT BETWEEN col2 AND + col1
----
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT CAST( 17 AS SIGNED ) FROM tab0 cor0
----
17

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT CAST ( 17 AS INTEGER ) FROM tab0 cor0
----
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 56 + + col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 8 ) col0 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9104
SELECT ALL 66 DIV + 83 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9104
SELECT ALL 66 / + 83 col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 2 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - col1 * - 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9107
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 89 ) BETWEEN ( NULL ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( - 3 ) NOT IN ( - col2 )
----
15
87
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 82 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT 34 FROM tab2 AS cor0 WHERE - 43 IS NOT NULL
----
34
34
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9113
SELECT DISTINCT 43 FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN ( - 54 / col0 ) AND ( - 5 * + 31 + CAST( NULL AS DECIMAL ) * - 14 )
----

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT 43 FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN ( - 54 / col0 ) AND ( - 5 * + 31 + CAST ( NULL AS REAL ) * - 14 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 84 IS NULL
----

query I rowsort
SELECT 0 + - 63 FROM tab0 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT + SUM( - 81 ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT + SUM ( - 81 ) FROM tab0 AS cor0
----
-243

query I rowsort
SELECT col2 * col2 + ( + col0 ) FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE + 14 * col2 NOT IN ( + 37 + 91 )
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT ALL ( + ( + col0 ) ) DIV - col2 + col0 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL ( + ( + col0 ) ) / - col2 + col0 FROM tab1 AS cor0
----
51
84
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT + col1 DIV col1 + col1 col2 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9120
SELECT + col1 / col1 + col1 col2 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab2 WHERE ( NULL ) IS NULL OR col2 * - col0 IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9121
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE ( NULL ) IS NULL OR col2 * - col0 IN ( - col1 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9122
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * 45 > - col1 / col0
----

skipif mysql # not compatible
query III rowsort label-9122
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * 45 > - col1 / col0
----

query I rowsort
SELECT + col1 FROM tab0 WHERE + 71 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( 23 / col0 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 - 26 col1 FROM tab1
----
20
20
20

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - 71 * + col2
----

query I rowsort
SELECT DISTINCT col2 + + 22 - col2 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT ALL 5 + + + CAST( NULL AS SIGNED ) + col1 * 80 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL 5 + + + CAST ( NULL AS INTEGER ) + col1 * 80 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT DISTINCT - col1 / + 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-9129
SELECT DISTINCT - col1 / + col0 - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - 96 FROM tab2 AS cor0 WHERE 71 * + 62 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + - col0 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT ALL + + 38 - + col2 FROM tab2 AS cor0
----
-2
-20
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT CAST( + 78 AS SIGNED ) - - col2 FROM tab0 AS cor0
----
125
177
88

skipif mysql # not compatible
query I rowsort label-9133
SELECT CAST ( + 78 AS INTEGER ) - - col2 FROM tab0 AS cor0
----
125
177
88

query II rowsort
SELECT col0, + 36 AS col2 FROM tab2
----
46
36
64
36
75
36

query I rowsort
SELECT DISTINCT 7 * - col1 + + - 68 - 79 * + 84 FROM tab2 AS cor0
----
-7061
-7173
-7243

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT ( - SUM( DISTINCT + ( 11 ) ) ) FROM tab1 AS cor0 WHERE col2 IN ( + + 90 * - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT ( - SUM ( DISTINCT + ( 11 ) ) ) FROM tab1 AS cor0 WHERE col2 IN ( + + 90 * - col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT 16 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9140
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9140
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT DISTINCT - ( col2 ) + + col2 * - col0 AS col1 FROM tab0 WHERE ( CAST( + col1 AS SIGNED ) ) NOT BETWEEN NULL AND ( - 93 * col1 )
----
-752
-880
-9702

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT - ( col2 ) + + col2 * - col0 AS col1 FROM tab0 WHERE ( CAST ( + col1 AS INTEGER ) ) NOT BETWEEN NULL AND ( - 93 * col1 )
----
-752
-880
-9702

query I rowsort
SELECT DISTINCT + 51 * col1 AS col2 FROM tab2
----
2601
3417
3927

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT DISTINCT + 13 DIV - + ( col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT + 13 / - + ( col0 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT ( + + ( + col0 ) ) DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9144
SELECT ( + + ( + col0 ) ) / + col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT DISTINCT MIN( DISTINCT + 6 ) DIV - - 50 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT MIN ( DISTINCT + 6 ) / - - 50 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) NOT IN ( 60 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 2 * + col1 ) AND - col0
----

query I rowsort
SELECT DISTINCT + 42 * + + col1 + + col2 FROM tab0 AS cor0
----
141
3449
892

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col1 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 76 )
----

query I rowsort
SELECT - 89 * - 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 871c06e62cc3b08006930c8cb14f9483

query I rowsort
SELECT - 7 * - - 17 AS col1 FROM tab1 AS cor0
----
-119
-119
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT DISTINCT - MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT - MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL - COUNT( ALL - 25 ) AS col1 FROM tab0 AS cor0 WHERE - col0 - - + 66 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL - COUNT ( ALL - 25 ) AS col1 FROM tab0 AS cor0 WHERE - col0 - - + 66 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT + col1 / - CAST( NULL AS SIGNED ) + - - col2 / + col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9155
SELECT + col1 / - CAST ( NULL AS INTEGER ) + - - col2 / + col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9156
SELECT * FROM tab1 AS cor0 WHERE + 46 + - + col0 + CAST( - ( 99 ) AS SIGNED ) + + 98 / - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9156
SELECT * FROM tab1 AS cor0 WHERE + 46 + - + col0 + CAST ( - ( 99 ) AS INTEGER ) + + 98 / - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + 75 FROM tab1
----
134
143
171

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( ( - 78 ) + col0 + + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9159
SELECT + 15 * - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT + 15 * - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * ( + col0 ) + - 25 AS col2 FROM tab0
----
680
845
9578

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL - 26 * - 73 * + + ( + - 57 ) + - ( MAX( DISTINCT + col2 ) ) FROM tab0
----
-108285

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - 26 * - 73 * + + ( + - 57 ) + - ( MAX ( DISTINCT + col2 ) ) FROM tab0
----
-108285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9162
SELECT - CAST( - COUNT( * ) AS SIGNED ) + - 87 AS col0 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9162
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + - 87 AS col0 FROM tab0 AS cor0
----
-84

query II rowsort
SELECT ALL - - 68, col1 AS col2 FROM tab0 cor0
----
68
1
68
21
68
81

query I rowsort
SELECT 12 * + - col0 FROM tab1 AS cor0
----
-1020
-1092
-612

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + col2 * + 50 + col1 * col1 - - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT ALL + ( 11 ) * + col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + ( 11 ) * + col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 * col0 FROM tab1 AS cor0 WHERE col1 * col1 IS NOT NULL
----
4488
7480
8008

query II rowsort
SELECT DISTINCT + ( - col2 ) AS col0, + col0 - col0 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query I rowsort
SELECT DISTINCT + col2 * - col0 - col2 AS col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT DISTINCT col1 * - 57 AS col0 FROM tab1
----
-2679
-285
-798

query I rowsort
SELECT DISTINCT 6 * 63 FROM tab1
----
378

query I rowsort
SELECT - 21 * - 41 AS col2 FROM tab2
----
861
861
861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT + ( 14 ) > col0 + + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT + ( 14 ) > col0 + + CAST ( - col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT DISTINCT - 58 DIV - COUNT( * ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT - 58 / - COUNT ( * ) FROM tab2
----
19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT CAST( col0 AS SIGNED ) * + + col0 FROM tab0 AS cor0 WHERE + col2 * + - col1 * col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-9176
SELECT CAST ( col0 AS INTEGER ) * + + col0 FROM tab0 AS cor0 WHERE + col2 * + - col1 * col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT - 46 * - COUNT( * ) FROM tab1 cor0
----
138

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT - 46 * - COUNT ( * ) FROM tab1 cor0
----
138

query I rowsort
SELECT - - col0 FROM tab2 WHERE NULL BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - 89 ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-89

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 62 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT - MIN( DISTINCT - + 54 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-9181
SELECT - MIN ( DISTINCT - + 54 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
54

query I rowsort
SELECT ALL - 75 + - col2 FROM tab2 cor0
----
-115
-133
-98

query I rowsort
SELECT - 84 + + col2 FROM tab0 AS cor0
----
-37
-74
15

query I rowsort
SELECT + col0 + 56 AS col0 FROM tab1 AS cor0
----
107
141
147

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 23 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9186
SELECT + COUNT( * ) DIV + MIN( - col2 ) + - + 81 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COUNT ( * ) / + MIN ( - col2 ) + - + 81 FROM tab2 AS cor0
----
-81

query II rowsort
SELECT ALL + col0 * - col0, + col1 * + + col2 AS col1 FROM tab2 AS cor0
----
-2116
1173
-4096
3080
-5625
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT - col1 DIV + - ( - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9188
SELECT - col1 / + - ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 36 AS col0 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT ( - 9 ) FROM tab0 WHERE NOT ( - 70 * + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL 64 FROM tab1 WHERE - - ( 96 ) * + - col2 IS NULL
----

query I rowsort
SELECT ALL - col2 + + + 8 FROM tab1
----
-51
-60
-88

query I rowsort
SELECT DISTINCT + 50 + + col1 AS col1 FROM tab1
----
55
64
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT 36 - + SUM( + 10 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9194
SELECT 36 - + SUM ( + 10 ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col2 FROM tab1 WHERE NOT col1 * + col2 / - - col0 <= NULL AND 70 * col1 <> - ( - col2 ) + col2 * col1
----

query I rowsort
SELECT - col0 * - - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL + 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9199
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9199
SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT - 48 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - - col0, 31 AS col0 FROM tab1 AS cor0
----
51
31
85
31
91
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9202
SELECT 82 AS col1, - COUNT( * ) col1 FROM tab0 AS cor0
----
82
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9202
SELECT 82 AS col1, - COUNT ( * ) col1 FROM tab0 AS cor0
----
82
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + MIN( - + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9203
SELECT + MIN ( - + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-9204
SELECT ALL + + 56, - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
56
-1
56
-1
56
-1

skipif mysql # not compatible
query II rowsort label-9204
SELECT ALL + + 56, - col0 / + col0 AS col1 FROM tab2 AS cor0
----
56
-1
56
-1
56
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT COUNT( 79 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9205
SELECT COUNT ( 79 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 71 * col1 AS col1 FROM tab0 cor0
----
1491
5751
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9207
SELECT + 17 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + CAST( NULL AS DECIMAL ) AND 15
----

skipif mysql # not compatible
query I rowsort label-9207
SELECT + 17 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + CAST ( NULL AS REAL ) AND 15
----

query I rowsort
SELECT + col0 * + ( + + col2 ) FROM tab2
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 37 * - col1 AS col1 FROM tab0
----
-2997
-37
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - 21 + ( + COUNT( * ) ) * COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 21 + ( + COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT COUNT( * ) + 28 AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9212
SELECT COUNT ( * ) + 28 AS col1 FROM tab0 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 * + - col1 col2 FROM tab1
----
-182
-611
-65

query I rowsort
SELECT ALL + col0 * - 88 + - col0 FROM tab0 AS cor0
----
-1335
-7743
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL + 84 - + - COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + 84 - + - COUNT ( * ) FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT - col1 * 48 AS col2 FROM tab1 AS cor0
----
-2256
-240
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT DISTINCT + + col0 DIV + - col1 - - 8 AS col0 FROM tab0 AS cor0
----
-89
4
8

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT + + col0 / + - col1 - - 8 AS col0 FROM tab0 AS cor0
----
-89
4
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9218
SELECT DISTINCT + + COUNT( * ) DIV COUNT( ALL col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + + COUNT ( * ) / COUNT ( ALL col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 42 + - 54 AS col1 FROM tab2
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9220
SELECT + + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - 39 * + col1 + - ( 43 ) AS col1 FROM tab1
----
-1876
-238
-589

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT DISTINCT + 23 DIV - col1 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + 23 / - col1 FROM tab1
----
-1
-4
0

query I rowsort
SELECT DISTINCT - + col0 + - col0 FROM tab0 WHERE NOT + 53 = + 12
----
-174
-194
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9224
SELECT 87 + + SUM( DISTINCT + - 59 ) - 78 DIV 63 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-9224
SELECT 87 + + SUM ( DISTINCT + - 59 ) - 78 / 63 FROM tab1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 col2 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT - 1 / + - 49 + + col1 * CAST( NULL AS SIGNED ) * - 13 * + 40 * + col1 + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT - 1 / + - 49 + + col1 * CAST ( NULL AS INTEGER ) * - 13 * + 40 * + col1 + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col0 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + col0 * ( - col1 ) - - col0 NOT BETWEEN NULL AND + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 25 BETWEEN - col2 AND col1 * 74
----
15
81
47
97
1
99

query I rowsort
SELECT ALL ( + col2 ) * + - col1 + + 20 FROM tab2 AS cor0
----
-1153
-3060
-3866

query I rowsort
SELECT col1 * - + 94 AS col2 FROM tab0 cor0
----
-1974
-7614
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT ( SUM( DISTINCT 52 ) ) AS col2 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-9234
SELECT ( SUM ( DISTINCT 52 ) ) AS col2 FROM tab2
----
52

query I rowsort
SELECT - 1 * + - col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT - MIN( ALL + + 86 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-9237
SELECT - MIN ( ALL + + 86 ) FROM tab0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9238
SELECT + - CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0 cor0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND - col2 + + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND - col2 + + - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT - 54 DIV col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9239
SELECT - 54 / col0 FROM tab1 cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 4 IN ( 83 * + col1, 99, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL - MAX( - - 66 ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - MAX ( - - 66 ) AS col1 FROM tab0 AS cor0
----
-66

query II rowsort
SELECT col0 + - - col1 - + col2, - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
49
-81
98
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 5 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9243
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 5 ) AND NULL
----
0

query I rowsort
SELECT 9 + + ( - col2 ) * col2 AS col1 FROM tab1 cor0
----
-3472
-4615
-9207

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL - COUNT( * ) * + ( COUNT( * ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - COUNT ( * ) * + ( COUNT ( * ) ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL + 34 + + COUNT( * ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + 34 + + COUNT ( * ) FROM tab0
----
37

query I rowsort
SELECT ALL 88 * col1 + + 45 FROM tab0
----
133
1893
7173

query II rowsort
SELECT DISTINCT - 96 AS col2, + col2 * + col2 FROM tab2
----
-96
1600
-96
3364
-96
529

query II rowsort
SELECT ALL + col0 AS col1, - col1 + + ( - + col2 ) FROM tab2 WHERE + ( col0 ) >= col1 + - ( - col0 ) / + col0
----
75
-125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 + - - col0 col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT - COUNT( * ) * + 66 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9251
SELECT - COUNT ( * ) * + 66 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT + 84 * + col2 * ( - col0 ) * col2 + 46 * - 61 FROM tab2 cor0
----
-2046862
-21196006
-8604406

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT - SUM( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9253
SELECT - SUM ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - 13 + col1 + + - 16 FROM tab0
----
-28
-8
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL 53 + + COUNT( * ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL 53 + + COUNT ( * ) AS col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE col2 < - - col1 / + + col0 + - col0 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 < - - col1 / + + col0 + - col0 + + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT 17 + col0 + col2 AS col0 FROM tab1 cor0 WHERE 44 + - 31 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9257
SELECT 17 + col0 + col2 AS col0 FROM tab1 cor0 WHERE 44 + - 31 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 32 < NULL
----

query I rowsort
SELECT + - 57 * col1 FROM tab1 AS cor0
----
-2679
-285
-798

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 * - col2 + - + 19 BETWEEN NULL AND 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT - + SUM( + 40 ) FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT - + SUM ( + 40 ) FROM tab1 AS cor0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 cor0 WHERE NOT 35 * - - 25 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9263
SELECT DISTINCT - - col2 + + - col1, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-28
NULL
-37
NULL
-9
NULL

skipif mysql # not compatible
query II rowsort label-9263
SELECT DISTINCT - - col2 + + - col1, + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-28
NULL
-37
NULL
-9
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE ( NULL ) < - 88
----

query II rowsort
SELECT 82, col1 AS col1 FROM tab2 cor0
----
82
51
82
67
82
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL = ( col0 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL = ( col0 * col0 )
----
0

query I rowsort
SELECT 78 * 74 + + col2 FROM tab1 AS cor0
----
5831
5840
5868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT - col0 / - - col1 - - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9269
SELECT - col0 / - - col1 - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 49 FROM tab2 cor0
----
-49
-49
-49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col0 + - col1 - + ( col0 ) <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + + 21 + + col1 AS col1 FROM tab2 AS cor0
----
118
162
163

query I rowsort
SELECT + col2 * 18 + 87 + 56 * col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL + COUNT( DISTINCT - 77 ) + + COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + COUNT ( DISTINCT - 77 ) + + COUNT ( * ) AS col2 FROM tab1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT + col1 + - 25 + - col1 * - - col1 + col1 DIV + col1 AS col1 FROM tab1
----
-206
-2186
-44

skipif mysql # not compatible
query I rowsort label-9275
SELECT + col1 + - 25 + - col1 * - - col1 + col1 / + col1 AS col1 FROM tab1
----
-206
-2186
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT - col2 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT - col2 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 + - col1 * + col1, col2 AS col0 FROM tab1 cor0
----
-182
96
-20
59
-2162
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 / - 41 * - 87, 22 * + col0, + + 9 + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9281
SELECT DISTINCT - + CAST( + - COUNT( DISTINCT - + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT - + CAST ( + - COUNT ( DISTINCT - + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT + 58 DIV - col1 FROM tab0 cor0
----
-2
-58
0

skipif mysql # not compatible
query I rowsort label-9282
SELECT + 58 / - col1 FROM tab0 cor0
----
-2
-58
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9283
SELECT 64, - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-9283
SELECT 64, - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
64
NULL

query I rowsort
SELECT - 60 AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT 11 - + col0 AS col2 FROM tab0
----
-4
-76
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 - - col0 * + 80 col1 FROM tab0 AS cor0
----
1257
7017
7817

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT - 46 * col0 DIV col2 * - col1 + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-52
1119
8313

skipif mysql # not compatible
query I rowsort label-9287
SELECT - 46 * col0 / col2 * - col1 + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-52
1119
8313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT ALL + MIN( - col2 ) DIV - + 55 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL + MIN ( - col2 ) / - + 55 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT 20 + - 90 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-70

query II rowsort
SELECT + + col2 AS col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT + MAX( - 46 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9292
SELECT + MAX ( - 46 ) FROM tab1 AS cor0
----
-46

query II rowsort
SELECT DISTINCT - col2 AS col0, - 1 * - + col0 * - 34 AS col1 FROM tab1 cor0
----
-59
-2890
-68
-3094
-96
-1734

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT SUM( col0 ) * + COUNT( * ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT SUM ( col0 ) * + COUNT ( * ) FROM tab0
----
597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col0 col0 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT col1 * - col2 AS col0, col1 FROM tab0
----
-210
21
-3807
81
-99
1

query I rowsort
SELECT 79 * - 67 FROM tab1
----
-5293
-5293
-5293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT - col1 * + - CAST( + 77 AS SIGNED ) FROM tab2
----
3927
5159
5929

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT - col1 * + - CAST ( + 77 AS INTEGER ) FROM tab2
----
3927
5159
5929

query I rowsort
SELECT DISTINCT + col1 * 4 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT + - COUNT( * ) AS col2 FROM tab0 WHERE NOT - 80 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9301
SELECT + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 80 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT col1 BETWEEN NULL AND - CAST( - + 28 AS SIGNED ) - + col1
----
3

skipif mysql # not compatible
query I rowsort label-9302
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col1 BETWEEN NULL AND - CAST ( - + 28 AS INTEGER ) - + col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9303
SELECT ALL col0 * - col0, - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-225
47
-7569
10
-9409
99

skipif mysql # not compatible
query II rowsort label-9303
SELECT ALL col0 * - col0, - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-225
47
-7569
10
-9409
99

query II rowsort
SELECT + ( - - 87 ) AS col2, - ( + + col2 ) * col2 AS col0 FROM tab2 cor0
----
87
-1600
87
-3364
87
-529

query II rowsort
SELECT - col2 * - - col2, - col1 - - 85 * 93 AS col2 FROM tab0 AS cor0
----
-100
7884
-2209
7824
-9801
7904

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL + ( SUM( ALL - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + ( SUM ( ALL - col0 ) ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + SUM( ALL col2 ) + + MAX( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
319

skipif mysql # not compatible
query I rowsort label-9308
SELECT + SUM ( ALL col2 ) + + MAX ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
319

query I rowsort
SELECT - col1 + + 43 + - col0 AS col2 FROM tab0 AS cor0
----
-53
-55
-65

query I rowsort
SELECT - 98 + + col0 AS col2 FROM tab0 AS cor0
----
-1
-11
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT - COUNT( col1 ) + + 91 col1 FROM tab0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9311
SELECT - COUNT ( col1 ) + + 91 col1 FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT + COUNT( * ) + 16 + - 49 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + COUNT ( * ) + 16 + - 49 FROM tab2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 82 + 42 + - col2 + 5 * col1 col0 FROM tab0
----
240
31
563

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT + SUM( 88 ) AS col1 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-9314
SELECT + SUM ( 88 ) AS col1 FROM tab0 AS cor0
----
264

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > col0 * 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 - 42 FROM tab0 AS cor0
----
-123
-43
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL 21 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9317
SELECT ALL 21 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9318
SELECT ALL - - COUNT( ALL - - CAST( - 73 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - - COUNT ( ALL - - CAST ( - 73 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 43 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT - MAX( - 56 ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9320
SELECT - MAX ( - 56 ) FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - - MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9321
SELECT - - MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL 6 AS col0, ( - - col2 ) FROM tab2 AS cor0
----
6
23
6
40
6
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT - ( - ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9323
SELECT - ( - ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + col2, + 67 + - col0 AS col2 FROM tab2 cor0 WHERE NOT NULL >= 87 * + col1 * + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 90
----

query I rowsort
SELECT ALL - 56 * 75 + - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 IS NOT NULL
----

query II rowsort
SELECT - col2, col0 * + - 93 AS col0 FROM tab0 AS cor0
----
-10
-8091
-47
-1395
-99
-9021

query II rowsort
SELECT ( col1 ), - col2 AS col1 FROM tab1
----
14
-96
47
-68
5
-59

query II rowsort
SELECT DISTINCT - 59 AS col1, + col2 + 19 FROM tab0
----
-59
118
-59
29
-59
66

query I rowsort
SELECT DISTINCT - col2 * 72 AS col2 FROM tab2
----
-1656
-2880
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT MIN( - - col1 ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9332
SELECT DISTINCT MIN ( - - col1 ) col0 FROM tab2
----
51

query I rowsort
SELECT 48 * + - col2 FROM tab0
----
-2256
-4752
-480

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT ALL COUNT( * ) AS col2, 96 AS col1 FROM tab2
----
3
96

skipif mysql # not compatible
query II rowsort label-9334
SELECT ALL COUNT ( * ) AS col2, 96 AS col1 FROM tab2
----
3
96

query I rowsort
SELECT + - ( + - 15 ) AS col1 FROM tab2 AS cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL + - COUNT( * ) * - 69 + + + 67 * - + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + - COUNT ( * ) * - 69 + + + 67 * - + COUNT ( * ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL + col1, + col1 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( - col0 ) + ( - 51 ) AS col2 FROM tab2 AS cor0
----
-115
-126
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + 17 + COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-9342
SELECT + 17 + COUNT ( * ) FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - 84 + + COUNT( * ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-9343
SELECT - 84 + + COUNT ( * ) FROM tab2
----
-81

query I rowsort
SELECT DISTINCT col2 + 67 FROM tab0
----
114
166
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL - 45 - + + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL - 45 - + + COUNT ( * ) FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9346
SELECT CAST( + CAST( 73 AS DECIMAL ) AS SIGNED ) * 62 FROM tab2 WHERE NULL IS NULL
----
4526
4526
4526

skipif mysql # not compatible
query I rowsort label-9346
SELECT CAST ( + CAST ( 73 AS REAL ) AS INTEGER ) * 62 FROM tab2 WHERE NULL IS NULL
----
4526
4526
4526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + col1 col0 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT + 51 + - + MIN( + 4 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-9348
SELECT + 51 + - + MIN ( + 4 ) FROM tab2
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 - 76 col2 FROM tab0
----
-46

query I rowsort
SELECT ALL - 98 AS col1 FROM tab0 cor0
----
-98
-98
-98

query II rowsort
SELECT + col2 * - col2, + 3 AS col2 FROM tab1
----
-3481
3
-4624
3
-9216
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 73 / + col1 < + 2
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9354
SELECT + ( + + 36 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
36
3

skipif mysql # not compatible
query II rowsort label-9354
SELECT + ( + + 36 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
36
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9356
SELECT COUNT( ALL - CAST( NULL AS DECIMAL ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT COUNT ( ALL - CAST ( NULL AS REAL ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT MAX( + - CAST( - - col2 AS SIGNED ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9357
SELECT MAX ( + - CAST ( - - col2 AS INTEGER ) ) AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT + COUNT( * ) * - - 88 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-9358
SELECT + COUNT ( * ) * - - 88 FROM tab0
----
264

query I rowsort
SELECT 38 * - 23 FROM tab1
----
-874
-874
-874

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9360
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * col0 * + 6 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9360
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 * + 6 IS NULL
----

query I rowsort
SELECT ALL 74 * ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3774
4958
5698

query I rowsort
SELECT 69 FROM tab2 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - col1 + - col2 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT ALL 76 + + col0 + + + 36 AS col0 FROM tab1
----
163
197
203

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT + COUNT( * ), + ( + + COUNT( * ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9365
SELECT + COUNT ( * ), + ( + + COUNT ( * ) ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT - col1 * - + col0 + - 51 * 9 + - CAST( ( + col0 ) AS SIGNED ) + - - col1 AS col1 FROM tab0
----
-458
1302
822

skipif mysql # not compatible
query I rowsort label-9366
SELECT - col1 * - + col0 + - 51 * 9 + - CAST ( ( + col0 ) AS INTEGER ) + - - col1 AS col1 FROM tab0
----
-458
1302
822

query I rowsort
SELECT - AVG ( - - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 61 AND + - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT - COUNT( * ) + + - 60 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9368
SELECT - COUNT ( * ) + + - 60 FROM tab2 AS cor0
----
-63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - ( 26 ) + - col1 AS col1 FROM tab2 AS cor0
----
-103
-77
-93

query I rowsort
SELECT + - 57 + - + 84 + ( + 9 ) + - 61 - + 43 * + col2 AS col2 FROM tab1 cor0
----
-2730
-3117
-4321

query I rowsort
SELECT - - col2 * col2 + - col1 AS col1 FROM tab2 cor0
----
1523
3297
478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - col2 * 5 * - col2 AS col0 FROM tab0 AS cor0
----
11045
49005
500

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL - + 33 + - 57 + - COUNT( * ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - + 33 + - 57 + - COUNT ( * ) FROM tab2 AS cor0
----
-93

query I rowsort
SELECT ALL + col1 * + col0 * 67 FROM tab2
----
157182
330176
336675

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT ALL 49 + + 41 * - + COUNT( * ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL 49 + + 41 * - + COUNT ( * ) AS col0 FROM tab1
----
-74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 / + - col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * col2 - + col2 FROM tab1
----
3422
4556
9120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT - MIN( + + col1 ) - + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT - MIN ( + + col1 ) - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col0 * 66 + + col1 - + col2 * + - 34 - ( + col0 ), + col1 AS col0 FROM tab0 AS cor0
----
-3132
1
-5468
21
674
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT + 85 * + MAX( col1 ) FROM tab2 AS cor0
----
6545

skipif mysql # not compatible
query I rowsort label-9382
SELECT + 85 * + MAX ( col1 ) FROM tab2 AS cor0
----
6545

query I rowsort
SELECT ALL - 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT SUM( + 79 ) AS col0 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT SUM ( + 79 ) AS col0 FROM tab0
----
237

query I rowsort
SELECT ALL 67 * + - col2 * - + col2 FROM tab0
----
148003
656667
6700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT + + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT + + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9387
SELECT ALL + - 71 DIV + COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL + - 71 / + COUNT ( * ) FROM tab1 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT ALL + ( 75 ) DIV - ( col2 ) FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + ( 75 ) / - ( col2 ) FROM tab1 AS cor0
----
-1
-1
0

query II rowsort
SELECT 68 AS col2, ( + 19 ) FROM tab2 AS cor0
----
68
19
68
19
68
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 3 * col1 * + col2 * - ( col0 ) + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 < + + 83 / + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT DISTINCT - ( - ( - CAST( + - 34 AS SIGNED ) ) ) col1 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9392
SELECT DISTINCT - ( - ( - CAST ( + - 34 AS INTEGER ) ) ) col1 FROM tab1 AS cor0
----
34

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - col0 * - 21 FROM tab0
----
1827
2037
315

onlyif mysql # aggregate syntax: 
query II rowsort label-9395
SELECT DISTINCT - SUM( ALL + col0 ), + 43 AS col2 FROM tab1
----
-227
43

skipif mysql # not compatible
query II rowsort label-9395
SELECT DISTINCT - SUM ( ALL + col0 ), + 43 AS col2 FROM tab1
----
-227
43

query I rowsort
SELECT DISTINCT - + col2 * + - 15 + - col1 AS col1 FROM tab2 AS cor0
----
294
523
803

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT + COUNT( * ) AS col2, 71 * 86 AS col0 FROM tab1
----
3
6106

skipif mysql # not compatible
query II rowsort label-9398
SELECT + COUNT ( * ) AS col2, 71 * 86 AS col0 FROM tab1
----
3
6106

query II rowsort
SELECT ALL 36 * - 82 * - 66, col2 FROM tab1 AS cor0
----
194832
59
194832
68
194832
96

query I rowsort
SELECT ALL + 59 - - - col2 FROM tab2 AS cor0
----
1
19
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 * - + col0 * + - CAST( - col1 AS SIGNED ) + col1 <= 42 * col1
----
3

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col0 * - + col0 * + - CAST ( - col1 AS INTEGER ) + col1 <= 42 * col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - COUNT( + - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9402
SELECT - COUNT ( + - col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL + COUNT( * ) * 80 AS col2 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + COUNT ( * ) * 80 AS col2 FROM tab1 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + - COUNT( * ) - COUNT( * ) - + MAX( DISTINCT - col2 ) FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-9404
SELECT + - COUNT ( * ) - COUNT ( * ) - + MAX ( DISTINCT - col2 ) FROM tab2 cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT ALL - + col1 DIV - 44 + col1 * - 65 + - ( + 3 ) FROM tab2 AS cor0
----
-3317
-4357
-5007

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - + col1 / - 44 + col1 * - 65 + - ( + 3 ) FROM tab2 AS cor0
----
-3317
-4357
-5007

query I rowsort
SELECT + col2 + - + col1 FROM tab0 cor0
----
-11
-34
98

query II rowsort
SELECT ALL col1 AS col1, - col1 AS col1 FROM tab1
----
14
-14
47
-47
5
-5

query II rowsort
SELECT ALL + 65 AS col2, + 65 - + + col1 AS col0 FROM tab0
----
65
-16
65
44
65
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT DISTINCT col2 + col1 - - - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9409
SELECT DISTINCT col2 + col1 - - - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT col2 + + col2 * 0 AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT ALL ( + - ( - + CAST( NULL AS SIGNED ) ) ) + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL ( + - ( - + CAST ( NULL AS INTEGER ) ) ) + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 * - col0 + + col2 FROM tab1
----
2850
4649
4982

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ( + COUNT( * ) ) * - COUNT( + 97 ) + + 57 + + + 30 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-9413
SELECT ( + COUNT ( * ) ) * - COUNT ( + 97 ) + + 57 + + + 30 FROM tab2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9414
SELECT ALL ( ( 51 ) ) + MIN( ALL + - 34 ) DIV + 95 AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL ( ( 51 ) ) + MIN ( ALL + - 34 ) / + 95 AS col0 FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 WHERE + 18 >= - + ( 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 91 + + 80 FROM tab1
----
171

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 > - col0 - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
103

query I rowsort
SELECT - 35 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT DISTINCT + col0 DIV - - 8 AS col1 FROM tab0 AS cor0
----
1
10
12

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT + col0 / - - 8 AS col1 FROM tab0 AS cor0
----
1
10
12

query I rowsort
SELECT col0 * + + col0 + - col0 * + col0 FROM tab2 AS cor0 WHERE NOT + 91 * + 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9422
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9422
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) IS NULL
----

query I rowsort
SELECT 89 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - COUNT( ALL + 61 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9424
SELECT - COUNT ( ALL + 61 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT - CAST( NULL AS SIGNED ) * - + ( + col0 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9425
SELECT - CAST ( NULL AS INTEGER ) * - + ( + col0 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL COUNT( col0 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL COUNT ( col0 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT - col0 + - + col1 AS col2 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT DISTINCT col2 + + 0 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT col2 + + 0 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9429
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + - 79 AS col2, - 35 AS col1 FROM tab1
----
-76
-35

skipif mysql # not compatible
query II rowsort label-9429
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + - 79 AS col2, - 35 AS col1 FROM tab1
----
-76
-35

query I rowsort
SELECT col2 / + col2 * + col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT + COUNT( - col1 ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9431
SELECT + COUNT ( - col1 ) FROM tab1 WHERE NULL IS NULL
----
3

query II rowsort
SELECT DISTINCT - - 49 + col0 * - + 65 AS col2, + ( - 3 ) AS col0 FROM tab2 AS cor0
----
-2941
-3
-4111
-3
-4826
-3

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + 22 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9434
SELECT ALL + COUNT( * ) DIV + - ( 37 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + COUNT ( * ) / + - ( 37 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + 87 AS col2 FROM tab1 cor0
----
-87
-87
-87

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT - col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT - col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT + 47 + 79 DIV col2 FROM tab1
----
47
48
48

skipif mysql # not compatible
query I rowsort label-9438
SELECT + 47 + 79 / col2 FROM tab1
----
47
48
48

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 9 >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT 36 IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT DISTINCT col0 DIV col0 + + col1 AS col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT col0 / col0 + + col1 AS col1 FROM tab1
----
15
48
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 58 IS NOT NULL
----

query I rowsort
SELECT ALL 92 - col2 AS col2 FROM tab1 AS cor0
----
-4
24
33

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * - 17 col0 FROM tab2
----
-374
-374
-374

query I rowsort
SELECT ALL 36 * + col2 + - - col0 AS col0 FROM tab0
----
1707
3661
447

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT MIN( - 82 ) AS col0 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT MIN ( - 82 ) AS col0 FROM tab1 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT + SUM( - - 21 ) AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9449
SELECT + SUM ( - - 21 ) AS col1 FROM tab2 AS cor0
----
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 45 + col2 * - col0 / + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 0 - + col0 + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9452
SELECT ALL * FROM tab1 WHERE NOT - col2 + - col0 * - col1 >= + ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9452
SELECT ALL * FROM tab1 WHERE NOT - col2 + - col0 * - col1 >= + ( - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE NOT + + col2 >= - col0
----

query II rowsort
SELECT 70, col2 FROM tab1 AS cor0
----
70
59
70
68
70
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - 49 ) + col0 col0 FROM tab2 AS cor0 WHERE ( + 29 ) NOT BETWEEN col1 AND 79
----
-3
15
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9457
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 67 FROM tab0 AS cor0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-9457
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 67 FROM tab0 AS cor0
----
NULL
67

query II rowsort
SELECT ALL - 78 AS col1, 80 * - ( - - col2 ) * + col2 FROM tab2 AS cor0
----
-78
-128000
-78
-269120
-78
-42320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9459
SELECT DISTINCT + ( 16 ) * 17 / MIN( + col1 ) + CAST( NULL AS SIGNED ) * - 83 col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9459
SELECT DISTINCT + ( 16 ) * 17 / MIN ( + col1 ) + CAST ( NULL AS INTEGER ) * - 83 col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 * + ( - - col0 ) < NULL
----

query I rowsort
SELECT ALL ( - - 58 ) + + col0 FROM tab0
----
145
155
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT - COUNT( + 77 ) AS col1 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9462
SELECT - COUNT ( + 77 ) AS col1 FROM tab1, tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT ( - 40 ) FROM tab2 WHERE + CAST( NULL AS SIGNED ) * - 3 <> + col2 + + col0 + - - col0
----

skipif mysql # not compatible
query I rowsort label-9463
SELECT ( - 40 ) FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * - 3 <> + col2 + + col0 + - - col0
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query II rowsort
SELECT ALL - ( 37 ) * + col2 AS col2, - 47 FROM tab2 AS cor0
----
-1480
-47
-2146
-47
-851
-47

query I rowsort
SELECT 63 FROM tab2 AS cor0 WHERE NULL IS NULL
----
63
63
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 - - col2 * + col0 >= - col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + - col2 AS col1, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 32 * 21 AS col1 FROM tab1
----
672
672
672

query I rowsort
SELECT - 98 * - - ( - col1 ) AS col2 FROM tab1
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT 98 * - COUNT( * ) AS col0 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-9472
SELECT 98 * - COUNT ( * ) AS col0 FROM tab0
----
-294

query I rowsort
SELECT DISTINCT ( - 95 ) AS col0 FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + - 17 FROM tab2 AS cor0 WHERE NOT - 99 + + col0 > NULL
----

query I rowsort
SELECT DISTINCT + - col0 / - 9 * + 46 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT DISTINCT 84 * - COUNT( * ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT 84 * - COUNT ( * ) FROM tab2
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * + col2 * - col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + col2 >= NULL
----

query I rowsort
SELECT ALL 36 FROM tab2 AS cor0 WHERE NOT + col1 * col0 + + 87 IN ( - col2, 78, - col0 )
----
36
36
36

query I rowsort
SELECT + 13 FROM tab1 cor0 WHERE NOT col0 - - col1 >= - 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + + col0 col2 FROM tab2 AS cor0
----
62
80
91

query I rowsort
SELECT + + ( col1 ) + - col1 - col2 * - col1 AS col0 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT - 68 * + 28 + + col0 AS col0 FROM tab0 AS cor0
----
-1807
-1817
-1889

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL 36 * COUNT( * ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL 36 * COUNT ( * ) FROM tab0 AS cor0
----
108

query I rowsort
SELECT DISTINCT + 29 + + ( + - 69 ) AS col1 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT SUM( DISTINCT - col0 ) + + - 15 FROM tab0
----
-214

skipif mysql # not compatible
query I rowsort label-9489
SELECT SUM ( DISTINCT - col0 ) + + - 15 FROM tab0
----
-214

query II rowsort
SELECT + col0 AS col1, 41 + - col2 AS col2 FROM tab2
----
46
18
64
1
75
-17

query I rowsort
SELECT ALL col2 + + ( + col2 ) AS col2 FROM tab1
----
118
136
192

query II rowsort
SELECT DISTINCT col1 + + 16 * + - ( col1 ) + + col1 + + col2 AS col0, col1 FROM tab0
----
-1087
81
-284
21
85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL + MAX( - - col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + MAX ( - - col0 ) AS col1 FROM tab1
----
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 77 * 52 FROM tab0 cor0
----
-4004
-4004
-4004

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9496
SELECT - ( + + CAST( NULL AS DECIMAL ) ) * + col1 + col2 - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT - ( + + CAST ( NULL AS REAL ) ) * + col1 + col2 - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9497
SELECT ALL CAST( + col2 AS SIGNED ) + 24 + 92 + + 58, col2 FROM tab1 AS cor0
----
233
59
242
68
270
96

skipif mysql # not compatible
query II rowsort label-9497
SELECT ALL CAST ( + col2 AS INTEGER ) + 24 + 92 + + 58, col2 FROM tab1 AS cor0
----
233
59
242
68
270
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT 47 * 86 * - - COUNT( * ) FROM tab0 AS cor0
----
12126

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT 47 * 86 * - - COUNT ( * ) FROM tab0 AS cor0
----
12126

query II rowsort
SELECT + + col1 * + col1 AS col2, + col0 FROM tab1 AS cor0
----
196
51
2209
91
25
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9500
SELECT ALL CAST( NULL AS SIGNED ), 96 col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9500
SELECT ALL CAST ( NULL AS INTEGER ), 96 col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 37 AS col2 FROM tab2 cor0
----
-37
-37
-37

query I rowsort
SELECT - col0 * - 24 FROM tab0
----
2088
2328
360

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 FROM tab0
----
1
97
21
87
81
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN 83 / - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - MAX( - - 80 ) FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9505
SELECT - MAX ( - - 80 ) FROM tab2 cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + COUNT( col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9506
SELECT + COUNT ( col1 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL IN ( col1 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL IN ( col1 * col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL SUM( col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL SUM ( col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE - col1 * 39 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 10 BETWEEN NULL AND + ( 9 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + + col2 col1 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT ALL - 92 FROM tab1 WHERE NOT col2 * - 49 NOT BETWEEN NULL AND - col0 * 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + MAX( - 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + MAX ( - 47 ) FROM tab2
----
-47

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 34 <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - 71 < NULL
----

query I rowsort
SELECT col0 + 98 * col2 FROM tab2 WHERE ( 38 ) > - 25
----
2300
3984
5759

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT SUM( ALL 44 ) AS col2 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-9518
SELECT SUM ( ALL 44 ) AS col2 FROM tab2
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 13 col1 FROM tab0
----
1053
13
273

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + 17 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT + COUNT( * ) * - 63 AS col1 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-9521
SELECT + COUNT ( * ) * - 63 AS col1 FROM tab2
----
-189

query I rowsort
SELECT + col1 + - 95 FROM tab0
----
-14
-74
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT - MAX( + col2 ) * 91 FROM tab1
----
-8736

skipif mysql # not compatible
query I rowsort label-9523
SELECT - MAX ( + col2 ) * 91 FROM tab1
----
-8736

query I rowsort
SELECT DISTINCT - 40 + + col0 * 24 FROM tab1
----
1184
2000
2144

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) BETWEEN NULL AND col0
----
15
81
47

query I rowsort
SELECT ALL - 81 * 84 AS col0 FROM tab0
----
-6804
-6804
-6804

query I rowsort
SELECT DISTINCT - 38 * + 60 FROM tab1 cor0
----
-2280

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 * + col1 ) IN ( - 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT + CAST( + col2 AS SIGNED ) - 62 FROM tab0
----
-15
-52
37

skipif mysql # not compatible
query I rowsort label-9531
SELECT + CAST ( + col2 AS INTEGER ) - 62 FROM tab0
----
-15
-52
37

query I rowsort
SELECT DISTINCT col0 * + 26 FROM tab0 AS cor0
----
2262
2522
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT DISTINCT + col1 / + CAST( + col1 + CAST( NULL AS SIGNED ) * col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + col1 / + CAST ( + col1 + CAST ( NULL AS INTEGER ) * col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 col2 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL - 6 * + COUNT( col1 ) col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9535
SELECT ALL - 6 * + COUNT ( col1 ) col0 FROM tab2 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE NOT + 56 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( + col2 ) * AVG ( ALL + 95 / 37 + col1 ) col0 FROM tab0 AS cor0 WHERE NOT + col0 + + col2 <> NULL
----
NULL

query I rowsort
SELECT + + col0 * + 69 FROM tab2 AS cor0
----
3174
4416
5175

query I rowsort
SELECT - 62 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( 16 ) col1 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + col1 ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT ALL - col0 * col2 DIV + 48 FROM tab1
----
-102
-104
-128

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - col0 * col2 / + 48 FROM tab1
----
-102
-104
-128

query I rowsort
SELECT + 24 * 62 * - col0 FROM tab2
----
-111600
-68448
-95232

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab0 WHERE NOT - ( col1 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + + 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL - COUNT( col2 ) FROM tab2 WHERE NOT 74 - - col0 BETWEEN 70 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - COUNT ( col2 ) FROM tab2 WHERE NOT 74 - - col0 BETWEEN 70 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT + MIN( - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT + MIN ( - - col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT + COUNT( * ) + + 90 * + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT + COUNT ( * ) + + 90 * + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT col1, + col1 * + 13 FROM tab1
----
14
182
47
611
5
65

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
17

query III rowsort
SELECT * FROM tab0 WHERE - + ( col0 ) > NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + - 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col1 * 51 - - col2 FROM tab1 cor0
----
2465
314
810

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN NULL AND - col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT 45 + - 73 * - + COUNT( * ) FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-9556
SELECT 45 + - 73 * - + COUNT ( * ) FROM tab0 AS cor0
----
264

query II rowsort
SELECT DISTINCT col0, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT col1 * - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 NOT IN ( - col0 ) OR NOT col1 * 32 IS NULL
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT 12 DIV + col2 * - - 57 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9561
SELECT 12 / + col2 * - - 57 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) BETWEEN - col0 AND 71 * + ( 3 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9562
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - col0 AND 71 * + ( 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT COUNT( ( - 2 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9563
SELECT COUNT ( ( - 2 ) ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE - - col1 * col2 * 65 < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9565
SELECT DISTINCT + col1 + + col1, + col0 * - + 83 * CAST( - col0 AS SIGNED ) col2 FROM tab0
----
162
18675
2
780947
42
628227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9565
SELECT DISTINCT + col1 + + col1, + col0 * - + 83 * CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
162
18675
2
780947
42
628227

query III rowsort
SELECT * FROM tab1 WHERE NULL = + col2 + - col0
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( - col2 + + col1 + col1 * + col0 ) NOT BETWEEN NULL AND 75 + col2
----
51
85
91

query II rowsort
SELECT ALL + 77 - - - 87, col0 * - 82 AS col1 FROM tab0
----
-10
-1230
-10
-7134
-10
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL + MAX( col1 ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL + MAX ( col1 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT - + COUNT( * ) - 34 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT - + COUNT ( * ) - 34 FROM tab2 AS cor0
----
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - - col0 ) IN ( + 42 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-3

query I rowsort
SELECT - ( - - col2 ) + + - 41 * col1 AS col2 FROM tab1 AS cor0
----
-1995
-264
-670

query I rowsort
SELECT - + ( col0 ) + + 31 AS col2 FROM tab0 AS cor0
----
-56
-66
16

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + + ( + + 93 ) <= 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col1 + - 26 + + + 84 )
----

query I rowsort
SELECT ALL + 31 * - ( + col1 ) AS col1 FROM tab1
----
-1457
-155
-434

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 IN ( col1, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + 94 NOT BETWEEN + col2 * - + col1 + - 9 AND 24 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9580
SELECT COUNT( * ) AS col1, COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9580
SELECT COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 cor0
----
3
3

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE - col2 * - - col2 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT DISTINCT col0 DIV - + 49 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT col0 / - + 49 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col2 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL - + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE + 69 + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE + 69 + + col1 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 / 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT - + SUM( ALL + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9586
SELECT - + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - 23 * 61 - - 53 AS col0 FROM tab0, tab2 AS cor0
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT 34 * - + COUNT( DISTINCT ( + col2 ) ) AS col1 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-9588
SELECT 34 * - + COUNT ( DISTINCT ( + col2 ) ) AS col1 FROM tab2
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT ALL - 76 * 63 DIV + COUNT( * ) AS col2 FROM tab2
----
-1596

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - 76 * 63 / + COUNT ( * ) AS col2 FROM tab2
----
-1596

query I rowsort
SELECT col2 * - ( - + 56 ) FROM tab1
----
3304
3808
5376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT + col1 + col1 FROM tab1 WHERE NOT ( ( CAST( 10 AS SIGNED ) ) NOT IN ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-9591
SELECT + col1 + col1 FROM tab1 WHERE NOT ( ( CAST ( 10 AS INTEGER ) ) NOT IN ( + col2 ) )
----

query II rowsort
SELECT + 36 AS col1, - col0 AS col1 FROM tab2
----
36
-46
36
-64
36
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT COUNT( + ( - - col1 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT COUNT ( + ( - - col1 ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9594
SELECT ALL + CAST( col2 AS DECIMAL ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + CAST ( col2 AS REAL ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT ALL - ( + col2 ) * + col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9596
SELECT ALL col0 DIV col1 + - 52 FROM tab1 AS cor0
----
-35
-49
-51

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL col0 / col1 + - 52 FROM tab1 AS cor0
----
-35
-49
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= ( - 33 ) / - col2 * col0 * + - col2
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col0 FROM tab2
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + 53 + + - col1 * col2 * - 32 FROM tab0
----
121877
3221
6773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE ( NULL ) BETWEEN - 5 + + 58 * + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE ( NOT + col2 + - col0 + + + col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT - ( + col1 ) AS col2, col2 AS col0, - 37 AS col0 FROM tab0 cor0
----
9 values hashing to 81b2b2177e18333e73069fb5e27bc72d

query I rowsort
SELECT ALL - col0 + - + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( ( col1 * - col0 - - ( - 84 ) ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9607
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( ( col1 * - col0 - - ( - 84 ) ) IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 + col1 col0 FROM tab2
----
-25
-9
1

query I rowsort
SELECT col2 + + col1 AS col2 FROM tab0 WHERE NULL BETWEEN ( + 18 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT - 43 + - COUNT( * ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT - 43 + - COUNT ( * ) FROM tab1
----
-46

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col1 * - 52 + - col0 BETWEEN NULL AND ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9612
SELECT ALL col1 + 83 + - col0 * col1 * - - CAST( NULL AS DECIMAL ) * col0 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL col1 + 83 + - col0 * col1 * - - CAST ( NULL AS REAL ) * col0 + + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN ( + 29 ) AND NULL OR NOT - 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL - - COUNT( col0 ) * 7 AS col0 FROM tab0 WHERE - ( + + 13 ) IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - - COUNT ( col0 ) * 7 AS col0 FROM tab0 WHERE - ( + + 13 ) IS NOT NULL
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT ALL - 74 + col1 DIV + 15 FROM tab0
----
-69
-73
-74

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL - 74 + col1 / + 15 FROM tab0
----
-69
-73
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NULL IN ( 80 + - col1, 9 * - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NULL IN ( 80 + - col1, 9 * - + col2 )
----
0

query I rowsort
SELECT DISTINCT col1 + - 10 AS col0 FROM tab2
----
41
57
67

query I rowsort
SELECT col1 FROM tab0 WHERE ( - + ( - 97 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + 1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( ( - - 86 ) )
----

query I rowsort
SELECT ALL - - col0 + col1 + + + 29 * + col2 AS col2 FROM tab1 cor0
----
1801
2110
2849

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9621
SELECT ALL - MAX( + - 86 ) - + COUNT( * ) + + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - MAX ( + - 86 ) - + COUNT ( * ) + + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 42, - col2 AS col2 FROM tab2 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
42
-23
42
-40
42
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col2 FROM tab0 cor0
----
58

query II rowsort
SELECT ALL + col1, 86 + + 45 FROM tab1 AS cor0
----
14
131
47
131
5
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT + + MAX( + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9626
SELECT + + MAX ( + - col0 ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 63 * - col1 > 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL + COUNT( 20 ) * + - 54 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL + COUNT ( 20 ) * + - 54 FROM tab1 AS cor0
----
-162

query I rowsort
SELECT ( + 43 ) * - col2 AS col0 FROM tab0 cor0
----
-2021
-4257
-430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 * 13 col2 FROM tab0
----
130

query I rowsort
SELECT ALL + col1 * + - 73 FROM tab0 WHERE - 8 + + col1 - col1 * + col1 * + col1 - + col0 IS NOT NULL
----
-1533
-5913
-73

query I rowsort
SELECT 11 * - + 89 FROM tab1
----
-979
-979
-979

query I rowsort
SELECT ALL - 41 * + col1 * + col2 FROM tab2
----
-126280
-159326
-48093

query III rowsort
SELECT * FROM tab0 WHERE NOT 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + 17 FROM tab1
----
238
799
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT DISTINCT - 48 * - COUNT( * ) DIV - + COUNT( + 78 ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT - 48 * - COUNT ( * ) / - + COUNT ( + 78 ) AS col0 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT + COUNT( * ) - COUNT( * ) * ( + MIN( col2 ) ) FROM tab1 AS cor0 WHERE ( - ( - - col1 ) ) > ( - + 0 ) + + col2 * - 11 * - col2 * - col0
----
-174

skipif mysql # not compatible
query I rowsort label-9637
SELECT + COUNT ( * ) - COUNT ( * ) * ( + MIN ( col2 ) ) FROM tab1 AS cor0 WHERE ( - ( - - col1 ) ) > ( - + 0 ) + + col2 * - 11 * - col2 * - col0
----
-174

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT 90 + - 76 * col1 * + - 60 AS col0 FROM tab0
----
369450
4650
95850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + ( - col0 ) col1 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL - 69 - - col0 FROM tab1
----
-18
16
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9643
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 15 NOT IN ( + CAST( - 6 AS SIGNED ), + col0, - col0 )
----

skipif mysql # not compatible
query III rowsort label-9643
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 15 NOT IN ( + CAST ( - 6 AS INTEGER ), + col0, - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT COUNT( * ) * - 38 AS col2 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT COUNT ( * ) * - 38 AS col2 FROM tab2 AS cor0
----
-114

query I rowsort
SELECT ALL + 74 * + + col0 + - col1 FROM tab2 AS cor0
----
3353
4659
5483

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - + col0 + 3 AND + - col1
----

query II rowsort
SELECT ALL + 73 AS col2, col1 FROM tab1 AS cor0
----
73
14
73
47
73
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT + COUNT( * ) * 95 col2 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9649
SELECT + COUNT ( * ) * 95 col2 FROM tab1 AS cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL - CAST( - 25 AS SIGNED ) FROM tab1 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL - CAST ( - 25 AS INTEGER ) FROM tab1 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT COUNT( 51 ) AS col1 FROM tab1 WHERE + + 29 - + col2 BETWEEN NULL AND - - col2 + + - 16 * 19
----
0

skipif mysql # not compatible
query I rowsort label-9651
SELECT COUNT ( 51 ) AS col1 FROM tab1 WHERE + + 29 - + col2 BETWEEN NULL AND - - col2 + + - 16 * 19
----
0

query I rowsort
SELECT ALL - col1 + 43 FROM tab2
----
-24
-34
-8

query I rowsort
SELECT - 50 FROM tab2 WHERE + 61 NOT BETWEEN col1 AND - 50
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9654
SELECT * FROM tab1 WHERE ( NOT ( - col0 * - col1 + - CAST( NULL AS SIGNED ) + - - col2 * + col1 * + 22 IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-9654
SELECT * FROM tab1 WHERE ( NOT ( - col0 * - col1 + - CAST ( NULL AS INTEGER ) + - - col2 * + col1 * + 22 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9655
SELECT col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT - 26 - - + ( + 63 ) * MAX( DISTINCT - col2 ) FROM tab2
----
-1475

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT - 26 - - + ( + 63 ) * MAX ( DISTINCT - col2 ) FROM tab2
----
-1475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9657
SELECT 72 + - AVG ( ALL - col2 ) / + COUNT( - col2 ) AS col0 FROM tab0 WHERE ( ( NOT ( ( ( - + 5 * + + 70 * + - CAST( NULL AS SIGNED ) * - col1 ) NOT IN ( - col0 ) ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT 72 + - AVG ( ALL - col2 ) / + COUNT ( - col2 ) AS col0 FROM tab0 WHERE ( ( NOT ( ( ( - + 5 * + + 70 * + - CAST ( NULL AS INTEGER ) * - col1 ) NOT IN ( - col0 ) ) ) ) )
----
NULL

query II rowsort
SELECT + ( 40 ), col2 FROM tab2 WHERE + - col1 IS NOT NULL
----
40
23
40
40
40
58

query I rowsort
SELECT - col2 * - 81 FROM tab0 AS cor0
----
3807
8019
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL + 62 * - - COUNT( * ) FROM tab1 WHERE NOT + + ( - col0 ) BETWEEN - - 83 AND + - 76 * col2 + col2
----
186

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + 62 * - - COUNT ( * ) FROM tab1 WHERE NOT + + ( - col0 ) BETWEEN - - 83 AND + - 76 * col2 + col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT MAX( 1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT MAX ( 1 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT 92 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
92

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT + COUNT( * ) * + 50 col0 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9664
SELECT + COUNT ( * ) * + 50 col0 FROM tab2 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT + CAST( + 30 AS SIGNED ) FROM tab1 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-9665
SELECT + CAST ( + 30 AS INTEGER ) FROM tab1 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT DISTINCT - + 20 * CAST( + + 23 AS SIGNED ) FROM tab0 AS cor0
----
-460

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT - + 20 * CAST ( + + 23 AS INTEGER ) FROM tab0 AS cor0
----
-460

query I rowsort
SELECT DISTINCT ( - col1 ) + col0 + - ( + - 3 ) * col1 AS col2 FROM tab2
----
148
209
218

query III rowsort
SELECT * FROM tab1 WHERE + ( + 7 ) + - ( - 4 ) / + + col2 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT - SUM( + 0 ) + 49 - 55 AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9669
SELECT - SUM ( + 0 ) + 49 - 55 AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT CAST( + ( - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT CAST ( + ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT + col1 / - col1 - - col1 + - col1 + 99 + + CAST( NULL AS SIGNED ) + + col1 + + col0 * 28 * - 15 + + col2 * - 71 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT + col1 / - col1 - - col1 + - col1 + 99 + + CAST ( NULL AS INTEGER ) + + col1 + + col0 * 28 * - 15 + + col2 * - 71 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - col1 * + col1 FROM tab2 AS cor0
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT 7 - + MIN( ALL col2 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9673
SELECT 7 - + MIN ( ALL col2 ) FROM tab2 AS cor0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT - 47 - COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT - 47 - COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 56 * - 75 * + 72 FROM tab1 AS cor0
----
-302400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 WHERE NOT col0 * + ( - 20 ) * 14 + + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + - col2 - - 73 FROM tab1 AS cor0
----
4969
5088
6261

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL MIN( + + 72 ) FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL MIN ( + + 72 ) FROM tab0 cor0
----
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - - col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 38 / + 76 NOT BETWEEN - - 42 AND - + col0 * - col1 * + col1 + + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT DISTINCT 99 * - COUNT( * ) * + SUM( - ( - - col0 ) ) FROM tab2
----
54945

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT 99 * - COUNT ( * ) * + SUM ( - ( - - col0 ) ) FROM tab2
----
54945

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT ALL - 81 DIV - ( 13 ) FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - 81 / - ( 13 ) FROM tab1
----
6
6
6

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 + + 58 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 47 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT - 48 DIV + 93 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT - 48 / + 93 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9687
SELECT + 32 DIV - + COUNT( + col0 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-9687
SELECT + 32 / - + COUNT ( + col0 ) FROM tab2
----
-10

query III rowsort
SELECT * FROM tab0 WHERE NOT - 19 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + ( + col2 ) ) FROM tab2
----
23
40
58

query II rowsort
SELECT + 11 AS col1, col1 AS col0 FROM tab0
----
11
1
11
21
11
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9691
SELECT DISTINCT - COUNT( * ), - 98 AS col1 FROM tab0 cor0
----
-3
-98

skipif mysql # not compatible
query II rowsort label-9691
SELECT DISTINCT - COUNT ( * ), - 98 AS col1 FROM tab0 cor0
----
-3
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT ALL ( - col0 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL ( - col0 ) / + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 37 ) = + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9694
SELECT - ( - ( - 68 ) ) DIV + COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9694
SELECT - ( - ( - 68 ) ) / + COUNT ( * ) FROM tab2
----
-22

query I rowsort
SELECT ALL - - 38 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + ( - - 9 ) ) AS col1, 82 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to cf0a630be4121b028da2c88723c2e4ed

onlyif mysql # aggregate syntax: 
query II rowsort label-9697
SELECT + - COUNT( * ), + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 24 + - col1 * + 71 * + col0 / + col1 = + col2 * - col1 + col2
----
-3
3

skipif mysql # not compatible
query II rowsort label-9697
SELECT + - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 24 + - col1 * + 71 * + col0 / + col1 = + col2 * - col1 + col2
----
-3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 85 AND NULL
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT DISTINCT - 15 * col2 * - + col0 * - 14 * col0 AS col1 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN 98 + col0 * - 80 AND 60
----

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT - 15 * col2 * - + col0 * - 14 * col0 AS col1 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN 98 + col0 * - 80 AND 60
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9700
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + - col1 AS SIGNED ) - CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9700
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + - col1 AS INTEGER ) - CAST ( NULL AS REAL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + MIN( - 2 ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + MIN ( - 2 ) AS col0 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - + COUNT( * ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9703
SELECT DISTINCT COUNT( * ) AS col1, 83 * - MAX( DISTINCT - col1 ) FROM tab2
----
3
4233

skipif mysql # not compatible
query II rowsort label-9703
SELECT DISTINCT COUNT ( * ) AS col1, 83 * - MAX ( DISTINCT - col1 ) FROM tab2
----
3
4233

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9704
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL - MIN( - 72 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - MIN ( - 72 ) FROM tab0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL CAST( 14 AS SIGNED ) FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL CAST ( 14 AS INTEGER ) FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + ( - 97 ) AS col1 FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9708
SELECT + COUNT( * ) * + CAST( + + 55 AS SIGNED ) * + - 97 FROM tab0 AS cor0
----
-16005

skipif mysql # not compatible
query I rowsort label-9708
SELECT + COUNT ( * ) * + CAST ( + + 55 AS INTEGER ) * + - 97 FROM tab0 AS cor0
----
-16005

query I rowsort
SELECT + 3 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
3
3
3

query III rowsort
SELECT * FROM tab0 WHERE 41 + + 80 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT DISTINCT + 29 - col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
26
28
29

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT + 29 - col2 / + col0 AS col0 FROM tab0 AS cor0
----
26
28
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - COUNT( * ) - 4 * + 42 FROM tab2 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - COUNT ( * ) - 4 * + 42 FROM tab2 cor0
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT DISTINCT col1 DIV - - 78 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT col1 / - - 78 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT + - 20 * COUNT( * ) AS col2, - MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
-60
10

skipif mysql # not compatible
query II rowsort label-9714
SELECT + - 20 * COUNT ( * ) AS col2, - MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
-60
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT ALL - 70 DIV - 53 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - 70 / - 53 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 26 * + col2 AS col0 FROM tab0 AS cor0
----
-1222
-2574
-260

query I rowsort
SELECT ALL - - 57 - 99 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT ( + - AVG ( DISTINCT - col2 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT DISTINCT + - MAX( ALL + + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT + - MAX ( ALL + + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - - col1 * - col0 * - - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - 67 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL MAX( ALL - + 40 ) AS col2 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL MAX ( ALL - + 40 ) AS col2 FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL - COUNT( * ) * - 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - COUNT ( * ) * - 54 FROM tab1
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT - 23 DIV COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 23 / COUNT ( * ) FROM tab1
----
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - col0 * + - col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9726
SELECT col1 * - 71 FROM tab0 WHERE NOT NULL <= + 64 / CAST( NULL AS SIGNED ) / 85 / + - col1 + - col1
----

skipif mysql # not compatible
query I rowsort label-9726
SELECT col1 * - 71 FROM tab0 WHERE NOT NULL <= + 64 / CAST ( NULL AS INTEGER ) / 85 / + - col1 + - col1
----

query I rowsort
SELECT DISTINCT ( + + col2 ) * - - col2 + + col1 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT ALL - + col1 * - + col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( 36 ) ) col1 FROM tab2 cor0
----
-36
-36
-36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9731
SELECT + 56 DIV - 49 col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9731
SELECT + 56 / - 49 col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT ALL - COUNT( * ) DIV - SUM( DISTINCT 37 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - COUNT ( * ) / - SUM ( DISTINCT 37 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT DISTINCT col1 AS col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 68 col1 FROM tab2 AS cor0 WHERE NOT col2 + 56 + - - 67 NOT IN ( + 97, 28 + + + col2 * col1, + col0 * 1, + col1, col2 / - - col1, + col1, - + col2 + - - 32 * + col2 )
----

query I rowsort
SELECT ALL - 11 + + col1 FROM tab0 AS cor0
----
-10
10
70

query II rowsort
SELECT DISTINCT col2 + - 61 AS col2, col2 AS col2 FROM tab0
----
-14
47
-51
10
38
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT col0 + col0 DIV - 3 AS col2 FROM tab0
----
10
58
65

skipif mysql # not compatible
query I rowsort label-9737
SELECT col0 + col0 / - 3 AS col2 FROM tab0
----
10
58
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9738
SELECT ALL 69 + - col1 DIV + - 56 FROM tab2
----
69
70
70

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL 69 + - col1 / + - 56 FROM tab2
----
69
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9739
SELECT + 21 + + COUNT( * ) DIV 22 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-9739
SELECT + 21 + + COUNT ( * ) / 22 FROM tab0
----
21

query I rowsort
SELECT - col0 + col1 * - - col1 FROM tab1
----
-60
145
2118

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9741
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-9741
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER ) * col2
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT - 42 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT - 42 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-9744
SELECT 80 AS col0, col2 DIV - 68 + - col1 AS col1 FROM tab2
----
80
-51
80
-67
80
-77

skipif mysql # not compatible
query II rowsort label-9744
SELECT 80 AS col0, col2 / - 68 + - col1 AS col1 FROM tab2
----
80
-51
80
-67
80
-77

query I rowsort
SELECT + 54 - + 20 AS col0 FROM tab0
----
34
34
34

query I rowsort
SELECT + - col2 * + ( + 83 ) + + 22 + + 72 AS col0 FROM tab0 cor0
----
-3807
-736
-8123

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT MAX( ALL - 53 ) AS col1 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT MAX ( ALL - 53 ) AS col1 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT - col1 * - - 39 AS col1 FROM tab0 AS cor0
----
-3159
-39
-819

query I rowsort
SELECT + ( + - 98 ) AS col1 FROM tab0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT 15 * + + COUNT( * ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9750
SELECT 15 * + + COUNT ( * ) AS col0 FROM tab2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + ( col1 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + ( col1 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col2 * 14 * col2 AS col0 FROM tab0
----
137214
1400
30926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT CAST( NULL AS SIGNED ) / - + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT CAST ( NULL AS INTEGER ) / - + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT 4 * + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9754
SELECT 4 * + COUNT ( * ) FROM tab0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT ALL - COUNT( * ) DIV + - MIN( DISTINCT ( - - 85 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - COUNT ( * ) / + - MIN ( DISTINCT ( - - 85 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9756
SELECT - + col2 * - col1 * - 11 * + col1 AS col2, + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-16225
NULL
-1652332
NULL
-206976
NULL

skipif mysql # not compatible
query II rowsort label-9756
SELECT - + col2 * - col1 * - 11 * + col1 AS col2, + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-16225
NULL
-1652332
NULL
-206976
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT ( col1 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT ( col1 ) >= NULL
----
0

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE - 82 IS NULL
----

query I rowsort
SELECT DISTINCT + AVG ( 2 ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 > ( NULL )
----
NULL

query I rowsort
SELECT + col1 + + - 87 FROM tab2 AS cor0
----
-10
-20
-36

query I rowsort
SELECT - col2 + + col1 * + ( - + 89 ) AS col2 FROM tab2 AS cor0
----
-4562
-6021
-6893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col1 col0 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT + col1, col2 * + col2 AS col2 FROM tab0
----
1
9801
21
100
81
2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 + + - col1 col1 FROM tab0
----
-17
43
63

query I rowsort
SELECT ALL col2 * - 31 + 6 AS col2 FROM tab1
----
-1823
-2102
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT 30 * 42 + + MIN( ALL + 33 ) col0 FROM tab0
----
1293

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9767
SELECT DISTINCT 30 * 42 + + MIN ( ALL + 33 ) col0 FROM tab0
----
1293

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT + ( - 37 ) * + COUNT( * ) - 1 AS col1, 14 FROM tab1 AS cor0
----
-112
14

skipif mysql # not compatible
query II rowsort label-9768
SELECT + ( - 37 ) * + COUNT ( * ) - 1 AS col1, 14 FROM tab1 AS cor0
----
-112
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT - 40 - 53 DIV - col2 col1 FROM tab0 cor0
----
-35
-39
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9769
SELECT - 40 - 53 / - col2 col1 FROM tab0 cor0
----
-35
-39
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + + 37 IS NULL AND NULL <> NULL
----

query I rowsort
SELECT DISTINCT - - col0 * 87 AS col1 FROM tab2 AS cor0
----
4002
5568
6525

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 47 + + - col1 * - col0 * 57 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT - ( + - 76 ), col2 FROM tab1 AS cor0
----
76
59
76
68
76
96

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL >= 15
----

query I rowsort
SELECT - + col2 * - col0 + 54 FROM tab0 AS cor0
----
759
924
9657

query I rowsort
SELECT ALL - 12 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, ( - col0 ) AS col0 FROM tab1
----
51
-51
85
-85
91
-91

query II rowsort
SELECT ALL 74 AS col1, col0 - - 71 FROM tab0
----
74
158
74
168
74
86

query I rowsort
SELECT DISTINCT - col2 * - + col1 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT + - ( - - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 81 / + 28 IS NULL
----

query II rowsort
SELECT DISTINCT 88 + - col2, col2 FROM tab1
----
-8
96
20
68
29
59

query I rowsort
SELECT 96 AS col1 FROM tab1 WHERE NULL IS NULL
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + + col2 ) col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - 76 * col0 FROM tab2 AS cor0
----
-3496
-4864
-5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT CAST( + + col1 AS SIGNED ) * col1 AS col1 FROM tab1 cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-9787
SELECT CAST ( + + col1 AS INTEGER ) * col1 AS col1 FROM tab1 cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 55 * 9
----

query I rowsort
SELECT ALL col1 * - 78 * + - col2 FROM tab0 AS cor0
----
16380
296946
7722

query I rowsort
SELECT DISTINCT - 88 + col0 FROM tab1 AS cor0
----
-3
-37
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9791
SELECT DISTINCT + col0 + - col2 DIV - col1 + + + col1 col1, ( + col1 ) * CAST( + 7 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
101
35
139
329
71
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9791
SELECT DISTINCT + col0 + - col2 / - col1 + + + col1 col1, ( + col1 ) * CAST ( + 7 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
101
35
139
329
71
98

query I rowsort
SELECT DISTINCT col1 + col1 + 87 FROM tab0
----
129
249
89

query I rowsort
SELECT col1 FROM tab1 WHERE + + 9 IN ( + ( - col1 ) * + - 34 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 * col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT 23 + - 66 + - + COUNT( * ) col1 FROM tab1
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9795
SELECT 23 + - 66 + - + COUNT ( * ) col1 FROM tab1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT - 3 DIV col0 * + 2 - + + ( 46 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - 3 / col0 * + 2 - + + ( 46 ) FROM tab1
----
-46

query I rowsort
SELECT col2 * col2 * - + col0 + + 88 AS col1 FROM tab1
----
-295797
-420696
-469928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT DISTINCT 61 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT 61 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 + - 92 AS col2 FROM tab1
----
-24
-33
4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 98 * + col1 NOT IN ( 81, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT + MIN( - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + MIN ( - col1 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT ALL + + col1 * col0 - col2 * - 96 FROM tab2 AS cor0
----
10593
4554
8768

query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 + 99 AS col2 FROM tab0 AS cor0
----
198
309
3906

query I rowsort
SELECT DISTINCT - - 26 * - + col0 AS col2 FROM tab0 AS cor0
----
-2262
-2522
-390

query I rowsort
SELECT ALL - 78 AS col1 FROM tab2 cor0
----
-78
-78
-78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 80 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL MIN( 7 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL MIN ( 7 ) FROM tab2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT ALL + COUNT( * ) + + 11 * COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + COUNT ( * ) + + 11 * COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 <= - col0
----
51
14
96

query II rowsort
SELECT - - ( 19 ) AS col0, + 85 AS col0 FROM tab2 cor0
----
19
85
19
85
19
85

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 62 > col1 + + col1 * - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 86 + col2 - + col1 * - - col2 + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT ALL + 29 AS col0, COUNT( * ) FROM tab0 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-9813
SELECT ALL + 29 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
29
3

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE + col0 * - col0 > - - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9815
SELECT DISTINCT - 63 AS col2, + col2 DIV - 49 FROM tab0 cor0
----
-63
-2
-63
0

skipif mysql # not compatible
query II rowsort label-9815
SELECT DISTINCT - 63 AS col2, + col2 / - 49 FROM tab0 cor0
----
-63
-2
-63
0

query II rowsort
SELECT ALL col2 AS col0, - 48 AS col1 FROM tab2 AS cor0
----
23
-48
40
-48
58
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) - - - 33 + + col0 AND NULL
----

query I rowsort
SELECT col2 * + + col2 * + col1 AS col1 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT MIN( ALL ( - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT MIN ( ALL ( - col2 ) ) FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - - col2 * - 94 + 3 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9821
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 54 + - col2 * + col2 + + - CAST( + 10 AS SIGNED ) * - CAST( - col2 AS DECIMAL ) + 81 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9821
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 54 + - col2 * + col2 + + - CAST ( + 10 AS INTEGER ) * - CAST ( - col2 AS REAL ) + 81 IS NOT NULL
----

query I rowsort
SELECT - 26 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= col2 + + col2 + ( - col2 ) * - col0 * - col2
----

query I rowsort
SELECT + col0 * ( - - 25 ) AS col0 FROM tab1 AS cor0
----
1275
2125
2275

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 9 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9827
SELECT ALL 71 * + - CAST( NULL AS DECIMAL ) col2 FROM tab1 WHERE - - col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9827
SELECT ALL 71 * + - CAST ( NULL AS REAL ) col2 FROM tab1 WHERE - - col0 IS NULL
----

query I rowsort
SELECT ALL - + 7 + col1 FROM tab0 WHERE NOT + - col1 / - 32 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + - col2 + col1 * + 28 FROM tab0 cor0
----
-72
2140
557

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 26 <= + col0
----
3

skipif mysql # not compatible
query I rowsort label-9830
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 26 <= + col0
----
3

query I rowsort
SELECT ALL + col2 * + col0 - - - col0 FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT 39 * COUNT( - col1 ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9832
SELECT 39 * COUNT ( - col1 ) / - + COUNT ( * ) FROM tab1 AS cor0
----
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - 19 + + 42 )
----

query II rowsort
SELECT + ( + + col1 ) AS col0, 78 AS col2 FROM tab2
----
51
78
67
78
77
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT ALL - col2 DIV + col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - col2 / + col1 AS col2 FROM tab1
----
-1
-11
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT ALL col1 * + + col2 + CAST( NULL AS SIGNED ) + - 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL col1 * + + col2 + CAST ( NULL AS INTEGER ) + - 15 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + 6 + + col1 * - col2 * 50 AS col1, + col2 FROM tab2
----
-153994
40
-194294
58
-58644
23

query I rowsort
SELECT DISTINCT + ( col1 ) - + + col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9839
SELECT + col2 + - - 54 DIV - - 83 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9839
SELECT + col2 + - - 54 / - - 83 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IN ( + col2, col2 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9841
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 62 * - CAST( NULL AS SIGNED ) * + 14 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif mysql # not compatible
query IIIIII rowsort label-9841
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 62 * - CAST ( NULL AS INTEGER ) * + 14 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT + + MIN( - ( + - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT + + MIN ( - ( + - col0 ) ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 - + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 * - + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9845
SELECT DISTINCT 87, + 26 * + - 9 DIV COUNT( * ) col0 FROM tab2 AS cor0
----
87
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9845
SELECT DISTINCT 87, + 26 * + - 9 / COUNT ( * ) col0 FROM tab2 AS cor0
----
87
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT ALL + 32 DIV 95 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + 32 / 95 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT - MIN( 45 ) AS col2 FROM tab2 WHERE NOT - col1 + 16 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT - MIN ( 45 ) AS col2 FROM tab2 WHERE NOT - col1 + 16 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col0 + + - col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - + col0 * 12 * - col0, 30 * - 25 * col1 + - + col0 col1 FROM tab1
----
1591812
-10551
7369500
-3835
9042852
-35341

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT + 88 + - + 84 AS col1, COUNT( * ) FROM tab2 AS cor0
----
4
3

skipif mysql # not compatible
query II rowsort label-9851
SELECT + 88 + - + 84 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
4
3

query I rowsort
SELECT - + 16 + + + col0 FROM tab1 AS cor0
----
35
69
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - 53 FROM tab0 AS cor0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL - 53 * COUNT( * ) - - 57 FROM tab0 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - 53 * COUNT ( * ) - - 57 FROM tab0 cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9856
SELECT DISTINCT - 20 * + - col1 * col2 + col2 col2, - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23483
-46
61640
-64
77778
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9856
SELECT DISTINCT - 20 * + - col1 * col2 + col2 col2, - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23483
-46
61640
-64
77778
-75

query I rowsort
SELECT ALL - 89 + 51 FROM tab1
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT DISTINCT 83 + - - 45 DIV + col2 AS col0 FROM tab2
----
83
84

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT 83 + - - 45 / + col2 AS col0 FROM tab2
----
83
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9859
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - 22 * MIN( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - 22 * MIN ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT - 13 - col0 FROM tab1 AS cor0
----
-104
-64
-98

query I rowsort
SELECT ALL - 52 - - - col0 + - + 72 AS col2 FROM tab0 AS cor0
----
-139
-211
-221

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9863
SELECT DISTINCT - AVG ( ALL - CAST( + + 28 AS DECIMAL ) ) FROM tab0 cor0 WHERE NOT ( NOT NULL = NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - AVG ( ALL - CAST ( + + 28 AS REAL ) ) FROM tab0 cor0 WHERE NOT ( NOT NULL = NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT 9 - - MAX( col0 ) * - 58 AS col2 FROM tab1 AS cor0
----
-5269

skipif mysql # not compatible
query I rowsort label-9864
SELECT 9 - - MAX ( col0 ) * - 58 AS col2 FROM tab1 AS cor0
----
-5269

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT - COUNT( + ( + col2 ) ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9868
SELECT - COUNT ( + ( + col2 ) ) + - COUNT ( * ) FROM tab2
----
-6

query II rowsort
SELECT DISTINCT - 70 AS col1, + col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-70
14
-70
47
-70
5

query I rowsort
SELECT DISTINCT 83 + + + 89 FROM tab1
----
172

query I rowsort
SELECT DISTINCT + 84 - - col0 AS col1 FROM tab0
----
171
181
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT COUNT( ALL - ( - 5 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9872
SELECT COUNT ( ALL - ( - 5 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col0 * + col2 * 73 + - col0 FROM tab0
----
51450
63423
700922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT - col2 * - + col2 * + CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT - col2 * - + col2 * + CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 >= + - col1 * + 76
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT ALL + 7 * - + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + 7 * - + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col1, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL - COUNT( * ) * + ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - COUNT ( * ) * + ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9879
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - CAST( NULL AS SIGNED ) ) * 87 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9879
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - CAST ( NULL AS INTEGER ) ) * 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT ALL col2 / + - ( + - ( + CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL col2 / + - ( + - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT ALL + col2 / + 99 + CAST( NULL AS SIGNED ) + + col1 + + + col1 * col1 * + 65 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + col2 / + 99 + CAST ( NULL AS INTEGER ) + + col1 + + + col1 * col1 * + 65 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT ALL + col0 DIV + + col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL + col0 / + + col1 FROM tab0 AS cor0
----
0
4
97

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT + 55 + + + 46 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT ALL CAST( - 32 AS SIGNED ) FROM tab0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL CAST ( - 32 AS INTEGER ) FROM tab0
----
-32
-32
-32

query I rowsort
SELECT col2 * 43 AS col2 FROM tab2
----
1720
2494
989

query I rowsort
SELECT col2 * - + col0 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + 70 AS col2 FROM tab1 WHERE NOT NULL >= col2
----

query I rowsort
SELECT DISTINCT - + 36 AS col2 FROM tab0 AS cor0 WHERE NOT 73 IS NULL
----
-36

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 <= - col2 + + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9891
SELECT DISTINCT + 94 DIV col2 - - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
55
68
79

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT + 94 / col2 - - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
55
68
79

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( - col2 / - col1 + col1, col2 * + + 93 )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( - ( - 66 ) ) IS NOT NULL
----

query I rowsort
SELECT + + 85 + 67 AS col0 FROM tab2 AS cor0
----
152
152
152

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND + + 44
----

query I rowsort
SELECT - + col1 * col1 + - 21 AS col0 FROM tab1 cor0
----
-217
-2230
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9897
SELECT DISTINCT + col0 * - col0 + CAST( NULL AS SIGNED ) AS col2, col0 * + 38 FROM tab2
----
NULL
1748
NULL
2432
NULL
2850

skipif mysql # not compatible
query II rowsort label-9897
SELECT DISTINCT + col0 * - col0 + CAST ( NULL AS INTEGER ) AS col2, col0 * + 38 FROM tab2
----
NULL
1748
NULL
2432
NULL
2850

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 97 * col1 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 > + 73
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9900
SELECT CAST( NULL AS SIGNED ) AS col2, 27 AS col0 FROM tab1
----
NULL
27
NULL
27
NULL
27

skipif mysql # not compatible
query II rowsort label-9900
SELECT CAST ( NULL AS INTEGER ) AS col2, 27 AS col0 FROM tab1
----
NULL
27
NULL
27
NULL
27

query I rowsort
SELECT - - col1 * + 3 AS col0 FROM tab1 WHERE NOT + 13 NOT BETWEEN NULL AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT 72 AS col1 FROM tab1 WHERE NOT - + col0 * - col1 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9902
SELECT 72 AS col1 FROM tab1 WHERE NOT - + col0 * - col1 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ALL - MIN( ALL - 4 ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL - MIN ( ALL - 4 ) AS col0 FROM tab1
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 28 * ( - + col2 ) * + col0 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 26 + - 56 + - - 5 AS col1 FROM tab1 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 32 + col1 * - 9 * + 2 + col0 col2 FROM tab0
----
-1428
-313
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT DISTINCT CAST( ( + 95 ) AS SIGNED ) + - col0 FROM tab0
----
-2
8
80

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT CAST ( ( + 95 ) AS INTEGER ) + - col0 FROM tab0
----
-2
8
80

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - COUNT( * ) * - - 58 AS col0 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-9909
SELECT - COUNT ( * ) * - - 58 AS col0 FROM tab0 AS cor0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT - col0 DIV + 61 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT - col0 / + 61 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT DISTINCT + + ( - 93 ) AS col1, col2 FROM tab2 AS cor0
----
-93
23
-93
40
-93
58

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL BETWEEN NULL AND col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * 37 + - ( - 79 ) ) NOT BETWEEN NULL AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9914
SELECT ALL * FROM tab2 WHERE + + 60 + - CAST( NULL AS SIGNED ) + - col1 > + + 99
----

skipif mysql # not compatible
query III rowsort label-9914
SELECT ALL * FROM tab2 WHERE + + 60 + - CAST ( NULL AS INTEGER ) + - col1 > + + 99
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT COUNT( * ) + 23 FROM tab1 cor0 WHERE + 91 * - col2 NOT BETWEEN - 56 AND NULL
----
26

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT COUNT ( * ) + 23 FROM tab1 cor0 WHERE + 91 * - col2 NOT BETWEEN - 56 AND NULL
----
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / - col0 / - 22 BETWEEN NULL AND - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL - - SUM( ALL - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - - SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + 27 * + 18 FROM tab1
----
486
486
486

query I rowsort
SELECT ALL col0 * - + ( col0 ) FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 27 + + col0 = - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * - - 37 AS col0 FROM tab2
----
1480
2146
851

query II rowsort
SELECT DISTINCT + 26 AS col0, - col2 FROM tab1 AS cor0
----
26
-59
26
-68
26
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL + SUM( - 2 ) col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9924
SELECT ALL + SUM ( - 2 ) col2 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 + + + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT - ( - COUNT( * ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9926
SELECT - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24 col1, 28 AS col0 FROM tab1 AS cor0
----
24
28
24
28
24
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9928
SELECT + + 48 DIV + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9928
SELECT + + 48 / + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 / col2 * - col1 BETWEEN ( - + col1 ) AND col2 + + col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT SUM( ALL - col1 ) + COUNT( 69 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT SUM ( ALL - col1 ) + COUNT ( 69 ) FROM tab0
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT ALL 70 DIV 67 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL 70 / 67 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE + + col2 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 18 AS col1 FROM tab1
----
-103
-109
-69

query I rowsort
SELECT + col1 * + 79 + + col1 + col0 FROM tab1
----
1171
3851
485

query I rowsort
SELECT - col1 + - col0 * - + ( + + 49 ) * + col1 - - col1 + - + col1 * + - 92 + + col2 + col0 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
119715
248660
252522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9936
SELECT DISTINCT MAX( ALL + 36 ) DIV COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT MAX ( ALL + 36 ) / COUNT ( * ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT COUNT( * ) + 97 * - + 95 AS col2 FROM tab0
----
-9212

skipif mysql # not compatible
query I rowsort label-9937
SELECT COUNT ( * ) + 97 * - + 95 AS col2 FROM tab0
----
-9212

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE 15 * - 74 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 <= + 16 / + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2, - 30, - col1, - ( - + 71 ) )
----

query II rowsort
SELECT + 84 * + 32, + ( + + col0 ) + + - 2 AS col2 FROM tab0 AS cor0
----
2688
13
2688
85
2688
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ( - 53 ) * + + 17 + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-892

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9942
SELECT ( - 53 ) * + + 17 + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-892

query I rowsort
SELECT 96 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query III rowsort
SELECT * FROM tab1 WHERE - 20 * - col1 = - - col0 + + col1
----

query I rowsort
SELECT - col0 - - - 60 + - col2 AS col1 FROM tab1
----
-204
-207
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - - COUNT( * ) - 83 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9947
SELECT - - COUNT ( * ) - 83 FROM tab0 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9949
SELECT - col0 * - + 76 + 4 * - col1 + + + col0, col2, + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
9 values hashing to 4f5f9ac6ce45be366610d1c653fcc36e

skipif mysql # not compatible
query III rowsort label-9949
SELECT - col0 * - + 76 + 4 * - col1 + + + col0, col2, + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
9 values hashing to 4f5f9ac6ce45be366610d1c653fcc36e

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT COUNT( ALL - col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9950
SELECT DISTINCT COUNT ( ALL - col2 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 4 - - 88 FROM tab1 AS cor0
----
92

query II rowsort
SELECT ALL - col2 AS col2, + col2 - col0 FROM tab0
----
-10
-77
-47
32
-99
2

query I rowsort
SELECT 39 * + - 19 FROM tab0
----
-741
-741
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + COUNT( * ) * + 37 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-9954
SELECT + COUNT ( * ) * + 37 FROM tab1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9955
SELECT - COUNT( DISTINCT 3 ) * + COUNT( * ) * - SUM( + - 94 ) * - + COUNT( * ) * - - COUNT( * ) - + ( - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT - COUNT ( DISTINCT 3 ) * + COUNT ( * ) * - SUM ( + - 94 ) * - + COUNT ( * ) * - - COUNT ( * ) - + ( - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col0, + col2 col1 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL - col2 * - 40 AS col2 FROM tab0
----
1880
3960
400

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT - 90 AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-90
3

skipif mysql # not compatible
query II rowsort label-9958
SELECT - 90 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-90
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL + SUM( ALL + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + MIN( + col1 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-9960
SELECT + MIN ( + col1 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 39 * - col0 + - col0 + - col1 >= + - 18 * + col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT COUNT( * ) FROM tab2 WHERE NOT - + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9963
SELECT COUNT ( * ) FROM tab2 WHERE NOT - + col1 IS NULL
----
3

query I rowsort
SELECT - - col0 * + + 28 + + ( - + 68 ) * - col0 + - + col2 AS col1 FROM tab1 AS cor0
----
4800
8101
8668

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL + MIN( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0 WHERE + col2 + - 53 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + MIN ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0 WHERE + col2 + - 53 * - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - - 45 + - COUNT( * ) FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9966
SELECT - - 45 + - COUNT ( * ) FROM tab0 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL - + MAX( 7 ) * + + COUNT( * ) FROM tab0 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL - + MAX ( 7 ) * + + COUNT ( * ) FROM tab0 cor0
----
-21

query I rowsort
SELECT - 32 + + 71 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT ALL + 91 * - col1 AS col1 FROM tab0 AS cor0
----
-1911
-7371
-91

query I rowsort
SELECT col0 + - 24 AS col1 FROM tab1 AS cor0
----
27
61
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9971
SELECT DISTINCT - 43 AS col0, SUM( DISTINCT + 48 ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 69 + - col0 AND + CAST( NULL AS SIGNED ) + - col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-9971
SELECT DISTINCT - 43 AS col0, SUM ( DISTINCT + 48 ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 69 + - col0 AND + CAST ( NULL AS INTEGER ) + - col2
----
-43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9972
SELECT 58 col1, SUM( DISTINCT - ( + + 19 ) ) FROM tab0
----
58
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9972
SELECT 58 col1, SUM ( DISTINCT - ( + + 19 ) ) FROM tab0
----
58
-19

query I rowsort
SELECT ALL col0 + + + 16 + + + 60 AS col2 FROM tab2
----
122
140
151

query II rowsort
SELECT 76, col0 + + 95 AS col1 FROM tab2
----
76
141
76
159
76
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + COUNT( * ) - 78 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9975
SELECT + COUNT ( * ) - 78 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT - COUNT( - col0 ) + + 4 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9976
SELECT - COUNT ( - col0 ) + + 4 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL ( + col2 ) * - col1 AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT col0 * 85 FROM tab1
----
4335
7225
7735

query I rowsort
SELECT - col1 + 56 FROM tab2
----
-11
-21
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT ALL + 36 * + MAX( - 75 DIV + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL + 36 * + MAX ( - 75 / + col1 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT DISTINCT col0 DIV 96 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT col0 / 96 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + 77 - col2 AS col0 FROM tab2
----
19
37
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT COUNT( * ) + 3 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9983
SELECT COUNT ( * ) + 3 FROM tab0
----
6

query I rowsort
SELECT + col1 + + col2 FROM tab2 WHERE NULL IS NULL
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ( + 56 ) - - 82 * + COUNT( * ) FROM tab0 WHERE col1 * col0 IS NOT NULL
----
302

skipif mysql # not compatible
query I rowsort label-9985
SELECT ( + 56 ) - - 82 * + COUNT ( * ) FROM tab0 WHERE col1 * col0 IS NOT NULL
----
302

query I rowsort
SELECT col0 + - 70 FROM tab1 WHERE NULL IS NULL
----
-19
15
21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9987
SELECT DISTINCT * FROM tab2 WHERE - col1 * ( - CAST( NULL AS DECIMAL ) * col0 ) BETWEEN + col1 * 56 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9987
SELECT DISTINCT * FROM tab2 WHERE - col1 * ( - CAST ( NULL AS REAL ) * col0 ) BETWEEN + col1 * 56 AND NULL
----

query I rowsort
SELECT + col1 + 14 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 <> ( 2 + - 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT COUNT( ALL + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9989
SELECT COUNT ( ALL + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 28 AS col2 FROM tab1 cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col1 FROM tab1 WHERE NOT - 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL + MIN( DISTINCT + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL + MIN ( DISTINCT + col1 ) FROM tab1
----
5

query I rowsort
SELECT 19 * col1 FROM tab1 cor0
----
266
893
95

query I rowsort
SELECT 17 AS col1 FROM tab1 AS cor0 WHERE NULL <> + col0 / - col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - MAX( 78 ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9995
SELECT - MAX ( 78 ) AS col1 FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + - 82 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-9996
SELECT + - 82 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
246

query I rowsort
SELECT DISTINCT - col0 * + 40 FROM tab2 AS cor0
----
-1840
-2560
-3000

query I rowsort
SELECT - col2 * 74 AS col1 FROM tab1 AS cor0
----
-4366
-5032
-7104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9999
SELECT ALL + - CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9999
SELECT ALL + - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

