sqllogictest
Artifact Content
Not logged in

Artifact 040836e182f1ee9c0c3ffb0ad75bf107a5c6e7c1:


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