sqllogictest
Artifact Content
Not logged in

Artifact bdd316e2a9961936c44938624f31014bf4f5ba19:


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 III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN + col1 AND ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT ALL + col0, - col1 FROM tab1 WHERE + 88 < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col2 FROM tab0 AS cor0 WHERE 51 + col1 + - col0 * - col0 IS NOT NULL
----
76
76
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 + - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL + CAST( - 54 AS SIGNED ) FROM tab1
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + CAST ( - 54 AS INTEGER ) FROM tab1
----
-54
-54
-54

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - COUNT ( * ) col2 FROM tab0
----
NULL
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 84 + - - 19 * 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT + - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT + - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

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

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

query II rowsort
SELECT + col2, col1 * 41 + 92 FROM tab1 cor0
----
59
297
68
2019
96
666

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col2 FROM tab1 AS cor0 WHERE NOT - 85 + - col1 = NULL
----

query II rowsort
SELECT + col0 AS col2, + col1 * + 98 * - 16 * - + ( + 11 ) FROM tab0 AS cor0
----
15
1397088
87
362208
97
17248

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-14
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 23 >= + CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-14
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 23 >= + CAST ( NULL AS INTEGER ) + - col1
----

query I rowsort
SELECT DISTINCT ( 94 ) AS col0 FROM tab2 AS cor0
----
94

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

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

query I rowsort
SELECT col0 * - - col2 + - col2 FROM tab1
----
4800
4956
6120

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + + 70, 92 * 62 / - 92, + - col1 * + - col2 + 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT DISTINCT + - 54 * MIN( + + col0 ) AS col0 FROM tab2 WHERE NOT - 18 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT + - 54 * MIN ( + + col0 ) AS col0 FROM tab2 WHERE NOT - 18 <> NULL
----
NULL

query I rowsort
SELECT + 88 * - - col2 AS col2 FROM tab2
----
2024
3520
5104

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 47 >= + col0 + + + col0 + + col1 * + + 42 * + col2 + - col1 ) OR ( NOT ( - 68 * col2 + - col1 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - + col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL - 63 + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < + - 67
----
-63

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - 63 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < + - 67
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-24
SELECT ALL * FROM tab1 cor0 WHERE col0 + col1 NOT IN ( CAST( col0 AS SIGNED ) + + - col2, col0 + - col2, - 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-24
SELECT ALL * FROM tab1 cor0 WHERE col0 + col1 NOT IN ( CAST ( col0 AS INTEGER ) + + - col2, col0 + - col2, - 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + - 88 AND 90
----

query I rowsort
SELECT - 31 + + - 95 AS col0 FROM tab1 cor0
----
-126
-126
-126

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL < NULL )
----

query I rowsort
SELECT + col1 + - 24 * col1 FROM tab0 AS cor0
----
-1863
-23
-483

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

query I rowsort
SELECT ALL - col1 * 92 * + - col1 FROM tab1 AS cor0
----
18032
203228
2300

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

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

query I rowsort
SELECT + 84 FROM tab0 AS cor0 WHERE ( col1 = + 74 )
----

query I rowsort
SELECT + + col0 - - col1 AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( - col1, 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-35
SELECT DISTINCT - CAST( + - 71 AS SIGNED ) AS col1, 31 * + ( + col2 ) AS col0 FROM tab0
----
71
1457
71
3069
71
310

skipif mysql # not compatible
query II rowsort label-35
SELECT DISTINCT - CAST ( + - 71 AS INTEGER ) AS col1, 31 * + ( + col2 ) AS col0 FROM tab0
----
71
1457
71
3069
71
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-36
SELECT - col2 * 53 FROM tab1 WHERE NOT ( ( NOT + ( - col2 ) IN ( CAST( - 25 AS SIGNED ) ) ) ) OR NULL IS NULL
----
-3127
-3604
-5088

skipif mysql # not compatible
query I rowsort label-36
SELECT - col2 * 53 FROM tab1 WHERE NOT ( ( NOT + ( - col2 ) IN ( CAST ( - 25 AS INTEGER ) ) ) ) OR NULL IS NULL
----
-3127
-3604
-5088

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

query I rowsort
SELECT 58 + + col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 6 AND - - col2 * + 50
----

query II rowsort
SELECT ALL 96 AS col0, - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + ( - - 71 ) * - 51 + + - col0 + - col1 AS col1 FROM tab0 AS cor0
----
3513
3523
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - COUNT( * ) * 27 + - MAX( DISTINCT - col1 ) + + 16 col0 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-41
SELECT - COUNT ( * ) * 27 + - MAX ( DISTINCT - col1 ) + + 16 col0 FROM tab0 AS cor0
----
-64

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

query I rowsort
SELECT ALL 61 * + ( col0 ) FROM tab0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT + MIN( 46 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT + MIN ( 46 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
138

query I rowsort
SELECT 76 * + col2 FROM tab2 AS cor0 WHERE NOT - ( + - 85 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 19 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + col2 * + col1 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT 85 * col1 * + ( - ( + col0 ) ) AS col2 FROM tab1
----
-36125
-363545
-60690

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT ALL - col0 + + 34 + + col2 DIV col1 AS col2 FROM tab1
----
-11
-40
-56

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL - col0 + + 34 + + col2 / col1 AS col2 FROM tab1
----
-11
-40
-56

query I rowsort
SELECT - col2 * 29 AS col1 FROM tab0
----
-1363
-2871
-290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT DISTINCT - - col1 + - ( col2 ) / - col0 + - - col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * + col2 = + ( + 11 ) * + 50 + - 33
----

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT - - col1 + - ( col2 ) / - col0 + - - col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 = + ( + 11 ) * + 50 + - 33
----

query I rowsort
SELECT ALL - col0 + - col2 * - - col1 + 46 FROM tab0
----
-150
-251
-3776

query I rowsort
SELECT DISTINCT + col2 + + 48 + + + col0 + - col1 * + - 27 AS col2 FROM tab0
----
2297
271
712

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

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT COUNT( DISTINCT - 47 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT COUNT ( DISTINCT - 47 ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT COUNT( DISTINCT - 83 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-58
SELECT COUNT ( DISTINCT - 83 ) FROM tab2
----
1

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

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

query II rowsort
SELECT DISTINCT col1 - + + col0 AS col2, 23 AS col0 FROM tab1 AS cor0
----
-37
23
-44
23
-80
23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-63
SELECT DISTINCT + - ( COUNT( col2 ) ), COUNT( * ) DIV - SUM( + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-63
SELECT DISTINCT + - ( COUNT ( col2 ) ), COUNT ( * ) / - SUM ( + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-3
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 25 col2, col2 FROM tab2
----
25
23
25
40
25
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 99 IN ( - - 90 )
----

query I rowsort
SELECT ALL ( + col1 ) * col2 * + 28 * + 41 AS col1 FROM tab0
----
113652
241080
4370436

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT + COUNT( * ) * + MIN( ALL col1 ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + COUNT ( * ) * + MIN ( ALL col1 ) FROM tab1 cor0
----
15

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

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE + 1 BETWEEN - - col0 AND - col2
----

query I rowsort
SELECT DISTINCT 71 + - + col1 FROM tab1
----
24
57
66

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT ALL 58 * col0 DIV + col2 FROM tab2
----
116
75
92

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL 58 * col0 / + col2 FROM tab2
----
116
75
92

query I rowsort
SELECT DISTINCT 43 * + col2 * col0 AS col1 FROM tab1
----
210528
215645
266084

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 3 - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT - + col1 DIV - 18 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-76
SELECT - + col1 / - 18 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT 57 * - col0 AS col1 FROM tab0 AS cor0
----
-4959
-5529
-855

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

query I rowsort
SELECT ALL - col0 + + col2 + + 72 AS col1 FROM tab0 AS cor0
----
-5
104
74

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL COUNT( * ) + - 39 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL COUNT ( * ) + - 39 FROM tab2
----
-36

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 + col0 col1 FROM tab2
----
120
138
149

query I rowsort
SELECT col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT 15 * COUNT( * ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-85
SELECT 15 * COUNT ( * ) AS col1 FROM tab1
----
45

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT ALL - MAX( - col1 ) * 15 + - 9 FROM tab2 AS cor0
----
756

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - MAX ( - col1 ) * 15 + - 9 FROM tab2 AS cor0
----
756

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT DISTINCT - - SUM( DISTINCT 11 ) FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT - - SUM ( DISTINCT 11 ) FROM tab2 cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT col2 DIV col0 + col1 + col1 DIV + 87 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-91
SELECT col2 / col0 + col1 + col1 / + 87 AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 / + 84 - + 49 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT + AVG ( + 20 ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + 88 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-94
SELECT + AVG ( + 20 ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 88 IS NULL
----
NULL

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

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

query I rowsort
SELECT + col1 * col2 + ( + 32 ) + - col2 AS col0 FROM tab0 AS cor0
----
232
32
3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 85 col2, col1 FROM tab1 AS cor0
----
85
14
85
47
85
5

query II rowsort
SELECT ALL - 31, + col0 AS col0 FROM tab1 cor0
----
-31
51
-31
85
-31
91

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-100
SELECT CAST( col1 AS SIGNED ) DIV - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-100
SELECT CAST ( col1 AS INTEGER ) / - col2 FROM tab2
----
-1
-1
-2

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

query I rowsort
SELECT - col1 * - col2 / + col1 * + col1 AS col0 FROM tab1 WHERE NOT + 38 - + col2 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE col1 >= col1 + + col0 * - + 0
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT - 56 * + col2 * + col1 AS col1 FROM tab0 cor0
----
-11760
-213192
-5544

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + + + 79 * + - 31 + - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT - SUM( ALL + 31 ) + + - 35 AS col2 FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-107
SELECT - SUM ( ALL + 31 ) + + - 35 AS col2 FROM tab1 AS cor0
----
-128

query I rowsort
SELECT DISTINCT col1 + - col0 - + 51 FROM tab1
----
-131
-88
-95

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

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

skipif mysql # not compatible
query I rowsort label-110
SELECT - col2 / - + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT col2 + - 40 * + - ( col1 ) * - + col0 FROM tab2 AS cor0
----
-197080
-200942
-93817

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

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

query I rowsort
SELECT ALL - col0 + - + col1 + + 4 AS col2 FROM tab1
----
-134
-61
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) - 99 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-115
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) - 99 FROM tab1
----
-99

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * + ( - col1 ) * - col1 BETWEEN + 28 - + - col1 * + - 54 AND - 69
----

query I rowsort
SELECT DISTINCT 34 * - - col0 - - - col1 AS col0 FROM tab2
----
1513
2099
2483

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT MAX( - + 54 ) + - 12 AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-118
SELECT MAX ( - + 54 ) + - 12 AS col2 FROM tab1
----
-66

query I rowsort
SELECT ALL 16 * + + 21 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 27b1859cf03275544f3dab88f03fb804

query I rowsort
SELECT DISTINCT + - 43 * - 71 FROM tab1 WHERE - col2 * 59 >= NULL
----

query I rowsort
SELECT col0 * + 16 + 9 FROM tab0
----
1401
1561
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 55 AND + col0 / + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 55 AND + col0 / + - col2
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( + 57 ) * + 8 + - - ( + 75 ) FROM tab2 AS cor0
----
-10413
-18165
-26373

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 IN ( - 36, 77, 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ( SUM( - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-128
SELECT ( SUM ( - col1 ) ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT SUM( DISTINCT - col1 ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT SUM ( DISTINCT - col1 ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT - ( - + MIN( col1 ) ) FROM tab2 AS cor0 WHERE NOT 14 = - col0
----
51

skipif mysql # not compatible
query I rowsort label-130
SELECT - ( - + MIN ( col1 ) ) FROM tab2 AS cor0 WHERE NOT 14 = - col0
----
51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-132
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( col1 - + col0 * - + CAST( - + 18 AS SIGNED ), col2 * - + 32 + col2, + - col1 )
----

skipif mysql # not compatible
query III rowsort label-132
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( col1 - + col0 * - + CAST ( - + 18 AS INTEGER ), col2 * - + 32 + col2, + - col1 )
----

query I rowsort
SELECT 86 * col0 FROM tab2 cor0
----
3956
5504
6450

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

query I rowsort
SELECT + ( + col1 ) FROM tab2 WHERE NOT - col0 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-136
SELECT * FROM tab2 WHERE NOT col0 IN ( + col1 * - - CAST( NULL AS SIGNED ), col2 + - - ( - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-136
SELECT * FROM tab2 WHERE NOT col0 IN ( + col1 * - - CAST ( NULL AS INTEGER ), col2 + - - ( - col2 ) )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT COUNT( * ) + + 58 AS col2 FROM tab0, tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-139
SELECT COUNT ( * ) + + 58 AS col2 FROM tab0, tab1 AS cor0
----
67

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-142
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT CAST( - 57 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
-36
-56
24

skipif mysql # not compatible
query I rowsort label-144
SELECT CAST ( - 57 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
-36
-56
24

query I rowsort
SELECT DISTINCT - - 36 AS col1 FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT + col2 DIV + + 1 + - col0 + + + col1 DIV + - col2 AS col1 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-146
SELECT + col2 / + + 1 + - col0 + + + col1 / + - col2 AS col1 FROM tab1 AS cor0
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - col1 AS col2, + 44 col0 FROM tab0 AS cor0
----
-210
44
-3807
44
-99
44

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

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT - - COUNT ( + 55 ) + + ( + - COUNT ( * ) ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - col2 + + 65 * + 29 FROM tab1
----
1789
1817
1826

query I rowsort
SELECT DISTINCT ( - 83 ) + - col1 FROM tab1
----
-130
-88
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-151
SELECT ALL 79 * + col1 + + CAST( - + col2 AS SIGNED ) FROM tab0
----
-20
1649
6352

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL 79 * + col1 + + CAST ( - + col2 AS INTEGER ) FROM tab0
----
-20
1649
6352

query I rowsort
SELECT ALL + col1 - + + 22 * col2 AS col1 FROM tab2
----
-1209
-455
-803

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - - SUM( ALL + col2 ) AS col1 FROM tab0 WHERE + - 35 + + col1 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-153
SELECT - - SUM ( ALL + col2 ) AS col1 FROM tab0 WHERE + - 35 + + col1 IS NOT NULL
----
156

query I rowsort
SELECT DISTINCT col1 - - col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT ALL col2 * col2 DIV - col1 + + - col1 + 59 AS col0 FROM tab2
----
-2
-38
-58

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL col2 * col2 / - col1 + + - col1 + 59 AS col0 FROM tab2
----
-2
-38
-58

query I rowsort
SELECT ALL - col1 - col1 AS col0 FROM tab1 cor0
----
-10
-28
-94

query I rowsort
SELECT ALL - col2 - - - col0 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 35 * - - col2 )
----

query II rowsort
SELECT col0 * - - col1 AS col1, - 10 + col2 AS col1 FROM tab1
----
425
49
4277
58
714
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = ( - 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-163
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 99 BETWEEN + + 70 AND 38 * + col0 / + - ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-163
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 99 BETWEEN + + 70 AND 38 * + col0 / + - ( CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-164
SELECT DISTINCT COUNT( * ) DIV - - MAX( + 71 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT COUNT ( * ) / - - MAX ( + 71 ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + 53 * + 38 AS col2 FROM tab2 AS cor0 WHERE 66 - + 68 * - - 26 IS NULL
----

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

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

query I rowsort
SELECT ALL col0 * - col2 * col0 * - - 47 FROM tab2
----
-15333750
-2287396
-7700480

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-168
SELECT DISTINCT CAST( - + 62 AS SIGNED ) DIV + col0 + - + col2 FROM tab0
----
-10
-51
-99

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT CAST ( - + 62 AS INTEGER ) / + col0 + - + col2 FROM tab0
----
-10
-51
-99

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 44 col1, 2 FROM tab1
----
-44
2
-44
2
-44
2

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT ALL + 68 + + - 97 - - + COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + 68 + + - 97 - - + COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-26

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

query I rowsort
SELECT 97 + col2 + - - 6 FROM tab0 cor0
----
113
150
202

query I rowsort
SELECT - - col2 + - col1 * + col1 * - col0 FROM tab0 AS cor0
----
196
38377
98462

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 54 col0 FROM tab1
----
-14
-54
-47
-54
-5
-54

query I rowsort
SELECT DISTINCT col2 - 81 FROM tab1 cor0
----
-13
-22
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-178
SELECT + col2, col0 - + + CAST( - 48 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
133
68
139
96
99

skipif mysql # not compatible
query II rowsort label-178
SELECT + col2, col0 - + + CAST ( - 48 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
133
68
139
96
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 > + - 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * + 11 AS col1 FROM tab0 AS cor0
----
11
231
891

query I rowsort
SELECT + - 48 * - ( - col2 ) + 8 AS col1 FROM tab1 AS cor0
----
-2824
-3256
-4600

query I rowsort
SELECT 18 - - col0 - - col1 FROM tab1 AS cor0
----
108
156
83

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

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

query II rowsort
SELECT + - 79 - - 54, + col1 FROM tab2 AS cor0
----
-25
51
-25
67
-25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT DISTINCT + 39 + - COUNT( * ) col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-186
SELECT DISTINCT + 39 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
36

query I rowsort
SELECT - col2 + + col0 * - col1 AS col0 FROM tab2
----
-2369
-4968
-5083

query I rowsort
SELECT ALL - col1 + + col1 * + 87 AS col0 FROM tab2
----
4386
5762
6622

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

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

query I rowsort
SELECT ALL + 7 AS col0 FROM tab1 WHERE + - 26 = NULL
----

query I rowsort
SELECT DISTINCT - col2 - + - ( + + col0 ) + - 9 * - - 98 * - col1 FROM tab0
----
18599
71410
880

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT DISTINCT + col1 DIV - 74 - + + 84 col2 FROM tab0
----
-84
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-192
SELECT DISTINCT + col1 / - 74 - + + 84 col2 FROM tab0
----
-84
-85

query I rowsort
SELECT DISTINCT + col0 * col2 + - + col2 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT ALL - + MIN( ALL + + col2 ) * - 39 AS col1 FROM tab0 AS cor0
----
390

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL - + MIN ( ALL + + col2 ) * - 39 AS col1 FROM tab0 AS cor0
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL COUNT( * ) * + + MAX( - 78 ) FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL COUNT ( * ) * + + MAX ( - 78 ) FROM tab2 AS cor0
----
-234

query I rowsort
SELECT DISTINCT + 40 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT ALL - ( - 82 ) FROM tab1
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL + - MIN( DISTINCT 40 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-40

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + - MIN ( DISTINCT 40 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 48 < + + 64
----

query II rowsort
SELECT ALL + 75 AS col1, 75 * ( - - col2 ) / - 17 + - col2 AS col0 FROM tab2 AS cor0 WHERE 98 IS NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT DISTINCT - - 70 DIV 73 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT - - 70 / 73 AS col1 FROM tab1 AS cor0
----
0

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

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

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

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

query II rowsort
SELECT ALL 50 AS col2, 54 FROM tab1 AS cor0
----
50
54
50
54
50
54

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col2 + - - 27 FROM tab2
----
-13
-31
4

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT - 72 DIV + col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-209
SELECT - 72 / + col2 FROM tab0
----
-1
-7
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-210
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) * - 32 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 32 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - 76 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT ALL COUNT( * ) + + 42 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL COUNT ( * ) + + 42 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT COUNT( ALL - col1 ) + - 84 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT COUNT ( ALL - col1 ) + - 84 FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-215
SELECT col1 + + - col1 + + CAST( - col0 AS SIGNED ) col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-215
SELECT col1 + + - col1 + + CAST ( - col0 AS INTEGER ) col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL BETWEEN - - col0 + - 19 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT col0 + - - col0 DIV ( + 73 ) FROM tab0 cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-217
SELECT col0 + - - col0 / ( + 73 ) FROM tab0 cor0
----
15
88
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - ( - col2 ) + - - 24 col1 FROM tab0 AS cor0
----
-681
-846
-9579

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 > + - 77
----

query I rowsort
SELECT - 1 + - + col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col0 FROM tab2 AS cor0
----
73

query I rowsort
SELECT DISTINCT - 13 + col1 AS col2 FROM tab0
----
-12
68
8

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT + 48 + + + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-225
SELECT + 48 + + + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

skipif mysql # not compatible
query I rowsort label-226
SELECT + ( + col0 ) / - col0 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col2 - + + col1 * - col1 AS col0 FROM tab1
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL + MAX( - col2 ) + + 35 + - COUNT( + col2 ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-228
SELECT ALL + MAX ( - col2 ) + + 35 + - COUNT ( + col2 ) col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL 90 + - 95 - + COUNT( * ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL 90 + - 95 - + COUNT ( * ) FROM tab2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-230
SELECT col1 AS col1, + CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-230
SELECT col1 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 85 / col0 * col0 * + col1 / col2 <> - + 38 + + - col1 * 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT ALL - SUM( ALL + + col0 ), COUNT( * ) AS col1 FROM tab1
----
-227
3

skipif mysql # not compatible
query II rowsort label-232
SELECT ALL - SUM ( ALL + + col0 ), COUNT ( * ) AS col1 FROM tab1
----
-227
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-234
SELECT DISTINCT 2 AS col2, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
2
-3

skipif mysql # not compatible
query II rowsort label-234
SELECT DISTINCT 2 AS col2, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
2
-3

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
196
297
3822

query II rowsort
SELECT DISTINCT ( - col1 ) AS col1, + col2 FROM tab1
----
-14
96
-47
68
-5
59

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

query I rowsort
SELECT ALL + - col2 * - + col2 * + 13 + - col2 AS col2 FROM tab2 AS cor0
----
20760
43674
6854

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-240
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-240
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab1 AS cor0
----
32
32
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 88 * + ( 98 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) + - 97 FROM tab0
----
-10
-82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + MAX( + + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-244
SELECT + MAX ( + + col1 ) FROM tab1
----
47

query I rowsort
SELECT + ( + col2 ) * 3 * + col0 AS col1 FROM tab2
----
13050
3174
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT ALL - COUNT( * ) * + - MIN( col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL - COUNT ( * ) * + - MIN ( col2 ) FROM tab2
----
69

query II rowsort
SELECT + col1 AS col1, 12 * col0 AS col2 FROM tab0
----
1
1164
21
1044
81
180

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

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL COUNT ( * ) / + - 41 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 81 * 45 AS col0 FROM tab1
----
3645

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 63 ) col1 FROM tab2
----
63
63
63

query I rowsort
SELECT ALL - col0 * - + 18 AS col1 FROM tab0
----
1566
1746
270

query I rowsort
SELECT DISTINCT - 85 * + col0 * 53 AS col1 FROM tab2
----
-207230
-288320
-337875

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-254
SELECT DISTINCT + + 87, - col0 DIV + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 <= - - CAST( col1 AS SIGNED ) * + - col1
----
87
-4
87
-97
87
0

skipif mysql # not compatible
query II rowsort label-254
SELECT DISTINCT + + 87, - col0 / + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 <= - - CAST ( col1 AS INTEGER ) * + - col1
----
87
-4
87
-97
87
0

query I rowsort
SELECT ALL + 14 + + 60 AS col0 FROM tab2 AS cor0
----
74
74
74

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

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

query I rowsort
SELECT ALL 8 * - - 12 + + col0 AS col1 FROM tab1
----
147
181
187

query I rowsort
SELECT - - 7 * - - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7581a2ef7efd668e72a74432a2e2e3a1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-259
SELECT DISTINCT - MIN ( - + col1 ) - 97 col2 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT DISTINCT + col2 * + ( 3 ) * 28 - col2 + - - 83 * - + col0 AS col0 FROM tab0 AS cor0
----
-6391
166
2656

query I rowsort
SELECT DISTINCT - - 97 AS col2 FROM tab1 AS cor0 WHERE NOT 43 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT - 63 * + ( - + COUNT( * ) ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT - 63 * + ( - + COUNT ( * ) ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

query II rowsort
SELECT - + 39 - - col2 AS col0, - 93 AS col2 FROM tab0 AS cor0
----
-29
-93
60
-93
8
-93

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IS NOT NULL AND NULL <> 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT - 53 * COUNT( * ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-265
SELECT - 53 * COUNT ( * ) FROM tab1
----
-159

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col2 FROM tab2 WHERE - + 95 + - 0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col1 FROM tab0
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL COUNT( * ) - COUNT( - 79 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL COUNT ( * ) - COUNT ( - 79 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL > NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - MAX( col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-270
SELECT - MAX ( col2 ) AS col2 FROM tab1 cor0
----
-96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 cor0 WHERE 44 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT + MAX( 83 ) * 65 DIV - + 75 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-273
SELECT + MAX ( 83 ) * 65 / - + 75 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-62

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT - + ( col2 ) + CAST( + 73 AS SIGNED ) + + col0 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
812
954
9578

skipif mysql # not compatible
query I rowsort label-278
SELECT - + ( col2 ) + CAST ( + 73 AS INTEGER ) + + col0 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
812
954
9578

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-280
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 92 < + + 24 / CAST( NULL AS SIGNED ) * + 73 * + + 98
----

skipif mysql # not compatible
query III rowsort label-280
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 92 < + + 24 / CAST ( NULL AS INTEGER ) * + 73 * + + 98
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + + + 19 - - col1 IS NULL
----

query I rowsort
SELECT + + col0 + - - col0 + + col0 - col0 * + col0 + - col1 FROM tab2 AS cor0
----
-2029
-3981
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT + 30 + + + COUNT( * ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-283
SELECT + 30 + + + COUNT ( * ) FROM tab2
----
33

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

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

query I rowsort
SELECT DISTINCT + 41 - - - col2 AS col0 FROM tab2 AS cor0
----
-17
1
18

query II rowsort
SELECT DISTINCT + + col2, + col0 FROM tab0 AS cor0 WHERE NOT 56 = NULL
----

query I rowsort
SELECT ALL 63 - - - col1 FROM tab1 cor0
----
16
49
58

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-289
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL < + 78 + - - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-289
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL < + 78 + - - CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 * + col1 col2 FROM tab2 AS cor0
----
-153
-201
-231

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

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT - MAX( ALL col2 ) AS col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT - MAX ( ALL col2 ) AS col0 FROM tab1 cor0
----
-96

query I rowsort
SELECT ALL - 18 * col0 AS col1 FROM tab2
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL - COUNT( * ) * 82 * - ( - SUM( DISTINCT + col2 ) ) col1 FROM tab0
----
-38376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-294
SELECT ALL - COUNT ( * ) * 82 * - ( - SUM ( DISTINCT + col2 ) ) col1 FROM tab0
----
-38376

query I rowsort
SELECT DISTINCT ( + 82 ) * + 0 * - 29 * + col0 + - col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col2 * + - 42 FROM tab0
----
-1974
-4158
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-297
SELECT - 37 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-297
SELECT - 37 / col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT CAST( + - col1 AS SIGNED ) * - 38 FROM tab1
----
1786
190
532

skipif mysql # not compatible
query I rowsort label-298
SELECT CAST ( + - col1 AS INTEGER ) * - 38 FROM tab1
----
1786
190
532

query I rowsort
SELECT DISTINCT - - AVG ( + col0 ) AS col2 FROM tab1 WHERE - 23 * col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-300
SELECT DISTINCT + ( + 27 ) * - - CAST( NULL AS DECIMAL ) + MAX( - - col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT + ( + 27 ) * - - CAST ( NULL AS REAL ) + MAX ( - - col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-301
SELECT - CAST( + - 49 AS SIGNED ), + ( + 26 ) col1 FROM tab1 AS cor0
----
49
26
49
26
49
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-301
SELECT - CAST ( + - 49 AS INTEGER ), + ( + 26 ) col1 FROM tab1 AS cor0
----
49
26
49
26
49
26

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col1 / 16
----

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

query I rowsort
SELECT ALL - + 64 FROM tab0 AS cor0
----
-64
-64
-64

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

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

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

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

query I rowsort
SELECT DISTINCT + + col1 + - 92 FROM tab2 AS cor0
----
-15
-25
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL SUM( ( col1 ) ) * + 15 + - - COUNT( * ) col1 FROM tab0
----
1548

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-309
SELECT ALL SUM ( ( col1 ) ) * + 15 + - - COUNT ( * ) col1 FROM tab0
----
1548

query I rowsort
SELECT ALL - 85 + col0 FROM tab2
----
-10
-21
-39

query I rowsort
SELECT 75 + col0 * - 69 AS col2 FROM tab1
----
-3444
-5790
-6204

query I rowsort
SELECT + col2 / + 58 AS col1 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - col2 + col1 + + + col1 + - 96 AS col2 FROM tab1
----
-145
-164
-70

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * ( + 80 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4720
5440
7680

query I rowsort
SELECT ALL - 54 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-2800
-3693
-4222

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

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

query I rowsort
SELECT ALL + 5 + col0 FROM tab1 AS cor0 WHERE col1 >= - col1
----
56
90
96

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT + + MIN( - col2 ) FROM tab1 AS cor0 WHERE NOT col0 = col2 + - - col2
----
-96

skipif mysql # not compatible
query I rowsort label-323
SELECT + + MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT col0 = col2 + - - col2
----
-96

query I rowsort
SELECT col0 * + 27 FROM tab0 cor0
----
2349
2619
405

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT DISTINCT - + MAX( ALL + col0 ) * - 24 + - + 16 FROM tab1 AS cor0
----
2168

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT - + MAX ( ALL + col0 ) * - 24 + - + 16 FROM tab1 AS cor0
----
2168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-326
SELECT DISTINCT - 95 DIV + + MIN( + col2 ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - 95 / + + MIN ( + col2 ) AS col2 FROM tab0 AS cor0
----
-9

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 29 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT ALL + 64 DIV COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL + 64 / COUNT ( * ) FROM tab1
----
21

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

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

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT 15 * + + col1 FROM tab1
----
210
705
75

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT + + MAX( - - 34 ) FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-333
SELECT + + MAX ( - - 34 ) FROM tab0 cor0
----
34

query I rowsort
SELECT - - col0 + + col1 FROM tab0 AS cor0 WHERE NOT col0 >= - col0 - + col0 / + col0 - + col1 * - 12 * col2
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT 58 DIV + ( + + 7 ) AS col1 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-335
SELECT 58 / + ( + + 7 ) AS col1 FROM tab2 AS cor0
----
8
8
8

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

skipif mysql # not compatible
query I rowsort label-336
SELECT + MIN ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col1 - - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT col0 + + 65 AS col1 FROM tab1 WHERE NOT 49 BETWEEN 52 AND ( col0 )
----
116
150
156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 62 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + 14 col1 FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN + 77 * col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN + 77 * col1 AND ( NULL )
----
0

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

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

query I rowsort
SELECT ALL + 27 * ( + col0 ) FROM tab0
----
2349
2619
405

query I rowsort
SELECT col0 * - col0 + - 11 FROM tab2
----
-2127
-4107
-5636

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT 15 * + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-345
SELECT 15 * + COUNT ( * ) FROM tab1
----
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 - + col1 / 39 ) > ( NULL )
----

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

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

query I rowsort
SELECT 76 * col2 AS col2 FROM tab0
----
3572
7524
760

query I rowsort
SELECT ALL 51 + col1 FROM tab2
----
102
118
128

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + 41 + COUNT( ALL col0 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-350
SELECT + 41 + COUNT ( ALL col0 ) FROM tab2
----
44

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 2 + - col0 * + 37 ) <= NULL
----

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

query I rowsort
SELECT DISTINCT - col0 * 3 + col0 * + 15 FROM tab1
----
1020
1092
612

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) / col1 AND 16 - col0
----

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) / col1 AND 16 - col0
----

query I rowsort
SELECT - 31 - + 42 * - 94 AS col1 FROM tab2
----
3917
3917
3917

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 80 ) >= NULL
----

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

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

query I rowsort
SELECT + 20 - col2 AS col1 FROM tab1
----
-39
-48
-76

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

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

query I rowsort
SELECT DISTINCT - 95 * col0 FROM tab1
----
-4845
-8075
-8645

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 59 ) >= col2 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT - 97 DIV col1 FROM tab2 WHERE + col1 * - col1 - 45 * col0 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-365
SELECT - 97 / col1 FROM tab2 WHERE + col1 * - col1 - 45 * col0 IS NOT NULL
----
-1
-1
-1

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-369
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-369
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL - COUNT( * ) * 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
-801

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL - COUNT ( * ) * 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
-801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-371
SELECT DISTINCT - AVG ( col2 ) FROM tab2 WHERE NULL > CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - AVG ( col2 ) FROM tab2 WHERE NULL > CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 38 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

skipif mysql # not compatible
query I rowsort label-373
SELECT - MIN ( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
-46

query I rowsort
SELECT ALL + 17 * + ( 77 ) FROM tab0 cor0
----
1309
1309
1309

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

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

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

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

query I rowsort
SELECT DISTINCT 3 * + col2 FROM tab0 AS cor0
----
141
297
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col0 * 28
----

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

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT - ( 52 ) IS NULL
----
10
47
99

query I rowsort
SELECT ALL 55 * col0 FROM tab2 WHERE NOT col1 BETWEEN - col2 + - 58 AND 80 OR NOT ( - col0 * col0 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT + COUNT( * ) * 88 AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-384
SELECT + COUNT ( * ) * 88 AS col1 FROM tab0
----
264

query I rowsort
SELECT ALL + ( col1 ) - col2 FROM tab0 WHERE NOT 61 * + 46 NOT IN ( col1 )
----

query I rowsort
SELECT + 82 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT - COUNT( * ) * - 29 AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT - COUNT ( * ) * - 29 AS col0 FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-388
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + 38 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-388
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + 38 ) IS NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE - col2 * 27 <= + 31
----
15
87
97

query I rowsort
SELECT 13 * 99 + col1 FROM tab1 AS cor0
----
1292
1301
1334

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = ( ( col2 ) * col0 )
----

query I rowsort
SELECT ALL - 45 + - 6 AS col0 FROM tab1 AS cor0
----
-51
-51
-51

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) NOT BETWEEN + 5 AND - 49
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 31 ) IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 42 * + col1 - + 10 IS NULL
----

query I rowsort
SELECT ALL - - col2 * + ( - + col1 ) AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT - MAX( ALL col0 ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-398
SELECT - MAX ( ALL col0 ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT - col1 * - 75 - - 85 FROM tab0 AS cor0
----
160
1660
6160

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-401
SELECT + COUNT ( ALL - + col1 ) - - + COUNT ( * ) col2 FROM tab0 AS cor0
----
6

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col1 * - - 49 + - 7 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - 62 + - col2 * - - ( 29 ) + - col0 FROM tab0
----
-1440
-3030
-439

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

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

query I rowsort
SELECT + col0 + + + 4 AS col1 FROM tab0
----
101
19
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + - ( + + ( - 85 ) ) FROM tab1
----
38
71
80

query I rowsort
SELECT DISTINCT ( + 71 ) - + col0 FROM tab2
----
-4
25
7

query I rowsort
SELECT ALL col0 * + col2 - - + col2 + - ( + 95 ) FROM tab1
----
4897
4979
6161

query I rowsort
SELECT 46 AS col2 FROM tab0 cor0
----
46
46
46

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 68 - 85 + + 67 + col0 * 1 IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT + - col0 > ( NULL )
----

query I rowsort
SELECT - - ( + 17 ) AS col2 FROM tab0 AS cor0
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 29 <= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 38 + col0 * - col0 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * col2 * 60 * - col1 AS col0 FROM tab0
----
1096200
3426300
576180

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - - 62 * - col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT ( - col0 ) * + 74 / + col2 + col2 / + 21 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 8 * ( - 48 ) AS col2 FROM tab0
----
-384
-384
-384

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

query I rowsort
SELECT + col2 * col1 FROM tab1 WHERE NOT ( + col2 NOT IN ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT - COUNT( * ) * 53 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-428
SELECT - COUNT ( * ) * 53 FROM tab1
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + 21 ) col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE - - col1 + - 25 BETWEEN - - col2 AND + + col2
----

query I rowsort
SELECT - col1 * col2 * + ( 30 ) + + 85 AS col2 FROM tab0
----
-114125
-2885
-6215

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT + 39 + MAX( DISTINCT - col0 ) * + 30 FROM tab1
----
-1491

skipif mysql # not compatible
query I rowsort label-432
SELECT + 39 + MAX ( DISTINCT - col0 ) * + 30 FROM tab1
----
-1491

query I rowsort
SELECT ALL - col0 * + 24 FROM tab1 AS cor0
----
-1224
-2040
-2184

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

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

query I rowsort
SELECT + col2 + + 81 FROM tab0 AS cor0
----
128
180
91

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT + 67 + - + 87 + 20 + 34 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-436
SELECT + 67 + - + 87 + 20 + 34 / + col1 AS col1 FROM tab1 AS cor0
----
0
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT COUNT( DISTINCT - + 17 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT COUNT ( DISTINCT - + 17 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT DISTINCT - + 46 * COUNT( * ) FROM tab0 WHERE NOT - 38 * - col1 IS NULL
----
-138

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT - + 46 * COUNT ( * ) FROM tab0 WHERE NOT - 38 * - col1 IS NULL
----
-138

query I rowsort
SELECT DISTINCT 59 + + ( 39 ) AS col1 FROM tab2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT DISTINCT - 51 DIV 42 * - col0 DIV - + col1 + + 45 AS col0 FROM tab2
----
44
45

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT - 51 / 42 * - col0 / - + col1 + + 45 AS col0 FROM tab2
----
44
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-441
SELECT DISTINCT - SUM( + col0 ) + + 48 DIV + - COUNT( * ) AS col2 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - SUM ( + col0 ) + + 48 / + - COUNT ( * ) AS col2 FROM tab1
----
-243

query I rowsort
SELECT + 79 - - col0 * - col1 * - + col1 + + col1 FROM tab1
----
10089
201145
2209

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

query I rowsort
SELECT ALL + col2 + + + 56 FROM tab0
----
103
155
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-445
SELECT DISTINCT col2 DIV + CAST( col0 AS SIGNED ) - + col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT col2 / + CAST ( col0 AS INTEGER ) - + col0 AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col1 - col1 * col2 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL 8 - + - col1 AS col2 FROM tab2 AS cor0
----
59
75
85

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + ( COUNT( * ) ) + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT + col2 * 10 * 57 + ( - col0 ) <= + col2 / + col0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-448
SELECT + ( COUNT ( * ) ) + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT + col2 * 10 * 57 + ( - col0 ) <= + col2 / + col0
----
6

query I rowsort
SELECT - col1 * + 79 FROM tab1 AS cor0
----
-1106
-3713
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT SUM( DISTINCT + col0 ) * + + COUNT( * ) col2 FROM tab0 WHERE NOT ( + 49 + 68 IS NOT NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-450
SELECT SUM ( DISTINCT + col0 ) * + + COUNT ( * ) col2 FROM tab0 WHERE NOT ( + 49 + 68 IS NOT NULL )
----
NULL

query II rowsort
SELECT ( + + col2 ) AS col0, + col2 FROM tab1
----
59
59
68
68
96
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( 94 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( 94 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-454
SELECT - - CAST( - + col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > - - col0 / - col1 + - col1
----

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

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

skipif mysql # not compatible
query III rowsort label-458
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + CAST ( NULL AS INTEGER ) < NULL
----

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

query I rowsort
SELECT ALL col1 * col1 + - col1 FROM tab2 AS cor0
----
2550
4422
5852

query II rowsort
SELECT DISTINCT - 20 AS col2, ( col2 ) AS col0 FROM tab1
----
-20
59
-20
68
-20
96

onlyif mysql # aggregate syntax: 
query II rowsort label-462
SELECT ( - + MAX( ALL col2 ) ), MIN( ALL - + col2 ) FROM tab1
----
-96
-96

skipif mysql # not compatible
query II rowsort label-462
SELECT ( - + MAX ( ALL col2 ) ), MIN ( ALL - + col2 ) FROM tab1
----
-96
-96

query I rowsort
SELECT ALL - col2 + - 54 FROM tab1
----
-113
-122
-150

query II rowsort
SELECT col0, + 11 * col1 AS col2 FROM tab2
----
46
561
64
847
75
737

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

query I rowsort
SELECT ALL + col1 * - 33 AS col0 FROM tab2
----
-1683
-2211
-2541

query I rowsort
SELECT 58 * - + col1 AS col1 FROM tab1
----
-2726
-290
-812

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-470
SELECT - col1 DIV - - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-470
SELECT - col1 / - - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-23
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL + MAX( col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + MAX ( col0 ) AS col1 FROM tab2 AS cor0
----
75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT 65 DIV - 91 * 7 + col0 AS col2 FROM tab2 WHERE + col2 + + col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-473
SELECT 65 / - 91 * 7 + col0 AS col2 FROM tab2 WHERE + col2 + + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL + - col1 * col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
-425
-4277
-714

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

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

query I rowsort
SELECT + 40 - + col2 AS col0 FROM tab1 AS cor0
----
-19
-28
-56

query I rowsort
SELECT + - 60 - + 59 * col2 FROM tab0 AS cor0
----
-2833
-5901
-650

query I rowsort
SELECT ALL + 46 * - + 53 FROM tab0 AS cor0
----
-2438
-2438
-2438

query I rowsort
SELECT ALL + - 51 + - 27 FROM tab2 AS cor0
----
-78
-78
-78

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL <= NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + 27 * - + 28 col0 FROM tab0
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT DISTINCT MIN( - - 90 ) col0 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-483
SELECT DISTINCT MIN ( - - 90 ) col0 FROM tab2
----
90

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL >= col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-485
SELECT - 70 * - + CAST( NULL AS SIGNED ) + + 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT - 70 * - + CAST ( NULL AS INTEGER ) + + 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT col0 + + + col0 BETWEEN col1 AND NULL
----

query II rowsort
SELECT + col1, 27 AS col2 FROM tab1 AS cor0
----
14
27
47
27
5
27

query I rowsort
SELECT DISTINCT - + col0 + - 36 + + - col2 FROM tab1 AS cor0 WHERE NOT - 25 IS NULL
----
-180
-183
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL - SUM( - - 16 ) AS col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL - SUM ( - - 16 ) AS col2 FROM tab0 AS cor0
----
-48

query II rowsort
SELECT + - col2, 86 * - 49 AS col2 FROM tab0 AS cor0
----
-10
-4214
-47
-4214
-99
-4214

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

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

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

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

query I rowsort
SELECT - + ( 56 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-56
-56
-56

query I rowsort
SELECT ALL + + col0 * 1 AS col0 FROM tab0 WHERE + col2 = NULL
----

query I rowsort
SELECT ALL + - 10 AS col1 FROM tab2 WHERE NOT NULL = + 3
----

query I rowsort
SELECT ALL ( + 1 ) + + 97 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query II rowsort label-500
SELECT ALL 3 * COUNT( - - 21 ) + - - 1, + COUNT( * ) col2 FROM tab1
----
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-500
SELECT ALL 3 * COUNT ( - - 21 ) + - - 1, + COUNT ( * ) col2 FROM tab1
----
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT 40 * COUNT( * ) col1 FROM tab2
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-501
SELECT 40 * COUNT ( * ) col1 FROM tab2
----
120

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

skipif mysql # not compatible
query I rowsort label-502
SELECT + 71 / - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT ALL MIN( DISTINCT - col0 ), 21 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - col2 + col0 * 46 IS NOT NULL
----
NULL
21

skipif mysql # not compatible
query II rowsort label-503
SELECT ALL MIN ( DISTINCT - col0 ), 21 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - col2 + col0 * 46 IS NOT NULL
----
NULL
21

query I rowsort
SELECT ALL + 45 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT - 53 * 49 AS col0 FROM tab0, tab0 AS cor0
----
-2597

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-506
SELECT - - col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT - - col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NULL > 86
----

query I rowsort
SELECT ALL - 78 * - 75 AS col2 FROM tab2 AS cor0
----
5850
5850
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT ALL - - col2 + col2 + ( col0 ) DIV col1 - - col0 AS col0 FROM tab0 AS cor0
----
109
111
392

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - - col2 + col2 + ( col0 ) / col1 - - col0 AS col0 FROM tab0 AS cor0
----
109
111
392

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT + + COUNT( 49 ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT + + COUNT ( 49 ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col2 * + 87 AS col1 FROM tab2
----
-2001
-3480
-5046

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-512
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 84 col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT COUNT( * ) * 29 AS col2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-513
SELECT COUNT ( * ) * 29 AS col2 FROM tab2
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 - - - 57 + - - col1 col2 FROM tab2
----
-51
17
-67
68
-77
60

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT ALL + col1 DIV + 55 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL + col1 / + 55 FROM tab1
----
0
0
0

query II rowsort
SELECT - col0 AS col0, 46 FROM tab2
----
-46
46
-64
46
-75
46

query I rowsort
SELECT DISTINCT + col0 * - 45 AS col2 FROM tab2
----
-2070
-2880
-3375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - col1 AS col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT + 33 DIV - + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-519
SELECT + 33 / - + col0 AS col0 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL SUM( + 77 ) AS col2 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL SUM ( + 77 ) AS col2 FROM tab1 AS cor0
----
231

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

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

query I rowsort
SELECT - col0 + - col1 FROM tab0 AS cor0 WHERE NOT 23 <> - 98 + - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT ALL - - col0 DIV + + 38 FROM tab1 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - - col0 / + + 38 FROM tab1 cor0
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-525
SELECT - 44 * + 24 DIV COUNT( * ) AS col2 FROM tab1 cor0
----
-352

skipif mysql # not compatible
query I rowsort label-525
SELECT - 44 * + 24 / COUNT ( * ) AS col2 FROM tab1 cor0
----
-352

query I rowsort
SELECT DISTINCT + col2 * - - 43 AS col1 FROM tab0
----
2021
4257
430

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - + col0 + + ( - 44 ) / + 31 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 47 * - col2 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-530
SELECT DISTINCT MAX( DISTINCT - + col1 ) - - COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
3

skipif mysql # not compatible
query II rowsort label-530
SELECT DISTINCT MAX ( DISTINCT - + col1 ) - - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col1, COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
3

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT DISTINCT - col1 * ( - 74 ) + 5 DIV + + 9 * 37 + - - col2 FROM tab2 AS cor0
----
3797
5016
5738

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT - col1 * ( - 74 ) + 5 / + + 9 * 37 + - - col2 FROM tab2 AS cor0
----
3797
5016
5738

query I rowsort
SELECT ALL - col2 + - 88 FROM tab2 AS cor0
----
-111
-128
-146

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-535
SELECT ALL * FROM tab1 cor0 WHERE ( CAST( - 85 AS SIGNED ) * - 17 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-535
SELECT ALL * FROM tab1 cor0 WHERE ( CAST ( - 85 AS INTEGER ) * - 17 ) = NULL
----

query I rowsort
SELECT DISTINCT col0 + - 30 - + - 20 FROM tab1
----
41
75
81

query II rowsort
SELECT - col0, col0 * + + col0 AS col1 FROM tab1
----
-51
2601
-85
7225
-91
8281

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-539
SELECT ALL + COUNT( * ) DIV - 81 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL + COUNT ( * ) / - 81 AS col1 FROM tab0
----
0

query I rowsort
SELECT - 55 + - col2 * + - col1 - col1 FROM tab0 AS cor0
----
134
3671
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT - col1 DIV - 24 + - + col1 * col0 AS col2 FROM tab0 AS cor0
----
-1212
-1827
-97

skipif mysql # not compatible
query I rowsort label-542
SELECT - col1 / - 24 + - + col1 * col0 AS col2 FROM tab0 AS cor0
----
-1212
-1827
-97

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

query I rowsort
SELECT DISTINCT + col0 * + col1 - - col2 + - col1 * - col1 * + 89 FROM tab1
----
18254
200946
2709

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT col1 DIV - - ( - col0 ) col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-545
SELECT col1 / - - ( - col0 ) col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT - col0 - - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-546
SELECT - col0 - - col1 / col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-97

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

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

query I rowsort
SELECT ALL - + 39 - + + col2 AS col2 FROM tab0 AS cor0
----
-138
-49
-86

query I rowsort
SELECT col2 * + col0 - 55 FROM tab2 AS cor0
----
1003
2505
4295

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT + - MAX( DISTINCT + - ( - 12 ) ) AS col2 FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-550
SELECT + - MAX ( DISTINCT + - ( - 12 ) ) AS col2 FROM tab2 cor0
----
-12

query I rowsort
SELECT DISTINCT 95 * 14 + col2 FROM tab1 AS cor0
----
1389
1398
1426

query I rowsort
SELECT col0 * + + 99 AS col0 FROM tab1
----
5049
8415
9009

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 6 > + 39 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-554
SELECT + 78 col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-554
SELECT + 78 col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL + ( + 13 ) AS col2 FROM tab1
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-558
SELECT ALL + - col1 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + - col1 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-560
SELECT ALL + 36 * COUNT( * ) DIV + - COUNT( * ) + 92 FROM tab2 cor0
----
56

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL + 36 * COUNT ( * ) / + - COUNT ( * ) + 92 FROM tab2 cor0
----
56

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col2 + + 41 IS NOT NULL
----

query I rowsort
SELECT ALL - 12 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-564
SELECT + + COUNT( CAST( CAST( col1 AS DECIMAL ) AS DECIMAL ) ) + 45 + - - COUNT( ALL col2 ) DIV + COUNT( * ) + + COUNT( * ) * - 52 AS col2 FROM tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-564
SELECT + + COUNT ( CAST ( CAST ( col1 AS REAL ) AS REAL ) ) + 45 + - - COUNT ( ALL col2 ) / + COUNT ( * ) + + COUNT ( * ) * - 52 AS col2 FROM tab2 AS cor0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT DISTINCT - COUNT( * ) + + - 21 col0 FROM tab1 AS cor0
----
-24

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

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

query I rowsort
SELECT - col1 + + - 50 + - col1 FROM tab1 AS cor0
----
-144
-60
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 38 * + col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + 76 + - 17 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-569
SELECT + 76 + - 17 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
56

query I rowsort
SELECT - - col1 * - col0 + + col2 + + 38 AS col2 FROM tab0 cor0
----
-1130
-1779
40

query III rowsort
SELECT DISTINCT + + col0 AS col1, col1 * - 85 * - col0, col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to 051cbb720b56a775b203053008094e11

query I rowsort
SELECT ALL + - 58 AS col1 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE 25 * + col0 >= - col1
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 WHERE 41 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - 99 FROM tab2
----
-41
-59
-76

query II rowsort
SELECT ALL + col1 + + col1, col0 FROM tab1
----
10
85
28
51
94
91

query I rowsort
SELECT DISTINCT - 22 + - - col1 FROM tab1
----
-17
-8
25

query I rowsort
SELECT ALL ( + - col0 ) * col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - col1 * + col0 * + - col1 FROM tab0
----
38367
97
98415

query I rowsort
SELECT + 20 * col1 * - + 52 AS col0 FROM tab0
----
-1040
-21840
-84240

query I rowsort
SELECT ALL + ( + 18 ) + 40 AS col1 FROM tab0
----
58
58
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT DISTINCT + CAST( 82 AS SIGNED ) + - - col0 * - - 83 * col2 AS col1 FROM tab1 cor0 WHERE NOT ( col1 < NULL )
----

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + CAST ( 82 AS INTEGER ) + - - col0 * - - 83 * col2 AS col1 FROM tab1 cor0 WHERE NOT ( col1 < NULL )
----

query I rowsort
SELECT + + col1 * + col1 * col2 * - - col1 FROM tab2 cor0
----
17444254
18261320
3050973

query I rowsort
SELECT DISTINCT + - col0 + col0 AS col0 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT + + col0 DIV - 42 + col0 AS col0 FROM tab0 AS cor0
----
15
85
95

skipif mysql # not compatible
query I rowsort label-586
SELECT + + col0 / - 42 + col0 AS col0 FROM tab0 AS cor0
----
15
85
95

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

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

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

query I rowsort
SELECT ALL + - 69 FROM tab1 cor0
----
-69
-69
-69

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

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

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

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab2, tab1 cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT ( SUM( ALL + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-594
SELECT ( SUM ( ALL + col2 ) ) FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col0 FROM tab2
----
-51
-51
-51

query II rowsort
SELECT ALL col2 * - + col0 AS col2, col2 * col0 FROM tab1
----
-4896
4896
-5015
5015
-6188
6188

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

query I rowsort
SELECT col2 + + - ( col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-599
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-599
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 31 + - 61 AS col1 FROM tab0
----
-30

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

skipif mysql # not compatible
query I rowsort label-601
SELECT + COUNT ( ALL + 39 ) AS col2 FROM tab0 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 61 NOT BETWEEN + - col0 + 99 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT - COUNT( * ) + + 83 col2 FROM tab0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-605
SELECT - COUNT ( * ) + + 83 col2 FROM tab0
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-606
SELECT CAST( NULL AS DECIMAL ) / - + col1 + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-606
SELECT CAST ( NULL AS REAL ) / - + col1 + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - - ( 67 ) + col2 * col1 + + 84 AS col1 FROM tab2
----
1347
3271
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + COUNT( * ) + 27 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-608
SELECT + COUNT ( * ) + 27 FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT DISTINCT COUNT( DISTINCT + 19 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-609
SELECT DISTINCT COUNT ( DISTINCT + 19 ) col2 FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN 0 * col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT - - CAST( - 44 AS SIGNED ) FROM tab1 cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-611
SELECT - - CAST ( - 44 AS INTEGER ) FROM tab1 cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT 37 DIV 12 * - col1 AS col1 FROM tab2
----
-153
-201
-231

skipif mysql # not compatible
query I rowsort label-612
SELECT 37 / 12 * - col1 AS col1 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT ALL - col1 * - 48 FROM tab2
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT DISTINCT - col1 DIV - col1 FROM tab0 WHERE NOT + col2 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT - col1 / - col1 FROM tab0 WHERE NOT + col2 IS NULL
----
1

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

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

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

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

query I rowsort
SELECT + 22 * col2 * col1 FROM tab0 AS cor0
----
2178
4620
83754

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL COUNT( * ) * COUNT( * ) * - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-27

query II rowsort
SELECT ALL 12 AS col2, 56 FROM tab2 WHERE NOT NULL = NULL
----

query II rowsort
SELECT ALL + col2, + ( - col0 ) FROM tab1
----
59
-85
68
-91
96
-51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-625
SELECT 72 DIV COUNT( ALL - - 56 ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-625
SELECT 72 / COUNT ( ALL - - 56 ) AS col2 FROM tab0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT - - 76 DIV - 67 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-626
SELECT - - 76 / - 67 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT + - col1, col0 + - col2 AS col0 FROM tab1 AS cor0
----
-14
-45
-47
23
-5
26

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

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

query I rowsort
SELECT ALL - 77 + + col1 - - col2 AS col1 FROM tab0
----
-46
23
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-630
SELECT + col0 * + + 31 FROM tab1 WHERE - - CAST( NULL AS DECIMAL ) IS NULL
----
1581
2635
2821

skipif mysql # not compatible
query I rowsort label-630
SELECT + col0 * + + 31 FROM tab1 WHERE - - CAST ( NULL AS REAL ) IS NULL
----
1581
2635
2821

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * col1 + - 46 + + col1 IS NULL
----

query I rowsort
SELECT + - 82 + - col0 * 48 FROM tab1 AS cor0
----
-2530
-4162
-4450

query I rowsort
SELECT + 32 + - col0 AS col0 FROM tab2 AS cor0
----
-14
-32
-43

query II rowsort
SELECT - - col0 + col0 + col1 * - 87 AS col2, 23 AS col2 FROM tab1 cor0
----
-1116
23
-265
23
-3907
23

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

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

query I rowsort
SELECT ALL + col2 + - + col1 * + + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 46
----

query I rowsort
SELECT ALL + 55 * - ( col0 ) + 75 AS col1 FROM tab1
----
-2730
-4600
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL - COUNT( * ) + - COUNT( DISTINCT - 91 ) FROM tab0, tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL - COUNT ( * ) + - COUNT ( DISTINCT - 91 ) FROM tab0, tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-641
SELECT ALL 60 + - - CAST( col0 AS SIGNED ) DIV col1 FROM tab0
----
157
60
64

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL 60 + - - CAST ( col0 AS INTEGER ) / col1 FROM tab0
----
157
60
64

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT DISTINCT col0 - + col2 DIV - - 99 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT col0 - + col2 / - - 99 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT + MAX( ALL - - 54 ) + - SUM( ALL - 9 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT + MAX ( ALL - - 54 ) + - SUM ( ALL - 9 ) FROM tab2
----
81

query I rowsort
SELECT 88 - - + col2 AS col0 FROM tab2
----
111
128
146

query I rowsort
SELECT ALL 14 - + + col0 * 48 * + 54 FROM tab1
----
-132178
-220306
-235858

query I rowsort
SELECT DISTINCT + + col0 - + 8 FROM tab0 AS cor0
----
7
79
89

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

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL MIN ( - 54 ) AS col0 FROM tab2 AS cor0
----
-54

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

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

query I rowsort
SELECT + ( - + col0 ) * + + 11 + - + 82 FROM tab1
----
-1017
-1083
-643

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-651
SELECT col0, col0 * + col2 DIV col2 FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-651
SELECT col0, col0 * + col2 / col2 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT - 79 * + - col2 * + ( - - col0 ) AS col1 FROM tab2
----
202240
343650
83582

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT DISTINCT + 31 DIV - 95 * + 96 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT + 31 / - 95 * + 96 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + + col0 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT - col1 + + - col2 + - col0 * 28 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-658
SELECT - col1 + + - col2 + - col0 * 28 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( col0 ) * + col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT ALL 18 * + col2 AS col2 FROM tab1 cor0
----
1062
1224
1728

query I rowsort
SELECT DISTINCT - + 75 * + + col2 AS col1 FROM tab2 cor0
----
-1725
-3000
-4350

query I rowsort
SELECT ALL + 11 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
2156
24299
275

query II rowsort
SELECT ALL - 18, ( col0 ) + + 83 AS col2 FROM tab0 AS cor0
----
-18
170
-18
180
-18
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-664
SELECT 21 DIV + CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-664
SELECT 21 / + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + - 4 * - ( - col1 ) * + - col2 * - col0 col2 FROM tab0
----
-228387
-38379
-73047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-666
SELECT ALL + CAST( + 3 AS SIGNED ) FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL + CAST ( + 3 AS INTEGER ) FROM tab1
----
3
3
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + - MAX( DISTINCT - col1 ) * COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + - MAX ( DISTINCT - col1 ) * COUNT ( * ) FROM tab2 AS cor0
----
153

query I rowsort
SELECT + 60 + + ( col1 ) - col0 AS col2 FROM tab2 AS cor0
----
52
65
73

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

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

query II rowsort
SELECT + col2 / col2 / 50 * + - 48 AS col0, col2 AS col1 FROM tab2 cor0 WHERE ( NULL ) >= - 88
----

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

query I rowsort
SELECT + 12 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT col0 + 57 + - 58 * + col0 AS col2 FROM tab1
----
-2850
-4788
-5130

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT - SUM( ALL col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-676
SELECT - SUM ( ALL col2 ) AS col2 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT - ( - - 72 ) FROM tab0 AS cor0
----
-72

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

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

query I rowsort
SELECT DISTINCT - 71 * + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
-3575
-4682
-5403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - - ( + - 56 ) col2 FROM tab1 AS cor0
----
-115
-124
-152

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-682
SELECT - - COUNT( * ) + + 39 + CAST( - 35 AS SIGNED ) - + 33 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-682
SELECT - - COUNT ( * ) + + 39 + CAST ( - 35 AS INTEGER ) - + 33 FROM tab1 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT COUNT( * ) * - 30 + - + COUNT( * ) + + 62 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-683
SELECT COUNT ( * ) * - 30 + - + COUNT ( * ) + + 62 FROM tab0 AS cor0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT DISTINCT - 71 DIV 48 + + + col2 + + col0 * + col1 * - - col0 + + 13 FROM tab0 AS cor0
----
158971
18284
9520

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT - 71 / 48 + + + col2 + + col0 * + col1 * - - col0 + + 13 FROM tab0 AS cor0
----
158971
18284
9520

query I rowsort
SELECT DISTINCT + col2 * - col2 * + 91 AS col1 FROM tab2
----
-145600
-306124
-48139

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT + COUNT( ALL - - col1 ) + - MAX( - + col0 ) + + - 18 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT + COUNT ( ALL - - col1 ) + - MAX ( - + col0 ) + + - 18 FROM tab1
----
36

query I rowsort
SELECT DISTINCT col2 - - - col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 22 * col1 + + col2 AS col1 FROM tab0
----
121
1829
472

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-689
SELECT DISTINCT * FROM tab2 WHERE + + col1 NOT BETWEEN + 28 * + col0 * + - 14 + + + 82 AND CAST( NULL AS SIGNED ) + + ( col2 )
----

skipif mysql # not compatible
query III rowsort label-689
SELECT DISTINCT * FROM tab2 WHERE + + col1 NOT BETWEEN + 28 * + col0 * + - 14 + + + 82 AND CAST ( NULL AS INTEGER ) + + ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT ALL 72 DIV - + 50 + - 20 FROM tab0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL 72 / - + 50 + - 20 FROM tab0
----
-21
-21
-21

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

query I rowsort
SELECT ALL - - 47 AS col2 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT COUNT( * ) * + 73 AS col1 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-693
SELECT COUNT ( * ) * + 73 AS col1 FROM tab2 AS cor0
----
219

query I rowsort
SELECT ALL - 26 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT COUNT( * ) * - + 4 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-695
SELECT COUNT ( * ) * - + 4 FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT + - 33 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT + - 33 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-11

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

query I rowsort
SELECT DISTINCT - ( - ( - col1 ) ) * + 32 AS col2 FROM tab1 AS cor0
----
-1504
-160
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT + SUM( DISTINCT + 70 ) AS col0 FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-699
SELECT + SUM ( DISTINCT + 70 ) AS col0 FROM tab1 cor0
----
70

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 - - col0 < + 72 * + - 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-701
SELECT col0 + CAST( + - ( + 5 ) AS SIGNED ) FROM tab1 AS cor0
----
46
80
86

skipif mysql # not compatible
query I rowsort label-701
SELECT col0 + CAST ( + - ( + 5 ) AS INTEGER ) FROM tab1 AS cor0
----
46
80
86

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

query I rowsort
SELECT DISTINCT - ( - 50 ) AS col0 FROM tab1
----
50

query I rowsort
SELECT DISTINCT col2 + - - 65 - - - col0 + col0 * - 3 * - col1 AS col1 FROM tab1 WHERE NOT - 23 + ( 12 ) < col0
----

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

skipif mysql # not compatible
query I rowsort label-705
SELECT COUNT ( * ) / + MIN ( - col1 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col0 + - + 38 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
13
47
53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT col1 DIV + + col1 + + col2 AS col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-708
SELECT col1 / + + col1 + + col2 AS col0 FROM tab2
----
24
41
59

query I rowsort
SELECT 7 + + ( - 58 ) FROM tab2
----
-51
-51
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 97 < NULL
----

query I rowsort
SELECT DISTINCT + col2 - col0 * - col2 + 61 * - col2 FROM tab2 AS cor0
----
-322
160
870

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 + 91 + + - col0 * - - 9 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 / - + 73 IN ( - 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT 14 DIV - 19 * - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-716
SELECT 14 / - 19 * - col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT COUNT( * ) - + + 92 col0 FROM tab1
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-717
SELECT COUNT ( * ) - + + 92 col0 FROM tab1
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col1 ) - + col1 * - 83 * + + col1 + col2 col2 FROM tab0
----
183
36634
544691

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL + MAX( DISTINCT col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab1
----
96

query II rowsort
SELECT col2 AS col2, col0 * + col1 FROM tab0
----
10
1827
47
1215
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 WHERE 40 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE 40 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - - 61 * + - col2 + - + col2 * - 88 AS col0 FROM tab1 cor0
----
1593
1836
2592

query I rowsort
SELECT ALL - 20 * - 47 FROM tab1 AS cor0
----
940
940
940

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 * - + ( - col0 ) FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL + COUNT( * ) * 61 * COUNT( * ) AS col2 FROM tab2
----
549

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL + COUNT ( * ) * 61 * COUNT ( * ) AS col2 FROM tab2
----
549

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

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> col0
----

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

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col1 - + col1 + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-6786
-8010
-9410

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 82 * + col0 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-735
SELECT CAST( + ( + col2 ) AS SIGNED ) * 18 AS col2 FROM tab1 AS cor0
----
1062
1224
1728

skipif mysql # not compatible
query I rowsort label-735
SELECT CAST ( + ( + col2 ) AS INTEGER ) * 18 AS col2 FROM tab1 AS cor0
----
1062
1224
1728

query I rowsort
SELECT DISTINCT + col0 * + - col1 + col1 + - 60 FROM tab0
----
-1194
-156
-1866

query I rowsort
SELECT DISTINCT col1 + - + 27 FROM tab2
----
24
40
50

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT + MAX( + + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-738
SELECT + MAX ( + + col0 ) AS col2 FROM tab0
----
97

query I rowsort
SELECT ALL - 26 + col2 FROM tab1
----
33
42
70

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT DISTINCT - col2 DIV + 24 FROM tab1 cor0
----
-2
-4

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - col2 / + 24 FROM tab1 cor0
----
-2
-4

query I rowsort
SELECT ALL - col0 + + + 4 AS col1 FROM tab2 AS cor0
----
-42
-60
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-742
SELECT 76 - - - CAST( NULL AS SIGNED ) + + ( + + 52 ) * + ( - + MAX( + - col1 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT 76 - - - CAST ( NULL AS INTEGER ) + + ( + + 52 ) * + ( - + MAX ( + - col1 ) ) FROM tab2
----
NULL

query I rowsort
SELECT 4 - 53 FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT DISTINCT + SUM( col0 ) AS col0 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT + SUM ( col0 ) AS col0 FROM tab1 cor0
----
227

query I rowsort
SELECT + 42 + - col2 FROM tab1 AS cor0
----
-17
-26
-54

query I rowsort
SELECT - ( - col2 ) FROM tab1 AS cor0 WHERE - 57 - col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT 12 * + 80 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
963

skipif mysql # not compatible
query I rowsort label-747
SELECT 12 * + 80 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
963

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT ALL + col2 * + + 92 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + col2 * + + 92 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-750
SELECT DISTINCT 50 * col0 DIV - 60 col2, col1 AS col2 FROM tab1
----
-42
14
-70
5
-75
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-750
SELECT DISTINCT 50 * col0 / - 60 col2, col1 AS col2 FROM tab1
----
-42
14
-70
5
-75
47

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

onlyif mysql # DIV for integer division: 
query II rowsort label-752
SELECT - col2 AS col0, + 98 DIV - + 37 FROM tab0 AS cor0
----
-10
-2
-47
-2
-99
-2

skipif mysql # not compatible
query II rowsort label-752
SELECT - col2 AS col0, + 98 / - + 37 FROM tab0 AS cor0
----
-10
-2
-47
-2
-99
-2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT ALL + col1 + col1 * col2 DIV + col2 col1 FROM tab1 AS cor0 WHERE col1 BETWEEN + ( + - ( + col1 ) ) AND ( + + col0 )
----
10
28
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-754
SELECT ALL + col1 + col1 * col2 / + col2 col1 FROM tab1 AS cor0 WHERE col1 BETWEEN + ( + - ( + col1 ) ) AND ( + + col0 )
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT DISTINCT + 9 + - CAST( NULL AS SIGNED ) * - 53 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT + 9 + - CAST ( NULL AS INTEGER ) * - 53 FROM tab1
----
NULL

query I rowsort
SELECT ALL 90 * - col1 * 60 FROM tab0 WHERE + col0 + + col1 / - col2 IS NOT NULL
----
-113400
-437400
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT ALL ( - COUNT( - col2 ) ) * - - MIN( - + 53 ) + + COUNT( * ) AS col0 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL ( - COUNT ( - col2 ) ) * - - MIN ( - + 53 ) + + COUNT ( * ) AS col0 FROM tab1
----
162

query I rowsort
SELECT ALL col2 / + - 44 * col0 + + ( - - 59 ) + - col2 + + - col0 - + 42 * 79 + 92 FROM tab2 WHERE NOT - col1 / - 98 BETWEEN NULL AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col2 col1 FROM tab2
----
17
23
24

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

query I rowsort
SELECT 88 * - + col0 FROM tab0 AS cor0
----
-1320
-7656
-8536

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

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

query I rowsort
SELECT 99 + 59 FROM tab2
----
158
158
158

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

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

query I rowsort
SELECT ALL - + 64 * + - 14 - - - col0 AS col2 FROM tab1 AS cor0
----
805
811
845

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-768
SELECT DISTINCT 41 / + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT 41 / + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT - 59 * COUNT( * ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-769
SELECT - 59 * COUNT ( * ) AS col0 FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + SUM( - col1 ) * - COUNT( * ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-770
SELECT + SUM ( - col1 ) * - COUNT ( * ) FROM tab0
----
309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, 22 col1 FROM tab2
----
-23
22
-40
22
-58
22

query II rowsort
SELECT DISTINCT + 19, - col0 + col1 AS col2 FROM tab0
----
19
-66
19
-96
19
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + + col2 * - ( col0 ) col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL col1 * + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT + 27 * + COUNT( * ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-775
SELECT + 27 * + COUNT ( * ) AS col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL - ( MAX( + col2 ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - ( MAX ( + col2 ) ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / + - 74 BETWEEN + + col2 * + 32 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT MAX( - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-778
SELECT MAX ( - col0 ) FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-779
SELECT ALL - CAST( NULL AS SIGNED ), col2 FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-779
SELECT ALL - CAST ( NULL AS INTEGER ), col2 FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 42 col1 FROM tab0 AS cor0
----
123
43
63

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT ALL + col1 DIV - + col0 + - + 53 FROM tab2
----
-53
-54
-54

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL + col1 / - + col0 + - + 53 FROM tab2
----
-53
-54
-54

query I rowsort
SELECT - 54 AS col1 FROM tab1 WHERE - 16 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 47 + - col0 >= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + + col0 col0 FROM tab0 AS cor0
----
-33
39
49

query I rowsort
SELECT + + col1 * + col0 + + col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT 62 * col2 FROM tab2 cor0
----
1426
2480
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL + COUNT( 4 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + COUNT ( 4 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL 89 * col0 AS col0 FROM tab2
----
4094
5696
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT 27 + COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-793
SELECT 27 + COUNT ( * ) FROM tab1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-794
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab1 WHERE col0 + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 WHERE col0 + col1 >= NULL
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE col2 * + 24 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-796
SELECT + 35 DIV + COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-796
SELECT + 35 / + COUNT ( * ) FROM tab2
----
11

query I rowsort
SELECT 73 FROM tab0 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT ALL - 79 DIV col1 FROM tab0
----
-3
-79
0

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL - 79 / col1 FROM tab0
----
-3
-79
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT - MAX( DISTINCT col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT - MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-801
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( 17 ) NOT BETWEEN NULL AND ( + 16 )
----

skipif mysql # not compatible
query I rowsort label-801
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( 17 ) NOT BETWEEN NULL AND ( + 16 )
----

query I rowsort
SELECT - col0 / - col2 AS col0 FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT + COUNT( * ) FROM tab1 WHERE NOT - col1 NOT IN ( 53 * 46 )
----
0

skipif mysql # not compatible
query I rowsort label-803
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - col1 NOT IN ( 53 * 46 )
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND - 51 * 62
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 9 / + 15 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT ( - col0 * col0 ) <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL + SUM( DISTINCT + 13 ) AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL + SUM ( DISTINCT + 13 ) AS col1 FROM tab1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col0 FROM tab0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT MAX( col0 ) + + 62 FROM tab2
----
137

skipif mysql # not compatible
query I rowsort label-809
SELECT MAX ( col0 ) + + 62 FROM tab2
----
137

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 FROM tab0 WHERE NOT + col0 + 22 NOT IN ( + col0 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-812
SELECT + CAST ( + 55 AS INTEGER ) AS col2 FROM tab0
----
55
55
55

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 / + 8 ) > ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT - SUM( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT 6 * - col2 - col1 DIV + 1 AS col2 FROM tab1
----
-359
-455
-590

skipif mysql # not compatible
query I rowsort label-815
SELECT 6 * - col2 - col1 / + 1 AS col2 FROM tab1
----
-359
-455
-590

query I rowsort
SELECT DISTINCT - 95 + - col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - 9
----

query I rowsort
SELECT + 99 FROM tab2 WHERE col0 <> col2 + 4 * + col1
----
99
99
99

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-821
SELECT ALL + COUNT ( * ) * COUNT ( * ) col2 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 94 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT ALL col1 DIV 37 col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-823
SELECT ALL col1 / 37 col0 FROM tab1 AS cor0
----
0
0
1

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

query I rowsort
SELECT 39 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 + col0 * ( - col0 * col0 ) = 76 * - 72
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT AVG ( 65 ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT AVG ( 65 ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL + COUNT ( * ) + - CAST ( COUNT ( * ) + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 9 + - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 70 - + 45 FROM ( tab0 cor0 CROSS JOIN tab0 )
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT + 9 + - col2 * col2 FROM tab2
----
-1591
-3355
-520

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

query I rowsort
SELECT + col1 + 86 AS col0 FROM tab1 AS cor0
----
100
133
91

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

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

query I rowsort
SELECT - 78 + col0 FROM tab1 AS cor0
----
-27
13
7

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 2 / 68 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT ALL + col2 + + ( - col2 ) DIV + col1 FROM tab0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + col2 + + ( - col2 ) / + col1 FROM tab0
----
0
10
47

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE col0 NOT IN ( + 12 + 24 )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-842
SELECT ALL col2 DIV + ( + 84 ) + + CAST( - col2 + + 23 AS SIGNED ) AS col2 FROM tab2
----
-17
-35
0

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL col2 / + ( + 84 ) + + CAST ( - col2 + + 23 AS INTEGER ) AS col2 FROM tab2
----
-17
-35
0

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( - 6 ) >= - 45
----
-14
-47
-5

query I rowsort
SELECT ALL col2 * + col2 + 43 * 20 FROM tab2
----
1389
2460
4224

query I rowsort
SELECT 92 FROM tab0 WHERE ( + ( - col0 ) ) IS NOT NULL
----
92
92
92

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 52 - - col2 * + col1 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT ALL + col2 DIV + 80 - 39 AS col0 FROM tab0
----
-38
-39
-39

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL + col2 / + 80 - 39 AS col0 FROM tab0
----
-38
-39
-39

query I rowsort
SELECT DISTINCT col0 * 47 AS col1 FROM tab0 WHERE ( col1 ) > 99
----

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT + 42 - - col2 DIV 40 AS col0 FROM tab0
----
42
43
44

skipif mysql # not compatible
query I rowsort label-849
SELECT + 42 - - col2 / 40 AS col0 FROM tab0
----
42
43
44

query I rowsort
SELECT DISTINCT ( 7 ) AS col2 FROM tab2
----
7

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col2 IN ( + 53 )
----

query I rowsort
SELECT col1 * 65 - 49 FROM tab2
----
3266
4306
4956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 + - 49 col1 FROM tab0 cor0
----
-51
-81
28

query I rowsort
SELECT + 10 + - 71 AS col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - 10 + + + 46 FROM tab1
----
36

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 17 BETWEEN NULL AND - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT + MIN( - 60 ) - - 21 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 87 - - 77 > 13
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-858
SELECT DISTINCT + MIN ( - 60 ) - - 21 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 87 - - 77 > 13
----
NULL

query I rowsort
SELECT ALL + 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 3 * 21 + - col1 * col2 NOT BETWEEN - col2 AND + col2 * - col1
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT - MIN( ALL + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT COUNT( + 19 ) * ( - 35 ) + MAX( - 15 - 58 ) FROM tab1
----
-178

skipif mysql # not compatible
query I rowsort label-867
SELECT COUNT ( + 19 ) * ( - 35 ) + MAX ( - 15 - 58 ) FROM tab1
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT ALL + col2 DIV + col1 * - 73 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + col2 / + col1 * - 73 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-869
SELECT DISTINCT 47 * + - 80 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT 47 * + - 80 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 27 * col1 * + + col1 * 44 AS col1 FROM tab0
----
1188
523908
7794468

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + SUM( 66 ) AS col2 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-872
SELECT + SUM ( 66 ) AS col2 FROM tab2
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-873
SELECT 34 * CAST( NULL AS SIGNED ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-873
SELECT 34 * CAST ( NULL AS INTEGER ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT ALL SUM( 24 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL SUM ( 24 ) FROM tab0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 25 ) col0 FROM tab0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT COUNT( * ) * - 80 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( * ) * - 80 FROM tab2
----
-240

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

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + CAST ( + ( 46 ) AS INTEGER ) FROM tab0
----
46
46
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-878
SELECT 75 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT 75 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-879
SELECT COUNT( * ) FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) > ( col1 / + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-879
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) > ( col1 / + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT COUNT( + - 77 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-880
SELECT COUNT ( + - 77 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 21 * col2 AS col1 FROM tab2
----
1218
483
840

query I rowsort
SELECT DISTINCT 64 FROM tab1 AS cor0 WHERE NOT - col2 * + 79 * - 50 * + col0 < - 3
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT DISTINCT - COUNT( * ) - - ( + 43 ) FROM tab2 AS cor0 WHERE ( 23 * - col0 ) IS NULL
----
43

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT - COUNT ( * ) - - ( + 43 ) FROM tab2 AS cor0 WHERE ( 23 * - col0 ) IS NULL
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT DISTINCT 5 + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT 5 + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
11

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 38 + + col0 ) IN ( 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL ( MIN( ALL - 78 ) ) * - SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
9438

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL ( MIN ( ALL - 78 ) ) * - SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
9438

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

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

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

query I rowsort
SELECT - + 81 * - 33 AS col1 FROM tab1 AS cor0
----
2673
2673
2673

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 > NULL
----

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

query I rowsort
SELECT + 51 - 85 * - + col2 FROM tab1 AS cor0
----
5066
5831
8211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-894
SELECT - 69 * + - 13 - col2 + CAST( - + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
769
797
866

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-894
SELECT - 69 * + - 13 - col2 + CAST ( - + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
769
797
866

query I rowsort
SELECT ( - col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT ALL COUNT( * ) AS col1, - 12 AS col1 FROM tab2
----
3
-12

skipif mysql # not compatible
query II rowsort label-896
SELECT ALL COUNT ( * ) AS col1, - 12 AS col1 FROM tab2
----
3
-12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT col0 DIV 24 + + - col2 + + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-898
SELECT col0 / 24 + + - col2 + + col2 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT + col0 - - 59 FROM tab2
----
105
123
134

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

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 28 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT - 72 * 92 DIV 33 AS col2 FROM tab1
----
-200
-200
-200

skipif mysql # not compatible
query I rowsort label-902
SELECT - 72 * 92 / 33 AS col2 FROM tab1
----
-200
-200
-200

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-905
SELECT DISTINCT * FROM tab2 WHERE - col0 IN ( CAST( - 84 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-905
SELECT DISTINCT * FROM tab2 WHERE - col0 IN ( CAST ( - 84 AS INTEGER ) )
----

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

skipif mysql # not compatible
query I rowsort label-906
SELECT + ( - col2 ) / + col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL - MIN( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL - MIN ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 + col2 BETWEEN ( - 46 ) AND col0
----
85
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-909
SELECT DISTINCT + + 85 AS col2, ( - + COUNT( + col1 ) ) FROM tab1 AS cor0 WHERE ( + 43 ) * col1 IS NULL
----
85
0

skipif mysql # not compatible
query II rowsort label-909
SELECT DISTINCT + + 85 AS col2, ( - + COUNT ( + col1 ) ) FROM tab1 AS cor0 WHERE ( + 43 ) * col1 IS NULL
----
85
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 > NULL
----

query I rowsort
SELECT + 97 * col2 FROM tab2
----
2231
3880
5626

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * - - 63 col1 FROM tab2
----
147798
310464
316575

query I rowsort
SELECT - 64 * + 44 FROM tab0
----
-2816
-2816
-2816

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT DISTINCT - col0 DIV col0 - 18 + + col0 FROM tab2 AS cor0
----
27
45
56

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT - col0 / col0 - 18 + + col0 FROM tab2 AS cor0
----
27
45
56

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 18 > NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) + + col2 AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT DISTINCT + COUNT( * ) * + 95 + - + MAX( - + 43 ) FROM tab0
----
328

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT + COUNT ( * ) * + 95 + - + MAX ( - + 43 ) FROM tab0
----
328

query I rowsort
SELECT - 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT ALL + - 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query III rowsort
SELECT * FROM tab1 WHERE 53 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + col1 + - 63 col0 FROM tab2 AS cor0
----
-45
-55
-71

query I rowsort
SELECT col2 * - col1 + - ( - - col0 ) + + col1 FROM tab1 AS cor0
----
-1381
-3240
-375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-925
SELECT COUNT( * ) - - COUNT( ALL - CAST( NULL AS DECIMAL ) ) + 26 AS col0, - 47 * - 11 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
26
517

skipif mysql # not compatible
query II rowsort label-925
SELECT COUNT ( * ) - - COUNT ( ALL - CAST ( NULL AS REAL ) ) + 26 AS col0, - 47 * - 11 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
26
517

query I rowsort
SELECT + ( - + ( - - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-927
SELECT DISTINCT - COUNT( * ), 87 AS col1 FROM tab0
----
-3
87

skipif mysql # not compatible
query II rowsort label-927
SELECT DISTINCT - COUNT ( * ), 87 AS col1 FROM tab0
----
-3
87

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

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

query I rowsort
SELECT ALL + ( - - col0 ) * + ( + col2 ) + + 53 FROM tab2
----
1111
2613
4403

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT 70 - MAX( ALL - - col1 ) AS col2 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT 70 - MAX ( ALL - - col1 ) AS col2 FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL - SUM( DISTINCT + 0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL - SUM ( DISTINCT + 0 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - ( col0 ) * + col1 * - 90 AS col2 FROM tab2 cor0
----
-211140
-443520
-452250

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 87 * 82 IS NULL
----
-14
-47
-5

query II rowsort
SELECT + 89 * - col2 AS col0, 86 AS col1 FROM tab0
----
-4183
86
-8811
86
-890
86

query I rowsort
SELECT - 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-936
SELECT DISTINCT + ( - - 75 ) AS col1, CAST( + - 75 AS SIGNED ) DIV + 62 + - col0 FROM tab0
----
75
-16
75
-88
75
-98

skipif mysql # not compatible
query II rowsort label-936
SELECT DISTINCT + ( - - 75 ) AS col1, CAST ( + - 75 AS INTEGER ) / + 62 + - col0 FROM tab0
----
75
-16
75
-88
75
-98

query I rowsort
SELECT - - 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-939
SELECT ALL 82 AS col1, COUNT( * ) FROM tab0 AS cor0
----
82
3

skipif mysql # not compatible
query II rowsort label-939
SELECT ALL 82 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
82
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 84 ) * - 89 + - col2 < NULL
----

query II rowsort
SELECT DISTINCT + col0, col1 - + - ( - 21 ) FROM tab1 AS cor0
----
51
-7
85
-16
91
26

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-943
SELECT DISTINCT + col1 AS col1, + 79 + - col0 DIV - 77 * - - col1 + - col1 FROM tab2 cor0
----
51
28
67
12
77
2

skipif mysql # not compatible
query II rowsort label-943
SELECT DISTINCT + col1 AS col1, + 79 + - col0 / - 77 * - - col1 + - col1 FROM tab2 cor0
----
51
28
67
12
77
2

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

query I rowsort
SELECT ALL + col0 + - col1 * + 76 AS col0 FROM tab0
----
-1509
-6141
21

query II rowsort
SELECT + 78 * + col0 AS col2, - col2 + + - col1 FROM tab2 WHERE NOT col1 IS NULL
----
3588
-74
4992
-117
5850
-125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-947
SELECT ALL CAST( NULL AS SIGNED ) * - - col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-947
SELECT ALL CAST ( NULL AS INTEGER ) * - - col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT ALL - col2 * - 54 AS col1 FROM tab1
----
3186
3672
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL ( + - MAX( - col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL ( + - MAX ( - col2 ) ) FROM tab0
----
10

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

onlyif mysql # aggregate syntax: 
query II rowsort label-951
SELECT DISTINCT - COUNT( + + 24 ), 68 * - MAX( ALL - 24 ) AS col0 FROM tab2 AS cor0
----
-3
1632

skipif mysql # not compatible
query II rowsort label-951
SELECT DISTINCT - COUNT ( + + 24 ), 68 * - MAX ( ALL - 24 ) AS col0 FROM tab2 AS cor0
----
-3
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-952
SELECT ALL - col2 + - CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL - col2 + - CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-98
11
34

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

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

query I rowsort
SELECT DISTINCT - col1 + - + col0 * - - 77 AS col0 FROM tab2
----
-3593
-5005
-5842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col2 FROM tab2
----
128
150
92

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL = NULL
----

query II rowsort
SELECT + col1, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

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

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

query I rowsort
SELECT DISTINCT ( + - 58 ) * col2 + + + col0 FROM tab0
----
-2711
-493
-5645

query I rowsort
SELECT DISTINCT + 66 - - col1 FROM tab2 AS cor0
----
117
133
143

query II rowsort
SELECT ALL + + col0 * + col0 + - col2 AS col2, col1 FROM tab0 AS cor0
----
178
81
7559
21
9310
1

query II rowsort
SELECT DISTINCT + - col0 AS col2, ( + 4 ) AS col0 FROM tab0 AS cor0
----
-15
4
-87
4
-97
4

query I rowsort
SELECT DISTINCT + + ( col2 ) * - 97 FROM tab2 AS cor0
----
-2231
-3880
-5626

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( + col0 ) * col2 + + 49 + - 21 * - 81 > NULL
----

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

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

query II rowsort
SELECT ALL + + 20, col2 AS col0 FROM tab2 AS cor0
----
20
23
20
40
20
58

query I rowsort
SELECT + col1 + ( col0 ) * - - 27 FROM tab1 AS cor0
----
1391
2300
2504

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 96 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-969
SELECT DISTINCT + MIN( ALL - - ( - 11 ) ) * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT + MIN ( ALL - - ( - 11 ) ) * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT + col2 DIV + - col0 + - ( - 41 ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
40
41
41

skipif mysql # not compatible
query I rowsort label-971
SELECT + col2 / + - col0 + - ( - 41 ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
40
41
41

query II rowsort
SELECT DISTINCT + ( - 6 ) AS col0, 93 FROM tab0 AS cor0
----
-6
93

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT MIN( + 12 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT MIN ( + 12 ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-974
SELECT - + col1 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-974
SELECT - + col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

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

query I rowsort
SELECT DISTINCT + 51 * - - 52 FROM tab2 AS cor0 WHERE NOT - col0 + + + col0 / + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 17 * col1 NOT BETWEEN - - col2 AND - + col1 + col0 + + + col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-978
SELECT + - 95 + - - 97 + - + COUNT( * ) + - + 51 * 83 AS col2, + 89 col1 FROM tab0 cor0
----
-4234
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-978
SELECT + - 95 + - - 97 + - + COUNT ( * ) + - + 51 * 83 AS col2, + 89 col1 FROM tab0 cor0
----
-4234
89

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col1 FROM tab2
----
141
142
97

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

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT + COUNT ( ALL + + 67 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT ALL - CAST( - + ( - - col0 ) AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL - CAST ( - + ( - - col0 ) AS INTEGER ) AS col1 FROM tab0
----
15
87
97

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col1 / + col1 FROM tab1 AS cor0 WHERE NOT 60 + ( + col1 ) + - ( + 44 ) / - - 86 * col0 >= - col1 - + col0
----

query I rowsort
SELECT DISTINCT + col2 * + 84 + + col1 * + 89 + - 91 + + col0 AS col2 FROM tab0 AS cor0
----
11081
2705
8411

query I rowsort
SELECT DISTINCT - col1 * + 12 * + + ( + 55 ) AS col2 FROM tab2 AS cor0
----
-33660
-44220
-50820

query II rowsort
SELECT ALL col0 - + col1 AS col2, col0 + col1 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
-66
6657
66
549
96
99

query I rowsort
SELECT ALL 95 * 17 FROM tab1 AS cor0
----
1615
1615
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL - MAX( - col2 ) FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - MAX ( - col2 ) FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
23

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

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - CAST ( ( - + 30 ) AS INTEGER ) FROM tab0 AS cor0
----
-270

onlyif mysql # DIV for integer division: 
query II rowsort label-991
SELECT ALL + ( - 20 ) AS col1, 68 * col0 DIV - col2 AS col0 FROM tab1 cor0
----
-20
-36
-20
-91
-20
-97

skipif mysql # not compatible
query II rowsort label-991
SELECT ALL + ( - 20 ) AS col1, 68 * col0 / - col2 AS col0 FROM tab1 cor0
----
-20
-36
-20
-91
-20
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( CAST( NULL AS SIGNED ) ) - + - 93 AND 37 + - 55 / - col0 - - col2
----

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( CAST ( NULL AS INTEGER ) ) - + - 93 AND 37 + - 55 / - col0 - - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-994
SELECT ALL 51 + + 69 * + 77 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL 51 + + 69 * + 77 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT + ( + MIN( DISTINCT 25 ) ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-995
SELECT + ( + MIN ( DISTINCT 25 ) ) AS col0 FROM tab0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT DISTINCT - col0 DIV 85 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - col0 / 85 FROM tab1
----
-1
0

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

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

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

query II rowsort
SELECT - col2, - col1 * col1 AS col1 FROM tab1
----
-59
-25
-68
-2209
-96
-196

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 72 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 11 * + + col2 AS col1 FROM tab0 AS cor0
----
-1089
-110
-517

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT COUNT ( * ) * - - CAST ( + 5 AS INTEGER ) FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT ALL - col1 DIV - - col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - col1 / - - col1 FROM tab0 cor0
----
-1
-1
-1

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

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

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

query I rowsort
SELECT + ( - 69 ) FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT - 41 + - col1 AS col0 FROM tab2
----
-108
-118
-92

query I rowsort
SELECT - col0 * col0 + + col0 - - + col2 * col0 FROM tab1
----
-2002
-2125
2346

query I rowsort
SELECT DISTINCT + col0 * - + ( + col0 ) FROM tab1
----
-2601
-7225
-8281

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1013
SELECT - CAST( 95 AS SIGNED ) DIV - - COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-1013
SELECT - CAST ( 95 AS INTEGER ) / - - COUNT ( * ) FROM tab2
----
-31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT - col0 DIV - col1 - - col0 FROM tab0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-1015
SELECT - col0 / - col1 - - col0 FROM tab0
----
15
194
91

query I rowsort
SELECT - 10 * col1 * + - col1 - + col0 * 94 FROM tab0
----
-3768
-9108
64200

query I rowsort
SELECT - + 37 - - col2 FROM tab0 cor0
----
-27
10
62

query I rowsort
SELECT ALL + - ( - 6 ) AS col2 FROM tab2 AS cor0
----
6
6
6

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

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

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

skipif mysql # not compatible
query II rowsort label-1020
SELECT + 81, - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
81
NULL

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

query I rowsort
SELECT DISTINCT + col0 * col2 + + - col2 - - 90 + - - 39 FROM tab2 AS cor0
----
1164
2649
4421

onlyif mysql # aggregate syntax: 
query II rowsort label-1023
SELECT + COUNT( * ) col2, MAX( + col2 ) col1 FROM tab1 cor0
----
3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1023
SELECT + COUNT ( * ) col2, MAX ( + col2 ) col1 FROM tab1 cor0
----
3
96

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

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT + col2 AS col0, col0 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ALL - 59 AS col1 FROM tab0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col0 FROM tab1
----
62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 43 / + col2 - - + 8 + - 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = - 88 * - - col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT SUM( + 10 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1029
SELECT SUM ( + 10 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT - ( + 91 ) + - + 20 * + + 95 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-1991
-1991
-1991

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - 47 FROM tab2
----
-1081
-1880
-2726

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

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

query I rowsort
SELECT + + 9 + - 14 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT 25 + + col0 AS col1 FROM tab0 AS cor0
----
112
122
40

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

query I rowsort
SELECT - 52 + + col2 FROM tab0 AS cor0
----
-42
-5
47

query I rowsort
SELECT DISTINCT 45 + + + col1 + + col1 FROM tab2
----
147
179
199

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT + 89 + + COUNT( ALL + col1 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + 89 + + COUNT ( ALL + col1 ) FROM tab1
----
92

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT + MAX( ALL - col2 ) FROM tab0 AS cor0 WHERE - ( - col0 ) IN ( + - col0, col0, 94 * + 33, - + col1, + col2 )
----
-10

skipif mysql # not compatible
query I rowsort label-1042
SELECT + MAX ( ALL - col2 ) FROM tab0 AS cor0 WHERE - ( - col0 ) IN ( + - col0, col0, 94 * + 33, - + col1, + col2 )
----
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 85 NOT IN ( + - col2 * + col1 * - col2, + 60 * + 59, 30 * + col2, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + + col0 + + col1 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) + ( + 31 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) + ( + 31 ) FROM tab1
----
40

query I rowsort
SELECT - 52 * - + col0 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1049
SELECT DISTINCT col2 AS col1, col2 - col0 + + col2 - + col1 DIV col1 FROM tab0 AS cor0
----
10
-68
47
78
99
100

skipif mysql # not compatible
query II rowsort label-1049
SELECT DISTINCT col2 AS col1, col2 - col0 + + col2 - + col1 / col1 FROM tab0 AS cor0
----
10
-68
47
78
99
100

query I rowsort
SELECT - col1 * col1 + 99 + col2 FROM tab0 AS cor0
----
-332
-6415
197

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1052
SELECT ALL 20 AS col1, + ( CAST( + 65 AS SIGNED ) ) AS col0 FROM tab0
----
20
65
20
65
20
65

skipif mysql # not compatible
query II rowsort label-1052
SELECT ALL 20 AS col1, + ( CAST ( + 65 AS INTEGER ) ) AS col0 FROM tab0
----
20
65
20
65
20
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL + MAX( DISTINCT ( - col0 ) ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1053
SELECT ALL + MAX ( DISTINCT ( - col0 ) ) col1 FROM tab0
----
-15

query I rowsort
SELECT - 96 * - col0 FROM tab1
----
4896
8160
8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1055
SELECT + SUM( + col1 ) * - CAST( NULL AS SIGNED ) AS col2, + 83 * 66 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL
5478

skipif mysql # not compatible
query II rowsort label-1055
SELECT + SUM ( + col1 ) * - CAST ( NULL AS INTEGER ) AS col2, + 83 * 66 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL
5478

query I rowsort
SELECT DISTINCT + 89 FROM tab0 AS cor0 WHERE NOT 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL SUM( ALL + + col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL SUM ( ALL + + col0 ) AS col2 FROM tab1 cor0
----
227

query I rowsort
SELECT + - 47 + - col2 * 44 AS col1 FROM tab1 AS cor0
----
-2643
-3039
-4271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT - col1 * + + ( - CAST( NULL AS SIGNED ) ) / - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT - col1 * + + ( - CAST ( NULL AS INTEGER ) ) / - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1060
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

query I rowsort
SELECT DISTINCT + 57 * - - 99 AS col0 FROM tab1 cor0
----
5643

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

query I rowsort
SELECT - ( - 18 ) AS col2 FROM tab0 AS cor0
----
18
18
18

query II rowsort
SELECT ALL + col2 * - 38 + + ( ( + 83 ) ) AS col1, + col1 * - 9 FROM tab1 AS cor0
----
-2159
-45
-2501
-423
-3565
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT - 56 DIV + col0 + + ( + 53 ) col1 FROM tab1 AS cor0
----
52
53
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1067
SELECT - 56 / + col0 + + ( + 53 ) col1 FROM tab1 AS cor0
----
52
53
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT - + COUNT( * ) + 31, SUM( ALL + + 8 ) + + + 20 AS col2 FROM tab2 AS cor0
----
28
44

skipif mysql # not compatible
query II rowsort label-1068
SELECT - + COUNT ( * ) + 31, SUM ( ALL + + 8 ) + + + 20 AS col2 FROM tab2 AS cor0
----
28
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1069
SELECT col1 + 8 * + + col1 * + col2 + + + CAST( + col2 AS SIGNED ) FROM tab0
----
1711
30584
892

skipif mysql # not compatible
query I rowsort label-1069
SELECT col1 + 8 * + + col1 * + col2 + + + CAST ( + col2 AS INTEGER ) FROM tab0
----
1711
30584
892

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL - 45 + + + COUNT( * ) * - - MIN( ALL - - 17 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - 45 + + + COUNT ( * ) * - - MIN ( ALL - - 17 ) AS col0 FROM tab2
----
6

query I rowsort
SELECT col1 + - - 61 FROM tab0
----
142
62
82

query I rowsort
SELECT ALL ( - col1 ) - + + col1 AS col1 FROM tab0
----
-162
-2
-42

query II rowsort
SELECT DISTINCT + col1 * + + 85 - - col0 AS col2, 50 AS col1 FROM tab0
----
182
50
1872
50
6900
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT ALL + 18 + + 12 * CAST( NULL AS SIGNED ) * + 44 + - 92 + + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + 18 + + 12 * CAST ( NULL AS INTEGER ) * + 44 + - 92 + + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + - 50 col2 FROM tab2 AS cor0
----
114
125
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1077
SELECT DISTINCT + - MIN( DISTINCT + ( + + col1 ) ) * - - ( + - COUNT( * ) ) - + COUNT( * ) AS col1, ( 22 ) * + SUM( DISTINCT - col0 ) + + + ( - 75 ) + 11 + + 57 * CAST( + + 21 AS SIGNED ) + + + 57 FROM tab0 AS cor0
----
0
-3188

skipif mysql # not compatible
query II rowsort label-1077
SELECT DISTINCT + - MIN ( DISTINCT + ( + + col1 ) ) * - - ( + - COUNT ( * ) ) - + COUNT ( * ) AS col1, ( 22 ) * + SUM ( DISTINCT - col0 ) + + + ( - 75 ) + 11 + + 57 * CAST ( + + 21 AS INTEGER ) + + + 57 FROM tab0 AS cor0
----
0
-3188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + col2 col1 FROM tab0 cor0
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 56 * - col1 <= + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1080
SELECT 46 * + col0 AS col0, col1 DIV - + col2 FROM tab2
----
2116
-2
2944
-1
3450
-1

skipif mysql # not compatible
query II rowsort label-1080
SELECT 46 * + col0 AS col0, col1 / - + col2 FROM tab2
----
2116
-2
2944
-1
3450
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1081
SELECT + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1081
SELECT + - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL - - SUM( - 73 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-657

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL - - SUM ( - 73 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
-657

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 <= - col0
----

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

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

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

query I rowsort
SELECT col0 * + + ( + col2 ) FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + - 30 AND + + col2 * + 83 * 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT - 93 * ( COUNT( * ) ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 93 * ( COUNT ( * ) ) FROM tab1 AS cor0
----
-279

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1090
SELECT - COUNT( * ) DIV + + 72 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT - COUNT ( * ) / + + 72 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * + 82 AS col0 FROM tab2
----
1886
3280
4756

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + COUNT( * ) * 76 + + 63 FROM tab2 cor0
----
291

skipif mysql # not compatible
query I rowsort label-1093
SELECT + COUNT ( * ) * 76 + + 63 FROM tab2 cor0
----
291

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT 24 + - COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1095
SELECT 24 + - COUNT ( * ) FROM tab2
----
21

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

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

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

query I rowsort
SELECT DISTINCT + col0 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT - - 94, ( - - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND + col0
----
94
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1100
SELECT - - 94, ( - - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND + col0
----
94
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1102
SELECT + 84 DIV - + 73 + - col1 AS col2 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-1102
SELECT + 84 / - + 73 + - col1 AS col2 FROM tab2 AS cor0
----
-52
-68
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + col2 * - col0 + - col2 col1 FROM tab1 WHERE 29 >= col1
----
-4985
-5067

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1104
SELECT col2 * - CAST( NULL AS SIGNED ) AS col1, col0 - + col2 AS col0 FROM tab2
----
NULL
17
NULL
23
NULL
24

skipif mysql # not compatible
query II rowsort label-1104
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col1, col0 - + col2 AS col0 FROM tab2
----
NULL
17
NULL
23
NULL
24

query I rowsort
SELECT ALL - 83 FROM tab0 WHERE + - 9 NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT ALL + 96 - + - CAST( + + 32 AS SIGNED ) AS col2 FROM tab1
----
128
128
128

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL + 96 - + - CAST ( + + 32 AS INTEGER ) AS col2 FROM tab1
----
128
128
128

query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab2 WHERE - col2 + + col2 / + + col2 + col2 * col1 NOT BETWEEN - 77 AND - col1
----
1173
3080
3886

query I rowsort
SELECT DISTINCT 97 * + 42 * + - col2 - + col0 AS col2 FROM tab1
----
-240451
-277123
-391155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1110
SELECT ALL ( - + SUM( + - CAST( + + col0 AS SIGNED ) ) ) + - + MIN( - - col0 ) AS col0 FROM tab1
----
176

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL ( - + SUM ( + - CAST ( + + col0 AS INTEGER ) ) ) + - + MIN ( - - col0 ) AS col0 FROM tab1
----
176

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 * col1 * col1 BETWEEN + - col2 AND + col0 / 2 + - col1 / - col1
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND + 14 - 7 IN ( - col1, col2 )
----

query I rowsort
SELECT DISTINCT col2 - col0 * - - col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL MAX( - col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL MAX ( - col0 ) AS col2 FROM tab1 cor0
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT + SUM( - 28 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-1116
SELECT + SUM ( - 28 ) FROM tab1
----
-84

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

query I rowsort
SELECT ALL + col1 * + ( - 1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

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

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

query I rowsort
SELECT - + 82 AS col2 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL MIN( DISTINCT - ( 62 ) ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL MIN ( DISTINCT - ( 62 ) ) FROM tab0
----
-62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1123
SELECT - 72 / - 68 + + - CAST( NULL AS SIGNED ) * - - col1 + + + col1 FROM tab1 WHERE NOT - col0 + + - 55 + col1 NOT IN ( - 44, col0 )
----

skipif mysql # not compatible
query I rowsort label-1123
SELECT - 72 / - 68 + + - CAST ( NULL AS INTEGER ) * - - col1 + + + col1 FROM tab1 WHERE NOT - col0 + + - 55 + col1 NOT IN ( - 44, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT - 89 DIV col2 col0 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1124
SELECT - 89 / col2 col0 FROM tab0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL MAX( DISTINCT - 1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL MAX ( DISTINCT - 1 ) FROM tab0
----
-1

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

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

query II rowsort
SELECT DISTINCT + ( - - col2 ) AS col2, - col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT ALL + 73 * col0 * col2 + 59 FROM tab0 AS cor0
----
51524
63569
701078

query I rowsort
SELECT ALL + + col1 + - 30 * col2 * 35 FROM tab2 cor0
----
-24099
-41923
-60833

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1131
SELECT * FROM tab0 AS cor0 WHERE NULL >= - CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1131
SELECT * FROM tab0 AS cor0 WHERE NULL >= - CAST ( col1 AS REAL )
----

query I rowsort
SELECT DISTINCT - col0 * - 40 * 60 + - 42 + + col0 AS col0 FROM tab2 AS cor0
----
110404
153622
180033

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

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

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

query I rowsort
SELECT - + col1 - + - 20 FROM tab0 cor0
----
-1
-61
19

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

query I rowsort
SELECT + + 60 + col1 AS col0 FROM tab2 AS cor0
----
111
127
137

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT + 29 * - MAX( ALL col2 ) * 3 + AVG ( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) * - COUNT( * ) + + 45 * 26 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT + 29 * - MAX ( ALL col2 ) * 3 + AVG ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * - COUNT ( * ) + + 45 * 26 AS col0 FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1141
SELECT - CAST ( NULL AS INTEGER ) / + col1 + + col1 + - - 21 FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT DISTINCT + col1 + + + col1 DIV + col0 + col1 AS col1 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT + col1 + + + col1 / + col0 + col1 AS col1 FROM tab1
----
10
28
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL - COUNT( * ) * - 17 AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - COUNT ( * ) * - 17 AS col2 FROM tab1 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1147
SELECT + col2 * + - 42 col1, + 61 * col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2478
NULL
-2856
NULL
-4032
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1147
SELECT + col2 * + - 42 col1, + 61 * col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2478
NULL
-2856
NULL
-4032
NULL

query II rowsort
SELECT - 1, col2 FROM tab2 AS cor0
----
-1
23
-1
40
-1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT DISTINCT - + 60 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT - + 60 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-180

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

skipif mysql # not compatible
query II rowsort label-1150
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT - COUNT( + 3 ) AS col1, - COUNT( + col1 ) AS col0 FROM tab1 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-1151
SELECT - COUNT ( + 3 ) AS col1, - COUNT ( + col1 ) AS col0 FROM tab1 cor0
----
-3
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1154
SELECT DISTINCT + MIN( col1 ) * CAST( NULL AS SIGNED ) AS col1, + 78 DIV + COUNT( * ) FROM tab1 AS cor0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-1154
SELECT DISTINCT + MIN ( col1 ) * CAST ( NULL AS INTEGER ) AS col1, + 78 / + COUNT ( * ) FROM tab1 AS cor0
----
NULL
26

query I rowsort
SELECT - 78 * + 23 * + col0 AS col2 FROM tab1 AS cor0
----
-152490
-163254
-91494

query I rowsort
SELECT DISTINCT + 15 + col2 - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1211
3135
3959

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT ALL + - ( col1 ) DIV + + 55 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL + - ( col1 ) / + + 55 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - - SUM( DISTINCT col0 ) + + + 7 * 74 FROM tab2 AS cor0
----
703

skipif mysql # not compatible
query I rowsort label-1158
SELECT - - SUM ( DISTINCT col0 ) + + + 7 * 74 FROM tab2 AS cor0
----
703

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL + 50 + - + COUNT( * ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + 50 + - + COUNT ( * ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1162
SELECT DISTINCT 65 * - ( + 44 ) col1, col1 * - CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) + + ( col2 ) AS col0 FROM tab2
----
-2860
1196
-2860
3120
-2860
3944

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1162
SELECT DISTINCT 65 * - ( + 44 ) col1, col1 * - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) + + ( col2 ) AS col0 FROM tab2
----
-2860
1196
-2860
3120
-2860
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT DISTINCT - col0 + - + CAST( + col1 AS SIGNED ) FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT - col0 + - + CAST ( + col1 AS INTEGER ) FROM tab0
----
-108
-96
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT + col2 DIV 39 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1165
SELECT + col2 / 39 FROM tab0
----
0
1
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 - - 37 - + + 63 IS NOT NULL
----

query I rowsort
SELECT + col1 * 14 * col1 FROM tab2 AS cor0
----
36414
62846
83006

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT ALL - 71 * + COUNT( * ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - 71 * + COUNT ( * ) FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query II rowsort label-1170
SELECT DISTINCT - + COUNT( * ) + - 11 * + 45 AS col1, 84 FROM tab0 AS cor0
----
-498
84

skipif mysql # not compatible
query II rowsort label-1170
SELECT DISTINCT - + COUNT ( * ) + - 11 * + 45 AS col1, 84 FROM tab0 AS cor0
----
-498
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1171
SELECT - col0 * - 62 + CAST( - 78 AS SIGNED ) + + col2, + col1 * 92 DIV - col2 AS col0 FROM tab0
----
5326
-193
6035
0
899
-158

skipif mysql # not compatible
query II rowsort label-1171
SELECT - col0 * - 62 + CAST ( - 78 AS INTEGER ) + + col2, + col1 * 92 / - col2 AS col0 FROM tab0
----
5326
-193
6035
0
899
-158

query I rowsort
SELECT ALL - - col1 FROM tab1 WHERE - col2 * - col1 < NULL
----

query I rowsort
SELECT + - 60 FROM tab2 WHERE + + col0 < + + 85
----
-60
-60
-60

query I rowsort
SELECT ALL + 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL + col0 - 15 FROM tab2 AS cor0 WHERE NOT + col1 * 96 IS NULL
----
31
49
60

query I rowsort
SELECT col1 * + - col2 - - - col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1080
-4512
-9702

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL + MIN( 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + MIN ( 11 ) FROM tab1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1179
SELECT MAX( + 16 ) DIV - 56 - 19 AS col1 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-1179
SELECT MAX ( + 16 ) / - 56 - 19 AS col1 FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1180
SELECT ALL col1 * + - ( + CAST( NULL AS SIGNED ) ) / + 29 + 70 + + 44 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL col1 * + - ( + CAST ( NULL AS INTEGER ) ) / + 29 + 70 + + 44 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT col0 > 49
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE + ( - - 11 ) * 24 * - - col0 * - 50 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + 20
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1184
SELECT DISTINCT col1 col0, - col0 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1184
SELECT DISTINCT col1 col0, - col0 * - + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT + 30 AS col0, col2 * + - col0 FROM tab0 WHERE NOT + ( - + col2 ) > NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE col0 - col2 = - ( - + col1 )
----

query I rowsort
SELECT ALL col2 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT 21 BETWEEN - - col2 AND - 89
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT + COUNT( col0 ) AS col1 FROM tab1 AS cor0 WHERE ( + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT + COUNT ( col0 ) AS col1 FROM tab1 AS cor0 WHERE ( + col1 IS NULL )
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1191
SELECT DISTINCT + - 89 * + 43 - + + CAST( COUNT( ALL + CAST( + col0 AS SIGNED ) ) AS SIGNED ) DIV + - 38 + - 40 FROM tab0 AS cor0
----
-3867

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + - 89 * + 43 - + + CAST ( COUNT ( ALL + CAST ( + col0 AS INTEGER ) ) AS INTEGER ) / + - 38 + - 40 FROM tab0 AS cor0
----
-3867

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

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

query I rowsort
SELECT - col2 * + - ( + - col2 ) * - col0 * - col1 FROM tab0
----
-182700
-2683935
-950697

query I rowsort
SELECT + ( - 36 ) * + 92 FROM tab1
----
-3312
-3312
-3312

query I rowsort
SELECT DISTINCT col1 * + + col1 * - 73 FROM tab2 AS cor0
----
-189873
-327697
-432817

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT ALL - 11 / - CAST( NULL AS SIGNED ) * + + ( - 10 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL - 11 / - CAST ( NULL AS INTEGER ) * + + ( - 10 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 / + col2 + 8 IS NOT NULL
----

query I rowsort
SELECT ALL - 29 + - - 63 * 61 AS col2 FROM tab2 AS cor0
----
3814
3814
3814

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT + COUNT( * ) * + + 48 AS col2 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + COUNT ( * ) * + + 48 AS col2 FROM tab1
----
144

query II rowsort
SELECT DISTINCT 35 + - col0 AS col0, - 19 + - 27 AS col0 FROM tab2
----
-11
-46
-29
-46
-40
-46

query II rowsort
SELECT ALL - col0 * - 21 AS col1, col2 FROM tab0
----
1827
10
2037
99
315
47

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1207
SELECT ALL CAST( NULL AS SIGNED ) + 21 + + col0 AS col2, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL CAST ( NULL AS INTEGER ) + 21 + + col0 AS col2, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

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

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

query I rowsort
SELECT + - 36 + - 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab1bc5e2f6f0be65bdb55f5590ed33f3

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

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

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

query I rowsort
SELECT - - col0 + + + col2 - 9 - col2 * - col1 FROM tab1 AS cor0
----
1482
3346
430

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT + 42 + COUNT( * ) * + 18 AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1213
SELECT + 42 + COUNT ( * ) * + 18 AS col1 FROM tab2 AS cor0
----
96

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

query I rowsort
SELECT ALL 12 - - col1 * + col0 FROM tab1 AS cor0
----
4289
437
726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 + col0 col0 FROM tab1 AS cor0
----
-1
33
39

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

skipif mysql # not compatible
query I rowsort label-1217
SELECT - - 20 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
20

query I rowsort
SELECT 36 * - - col1 + + ( 37 ) FROM tab2 AS cor0
----
1873
2449
2809

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 3 ) * + - col2 col0 FROM tab2
----
-120
-174
-69

query I rowsort
SELECT 82 * + col2 FROM tab2
----
1886
3280
4756

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

query I rowsort
SELECT DISTINCT ( + 27 ) AS col0 FROM tab0
----
27

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

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL + MAX ( col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT DISTINCT + col1 * + col1 * 80 AS col1 FROM tab1
----
15680
176720
2000

query I rowsort
SELECT DISTINCT 56 * col2 AS col1 FROM tab1
----
3304
3808
5376

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 16 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT - ( 8 ) * + MIN( + + col0 ) FROM tab1
----
-408

skipif mysql # not compatible
query I rowsort label-1230
SELECT - ( 8 ) * + MIN ( + + col0 ) FROM tab1
----
-408

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 50 AND - col0
----

query I rowsort
SELECT col1 + 24 AS col1 FROM tab0 AS cor0
----
105
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL ( ( 51 ) ) * COUNT( * ) col1 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1233
SELECT ALL ( ( 51 ) ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
153

query I rowsort
SELECT col0 + - - col1 * + col0 + - + ( + - col2 ) FROM tab1 cor0
----
4436
569
861

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1235
SELECT + CAST( NULL AS DECIMAL ) + + 44 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-1235
SELECT + CAST ( NULL AS REAL ) + + 44 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 + col1 + + col0, 28 col0 FROM tab1 AS cor0
----
105
28
153
28
80
28

query I rowsort
SELECT ALL + col2 - + col1 FROM tab1 AS cor0 WHERE 12 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 74 ) BETWEEN ( NULL ) AND NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT - ( 91 ) + - COUNT ( * ) FROM tab2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT DISTINCT col1 DIV - + col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT col1 / - + col1 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 19 AS col2, - 28 * - 9 * col0 col2 FROM tab1
----
19
12852
19
21420
19
22932

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT ALL 47 DIV - 55 * - col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL 47 / - 55 * - col2 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE + 29 / col1 BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT + 26 * + 95 * - ( - ( + col0 ) ) DIV 1 + + 34 AS col1 FROM tab2
----
113654
158114
185284

skipif mysql # not compatible
query I rowsort label-1247
SELECT + 26 * + 95 * - ( - ( + col0 ) ) / 1 + + 34 AS col1 FROM tab2
----
113654
158114
185284

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1248
SELECT CAST( + ( col1 ) AS SIGNED ) DIV - + ( + + 44 ) col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1248
SELECT CAST ( + ( col1 ) AS INTEGER ) / - + ( + + 44 ) col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col2 - - 59 AS col1 FROM tab2 AS cor0
----
117
82
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT DISTINCT ( + ( SUM( ALL + 55 ) ) ) AS col2 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT ( + ( SUM ( ALL + 55 ) ) ) AS col2 FROM tab0 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND + + 6
----
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND + + 6
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + ( col2 ) - - + col0 + col1 col2 FROM tab1
----
-17
117
36

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

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT - + SUM( DISTINCT - 95 ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-1258
SELECT - + SUM ( DISTINCT - 95 ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
95
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT 11 * + 33 * + ( COUNT( + + 8 ) ) AS col1 FROM tab2
----
1089

skipif mysql # not compatible
query I rowsort label-1261
SELECT 11 * + 33 * + ( COUNT ( + + 8 ) ) AS col1 FROM tab2
----
1089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1262
SELECT DISTINCT - 61 + + + 93 * + - 40 * + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1262
SELECT DISTINCT - 61 + + + 93 * + - 40 * + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----
-61
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + + col2
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 >= + - 56
----
46
51
23

onlyif mysql # aggregate syntax: 
query II rowsort label-1266
SELECT ALL - 10 AS col1, COUNT( * ) AS col0 FROM tab2
----
-10
3

skipif mysql # not compatible
query II rowsort label-1266
SELECT ALL - 10 AS col1, COUNT ( * ) AS col0 FROM tab2
----
-10
3

query I rowsort
SELECT - ( - 86 ) AS col0 FROM tab0
----
86
86
86

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( ALL col0 ) FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( ALL col0 ) FROM tab1 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 67 / + col2
----

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

query I rowsort
SELECT ALL 87 + col0 AS col0 FROM tab2
----
133
151
162

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT + col2 * + 8 NOT IN ( + col2 / ( + col1 ) )
----

query I rowsort
SELECT 97 * 75 + col2 * col1 AS col0 FROM tab1
----
10471
7570
8619

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col2 BETWEEN ( col2 ) AND 67 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT 46 * + 99 + - COUNT( * ) FROM tab1
----
4551

skipif mysql # not compatible
query I rowsort label-1279
SELECT 46 * + 99 + - COUNT ( * ) FROM tab1
----
4551

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT COUNT( * ) + - 43 AS col0 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT COUNT ( * ) + - 43 AS col0 FROM tab1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT + col1 DIV - col0 + col1 * - col0 FROM tab0
----
-1220
-1827
-97

skipif mysql # not compatible
query I rowsort label-1281
SELECT + col1 / - col0 + col1 * - col0 FROM tab0
----
-1220
-1827
-97

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1283
SELECT CAST( NULL AS SIGNED ) + col2 * - 45 FROM tab0 WHERE NOT + 63 * - col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1283
SELECT CAST ( NULL AS INTEGER ) + col2 * - 45 FROM tab0 WHERE NOT + 63 * - col1 >= NULL
----

query I rowsort
SELECT ALL - 45 * - col0 AS col2 FROM tab0
----
3915
4365
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1285
SELECT CAST( + 96 AS SIGNED ) * + 64 col2 FROM tab2
----
6144
6144
6144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT CAST ( + 96 AS INTEGER ) * + 64 col2 FROM tab2
----
6144
6144
6144

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE ( NULL ) >= col2 + - 72
----

query I rowsort
SELECT 98 + - col1 FROM tab2
----
21
31
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1288
SELECT 66 * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT 66 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT + 17 * - ( COUNT( * ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT + 17 * - ( COUNT ( * ) ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT ALL 60 + + 72 AS col2 FROM tab0
----
132
132
132

query I rowsort
SELECT ALL + 81 AS col0 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT col2 + 74 DIV + 71 AS col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-1292
SELECT col2 + 74 / + 71 AS col1 FROM tab1
----
60
69
97

query I rowsort
SELECT ALL col0 - col1 * + col0 FROM tab1
----
-340
-4186
-663

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1294
SELECT * FROM tab1 WHERE ( - 72 * - 90 + - CAST( NULL AS SIGNED ) ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-1294
SELECT * FROM tab1 WHERE ( - 72 * - 90 + - CAST ( NULL AS INTEGER ) ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT + 5 - COUNT( * ) FROM tab0
----
2

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

query I rowsort
SELECT ALL 4 FROM tab0 WHERE col0 - + col1 BETWEEN - col1 AND NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT col2 * + col1 FROM tab0 WHERE NULL NOT BETWEEN ( - col2 + CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT DISTINCT col2 DIV 4 AS col2 FROM tab2
----
10
14
5

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT col2 / 4 AS col2 FROM tab2
----
10
14
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1300
SELECT - 94 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 94 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 / col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT - COUNT( * ) * ( - MAX( - 10 ) ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-1302
SELECT - COUNT ( * ) * ( - MAX ( - 10 ) ) AS col0 FROM tab1
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * - col0 col2 FROM tab0
----
-1425
-8265
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT + COUNT( * ) * - 34 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-1304
SELECT + COUNT ( * ) * - 34 FROM tab1
----
-102

query I rowsort
SELECT ALL 73 + + col2 AS col2 FROM tab1
----
132
141
169

query I rowsort
SELECT - 84 * ( + col2 ) FROM tab2
----
-1932
-3360
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - COUNT( * ) * ( + SUM( DISTINCT 2 ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1307
SELECT - COUNT ( * ) * ( + SUM ( DISTINCT 2 ) ) FROM tab1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT DISTINCT + col0 DIV col2 - + col1 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT + col0 / col2 - + col1 FROM tab1 AS cor0
----
-14
-4
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT + COUNT( * ) + + 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
58

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT + COUNT ( * ) + + 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - COUNT( * ) * 91 - MAX( 84 ) FROM tab0
----
-357

skipif mysql # not compatible
query I rowsort label-1311
SELECT - COUNT ( * ) * 91 - MAX ( 84 ) FROM tab0
----
-357

query I rowsort
SELECT col2 - + col1 * - 60 FROM tab0
----
1270
159
4907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1315
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1315
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 85 col1 FROM tab0 AS cor0
----
-1785
-6885
-85

query I rowsort
SELECT DISTINCT ( 50 ) * 47 FROM tab2 AS cor0
----
2350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT ALL - COUNT( * ) * + ( 26 ) + + COUNT( * ) col1 FROM tab2 cor0 WHERE NOT col2 NOT IN ( + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1321
SELECT ALL - COUNT ( * ) * + ( 26 ) + + COUNT ( * ) col1 FROM tab2 cor0 WHERE NOT col2 NOT IN ( + col1 )
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1323
SELECT ALL - col2 / + col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1324
SELECT + CAST( col0 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-1324
SELECT + CAST ( col0 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
2601
7225
8281

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

skipif mysql # not compatible
query I rowsort label-1325
SELECT + col2 / + col2 AS col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT col0 IN ( 6 )
----
3

skipif mysql # not compatible
query I rowsort label-1326
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT col0 IN ( 6 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT DISTINCT MAX( ( CAST( 62 AS SIGNED ) ) ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT MAX ( ( CAST ( 62 AS INTEGER ) ) ) FROM tab0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * col0 col0 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL + COUNT( DISTINCT ( 28 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL + COUNT ( DISTINCT ( 28 ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT - COUNT( ALL + col1 ) * - 16 AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-1330
SELECT - COUNT ( ALL + col1 ) * - 16 AS col0 FROM tab2
----
48

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col1 + col1 / col2 ) NOT BETWEEN + 10 * - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

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

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

query I rowsort
SELECT DISTINCT + col1 * col1 + - 14 * 12 AS col0 FROM tab2 cor0 WHERE NOT col2 NOT IN ( + 14 )
----

query I rowsort
SELECT ALL - 2 + - 73 + col1 * 38 AS col2 FROM tab2 AS cor0
----
1863
2471
2851

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT - 55 DIV - 74 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 55 / - 74 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - - 2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 58 col0, - col1 * + + 30 AS col1 FROM tab1
----
58
-1410
58
-150
58
-420

query I rowsort
SELECT + - col2 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
236
3128

query I rowsort
SELECT - 98 + - + col1 * - col0 FROM tab1 AS cor0
----
327
4179
616

query I rowsort
SELECT + col0 + + 46 + + col1 FROM tab0 AS cor0
----
142
144
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT - 51 - - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 92 * - col1 * - 61 NOT BETWEEN col1 AND + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT - 51 - - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 92 * - col1 * - 61 NOT BETWEEN col1 AND + col1
----
NULL
NULL
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT ALL + CAST( - + 41 AS SIGNED ) FROM tab1 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + CAST ( - + 41 AS INTEGER ) FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col2 IN ( - - 76 / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1353
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + + ( + col2 ) + + 18 BETWEEN ( col1 ) AND ( - col1 * col2 - CAST( - col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1353
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + + ( + col2 ) + + 18 BETWEEN ( col1 ) AND ( - col1 * col2 - CAST ( - col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1354
SELECT DISTINCT - 73 + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - 40 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - 73 + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 40 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT ALL - col0 * + CAST( col2 AS SIGNED ) FROM tab2 WHERE NULL IN ( + CAST( NULL AS SIGNED ) + + - col0 + 6 )
----

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - col0 * + CAST ( col2 AS INTEGER ) FROM tab2 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) + + - col0 + 6 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1358
SELECT DISTINCT - 32 / - 39 + + 30 + + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - 32 / - 39 + + 30 + + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - MAX( DISTINCT - + col2 ) - - COUNT( ALL + + 22 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1359
SELECT - MAX ( DISTINCT - + col2 ) - - COUNT ( ALL + + 22 ) FROM tab0
----
13

query I rowsort
SELECT col2 * - col1 - 32 AS col1 FROM tab2
----
-1205
-3112
-3918

query I rowsort
SELECT DISTINCT 40 - - - 92 FROM tab0
----
-52

query I rowsort
SELECT - col2 * col2 - col0 AS col0 FROM tab0
----
-187
-2224
-9898

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 * - 76 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT ( - COUNT( * ) ) * + SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT ( - COUNT ( * ) ) * + SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
-585

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

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

query I rowsort
SELECT DISTINCT + ( + col0 ) * + - 80 FROM tab2 AS cor0
----
-3680
-5120
-6000

query I rowsort
SELECT DISTINCT + + 68 * - + col0 FROM tab0 AS cor0
----
-1020
-5916
-6596

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1368
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 4 * - 12 + + - CAST( NULL AS SIGNED ) NOT BETWEEN - 9 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1368
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 4 * - 12 + + - CAST ( NULL AS INTEGER ) NOT BETWEEN - 9 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 40 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 43 IN ( 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 84, 52 AS col0 FROM tab2, tab1 AS cor0
----
18 values hashing to 53f3d822486263a4ea0bd9d647ec2738

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT MAX( ALL - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT MAX ( ALL - col2 ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT ALL AVG ( col2 ) AS col2 FROM tab1 WHERE NOT NULL >= ( + ( + col1 ) + col0 * + + col2 )
----
NULL

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL NOT IN ( - ( - 51 ) / + + col0 + 50 - + col0 / col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 + - col0 + 55 * - 9 IS NOT NULL
----

query I rowsort
SELECT + 91 * - - col2 AS col1 FROM tab0
----
4277
9009
910

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + COUNT( * ) * + ( - - 41 ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-1377
SELECT + COUNT ( * ) * + ( - - 41 ) FROM tab1
----
123

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 41 >= NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 23 + col2 NOT IN ( - 51 * - - ( 91 ) + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 41 * + - 16 IS NOT NULL
----

query I rowsort
SELECT ALL - 34 + + 67 AS col2 FROM tab1 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 31 * + + col1 + - + 98 col0 FROM tab2 AS cor0
----
46
-1679
64
-2485
75
-2175

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 13 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 85 BETWEEN 88 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + 67 * - 29 * + COUNT( * ) AS col1 FROM tab2 cor0
----
-5829

skipif mysql # not compatible
query I rowsort label-1387
SELECT + 67 * - 29 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-5829

query I rowsort
SELECT DISTINCT + 68 - - col1 FROM tab1 cor0 WHERE NULL IS NULL
----
115
73
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT 20 * - col0 + + - ( col0 ) DIV + col2 + + 74 AS col0 FROM tab0 AS cor0
----
-1674
-1866
-226

skipif mysql # not compatible
query I rowsort label-1389
SELECT 20 * - col0 + + - ( col0 ) / + col2 + + 74 AS col0 FROM tab0 AS cor0
----
-1674
-1866
-226

onlyif mysql # aggregate syntax: 
query II rowsort label-1390
SELECT DISTINCT + COUNT( * ) + ( + + COUNT( * ) ), 89 * + 81 AS col1 FROM tab1
----
6
7209

skipif mysql # not compatible
query II rowsort label-1390
SELECT DISTINCT + COUNT ( * ) + ( + + COUNT ( * ) ), 89 * + 81 AS col1 FROM tab1
----
6
7209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col2 col0 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT + col1 + - col1 * - 62 * ( + col2 ) FROM tab0
----
13041
236115
6139

query I rowsort
SELECT DISTINCT 50 + - + col0 FROM tab0
----
-37
-47
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL - ( - MIN( - - col1 ) ) + - + 25 AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL - ( - MIN ( - - col1 ) ) + - + 25 AS col1 FROM tab0
----
-24

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

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

query III rowsort
SELECT * FROM tab1 WHERE + - 37 < - col1
----
51
14
96
85
5
59

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

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

query I rowsort
SELECT ALL - + col0 - + + col1 FROM tab0 cor0
----
-108
-96
-98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 68 + - ( + 46 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT + + 31, COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
31
0

skipif mysql # not compatible
query II rowsort label-1400
SELECT + + 31, COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
31
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ALL - + 88 * - - 65 FROM tab0 AS cor0
----
-5720
-5720
-5720

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL + COUNT( * ) col2 FROM tab2 AS cor0 WHERE 25 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1404
SELECT ALL + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE 25 < NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1406
SELECT - CAST( - 35 AS SIGNED ) AS col0, - col2 - + 62 * ( + col0 ) FROM tab1 AS cor0
----
35
-3258
35
-5329
35
-5710

skipif mysql # not compatible
query II rowsort label-1406
SELECT - CAST ( - 35 AS INTEGER ) AS col0, - col2 - + 62 * ( + col0 ) FROM tab1 AS cor0
----
35
-3258
35
-5329
35
-5710

query I rowsort
SELECT col2 * - 41 * + 16 FROM tab1 cor0
----
-38704
-44608
-62976

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 88 > - 61 + + + 33 / 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT DISTINCT 22 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT 22 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT 29 AS col1, COUNT( * ) * + MAX( ALL - col0 ) AS col1 FROM tab0
----
29
-45

skipif mysql # not compatible
query II rowsort label-1410
SELECT 29 AS col1, COUNT ( * ) * + MAX ( ALL - col0 ) AS col1 FROM tab0
----
29
-45

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

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

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

query I rowsort
SELECT 99 + - 83 * + + 18 AS col1 FROM tab2
----
-1395
-1395
-1395

query I rowsort
SELECT + 7 + + - col2 - - col1 + + - ( - col0 ) FROM tab1
----
-24
38
77

onlyif mysql # aggregate syntax: 
query III rowsort label-1415
SELECT - COUNT( * ) + - + 17 AS col2, - MAX( DISTINCT - + 54 ) AS col2, + 59 FROM tab1 AS cor0
----
-20
54
59

skipif mysql # not compatible
query III rowsort label-1415
SELECT - COUNT ( * ) + - + 17 AS col2, - MAX ( DISTINCT - + 54 ) AS col2, + 59 FROM tab1 AS cor0
----
-20
54
59

query I rowsort
SELECT - 29 + + col0 FROM tab0 AS cor0
----
-14
58
68

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 >= col2 * - col0 + ( + ( - col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT - MAX( col0 ) * + - 95 AS col1 FROM tab0 AS cor0
----
9215

skipif mysql # not compatible
query I rowsort label-1418
SELECT - MAX ( col0 ) * + - 95 AS col1 FROM tab0 AS cor0
----
9215

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT DISTINCT - col2 * - + col2 + 24 + col0 + - 31 * + + 94 / + ( - + col0 ) - ( col1 ) - - - CAST( NULL AS SIGNED ) * ( - col2 ) * - ( col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT - col2 * - + col2 + 24 + col0 + - 31 * + + 94 / + ( - + col0 ) - ( col1 ) - - - CAST ( NULL AS INTEGER ) * ( - col2 ) * - ( col0 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 - + - ( + + col1 ) AS col2 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN NULL AND - + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT 11 - - - SUM( col2 ) AS col0 FROM tab0
----
-145

skipif mysql # not compatible
query I rowsort label-1425
SELECT 11 - - - SUM ( col2 ) AS col0 FROM tab0
----
-145

query I rowsort
SELECT ALL 61 - + + col0 FROM tab2
----
-14
-3
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT DISTINCT ( - CAST( col1 AS SIGNED ) ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT ( - CAST ( col1 AS INTEGER ) ) FROM tab1
----
-14
-47
-5

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

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

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

query II rowsort
SELECT col0, ( 57 ) * 15 AS col0 FROM tab2
----
46
855
64
855
75
855

onlyif mysql # DIV for integer division: 
query I rowsort label-1431
SELECT ( + 36 ) DIV + col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1431
SELECT ( + 36 ) / + col0 FROM tab0
----
0
0
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1433
SELECT col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST( + + col2 AS SIGNED ) >= NULL )
----

skipif mysql # not compatible
query I rowsort label-1433
SELECT col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST ( + + col2 AS INTEGER ) >= NULL )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT ALL - + col2 + + 16 + - col1 AS col0 FROM tab1 AS cor0
----
-48
-94
-99

query II rowsort
SELECT + + 76 AS col0, + col0 * - col2 FROM tab0 AS cor0
----
76
-705
76
-870
76
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT + SUM( + + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + SUM ( + + col2 ) FROM tab2
----
121

query III rowsort
SELECT * FROM tab2 WHERE NOT + 24 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1441
SELECT DISTINCT - CAST( - + SUM( ALL 12 ) AS SIGNED ) + 90 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT - CAST ( - + SUM ( ALL 12 ) AS INTEGER ) + 90 FROM tab0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1442
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1443
SELECT CAST( - MAX( ALL + - 31 ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-1443
SELECT CAST ( - MAX ( ALL + - 31 ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0
----
28

query I rowsort
SELECT ALL - 81 + col2 * 34 FROM tab2
----
1279
1891
701

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = 14
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT MAX( - 19 ) AS col1, + COUNT( - 10 ) AS col1 FROM tab2 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-1447
SELECT MAX ( - 19 ) AS col1, + COUNT ( - 10 ) AS col1 FROM tab2 AS cor0
----
-19
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 - ( + 87 ) col0 FROM tab1 AS cor0
----
-176
-176
-176

onlyif mysql # DIV for integer division: 
query II rowsort label-1450
SELECT - col0 DIV 55 + - 66 AS col2, 50 FROM tab0 AS cor0
----
-66
50
-67
50
-67
50

skipif mysql # not compatible
query II rowsort label-1450
SELECT - col0 / 55 + - 66 AS col2, 50 FROM tab0 AS cor0
----
-66
50
-67
50
-67
50

query I rowsort
SELECT + 12 + - - 95 AS col0 FROM tab2 AS cor0
----
107
107
107

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

query II rowsort
SELECT col0, + 80 AS col2 FROM tab0
----
15
80
87
80
97
80

query II rowsort
SELECT ALL 39 AS col1, col1 + + 32 AS col1 FROM tab2
----
39
109
39
83
39
99

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

query II rowsort
SELECT DISTINCT + col1 AS col1, - col1 * + col0 * - col1 FROM tab1
----
14
9996
47
201019
5
2125

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT ALL - col1 DIV - - 67 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - col1 / - - 67 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL + - COUNT( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
-3

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

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

query II rowsort
SELECT + col2 AS col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT col2 DIV - - col1 + col1 + - 27 * 76 * - + 92 FROM tab2 AS cor0
----
188835
188851
188861

skipif mysql # not compatible
query I rowsort label-1463
SELECT col2 / - - col1 + col1 + - 27 * 76 * - + 92 FROM tab2 AS cor0
----
188835
188851
188861

onlyif mysql # DIV for integer division: 
query I rowsort label-1464
SELECT - + 61 + + ( + 77 ) - - col0 DIV - 41 AS col0 FROM tab0 cor0
----
14
14
16

skipif mysql # not compatible
query I rowsort label-1464
SELECT - + 61 + + ( + 77 ) - - col0 / - 41 AS col0 FROM tab0 cor0
----
14
14
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT DISTINCT - - MIN( ALL + 19 ) AS col1, 47 FROM tab2 AS cor0
----
19
47

skipif mysql # not compatible
query II rowsort label-1465
SELECT DISTINCT - - MIN ( ALL + 19 ) AS col1, 47 FROM tab2 AS cor0
----
19
47

query I rowsort
SELECT + + col2 + - 39 * 88 FROM tab0 AS cor0
----
-3333
-3385
-3422

query I rowsort
SELECT - 96 FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT col1 + 33 FROM tab0 cor0
----
114
34
54

query II rowsort
SELECT ( col2 ), col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + 48 NOT IN ( + + col2, ( - 27 ) * - col2 * col1 + 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 44 col0 FROM tab1
----
-41
-47
-7

query I rowsort
SELECT DISTINCT 89 * - 5 FROM tab1
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL COUNT( * ) + 59 col2 FROM tab1
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1473
SELECT ALL COUNT ( * ) + 59 col2 FROM tab1
----
62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 < col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 74 )
----

query II rowsort
SELECT ALL - col1 AS col0, col0 * - - col1 + - + col2 AS col1 FROM tab2
----
-51
2323
-67
4967
-77
4888

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT MIN( + col0 ) + 71 AS col2 FROM tab0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT MIN ( + col0 ) + 71 AS col2 FROM tab0 WHERE + col1 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - 27 * col0 * col2 + - - col2, 73 AS col1 FROM tab0
----
-18988
73
-23480
73
-259182
73

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

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab0 WHERE ( ( NULL ) IS NULL )
----
-3

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1482
SELECT + + col1 AS col0, + col2 / col2 FROM tab0 AS cor0
----
1
1
21
1
81
1

query I rowsort
SELECT + 45 * + col2 FROM tab2 AS cor0
----
1035
1800
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT - 62 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT - 62 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-186

query I rowsort
SELECT DISTINCT + col1 * - - col0 * + + 12 AS col2 FROM tab0 AS cor0
----
1164
14580
21924

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - 62 / - ( + col1 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - 62 / - ( + col1 ) ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 * col0 * col0 + - - 89 FROM tab0 AS cor0
----
3464
658592
912762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT 39 * + - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE + col1 * + + col0 <= - + 81
----

skipif mysql # not compatible
query I rowsort label-1489
SELECT 39 * + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE + col1 * + + col0 <= - + 81
----

query I rowsort
SELECT - + 61 FROM tab0 cor0
----
-61
-61
-61

query II rowsort
SELECT DISTINCT - 27 AS col0, col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 < + 28
----
-27
51
-27
67
-27
77

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

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * - 47 * + + 88 * - ( - + 19 ) col1 FROM tab2 cor0
----
6993976
6993976
6993976

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL COUNT ( * ) / + 40 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT ALL + 32 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL + 32 / + col0 FROM tab1
----
0
0
0

query II rowsort
SELECT - 86, col0 * + col1 AS col0 FROM tab0
----
-86
1215
-86
1827
-86
97

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

skipif mysql # not compatible
query I rowsort label-1499
SELECT - CAST ( NULL AS REAL ) * col2 FROM tab0
----
NULL
NULL
NULL

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

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 FROM tab1
----
14
-96
47
-68
5
-59

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

skipif mysql # not compatible
query I rowsort label-1503
SELECT + 33 / + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 81 * - col2 * - col0 * - col2 FROM tab0
----
-2683935
-704700
-77006457

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

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

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

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL + col0 / - + col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT DISTINCT MIN( DISTINCT - + 23 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT MIN ( DISTINCT - + 23 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

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

query I rowsort
SELECT + - 68 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 + ( + col2 ) col2 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1513
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1513
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - ( 70 ) + + col1 AS col1 FROM tab1
----
-23
-56
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT ALL - CAST( + - 44 AS SIGNED ) + - ( - - COUNT( * ) ) AS col1 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL - CAST ( + - 44 AS INTEGER ) + - ( - - COUNT ( * ) ) AS col1 FROM tab2
----
41

query I rowsort
SELECT DISTINCT - col2 + + 8 AS col2 FROM tab1
----
-51
-60
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT ( - MIN( ALL - + col1 ) ) AS col1 FROM tab0 WHERE NOT ( 89 ) - - - col0 NOT BETWEEN NULL AND 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT ( - MIN ( ALL - + col1 ) ) AS col1 FROM tab0 WHERE NOT ( 89 ) - - - col0 NOT BETWEEN NULL AND 84
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT ALL - CAST( + col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - CAST ( + col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( 8 ) * - col0 + + col1 BETWEEN - col2 AND NULL ) )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT ALL + 28 AS col1, COUNT( * ) AS col0 FROM tab1 cor0
----
28
3

skipif mysql # not compatible
query II rowsort label-1522
SELECT ALL + 28 AS col1, COUNT ( * ) AS col0 FROM tab1 cor0
----
28
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - col2 * - col2 + 47, + 33 AS col0 FROM tab1 AS cor0
----
3528
33
4671
33
9263
33

query I rowsort
SELECT ALL 70 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 67 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT COUNT( * ) * - COUNT( col1 ) + 69 col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1526
SELECT DISTINCT COUNT ( * ) * - COUNT ( col1 ) + 69 col0 FROM tab2 AS cor0
----
60

query I rowsort
SELECT + 48 * + 24 * + + col2 + + ( - - col1 ) FROM tab0 AS cor0
----
114049
11541
54225

query I rowsort
SELECT - 53 * + - col2 AS col2 FROM tab0 cor0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT DISTINCT + MAX( ALL + col2 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1529
SELECT DISTINCT + MAX ( ALL + col2 ) col0 FROM tab1
----
96

query I rowsort
SELECT - 27 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT DISTINCT COUNT( 41 ) FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT COUNT ( 41 ) FROM tab0, tab2 cor0
----
9

query I rowsort
SELECT ALL + col0 * - 86 FROM tab0 AS cor0
----
-1290
-7482
-8342

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT DISTINCT + + col1 DIV - ( - 84 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT + + col1 / - ( - 84 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT ALL + col0 DIV - col0 + - 32 AS col1 FROM tab2
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + col0 / - col0 + - 32 AS col1 FROM tab2
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT ALL - 86 DIV 43 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - 86 / 43 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT DISTINCT - - 35 * + MIN( col1 ) FROM tab2 AS cor0
----
1785

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT - - 35 * + MIN ( col1 ) FROM tab2 AS cor0
----
1785

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 43 + + 41 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 48 + + 43 + - + ( - - col2 ) AS col0 FROM tab2 AS cor0
----
33
51
68

query I rowsort
SELECT ALL 96 - - + col2 FROM tab0 AS cor0 WHERE - col1 * + 36 * col1 + + ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1540
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - + col2 ) + col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT + 37 * ( - col1 ) + col0 FROM tab1
----
-100
-1648
-467

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

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

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

query I rowsort
SELECT - - 74 FROM tab1 WHERE + col0 = + 28
----

query I rowsort
SELECT 25 - - col1 AS col1 FROM tab2
----
102
76
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT ALL - + MAX( ALL - - col1 ) DIV SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - + MAX ( ALL - - col1 ) / SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 - + 41 / - + col1 NOT BETWEEN NULL AND col0 + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT + 6 * - 66 + - COUNT( * ) FROM tab1 cor0
----
-399

skipif mysql # not compatible
query I rowsort label-1549
SELECT + 6 * - 66 + - COUNT ( * ) FROM tab1 cor0
----
-399

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

query I rowsort
SELECT 99 + - 65 + + 41 AS col1 FROM tab1
----
75
75
75

query I rowsort
SELECT 96 + + 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4de85b31fd319b557570fc53828d1dd3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1553
SELECT DISTINCT - - 0 * + col0 AS col1, ( + - col0 ) + - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1553
SELECT DISTINCT - - 0 * + col0 AS col1, ( + - col0 ) + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1554
SELECT + CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab1 AS cor0 WHERE NOT 1 IS NOT NULL
----

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

query I rowsort
SELECT - 61 * + col0 FROM tab2
----
-2806
-3904
-4575

onlyif mysql # aggregate syntax: 
query II rowsort label-1557
SELECT COUNT( * ) AS col1, - MIN( DISTINCT + - 88 ) AS col1 FROM tab1
----
3
88

skipif mysql # not compatible
query II rowsort label-1557
SELECT COUNT ( * ) AS col1, - MIN ( DISTINCT + - 88 ) AS col1 FROM tab1
----
3
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT MIN( DISTINCT - - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1559
SELECT MIN ( DISTINCT - - col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> + + col1 + - - 27
----

query I rowsort
SELECT 34 * - + ( - 62 ) FROM tab0
----
2108
2108
2108

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

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + MAX ( - + col1 ) FROM tab1
----
-5

query II rowsort
SELECT ALL col1 * + - ( + col0 ) AS col2, col0 AS col1 FROM tab1
----
-425
85
-4277
91
-714
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT COUNT( DISTINCT + + 97 ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1564
SELECT COUNT ( DISTINCT + + 97 ) col0 FROM tab2
----
1

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

query I rowsort
SELECT ALL col1 * - - col2 * + col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT 31 * + 59 FROM tab1
----
1829
1829
1829

query III rowsort
SELECT * FROM tab2 WHERE col1 <= - + col1 * + ( - col2 ) * + 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE - - col1 <= 52 + 20
----
46
51
23
75
67
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + 14
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - 13 - - - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT + MAX( DISTINCT 8 ) DIV COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1573
SELECT + MAX ( DISTINCT 8 ) / COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT SUM( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT SUM ( + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 45 * - col1 AS col2 FROM tab2 AS cor0
----
-2295
-3015
-3465

query II rowsort
SELECT DISTINCT - 76 + + - col0 AS col1, col0 AS col1 FROM tab0 AS cor0
----
-163
87
-173
97
-91
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT DISTINCT - 36 + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT - 36 + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
-45

query II rowsort
SELECT 7 + - + 95 * + - col1 AS col1, - 55 - + 64 FROM tab2
----
4852
-119
6372
-119
7322
-119

query I rowsort
SELECT - 79 + + 43 FROM tab1
----
-36
-36
-36

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

query III rowsort
SELECT * FROM tab1 WHERE col0 < + col2
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col0 IS NOT NULL )
----

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

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

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

query I rowsort
SELECT - - 14 AS col1 FROM tab0 AS cor0
----
14
14
14

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 30 - 76 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query II rowsort label-1589
SELECT DISTINCT 12 AS col0, COUNT( * ) AS col2 FROM tab1
----
12
3

skipif mysql # not compatible
query II rowsort label-1589
SELECT DISTINCT 12 AS col0, COUNT ( * ) AS col2 FROM tab1
----
12
3

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

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

query I rowsort
SELECT - col0 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 22 * - col1 * + 74 FROM tab2 AS cor0
----
109076
125356
83028

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 43 > + 57
----

query I rowsort
SELECT col1 + - 45 * + 5 / + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 11 + 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1598
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col1 AND 52 - + - CAST( - col2 AS SIGNED ) + + + 83 / - + col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-1598
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col1 AND 52 - + - CAST ( - col2 AS INTEGER ) + + + 83 / - + col1 * + col1
----

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

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

query I rowsort
SELECT 3 * col2 FROM tab0
----
141
297
30

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT COUNT ( col1 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 23 col1 FROM tab2 cor0
----
1334
529
920

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT - 50 DIV + 78 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT - 50 / + 78 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 93 * col0 * + + 40 + - + 98 FROM tab0 AS cor0
----
-323738
-360938
-55898

query I rowsort
SELECT DISTINCT + 91 + col1 FROM tab1
----
105
138
96

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

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

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

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

query II rowsort
SELECT DISTINCT 89 AS col1, - col0 + col2 AS col0 FROM tab2 AS cor0
----
89
-17
89
-23
89
-24

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL >= 15
----
0

query I rowsort
SELECT ALL 43 * + 56 AS col0 FROM tab1
----
2408
2408
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL COUNT( * ) + - ( - 98 ) FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL COUNT ( * ) + - ( - 98 ) FROM tab0
----
101

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1614
SELECT DISTINCT - col2 + - + col1 DIV + col2 AS col1 FROM tab2
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - col2 + - + col1 / + col2 AS col1 FROM tab2
----
-25
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - 41 - - + COUNT( * ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-1615
SELECT - 41 - - + COUNT ( * ) AS col2 FROM tab1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL 29 - + COUNT( * ) + - CAST( NULL AS SIGNED ) * - ( - AVG ( + col2 ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL 29 - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - ( - AVG ( + col2 ) ) AS col1 FROM tab1
----
NULL

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

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

query I rowsort
SELECT + + 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1619
SELECT 63 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT 63 * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT ALL 34 + - col2 DIV + col2 - - col0 FROM tab0
----
120
130
48

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL 34 + - col2 / + col2 - - col0 FROM tab0
----
120
130
48

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

query I rowsort
SELECT + col2 * + + 39 AS col1 FROM tab1
----
2301
2652
3744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1627
SELECT DISTINCT SUM( ALL - 7 ) DIV - + COUNT( * ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT SUM ( ALL - 7 ) / - + COUNT ( * ) AS col0 FROM tab2
----
7

query I rowsort
SELECT DISTINCT - - 50 + - col2 + + - col2 + - 68 * col2 * col0 AS col2 FROM tab1 WHERE NOT - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col1 + - + col2 + + - col0 - + col0 FROM tab2
----
51
-64
67
-141
77
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - COUNT( * ) + - + 36 FROM tab2, tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1631
SELECT - COUNT ( * ) + - + 36 FROM tab2, tab1 AS cor0
----
-45

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

query I rowsort
SELECT - 40 * - - col0 AS col2 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

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

query I rowsort
SELECT ALL - + col0 * - col2 + 74 + - 77 AS col1 FROM tab2 AS cor0
----
1055
2557
4347

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

skipif mysql # not compatible
query I rowsort label-1636
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT SUM( ALL - - CAST( + 97 AS SIGNED ) ) FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-1637
SELECT SUM ( ALL - - CAST ( + 97 AS INTEGER ) ) FROM tab2
----
291

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 90 AS col0, + col2 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-90
23
-90
40
-90
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT - col0 AS col1 FROM tab0 cor0 WHERE + col0 * + ( col1 ) / col1 = + col0 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1640
SELECT - col0 AS col1 FROM tab0 cor0 WHERE + col0 * + ( col1 ) / col1 = + col0 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 22 / - + 46 FROM tab0 AS cor0 WHERE NOT 71 + - col0 + col2 < col0 * + - ( - ( + ( + col2 ) ) )
----

query I rowsort
SELECT col1 + - col2 + - col1 + - ( + - ( + col0 ) ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT 13 * col2 * col0 + + + col2 + - col0 AS col2 FROM tab1
----
63693
65169
80421

query I rowsort
SELECT + + AVG ( col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT 25 * COUNT( * ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1645
SELECT 25 * COUNT ( * ) AS col1 FROM tab1
----
75

query I rowsort
SELECT ALL + 34 + - col0 * - 44 FROM tab1 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1648
SELECT - COUNT( * ) AS col2, 95 * - COUNT( * ) * 56 AS col0 FROM tab1 cor0
----
-3
-15960

skipif mysql # not compatible
query II rowsort label-1648
SELECT - COUNT ( * ) AS col2, 95 * - COUNT ( * ) * 56 AS col0 FROM tab1 cor0
----
-3
-15960

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 42 * + col0 * + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 42 * + col0 * + col0 IS NULL
----
-3

query I rowsort
SELECT 93 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT - - col1 * - 65 * + col1 + col0 * + + col2 FROM tab2 WHERE NOT ( - 63 + ( col2 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL - COUNT( * ) * ( - - 24 ) AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - COUNT ( * ) * ( - - 24 ) AS col2 FROM tab1 AS cor0
----
-72

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

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

query I rowsort
SELECT DISTINCT - + col0 + - col2 + - 97 FROM tab2 AS cor0
----
-166
-201
-230

query I rowsort
SELECT ( + 66 ) + + - 49 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT - col2 + - 20 FROM tab2 AS cor0
----
-43
-60
-78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1658
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT + col2 IN ( - 78 + - + 96 - col2, col2 + + + CAST( NULL AS SIGNED ) + col1, - col2, - + 82, - col0 + col1 * + 75 + - col0 * + 66 + - col1 + + col2, + 59 )
----

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT + col2 IN ( - 78 + - + 96 - col2, col2 + + + CAST ( NULL AS INTEGER ) + col1, - col2, - + 82, - col0 + col1 * + 75 + - col0 * + 66 + - col1 + + col2, + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT - SUM( - + 97 ) FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-1659
SELECT - SUM ( - + 97 ) FROM tab2
----
291

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

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

query II rowsort
SELECT DISTINCT - - ( 53 ) * col0 + + col0 * - col0 * - + 6 AS col0, 82 FROM tab1 AS cor0
----
18309
82
47855
82
54509
82

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

query I rowsort
SELECT - col0 + col2 + + + col1 + + col2 AS col0 FROM tab0 AS cor0
----
-46
102
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1664
SELECT ALL col1 + + CAST( col2 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL col1 + + CAST ( col2 AS INTEGER ) FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT - 3 col1, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1665
SELECT - 3 col1, COUNT ( * ) FROM tab1
----
-3
3

query II rowsort
SELECT 74 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
74
-23
74
-40
74
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT + 73 + - + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
70

skipif mysql # not compatible
query I rowsort label-1668
SELECT + 73 + - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
70

query I rowsort
SELECT ALL + col1 * - 47 + + 46 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-189
-2163
-612

query II rowsort
SELECT ALL + 30 AS col0, col1 FROM tab0 AS cor0
----
30
1
30
21
30
81

query I rowsort
SELECT + col2 * + - 57 * + col0 FROM tab2
----
-145920
-247950
-60306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col2 ) AS col1, 2 col1 FROM tab0
----
10
2
47
2
99
2

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT + 9 <= - - 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT ALL - MIN( + col2 ), COUNT( * ) AS col1 FROM tab2 cor0
----
-23
3

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL - MIN ( + col2 ), COUNT ( * ) AS col1 FROM tab2 cor0
----
-23
3

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
52

query I rowsort
SELECT DISTINCT + 29 * col0 AS col1 FROM tab0 cor0
----
2523
2813
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <= - col0
----

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT DISTINCT - SUM( DISTINCT + col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1678
SELECT DISTINCT - SUM ( DISTINCT + col2 ) col2 FROM tab1 AS cor0
----
-223

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

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

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

query I rowsort
SELECT DISTINCT - 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 + + 20 AS col2, col2 * - + 19 col2 FROM tab1 AS cor0
----
20
-1121
20
-1292
20
-1824

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

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

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT 93 DIV - col0 + + col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1685
SELECT 93 / - col0 + + col2 FROM tab1
----
58
67
95

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + 56 * 30 + - col0 * - - 54 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT + 20 + - COUNT( * ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-1687
SELECT + 20 + - COUNT ( * ) AS col1 FROM tab1
----
17

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 48 / + 31 NOT IN ( - 87 * - - col2, + 96 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT + COUNT( * ) + - 69 DIV + - 16 AS col2 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-1690
SELECT + COUNT ( * ) + - 69 / + - 16 AS col2 FROM tab1
----
7

query II rowsort
SELECT DISTINCT - - col2 * col0 AS col1, + col1 - + + 25 + + + 47 AS col1 FROM tab1 AS cor0
----
4896
36
5015
27
6188
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT ALL + ( col1 ) DIV - - ( - - 93 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + ( col1 ) / - - ( - - 93 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT col0 * + + 23 AS col0, col2 * - col0 FROM tab0 AS cor0
----
2001
-870
2231
-9603
345
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1694
SELECT 47 * + col2 - - col1 + - col1 + - + col0 - 52 * + - col1 * - CAST( NULL AS SIGNED ) * - 7 - col0 * col2 + - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT 47 * + col2 - - col1 + - col1 + - + col0 - 52 * + - col1 * - CAST ( NULL AS INTEGER ) * - 7 - col0 * col2 + - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL 45 + - COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL 45 + - COUNT ( * ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL ( - MIN( DISTINCT + - 62 ) ) - + + 63 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL ( - MIN ( DISTINCT + - 62 ) ) - + + 63 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 82 FROM tab2 AS cor0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1702
SELECT + + col1 col2, col2 + + + col1 * col2 DIV - 14 AS col2 FROM tab2 AS cor0
----
51
-60
67
-219
77
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1702
SELECT + + col1 col2, col2 + + + col1 * col2 / - 14 AS col2 FROM tab2 AS cor0
----
51
-60
67
-219
77
-180

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

query I rowsort
SELECT ALL + 5 FROM tab2 AS cor0 WHERE NOT ( + col1 + + 38 ) IS NULL
----
5
5
5

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

query I rowsort
SELECT - 92 * - col2 FROM tab1
----
5428
6256
8832

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT - ( - - col2 ) / + ( CAST ( NULL AS INTEGER ) ) * + 3 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL - + COUNT( ( ( col1 ) ) ) AS col0 FROM tab0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - + COUNT ( ( ( col1 ) ) ) AS col0 FROM tab0 WHERE NOT NULL > NULL
----
0

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

query I rowsort
SELECT + ( + 85 ) * - col1 AS col2 FROM tab1
----
-1190
-3995
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT DISTINCT COUNT( * ) + + - 97 FROM tab1 WHERE NULL = NULL
----
-97

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT COUNT ( * ) + + - 97 FROM tab1 WHERE NULL = NULL
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT COUNT( 69 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT COUNT ( 69 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT - + COUNT( DISTINCT - 14 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - + COUNT ( DISTINCT - 14 ) FROM tab0 AS cor0
----
-1

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

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

query I rowsort
SELECT DISTINCT 76 * 16 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT DISTINCT + + MAX( + col0 ) * + AVG ( 61 ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + + MAX ( + col0 ) * + AVG ( 61 ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT + COUNT( * ) * - 93 + - 12 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + + 54 )
----
-12

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT + COUNT ( * ) * - 93 + - 12 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + + 54 )
----
-12

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

query I rowsort
SELECT DISTINCT col2 * - - 66 * - - ( col1 ) AS col1 FROM tab0 AS cor0
----
13860
251262
6534

query I rowsort
SELECT DISTINCT col1 + + + col2 + + col1 - - col0 FROM tab1 AS cor0
----
154
175
253

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT col1 DIV ( 60 ) + - col1 + 30 AS col0 FROM tab1 AS cor0 WHERE 90 >= + + 73
----
-17
16
25

skipif mysql # not compatible
query I rowsort label-1724
SELECT col1 / ( 60 ) + - col1 + 30 AS col0 FROM tab1 AS cor0 WHERE 90 >= + + 73
----
-17
16
25

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

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT COUNT ( * ) + - 14 FROM tab2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1726
SELECT ALL 92 DIV + - 65 + SUM( + col2 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL 92 / + - 65 + SUM ( + col2 ) FROM tab2
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1727
SELECT * FROM tab0 WHERE - 84 <= + CAST( + 51 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1727
SELECT * FROM tab0 WHERE - 84 <= + CAST ( + 51 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1728
SELECT DISTINCT + 3 + - + col1 * - col2 AS col0, + 65 + + - 44 * col2 + + col2 DIV 13 FROM tab0
----
102
-4284
213
-375
3810
-2000

skipif mysql # not compatible
query II rowsort label-1728
SELECT DISTINCT + 3 + - + col1 * - col2 AS col0, + 65 + + - 44 * col2 + + col2 / 13 FROM tab0
----
102
-4284
213
-375
3810
-2000

query I rowsort
SELECT - - 32 * 64 * - col1 - + - 92 FROM tab1 AS cor0
----
-10148
-28580
-96164

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

query I rowsort
SELECT DISTINCT - col1 * 37 FROM tab1
----
-1739
-185
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT COUNT( * ) + SUM( ALL - col2 ) AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-1732
SELECT COUNT ( * ) + SUM ( ALL - col2 ) AS col2 FROM tab0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT ALL 98 DIV + col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL 98 / + col2 AS col2 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1735
SELECT ALL COUNT( * ) DIV 81 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL COUNT ( * ) / 81 AS col1 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL SUM( - col1 ) - - 79 * - COUNT( ALL 5 ) FROM tab0
----
-340

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL SUM ( - col1 ) - - 79 * - COUNT ( ALL 5 ) FROM tab0
----
-340

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

query I rowsort
SELECT ALL col0 * - col1 + - col1 AS col1 FROM tab0
----
-1296
-1848
-98

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

skipif mysql # not compatible
query I rowsort label-1740
SELECT + ( + COUNT ( DISTINCT ( col2 ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT - SUM( - 41 ) + COUNT( * ) col0 FROM tab0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1741
SELECT - SUM ( - 41 ) + COUNT ( * ) col0 FROM tab0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT CAST( 78 AS SIGNED ) FROM tab1 WHERE NOT ( - ( 89 ) ) IS NULL
----
78
78
78

skipif mysql # not compatible
query I rowsort label-1742
SELECT CAST ( 78 AS INTEGER ) FROM tab1 WHERE NOT ( - ( 89 ) ) IS NULL
----
78
78
78

query I rowsort
SELECT DISTINCT + col2 - col1 * + 64 FROM tab1
----
-261
-2940
-800

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

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

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

query I rowsort
SELECT col2 * - 56 - + col0 FROM tab2
----
-1334
-2304
-3323

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT - MIN( DISTINCT col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col1 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > 1 * col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT + 77 * + 82 + + 17 * COUNT( * ) FROM tab1
----
6365

skipif mysql # not compatible
query I rowsort label-1750
SELECT + 77 * + 82 + + 17 * COUNT ( * ) FROM tab1
----
6365

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

query I rowsort
SELECT DISTINCT - ( 13 ) * col2 FROM tab0 WHERE NOT + 37 * + 87 IS NULL
----
-1287
-130
-611

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

query I rowsort
SELECT ALL col0 * - 23 FROM tab1 WHERE NOT 88 IS NULL
----
-1173
-1955
-2093

query I rowsort
SELECT + col2 + col0 * 4 FROM tab1
----
300
399
432

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( - 29 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - 29 ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab1 WHERE NOT 24 <= + col0 / col1
----
42

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( - 69 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1759
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + - col1 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1759
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + - col1 > + CAST ( NULL AS INTEGER )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + ( ( + col0 ) ) ) IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT 78 + + 51 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 5 * 94 IS NULL
----

query I rowsort
SELECT ALL + col0 * - col2 FROM tab1 AS cor0 WHERE + 1 >= NULL
----

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

query I rowsort
SELECT ALL + + 47 + col0 FROM tab0 cor0
----
134
144
62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1769
SELECT * FROM tab0 AS cor0 WHERE ( 18 * col2 ) >= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1769
SELECT * FROM tab0 AS cor0 WHERE ( 18 * col2 ) >= ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT - + 1 * + SUM( - 14 ) AS col1 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-1770
SELECT - + 1 * + SUM ( - 14 ) AS col1 FROM tab2 cor0
----
42

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - 8 + 89 )
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( 69 / col2 + - col0 ) NOT BETWEEN NULL AND + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT + ( - COUNT( * ) ) + + MIN( DISTINCT col0 ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1774
SELECT + ( - COUNT ( * ) ) + + MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT + 31 - + + COUNT( * ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT + 31 - + + COUNT ( * ) AS col2 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT MIN( DISTINCT 73 ) + 56 AS col2 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-1776
SELECT MIN ( DISTINCT 73 ) + 56 AS col2 FROM tab1
----
129

query I rowsort
SELECT DISTINCT + 44 * - - 13 + 20 AS col1 FROM tab2
----
592

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

query I rowsort
SELECT ALL col2 * 87 - + 48 AS col0 FROM tab1
----
5085
5868
8304

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1780
SELECT - COUNT( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 WHERE NULL NOT IN ( - col2 + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT - COUNT ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab2 WHERE NULL NOT IN ( - col2 + 76 )
----
0

query I rowsort
SELECT DISTINCT col1 + - col0 + + 32 FROM tab2
----
24
37
45

query I rowsort
SELECT DISTINCT + 11 - 54 FROM tab0 AS cor0
----
-43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 * + 87 ) NOT IN ( - 66 + + 68 )
----

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

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

query I rowsort
SELECT - col0 - - 87 FROM tab0 cor0
----
-10
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL ( + ( - + COUNT( * ) ) ) + SUM( 13 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL ( + ( - + COUNT ( * ) ) ) + SUM ( 13 ) FROM tab1
----
36

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( NULL BETWEEN ( col2 * + 61 ) AND - col2 )
----

query I rowsort
SELECT DISTINCT - col1 + + col0 + + col2 AS col0 FROM tab1
----
112
133
139

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT DISTINCT 67 DIV + col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT 67 / + col0 FROM tab0
----
0
4

query I rowsort
SELECT DISTINCT - 64 * - ( - + 77 ) FROM tab0
----
-4928

query I rowsort
SELECT ALL - + 87 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

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

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

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

skipif mysql # not compatible
query I rowsort label-1793
SELECT - + MAX ( ALL + 35 ) FROM tab2 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT - - COUNT( * ) * - 23 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - - COUNT ( * ) * - 23 FROM tab0 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT ALL - CAST( - 86 AS SIGNED ) FROM tab0 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL - CAST ( - 86 AS INTEGER ) FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT - col1 * - 41 FROM tab2 AS cor0
----
2091
2747
3157

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT COUNT( * ) * MIN( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-1797
SELECT COUNT ( * ) * MIN ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 9 * + + col2 * - 64 BETWEEN col2 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT + col0 AS col0, col0 * col2 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

query I rowsort
SELECT ( - + col0 ) * - col0 + col1 FROM tab2 cor0
----
2167
4173
5692

query I rowsort
SELECT 89 * - col1 * - + col1 AS col2 FROM tab1
----
17444
196601
2225

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT MIN( + - 56 ) * SUM( 56 ) AS col2 FROM tab0
----
-9408

skipif mysql # not compatible
query I rowsort label-1805
SELECT MIN ( + - 56 ) * SUM ( 56 ) AS col2 FROM tab0
----
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT - 36 * + COUNT( * ) AS col1 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT - 36 * + COUNT ( * ) AS col1 FROM tab0
----
-108

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1807
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 64 - + col0 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT - COUNT( DISTINCT col0 ) FROM tab0 WHERE NOT + 17 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT - COUNT ( DISTINCT col0 ) FROM tab0 WHERE NOT + 17 IS NOT NULL
----
0

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

query I rowsort
SELECT - 22 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1814
SELECT + CAST( NULL AS SIGNED ) / - AVG ( ALL + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) > ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT + CAST ( NULL AS INTEGER ) / - AVG ( ALL + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) > ( col0 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1815
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * ( + COUNT( * ) ) * 88 + - 1 + - COUNT( + col0 + col2 ) * 94 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - CAST ( NULL AS REAL ) * ( + COUNT ( * ) ) * 88 + - 1 + - COUNT ( + col0 + col2 ) * 94 AS col0 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1817
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - - CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1817
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - - CAST ( NULL AS INTEGER ) ) <= NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE ( + ( - 8 ) + - col2 ) IS NULL
----

query I rowsort
SELECT ALL ( - 40 ) AS col1 FROM tab1
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT col1 DIV col0 + + - col0 FROM tab0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-1820
SELECT col1 / col0 + + - col0 FROM tab0
----
-10
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 79 < ( NULL )
----

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

query I rowsort
SELECT + ( ( col0 ) ) + col0 AS col0 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 49 / + 89 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE ( + col1 + - col2 * - + col1 - - col2 - col0 * + col2 ) IN ( col1 * 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT + COUNT( ALL 14 ) + + + 30 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT + COUNT ( ALL 14 ) + + + 30 FROM tab0 AS cor0
----
33

query I rowsort
SELECT ALL - 11 + - col2 AS col2 FROM tab0 AS cor0
----
-110
-21
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - + 37 AND + ( col2 ) + - - 9 * + 74
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT + COUNT( + - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1831
SELECT + COUNT ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

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

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

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE + + col1 + - 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT DISTINCT + COUNT( * ) + MIN( ALL - col2 ) AS col2 FROM tab1 WHERE - col0 / - col1 + - col2 IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + COUNT ( * ) + MIN ( ALL - col2 ) AS col2 FROM tab1 WHERE - col0 / - col1 + - col2 IS NOT NULL
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT DISTINCT - CAST( - 15 AS SIGNED ) FROM tab0, tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - CAST ( - 15 AS INTEGER ) FROM tab0, tab0 AS cor0
----
15

query I rowsort
SELECT + col0 * - + 98 * - col1 - 75 FROM tab0
----
118995
178971
9431

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL + COUNT( * ) * COUNT( * ) - - 96 FROM tab1 WHERE ( 75 ) NOT IN ( - col1 )
----
105

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL + COUNT ( * ) * COUNT ( * ) - - 96 FROM tab1 WHERE ( 75 ) NOT IN ( - col1 )
----
105

query I rowsort
SELECT 70 - + 97 FROM tab0
----
-27
-27
-27

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

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

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

query I rowsort
SELECT ( 82 ) + 7 + - - col1 * + - 45 AS col2 FROM tab2 AS cor0
----
-2206
-2926
-3376

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT + SUM( ALL - 42 ) AS col2 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT + SUM ( ALL - 42 ) AS col2 FROM tab2 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT DISTINCT + MIN( DISTINCT 96 ) AS col2 FROM tab0 WHERE NOT - - 15 * - + ( + + ( col0 ) ) * - 50 - 43 * col1 + + col2 >= ( - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT + MIN ( DISTINCT 96 ) AS col2 FROM tab0 WHERE NOT - - 15 * - + ( + + ( col0 ) ) * - 50 - 43 * col1 + + col2 >= ( - 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT COUNT( * ) + - 56 * + 7 AS col1 FROM tab2 WHERE NOT + ( - 52 ) IN ( - col1 )
----
-389

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT COUNT ( * ) + - 56 * + 7 AS col1 FROM tab2 WHERE NOT + ( - 52 ) IN ( - col1 )
----
-389

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

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

query I rowsort
SELECT DISTINCT col1 * - - 86 FROM tab1 AS cor0
----
1204
4042
430

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT ALL + 61 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + 61 / col2 AS col1 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1849
SELECT ALL col2 * CAST( NULL AS DECIMAL ) AS col1, + col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1849
SELECT ALL col2 * CAST ( NULL AS REAL ) AS col1, + col2 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - 32 * col1 AS col0 FROM tab1 cor0
----
-1504
-160
-448

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

query I rowsort
SELECT ALL 50 * - col1 AS col0 FROM tab2
----
-2550
-3350
-3850

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT col2 DIV col1 * + + col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-1854
SELECT col2 / col1 * + + col1 FROM tab0
----
0
0
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT COUNT( * ) * - MIN( ALL + col1 ) * 74 AS col2 FROM tab2
----
-11322

skipif mysql # not compatible
query I rowsort label-1856
SELECT COUNT ( * ) * - MIN ( ALL + col1 ) * 74 AS col2 FROM tab2
----
-11322

query I rowsort
SELECT col2 * - + 47 FROM tab1
----
-2773
-3196
-4512

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( + col1 + - col1 * + 17 * - + col2 )
----

query I rowsort
SELECT col0 * 84 FROM tab2
----
3864
5376
6300

query I rowsort
SELECT ALL ( - 12 ) + col0 FROM tab1
----
39
73
79

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

query I rowsort
SELECT ALL 69 + - col1 * - col2 FROM tab0
----
168
279
3876

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT IN ( - col1 * - 74 + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1864
SELECT DISTINCT - 16 - - col2 + 55 DIV 77 col2, - col0 DIV + + 46 AS col0 FROM tab1 cor0
----
43
-1
52
-1
80
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1864
SELECT DISTINCT - 16 - - col2 + 55 / 77 col2, - col0 / + + 46 AS col0 FROM tab1 cor0
----
43
-1
52
-1
80
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 54 IN ( - 3 * + 93, - col2 )
----

query I rowsort
SELECT - + col0 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
2392
4992
5100

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

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

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

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

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

query II rowsort
SELECT DISTINCT + - 19 AS col1, - col2 + 90 FROM tab2 AS cor0 WHERE NOT - 76 * - col1 < NULL
----

query I rowsort
SELECT - 31 + + col2 + + col1 AS col0 FROM tab0 cor0
----
0
69
97

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT + CAST ( NULL AS INTEGER ) / col0 * + col0 + - + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 68 + col2 AS col2 FROM tab0
----
115
167
78

query I rowsort
SELECT col2 + - 37 FROM tab1
----
22
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + - col2 col2 FROM tab2
----
40
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT 62 DIV + + 77 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1876
SELECT 62 / + + 77 AS col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col1 / col0 * - col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1878
SELECT ALL - col0 col0, CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT col0 AS col0, col2 + + + 31 AS col2 FROM tab2 AS cor0
----
46
54
64
71
75
89

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT + 46 AS col1, 64 * + + MAX( 23 ) AS col1 FROM tab2 AS cor0
----
46
1472

skipif mysql # not compatible
query II rowsort label-1881
SELECT + 46 AS col1, 64 * + + MAX ( 23 ) AS col1 FROM tab2 AS cor0
----
46
1472

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

query I rowsort
SELECT ALL 75 + + ( + - 19 ) FROM tab2, tab2 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT + col1 + - 45 AS col1 FROM tab2
----
22
32
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - + col0 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 + - col0 FROM tab0
----
-720
-957
-9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 29 col2, 58 * - 30 FROM tab0, tab2 cor0
----
18 values hashing to 54110ad14fe6fa20981ca8bd470b9ab3

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

query I rowsort
SELECT ALL 60 * col2 * - + col1 FROM tab2
----
-184800
-233160
-70380

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT + 52 * - COUNT( * ) * 45 * - + 79 FROM tab0 AS cor0
----
554580

skipif mysql # not compatible
query I rowsort label-1890
SELECT + 52 * - COUNT ( * ) * 45 * - + 79 FROM tab0 AS cor0
----
554580

query I rowsort
SELECT DISTINCT - ( + ( 18 ) ) - - col0 FROM tab2
----
28
46
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT DISTINCT - + COUNT( * ) AS col2, 67 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= col2
----
0
67

skipif mysql # not compatible
query II rowsort label-1892
SELECT DISTINCT - + COUNT ( * ) AS col2, 67 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= col2
----
0
67

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

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

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( + + 27 IS NULL )
----

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

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

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

query I rowsort
SELECT ALL + + 89 + - - 3 FROM tab2 AS cor0
----
92
92
92

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

query I rowsort
SELECT ALL 51 + - - col1 AS col1 FROM tab1
----
56
65
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - 22 col1 FROM tab1
----
-29
-63
-69

query I rowsort
SELECT ALL - col0 * + col2 + + 62 FROM tab1
----
-4834
-4953
-6126

query I rowsort
SELECT - 83 - + col2 FROM tab1
----
-142
-151
-179

query I rowsort
SELECT 12 AS col0 FROM tab0 cor0
----
12
12
12

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT - col2 DIV 28 DIV + ( 31 ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT - col2 / 28 / + ( 31 ) AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT - + 27, - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 30d7b0426cc2f5e5458a88b9022fd484

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL COUNT( 60 ) * + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL COUNT ( 60 ) * + COUNT ( * ) AS col2 FROM tab2
----
9

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

query I rowsort
SELECT DISTINCT - 74 * - 4 FROM tab1 AS cor0 WHERE NULL <= - 73 + + + col1
----

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * - - col0 / - col1 <= NULL
----

query I rowsort
SELECT DISTINCT - 21 + + 1 AS col2 FROM tab2 cor0
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT - - COUNT( * ) * + + 65 col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1918
SELECT DISTINCT - - COUNT ( * ) * + + 65 col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT + MAX( DISTINCT - 63 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-1919
SELECT + MAX ( DISTINCT - 63 ) FROM tab1
----
-63

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col1 col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL 88 + - + ( - col1 ) * col0 FROM tab2
----
2434
5016
5113

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 78 * + 90 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 + - col2 * - - col2 + - ( ( + + col1 ) ) FROM tab0
----
-111
-2243
-9703

query I rowsort
SELECT + 79 - 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # DIV for integer division: 
query I rowsort label-1928
SELECT col0 DIV - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-69
-76
-99

skipif mysql # not compatible
query I rowsort label-1928
SELECT col0 / - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-69
-76
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT + + MIN( - col1 ) + 12 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-1929
SELECT + + MIN ( - col1 ) + 12 FROM tab2 AS cor0
----
-65

query II rowsort
SELECT + - 69 + + - col1 AS col1, + 83 FROM tab0 AS cor0
----
-150
83
-70
83
-90
83

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

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

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

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

query I rowsort
SELECT DISTINCT 61 * - - col1 AS col1 FROM tab2
----
3111
4087
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1935
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT IN ( + col0, - 49 / - CAST( NULL AS SIGNED ) * 31 * + - col0, + col1 ) )
----

skipif mysql # not compatible
query III rowsort label-1935
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT IN ( + col0, - 49 / - CAST ( NULL AS INTEGER ) * 31 * + - col0, + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT DISTINCT col1 DIV 76 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT col1 / 76 FROM tab0
----
0
1

query I rowsort
SELECT ALL ( + 57 ) FROM tab2
----
57
57
57

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * + col2 >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 AS col1, col1 col0 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL col1 * + 32 - - 51 FROM tab2 AS cor0
----
1683
2195
2515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 88 + + col0 col0 FROM tab2 AS cor0
----
-13
-24
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col1 - + 19 * + col2 * - - 1 IS NOT NULL
----

query I rowsort
SELECT - + col2 + - + col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT + + 30 DIV col1 * - 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1945
SELECT + + 30 / col1 * - 76 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE + col0 = + CAST( 8 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE + col0 = + CAST ( 8 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT - COUNT( * ) + + MAX( + col1 ) + + COUNT( * ) * + 98 AS col2 FROM tab2 AS cor0
----
368

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT - COUNT ( * ) + + MAX ( + col1 ) + + COUNT ( * ) * + 98 AS col2 FROM tab2 AS cor0
----
368

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

query I rowsort
SELECT DISTINCT col1 + + - 38 + col0 FROM tab0
----
58
60
70

query I rowsort
SELECT ALL col1 + - - 90 + + col2 AS col2 FROM tab0
----
121
190
218

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT 43 * COUNT( - col1 ) FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-1951
SELECT 43 * COUNT ( - col1 ) FROM tab0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1952
SELECT DISTINCT + CAST( NULL AS SIGNED ), + MAX( DISTINCT col0 ) DIV + - COUNT( * ) + 25 AS col0 FROM tab1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-1952
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + MAX ( DISTINCT col0 ) / + - COUNT ( * ) + 25 AS col0 FROM tab1
----
NULL
-5

query I rowsort
SELECT - col1 * + 12 AS col0 FROM tab2
----
-612
-804
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT - CAST( NULL AS SIGNED ) * + - col1 / 58 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT - CAST ( NULL AS INTEGER ) * + - col1 / 58 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 1 ) + + + 88 FROM tab2 AS cor0
----
89
89
89

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

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

query I rowsort
SELECT DISTINCT - + ( - 20 ) * col0 AS col2 FROM tab0 AS cor0
----
1740
1940
300

query I rowsort
SELECT - col0 * - + 39 FROM tab1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
1989
3315
3549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1959
SELECT ALL CAST( 64 AS SIGNED ) - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL CAST ( 64 AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 80 * col1 AS col1 FROM tab1 cor0
----
1120
3760
400

query I rowsort
SELECT DISTINCT 67 * - col2 * - 98 * - + col1 FROM tab0 AS cor0
----
-1378860
-24996762
-650034

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 70 col1 FROM tab0 AS cor0 WHERE 24 NOT BETWEEN NULL AND col1
----
-1470
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <= + 13 - + col1 + + + 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, 86 + - 59 AS col2 FROM tab2 AS cor0
----
23
27
40
27
58
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT 28 * - 71 + - COUNT( * ) col2 FROM tab1 WHERE NOT - - col0 IN ( - col0, - 58, 5, - CAST( + - 52 AS SIGNED ) )
----
-1991

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1965
SELECT 28 * - 71 + - COUNT ( * ) col2 FROM tab1 WHERE NOT - - col0 IN ( - col0, - 58, 5, - CAST ( + - 52 AS INTEGER ) )
----
-1991

onlyif mysql # DIV for integer division: 
query II rowsort label-1966
SELECT col2 DIV - col0 AS col2, + col0 FROM tab0
----
-1
97
-3
15
0
87

skipif mysql # not compatible
query II rowsort label-1966
SELECT col2 / - col0 AS col2, + col0 FROM tab0
----
-1
97
-3
15
0
87

onlyif mysql # DIV for integer division: 
query II rowsort label-1967
SELECT DISTINCT col0 DIV col0 AS col1, col0 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-1967
SELECT DISTINCT col0 / col0 AS col1, col0 FROM tab2
----
1
46
1
64
1
75

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

skipif mysql # not compatible
query I rowsort label-1968
SELECT - ( + + SUM ( ALL CAST ( - - col1 AS INTEGER ) ) ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT + + ( + + col0 ) FROM tab1 AS cor0
----
51
85
91

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

query II rowsort
SELECT DISTINCT + 5, col0 + + col1 AS col0 FROM tab1
----
5
138
5
65
5
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1972
SELECT ( - col2 ) * CAST( NULL AS SIGNED ) AS col1, - col1 + col0 + - - 23 FROM tab0
----
NULL
-43
NULL
119
NULL
89

skipif mysql # not compatible
query II rowsort label-1972
SELECT ( - col2 ) * CAST ( NULL AS INTEGER ) AS col1, - col1 + col0 + - - 23 FROM tab0
----
NULL
-43
NULL
119
NULL
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1973
SELECT COUNT( * ) DIV - + MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT COUNT ( * ) / - + MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1974
SELECT ALL - col0, - 70 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL - col0, - 70 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = col1 * - 58
----

query II rowsort
SELECT ALL + 65, + ( - 43 ) AS col2 FROM tab2 AS cor0
----
65
-43
65
-43
65
-43

query I rowsort
SELECT ALL - 3 + - col2 AS col2 FROM tab0 AS cor0
----
-102
-13
-50

query I rowsort
SELECT + col0 * + - col1 + - 7 + + 86 AS col1 FROM tab1 cor0
----
-346
-4198
-635

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT 25 + - - COUNT( * ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-1981
SELECT 25 + - - COUNT ( * ) AS col1 FROM tab2
----
28

query I rowsort
SELECT DISTINCT + col0 + + - col2 FROM tab2
----
17
23
24

query I rowsort
SELECT - 49 + - + 24 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT ALL + 55 + + + 77 * - col2 * - col1 AS col0 FROM tab1
----
103543
22770
246147

query I rowsort
SELECT DISTINCT + col1 + + 21 FROM tab0
----
102
22
42

query II rowsort
SELECT DISTINCT - 28 - 41 AS col1, - col0 FROM tab0
----
-69
-15
-69
-87
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - 74
----
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - 74
----
0

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

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

query I rowsort
SELECT ALL - + col1 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT ALL + 13 AS col1 FROM tab1 AS cor0 WHERE col1 = NULL
----

query I rowsort
SELECT - col1 - + + 1 AS col1 FROM tab0
----
-2
-22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT - COUNT( * ) - SUM( ( - col2 ) ) + + - 68 FROM tab1
----
152

skipif mysql # not compatible
query I rowsort label-1993
SELECT - COUNT ( * ) - SUM ( ( - col2 ) ) + + - 68 FROM tab1
----
152

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

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

query I rowsort
SELECT DISTINCT + 73 * - - col0 + + col0 AS col1 FROM tab0
----
1110
6438
7178

query I rowsort
SELECT DISTINCT - 27 - 79 FROM tab0
----
-106

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT 87 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2000
SELECT 87 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2001
SELECT DISTINCT + ( CAST( - CAST( + - col2 AS SIGNED ) AS SIGNED ) ) DIV - col0 + col1 AS col1 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT + ( CAST ( - CAST ( + - col2 AS INTEGER ) AS INTEGER ) ) / - col0 + col1 AS col1 FROM tab1 AS cor0
----
13
47
5

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

query I rowsort
SELECT - + col0 * - - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( - + 89 ) * - 52 + - - 63 + - + 32 / - - col0 + - col1 > ( col0 )
----

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

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

query I rowsort
SELECT col1 * + - 26 AS col1 FROM tab2 AS cor0
----
-1326
-1742
-2002

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

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

query I rowsort
SELECT ALL col1 * - 53 AS col2 FROM tab0
----
-1113
-4293
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - 95 * - + ( col2 ) FROM tab2
----
2185
3800
5510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2011
SELECT 21 DIV + - MAX( + col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT 21 / + - MAX ( + col2 ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2012
SELECT 38, + MIN( CAST( NULL AS SIGNED ) ) - - - ( - - COUNT( ALL + col2 ) ) * + 34 AS col0 FROM tab2 AS cor0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-2012
SELECT 38, + MIN ( CAST ( NULL AS INTEGER ) ) - - - ( - - COUNT ( ALL + col2 ) ) * + 34 AS col0 FROM tab2 AS cor0
----
38
NULL

query I rowsort
SELECT + col0 * - + col2 + + + col2 * + col2 AS col2 FROM tab0 cor0
----
-770
1504
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2014
SELECT + col1, - col2 / + + CAST( NULL AS SIGNED ) * - - 4 * + - 67 - - 40 col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2014
SELECT + col1, - col2 / + + CAST ( NULL AS INTEGER ) * - - 4 * + - 67 - - 40 col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( + - 92 ) + + - ( - 34 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT ( - col1 ) DIV 47 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT ( - col1 ) / 47 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + col0 col2 FROM tab1
----
-3
-43
-9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( DISTINCT 84 ) col2 FROM tab1 WHERE NULL <> + 54 - ( col1 )
----
NULL

query I rowsort
SELECT + col2 - 77 FROM tab2
----
-19
-37
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT ALL COUNT( * ) / + AVG ( - CAST( NULL AS SIGNED ) ) * 41 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL COUNT ( * ) / + AVG ( - CAST ( NULL AS INTEGER ) ) * 41 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 42 AND + col1 * - 0 * - col2 - + 6 + - 46 - 63
----

query I rowsort
SELECT DISTINCT + 27 - 75 AS col2 FROM tab0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + - MIN( + 73 ) + 65 AS col2 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2028
SELECT + - MIN ( + 73 ) + 65 AS col2 FROM tab2 AS cor0
----
-8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + 40 + col2 FROM tab2 AS cor0
----
-23
63
-40
80
-58
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT DISTINCT - + 67 col1, - COUNT( + + col0 ) FROM tab1 AS cor0
----
-67
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2031
SELECT DISTINCT - + 67 col1, - COUNT ( + + col0 ) FROM tab1 AS cor0
----
-67
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 ) = + - 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT ALL + col2 + CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + col2 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT + 17 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17

query I rowsort
SELECT 80 * - ( + 59 ) FROM tab0
----
-4720
-4720
-4720

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ( - CAST( + + ( 83 ) AS SIGNED ) ) * + + COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-756

skipif mysql # not compatible
query I rowsort label-2037
SELECT ( - CAST ( + + ( 83 ) AS INTEGER ) ) * + + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-756

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT + 98 DIV + 24 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2039
SELECT + 98 / + 24 FROM tab0
----
4
4
4

onlyif mysql # DIV for integer division: 
query II rowsort label-2040
SELECT ALL ( 17 ) * + - col0 AS col1, col1 DIV col0 FROM tab1
----
-1445
0
-1547
0
-867
0

skipif mysql # not compatible
query II rowsort label-2040
SELECT ALL ( 17 ) * + - col0 AS col1, col1 / col0 FROM tab1
----
-1445
0
-1547
0
-867
0

query I rowsort
SELECT ALL + col1 / + + col0 AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT - 64 DIV col1 DIV + + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT - 64 / col1 / + + col0 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 49 >= - col1
----

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

skipif mysql # not compatible
query I rowsort label-2044
SELECT - COUNT ( * ) / + 37 FROM tab0
----
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + 83 / 3 + col2, col2 * - ( ( - + col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - 73 FROM tab1
----
1022
3431
365

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL + COUNT( * ) * + - MAX( DISTINCT - + 8 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
72

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + COUNT ( * ) * + - MAX ( DISTINCT - + 8 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
72

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 9 > + + 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL - + COUNT( DISTINCT 62 ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - + COUNT ( DISTINCT 62 ) AS col0 FROM tab2 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT ALL + col1 DIV - - 59 * - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL + col1 / - - 59 * - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 91 + + col0 * - col2 - col2 + + 31 + - col0 + + col0 * - col2 FROM tab0 AS cor0
----
-1532
-1897
-19462

query I rowsort
SELECT + 85 + 50 AS col0 FROM tab0 cor0
----
135
135
135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT - ( MAX( ALL col2 ) ) + - + COUNT( * ) - 82 AS col1 FROM tab0 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-2056
SELECT - ( MAX ( ALL col2 ) ) + - + COUNT ( * ) - 82 AS col1 FROM tab0 AS cor0
----
-184

query I rowsort
SELECT ALL - 28 + + 79 FROM tab2
----
51
51
51

query I rowsort
SELECT DISTINCT col1 + + col2 * - col0 AS col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT ALL col2 - - - 69 FROM tab0
----
-22
-59
30

onlyif mysql # DIV for integer division: 
query II rowsort label-2060
SELECT + col0 * - col0 + - col0 DIV + + col0 + + col2, - 22 AS col0 FROM tab1
----
-2506
-22
-7167
-22
-8214
-22

skipif mysql # not compatible
query II rowsort label-2060
SELECT + col0 * - col0 + - col0 / + + col0 + + col2, - 22 AS col0 FROM tab1
----
-2506
-22
-7167
-22
-8214
-22

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 80 + + col2 col1 FROM tab2
----
154
197
205

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

query II rowsort
SELECT DISTINCT - + col2 + + 51, - 82 AS col1 FROM tab1 AS cor0
----
-17
-82
-45
-82
-8
-82

query I rowsort
SELECT 95 * 93 FROM tab2 AS cor0
----
8835
8835
8835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2066
SELECT SUM( DISTINCT + + col0 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2066
SELECT SUM ( DISTINCT + + col0 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + MIN( - 1 ) * + + MAX( col1 ) col1 FROM tab2 AS cor0
----
-77

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

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 69 * + - 88 IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 79 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - - MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2073
SELECT - - MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

query II rowsort
SELECT ALL - col0, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT ALL - COUNT( * ) * - CAST( + + 26 AS SIGNED ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL - COUNT ( * ) * - CAST ( + + 26 AS INTEGER ) FROM tab0
----
78

query I rowsort
SELECT ALL - ( - col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2077
SELECT - ( - 6 ) DIV + COUNT( * ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2077
SELECT - ( - 6 ) / + COUNT ( * ) AS col1 FROM tab1
----
2

query I rowsort
SELECT 5 * + + 27 AS col1 FROM tab2
----
135
135
135

query I rowsort
SELECT + ( + col2 ) * col0 * col2 FROM tab0 AS cor0
----
33135
8700
950697

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + - 91 <= 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT COUNT( * ) + + 22 AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-2083
SELECT COUNT ( * ) + + 22 AS col0 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT COUNT( * ) + COUNT( * ) + + 68 * - MIN( + 36 ) AS col1 FROM tab2
----
-2442

skipif mysql # not compatible
query I rowsort label-2084
SELECT COUNT ( * ) + COUNT ( * ) + + 68 * - MIN ( + 36 ) AS col1 FROM tab2
----
-2442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 31 * + 60 * - 33 + + - col0 col2 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
-1289067
-4971795
-61477

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT - + col0 DIV + col0 + 13 AS col0 FROM tab2 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-2087
SELECT - + col0 / + col0 + 13 AS col0 FROM tab2 AS cor0
----
12
12
12

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

query I rowsort
SELECT + 51 * - + 2 * - col0 - - 64 FROM tab0 AS cor0
----
1594
8938
9958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT ALL + 99 * + CAST( - - col1 AS SIGNED ) * + - 66 FROM tab0
----
-137214
-529254
-6534

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + 99 * + CAST ( - - col1 AS INTEGER ) * + - 66 FROM tab0
----
-137214
-529254
-6534

query I rowsort
SELECT DISTINCT 21 - - + 92 + + 18 + 64 + + 63 FROM tab1
----
258

query I rowsort
SELECT ALL + col2 * + col2 + + col0 * - ( - col1 ) AS col2 FROM tab1
----
3906
8901
9930

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

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

query I rowsort
SELECT col0 + + - 49 * + + col1 FROM tab0
----
-3954
-942
48

onlyif mysql # DIV for integer division: 
query II rowsort label-2095
SELECT - col1 + col1, 11 DIV 80 + + - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-2095
SELECT - col1 + col1, 11 / 80 + + - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

query I rowsort
SELECT DISTINCT + col1 - ( - col0 ) AS col1 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 60 * + col1 + 53 + - 56 + + - col2 * - col1 + + col2 col2, - 5 AS col2 FROM tab1
----
441
-5
51
-5
597
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2098
SELECT col0 + + CAST( + - col2 AS SIGNED ) + col2 / - col0 * - + CAST( NULL AS SIGNED ) AS col1, col1 col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2098
SELECT col0 + + CAST ( + - col2 AS INTEGER ) + col2 / - col0 * - + CAST ( NULL AS INTEGER ) AS col1, col1 col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + + + col2 + + ( - col2 ) * - 77 + + col2 col0 FROM tab0
----
1000
7520
7920

onlyif mysql # aggregate syntax: 
query II rowsort label-2100
SELECT - + COUNT( * ), 87 col1 FROM tab1 AS cor0
----
-3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2100
SELECT - + COUNT ( * ), 87 col1 FROM tab1 AS cor0
----
-3
87

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

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

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

query I rowsort
SELECT 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT - 49 * + col0 + + - 25 FROM tab1 cor0 WHERE NOT 83 * col1 < + 79
----
-2524
-4190
-4484

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2107
SELECT DISTINCT col1 / + ( + + col2 ) + CAST( NULL AS DECIMAL ) - + 78 * - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT col1 / + ( + + col2 ) + CAST ( NULL AS REAL ) - + 78 * - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + ( - + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2109
SELECT ALL - col2 DIV col0 * + ( col2 ) + + 69 * - - col0, + col0 FROM tab2
----
3174
46
4416
64
5175
75

skipif mysql # not compatible
query II rowsort label-2109
SELECT ALL - col2 / col0 * + ( col2 ) + + 69 * - - col0, + col0 FROM tab2
----
3174
46
4416
64
5175
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( + + col0, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2110
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( + + col0, col1 )
----
0

query I rowsort
SELECT 92 * + + 14 AS col1 FROM tab0
----
1288
1288
1288

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

skipif mysql # not compatible
query I rowsort label-2112
SELECT + CAST ( + 62 AS INTEGER ) FROM tab2
----
62
62
62

query I rowsort
SELECT 56 + + - col1 FROM tab0
----
-25
35
55

query II rowsort
SELECT col2 * - col1 + - + 59 - - - col1, col1 AS col1 FROM tab1
----
-1417
14
-3302
47
-359
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, - col1 * 54 + - 62 col2 FROM tab2
----
23
-2816
40
-4220
58
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT - 57 + SUM( ALL col2 ) col1 FROM tab2
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2116
SELECT - 57 + SUM ( ALL col2 ) col1 FROM tab2
----
64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * + col0 col2 FROM tab0
----
3915
4365
675

query I rowsort
SELECT - col1 * + 26 AS col0 FROM tab2 AS cor0
----
-1326
-1742
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT - MIN( ALL - + col1 ) + + COUNT( * ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - MIN ( ALL - + col1 ) + + COUNT ( * ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT ALL + 24 * 37 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to b92c2979985a8842d5470e8535e063e8

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( - - col0 ) * - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL - 94 * - COUNT( * ) - + 86 col0 FROM tab2 AS cor0
----
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT ALL - 94 * - COUNT ( * ) - + 86 col0 FROM tab2 AS cor0
----
196

query I rowsort
SELECT DISTINCT - + 80 FROM tab1 AS cor0 WHERE NOT col0 + - - col0 + + - col0 BETWEEN + 78 AND NULL
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2125
SELECT + ( + + 76 ) - COUNT( * ) AS col1, + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + ( + + col1 ) NOT BETWEEN + - 1 AND col0 / - col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-2125
SELECT + ( + + 76 ) - COUNT ( * ) AS col1, + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + ( + + col1 ) NOT BETWEEN + - 1 AND col0 / - col1
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT - ( - + COUNT( DISTINCT - - col0 ) ) + - 29 AS col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2126
SELECT - ( - + COUNT ( DISTINCT - - col0 ) ) + - 29 AS col0 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL + 84 * 70 FROM tab0 AS cor0
----
5880
5880
5880

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 89 = + - col2 + - 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 30 * + col2 * 60 + - + col1 FROM tab2 AS cor0
----
104333
41349
71923

query I rowsort
SELECT + + col2 + col2 * - - col0 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT ALL + col1 * - 17 AS col0 FROM tab2
----
-1139
-1309
-867

query II rowsort
SELECT col2 * - col1 * col1, col0 FROM tab0
----
-308367
15
-4410
87
-99
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT - 83 + + SUM( DISTINCT - 12 ) col1 FROM tab0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2134
SELECT DISTINCT - 83 + + SUM ( DISTINCT - 12 ) col1 FROM tab0
----
-95

query I rowsort
SELECT + 9 AS col2 FROM tab1 WHERE NOT + - 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2136
SELECT ALL - col2, - CAST( 60 AS SIGNED ) AS col0 FROM tab2 WHERE - col0 + ( - - col1 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL - col2, - CAST ( 60 AS INTEGER ) AS col0 FROM tab2 WHERE - col0 + ( - - col1 ) IS NULL
----

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

query I rowsort
SELECT ( + - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT + 5 * + - COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2139
SELECT + 5 * + - COUNT ( * ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) * 7 + - + 86 * col0 AS col1 FROM tab1 AS cor0
----
-4029
-6715
-7189

query I rowsort
SELECT ALL - - 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 96 col1 FROM tab1 AS cor0
----
155
164
192

query II rowsort
SELECT DISTINCT - - col0 AS col2, + 61 FROM tab0 AS cor0
----
15
61
87
61
97
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT ALL - 86 * + ( - + ( + 95 ) ) + - col2 + col0 DIV - 37 AS col2 FROM tab2 AS cor0
----
8110
8129
8146

skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL - 86 * + ( - + ( + 95 ) ) + - col2 + col0 / - 37 AS col2 FROM tab2 AS cor0
----
8110
8129
8146

onlyif mysql # DIV for integer division: 
query II rowsort label-2146
SELECT 93 AS col2, col2 DIV + ( - col1 ) * col0 AS col0 FROM tab2 AS cor0
----
93
0
93
0
93
0

skipif mysql # not compatible
query II rowsort label-2146
SELECT 93 AS col2, col2 / + ( - col1 ) * col0 AS col0 FROM tab2 AS cor0
----
93
0
93
0
93
0

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 AS cor0 WHERE + 54 * + + 52 IS NULL
----

query I rowsort
SELECT ALL + col2 + - 98 AS col0 FROM tab0
----
-51
-88
1

query I rowsort
SELECT col2 * + + 46 AS col0 FROM tab1 WHERE NULL IS NULL
----
2714
3128
4416

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT col1 DIV + - 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2150
SELECT col1 / + - 89 FROM tab1
----
0
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 + + col1 - + col1 + - - col0 - + col1 * col0 >= 51 + - col2
----
15
81
47
87
21
10

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 33 + + - col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT ALL COUNT( * ), 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
62

skipif mysql # not compatible
query II rowsort label-2157
SELECT ALL COUNT ( * ), 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
62

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

query I rowsort
SELECT DISTINCT - - ( 85 ) FROM tab0 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 25 ) col0 FROM tab1 AS cor0
----
-25
-25
-25

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

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

query I rowsort
SELECT ALL + col0 * - - col2 + + col2 * + - col1 AS col0 FROM tab0 AS cor0
----
-3102
660
9504

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - - col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 72 IS NOT NULL
----

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

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

query I rowsort
SELECT ( ( 79 ) ) FROM tab0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 80 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - MIN( ALL col0 ) * COUNT( * ) * - 13 * - 4 + + + 26 FROM tab2 AS cor0
----
-7150

skipif mysql # not compatible
query I rowsort label-2174
SELECT - MIN ( ALL col0 ) * COUNT ( * ) * - 13 * - 4 + + + 26 FROM tab2 AS cor0
----
-7150

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

query I rowsort
SELECT DISTINCT col1 * + 65 FROM tab1 AS cor0
----
3055
325
910

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT DISTINCT + col0 DIV + 54 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + col0 / + 54 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL 95 * + col1 + - - ( + + col1 ) + + col0 AS col2 FROM tab1 AS cor0 WHERE - 10 IS NOT NULL
----
1395
4603
565

query I rowsort
SELECT 8 + - - col2 FROM tab0
----
107
18
55

query I rowsort
SELECT - col1 + - - 86 AS col2 FROM tab0
----
5
65
85

query I rowsort
SELECT ALL 0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col2 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT 56 + + + COUNT( * ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2182
SELECT 56 + + + COUNT ( * ) FROM tab1
----
59

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2184
SELECT DISTINCT CAST( + 71 AS SIGNED ) * - col0 * + - col1 + - + col0 AS col2 FROM tab2
----
166520
349824
356700

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT CAST ( + 71 AS INTEGER ) * - col0 * + - col1 + - + col0 AS col2 FROM tab2
----
166520
349824
356700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2185
SELECT DISTINCT - 89 DIV + COUNT( * ) AS col2 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - 89 / + COUNT ( * ) AS col2 FROM tab0
----
-29

query I rowsort
SELECT col0 * col2 * - 51 AS col0 FROM tab0 AS cor0
----
-35955
-44370
-489753

onlyif mysql # DIV for integer division: 
query II rowsort label-2187
SELECT + 85, - col2 DIV - + 48 AS col2 FROM tab2 cor0
----
85
0
85
0
85
1

skipif mysql # not compatible
query II rowsort label-2187
SELECT + 85, - col2 / - + 48 AS col2 FROM tab2 cor0
----
85
0
85
0
85
1

query I rowsort
SELECT - col2 + - 58 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2189
SELECT SUM( 86 ) + - 84 DIV - MIN( DISTINCT - + col2 ) + 79 AS col1 FROM tab2 AS cor0
----
336

skipif mysql # not compatible
query I rowsort label-2189
SELECT SUM ( 86 ) + - 84 / - MIN ( DISTINCT - + col2 ) + 79 AS col1 FROM tab2 AS cor0
----
336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * 95 + + 88 col2 FROM tab1 AS cor0
----
4268
4268
4268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2191
SELECT COUNT( * ) DIV + 39 * 66 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2191
SELECT COUNT ( * ) / + 39 * 66 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 59 * + + 58 FROM tab1 AS cor0
----
3422
3422
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL COUNT( * ) * - COUNT( DISTINCT + + ( - col1 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL COUNT ( * ) * - COUNT ( DISTINCT + + ( - col1 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - ( + - 48 ) AS col0 FROM tab0
----
48
48
48

query II rowsort
SELECT DISTINCT col2 AS col1, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT + ( - col1 ) + - col0 * + + col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-2397
-5005
-5092

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - col0 * + - col2 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 33 * col0 * + col1 * 55 FROM tab0
----
103645575
17429445
33160050

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

query II rowsort
SELECT ALL - col1 * - - ( + + col2 ), + col1 - + - col2 AS col1 FROM tab2
----
-1173
74
-3080
117
-3886
125

query II rowsort
SELECT col2 AS col2, - 48 + + 75 + + col1 AS col1 FROM tab0
----
10
48
47
108
99
28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 - + - 78 <> + - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( col1 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( col1 * - col0 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + MIN( DISTINCT + col2 ) AS col0 FROM tab2 WHERE col2 * + col1 + col1 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-2205
SELECT + MIN ( DISTINCT + col2 ) AS col0 FROM tab2 WHERE col2 * + col1 + col1 IS NOT NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT 32 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT 32 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + 52 * col2 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + 54 + + COUNT( * ) FROM tab2 WHERE NOT col0 IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-2209
SELECT + 54 + + COUNT ( * ) FROM tab2 WHERE NOT col0 IS NULL
----
57

query I rowsort
SELECT DISTINCT col2 * + 11 FROM tab0
----
1089
110
517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT ALL CAST( NULL AS SIGNED ) - + 76 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL CAST ( NULL AS INTEGER ) - + 76 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 92 + - col2 * - 33 FROM tab2
----
1412
2006
851

query I rowsort
SELECT ALL 30 + - col1 FROM tab1
----
-17
16
25

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

query I rowsort
SELECT DISTINCT + col1 * 16 AS col1 FROM tab2
----
1072
1232
816

query I rowsort
SELECT DISTINCT 23 * + 43 FROM tab0 WHERE 76 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - MAX( DISTINCT - col2 ) * + MAX( + col2 ) AS col0 FROM tab1
----
5664

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - MAX ( DISTINCT - col2 ) * + MAX ( + col2 ) AS col0 FROM tab1
----
5664

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( - 29 / - col2 + col1 * + 7 )
----

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

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

query I rowsort
SELECT - col0 + + 81 FROM tab0
----
-16
-6
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL 99 * - COUNT( * ) col1 FROM tab0
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2222
SELECT ALL 99 * - COUNT ( * ) col1 FROM tab0
----
-297

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col2 AND - col2 * - 23 + 76
----

query I rowsort
SELECT DISTINCT - 95 * + col0 AS col2 FROM tab0
----
-1425
-8265
-9215

query I rowsort
SELECT 70 + col1 * + col0 FROM tab0
----
1285
167
1897

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) <> col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT DISTINCT - col1 * ( + col2 DIV col2 ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT - col1 * ( + col2 / col2 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 46 FROM tab2 WHERE NOT 71 * col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab0 WHERE 47 IS NOT NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT ( 68 * col1 ) < ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( 68 * col1 ) < ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL + 13 * + COUNT( * ) AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + 13 * + COUNT ( * ) AS col2 FROM tab2
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2232
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT ( col1 ) <> CAST( + 59 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( col1 ) <> CAST ( + 59 AS REAL )
----
0

query I rowsort
SELECT 82 AS col2 FROM tab2 WHERE NOT - 74 IN ( + 78 )
----
82
82
82

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT col0 DIV 34 col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2235
SELECT col0 / 34 col2 FROM tab2
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT ALL 13 DIV - 99 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2236
SELECT ALL 13 / - 99 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 - col1 * col0 AS col2 FROM tab1
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL + COUNT( * ) + + ( + COUNT( ALL + 70 ) ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + COUNT ( * ) + + ( + COUNT ( ALL + 70 ) ) AS col2 FROM tab2
----
6

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 46 + col0 NOT IN ( + 17 * 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL - COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT - 61 + 41 AS col1 FROM tab1 cor0
----
-20
-20
-20

query I rowsort
SELECT 71 * col2 + - 1 FROM tab0 AS cor0
----
3336
7028
709

query I rowsort
SELECT DISTINCT 64 * 68 + 46 FROM tab1 AS cor0
----
4398

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT - SUM( ALL ( col1 ) ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT - SUM ( ALL ( col1 ) ) FROM tab1 cor0
----
-66

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > + col0
----

query I rowsort
SELECT ALL + 43 AS col1 FROM tab2 WHERE NULL >= col0
----

query I rowsort
SELECT + 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - 89 * - col2 + - col0 * col0 < + col1 + 55
----
1

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - 89 * - col2 + - col0 * col0 < + col1 + 55
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2251
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 14 IN ( 58 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2251
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 14 IN ( 58 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 20 > ( + col0 + + 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2253
SELECT ALL - COUNT( * ) DIV 58 AS col2 FROM tab1 WHERE NOT + col0 * - 81 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - COUNT ( * ) / 58 AS col2 FROM tab1 WHERE NOT + col0 * - 81 + col1 IS NULL
----
0

query I rowsort
SELECT ALL 47 * col0 FROM tab2
----
2162
3008
3525

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2255
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT CAST( + 47 AS DECIMAL ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT CAST ( + 47 AS REAL ) IS NULL
----
-59
-68
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + MAX( - ( 75 ) ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT + MAX ( - ( 75 ) ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT col0 * - - col2 * col2 AS col0 FROM tab0
----
33135
8700
950697

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 * 27 + - col2 * - 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + 94 AS col1 FROM tab1 AS cor0
----
3
43
9

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + 94 AS col1 FROM tab1 AS cor0
----
3
43
9

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

query I rowsort
SELECT ALL col2 + + 93 * - 36 FROM tab2
----
-3290
-3308
-3325

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 54 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + 65 + - 29 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT - 78 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2267
SELECT - 78 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE + col1 > col2
----
15
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2271
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + 51 > + CAST( + col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2271
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + 51 > + CAST ( + col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 57 BETWEEN ( + col0 ) AND 32 * col2
----
1

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 57 BETWEEN ( + col0 ) AND 32 * col2
----
1

query I rowsort
SELECT DISTINCT col2 * 56 AS col0 FROM tab1 cor0 WHERE 15 > ( col0 + 10 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col0 * + ( col1 ) + col2 * col0 + - col1 FROM tab1
----
395348
41135
41296

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col0 * + ( col1 ) + col2 * col0 + - col1 FROM tab1
----
395348
41135
41296

query I rowsort
SELECT + 5 + + col0 FROM tab1
----
56
90
96

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * + col0 * - 65 + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT col0 * 22 + CAST( + col1 AS SIGNED ) + + col1 FROM tab0
----
1956
2136
492

skipif mysql # not compatible
query I rowsort label-2278
SELECT col0 * 22 + CAST ( + col1 AS INTEGER ) + + col1 FROM tab0
----
1956
2136
492

query I rowsort
SELECT - 71 + col1 AS col1 FROM tab1
----
-24
-57
-66

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

query II rowsort
SELECT ALL 59 + + 54, 40 AS col2 FROM tab1
----
113
40
113
40
113
40

query I rowsort
SELECT - - col1 * + 58 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + COUNT( + col1 ) - COUNT( * ) FROM tab0 WHERE ( col1 * - ( + 25 ) ) NOT IN ( col0 / 77 )
----
0

skipif mysql # not compatible
query I rowsort label-2283
SELECT + COUNT ( + col1 ) - COUNT ( * ) FROM tab0 WHERE ( col1 * - ( + 25 ) ) NOT IN ( col0 / 77 )
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 60 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT + - 10 - - 29 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2287
SELECT + - 10 - - 29 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT - 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL 31 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
31
31
31

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT ALL col0 * CAST( - col2 AS SIGNED ) + CAST( - + 7 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
-1017
-1272
-9610

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL col0 * CAST ( - col2 AS INTEGER ) + CAST ( - + 7 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
-1017
-1272
-9610

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 * + + col1 col2 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # DIV for integer division: 
query II rowsort label-2295
SELECT DISTINCT + 38 AS col1, - col0 DIV + - 81 AS col0 FROM tab1 AS cor0
----
38
0
38
1

skipif mysql # not compatible
query II rowsort label-2295
SELECT DISTINCT + 38 AS col1, - col0 / + - 81 AS col0 FROM tab1 AS cor0
----
38
0
38
1

query I rowsort
SELECT DISTINCT + - 44 * - - col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + - COUNT( * ) * COUNT( * ) * + 2 AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2297
SELECT + - COUNT ( * ) * COUNT ( * ) * + 2 AS col2 FROM tab1 AS cor0
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2298
SELECT ALL + - CAST( NULL AS DECIMAL ) / + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + - CAST ( NULL AS REAL ) / + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 29 * + + col2 AS col1 FROM tab0
----
1363
2871
290

query I rowsort
SELECT + 69 AS col1 FROM tab0 WHERE NOT ( + + col1 + - + col0 + - + col1 ) <> ( + col1 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + COUNT( * ) * 97 AS col1 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-2301
SELECT + COUNT ( * ) * 97 AS col1 FROM tab2
----
291

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - + 85 > ( - col1 )
----
46
64
75

query I rowsort
SELECT DISTINCT 1 FROM tab1 AS cor0 WHERE col0 = col1
----

query I rowsort
SELECT - - ( 52 ) AS col2 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2306
SELECT ALL - SUM( DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - SUM ( DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT + + ( + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT + + ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2308
SELECT + CAST( - col0 AS SIGNED ) DIV + 27 + - 32 FROM tab1 AS cor0
----
-33
-35
-35

skipif mysql # not compatible
query I rowsort label-2308
SELECT + CAST ( - col0 AS INTEGER ) / + 27 + - 32 FROM tab1 AS cor0
----
-33
-35
-35

query I rowsort
SELECT - col2 * - - col0 * - - 76 + - + col2 FROM tab2 AS cor0
----
-194600
-330658
-80431

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT + COUNT( * ) * + 70 AS col1 FROM tab2 cor0 WHERE NOT NULL >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT + COUNT ( * ) * + 70 AS col1 FROM tab2 cor0 WHERE NOT NULL >= + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + - 86 * - 67 + + COUNT( col1 ) FROM tab1 AS cor0 WHERE 51 * + col1 <= + col0
----
5762

skipif mysql # not compatible
query I rowsort label-2311
SELECT + - 86 * - 67 + + COUNT ( col1 ) FROM tab1 AS cor0 WHERE 51 * + col1 <= + col0
----
5762

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2313
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 16 * + ( - col2 ) / col2 * + CAST( + 91 AS SIGNED ) * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2313
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 16 * + ( - col2 ) / col2 * + CAST ( + 91 AS INTEGER ) * + col1 AND NULL
----

query II rowsort
SELECT ALL - col1 * - 96 + - 18 AS col2, col2 FROM tab2 AS cor0
----
4878
23
6414
58
7374
40

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE 94 IS NULL
----

query I rowsort
SELECT 69 - + col0 FROM tab0
----
-18
-28
54

query I rowsort
SELECT DISTINCT 68 - + - col1 AS col2 FROM tab2
----
119
135
145

query I rowsort
SELECT 38 * + col2 * + col1 + 86 * + - col1 * + + col0 * - + col1 * + col1 FROM tab0
----
12104
685703556
69298782

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col1 ) * 4 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT - col1 DIV - col0 + + 82 col0 FROM tab0
----
82
82
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT - col1 / - col0 + + 82 col0 FROM tab0
----
82
82
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2321
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND + 16 - + col2
----

skipif mysql # not compatible
query III rowsort label-2321
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND + 16 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT - 73 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT IN ( + ( CAST( NULL AS SIGNED ) ), col1, col2 )
----

skipif mysql # not compatible
query I rowsort label-2322
SELECT - 73 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT IN ( + ( CAST ( NULL AS INTEGER ) ), col1, col2 )
----

query II rowsort
SELECT 74 * + col2 AS col1, + col2 + + col2 FROM tab2
----
1702
46
2960
80
4292
116

query I rowsort
SELECT DISTINCT col1 * - + 99 FROM tab2
----
-5049
-6633
-7623

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - 53 * - col0 - col2 + - 24 FROM tab1 AS cor0
----
-259608
-265878
-328056

query I rowsort
SELECT DISTINCT - 39 FROM tab2 cor0
----
-39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 / col0 * - 1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2328
SELECT ALL + COUNT( * ) DIV + - 86 * + - CAST( - 38 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + COUNT ( * ) / + - 86 * + - CAST ( - 38 AS INTEGER ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT + 8 * COUNT( * ) AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2329
SELECT + 8 * COUNT ( * ) AS col2 FROM tab2
----
24

query I rowsort
SELECT 60 * - + col2 * - + col0 FROM tab0
----
42300
52200
576180

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT - col0 DIV 87 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT - col0 / 87 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - + col0 FROM tab2 WHERE NOT col0 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2333
SELECT ALL - COUNT( * ), CAST( + MIN( DISTINCT - + 90 ) AS SIGNED ) AS col1 FROM tab1
----
-3
-90

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL - COUNT ( * ), CAST ( + MIN ( DISTINCT - + 90 ) AS INTEGER ) AS col1 FROM tab1
----
-3
-90

query I rowsort
SELECT col0 * - + col0 + - col2 FROM tab2
----
-2139
-4136
-5683

query I rowsort
SELECT + col1 + - 81 * - - 81 FROM tab0 AS cor0
----
-6480
-6540
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL + + COUNT( * ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2336
SELECT ALL + + COUNT ( * ) col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT DISTINCT - - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + AVG ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL <> NULL )
----
NULL

query I rowsort
SELECT ALL + col0 + - ( col0 ) + col0 * 66 + + 52 + col0 * - + col1 * + 70 * - col0 * + 96 AS col2 FROM tab0
----
1068143074
122473042
63234934

query I rowsort
SELECT DISTINCT + ( col2 ) + 71 AS col1 FROM tab0
----
118
170
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2341
SELECT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT ALL + col0 * + - col2 + - 57 * - col0 + + 27 AS col0 FROM tab1 WHERE 84 + col0 <= - - 35 + - + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 94 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2344
SELECT DISTINCT + COUNT( * ) AS col0, - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2344
SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT ALL + 6 + + + col0 AS col1 FROM tab0 AS cor0
----
103
21
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT - - 68 + - + 99 DIV ( - 4 ) FROM tab0 AS cor0 WHERE col2 + col1 IS NOT NULL
----
92
92
92

skipif mysql # not compatible
query I rowsort label-2346
SELECT - - 68 + - + 99 / ( - 4 ) FROM tab0 AS cor0 WHERE col2 + col1 IS NOT NULL
----
92
92
92

query I rowsort
SELECT ALL + 36 + - col0 FROM tab0 AS cor0
----
-51
-61
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ( - 1 ) + + - SUM( ALL - 65 ) * + 14 col1 FROM tab2
----
2729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2348
SELECT ( - 1 ) + + - SUM ( ALL - 65 ) * + 14 col1 FROM tab2
----
2729

query I rowsort
SELECT - ( + 13 ) + - col2 AS col0 FROM tab1
----
-109
-72
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT ALL 79 - - + col2 DIV - col2 AS col1 FROM tab0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL 79 - - + col2 / - col2 AS col1 FROM tab0
----
78
78
78

query I rowsort
SELECT DISTINCT + - 30 * - 99 * + col1 FROM tab0 AS cor0
----
240570
2970
62370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT COUNT( DISTINCT + col1 ) * - ( - + 81 ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT COUNT ( DISTINCT + col1 ) * - ( - + 81 ) AS col0 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT + + 79 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT + + 79 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2356
SELECT col1 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2356
SELECT col1 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + ( + SUM( DISTINCT + - 47 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2357
SELECT + ( + SUM ( DISTINCT + - 47 ) ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT + col2, 62 * + + 22 * col0 * - col2 FROM tab1 AS cor0
----
59
-6840460
68
-8440432
96
-6678144

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT MAX( DISTINCT + col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2359
SELECT MAX ( DISTINCT + col2 ) col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + + MIN( ALL - 90 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2360
SELECT + + MIN ( ALL - 90 ) FROM tab2 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - 75 * + col2 + col2 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2363
SELECT 80 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2363
SELECT 80 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - - 42 AS col1 FROM tab2
----
2142
2814
3234

query I rowsort
SELECT 78 * ( + 68 ) FROM tab1
----
5304
5304
5304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT ALL - CAST( NULL AS SIGNED ) * - + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - CAST ( NULL AS INTEGER ) * - + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2367
SELECT - + 41 DIV + - COUNT( * ) + + 14 * COUNT( * ) col2 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2367
SELECT - + 41 / + - COUNT ( * ) + + 14 * COUNT ( * ) col2 FROM tab1 AS cor0
----
55

query II rowsort
SELECT DISTINCT - + col1 + - col0 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
-138
91
-65
51
-90
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT + 41 + - SUM( ALL - + ( col1 ) ) AS col2 FROM tab1 cor0
----
107

skipif mysql # not compatible
query I rowsort label-2369
SELECT + 41 + - SUM ( ALL - + ( col1 ) ) AS col2 FROM tab1 cor0
----
107

query I rowsort
SELECT ALL - + col1 + - col1 AS col1 FROM tab0 cor0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query II rowsort
SELECT DISTINCT + 52 + + col1 * - col2 AS col2, col2 + - ( + col2 ) FROM tab2
----
-1121
0
-3028
0
-3834
0

query I rowsort
SELECT 54 * + 61 FROM tab2
----
3294
3294
3294

query I rowsort
SELECT - ( + col1 ) * + col2 + col1 + + 48 AS col2 FROM tab0
----
-141
-3678
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT DISTINCT - 97 DIV - col0 + + + 76 - col2 FROM tab1 AS cor0
----
-19
18
9

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT - 97 / - col0 + + + 76 - col2 FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT DISTINCT + 27 DIV - 55 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + 27 / - 55 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT - - col1 * - col1 * col0 * CAST( NULL AS SIGNED ) * + 28 - + 47 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT - - col1 * - col1 * col0 * CAST ( NULL AS INTEGER ) * + 28 - + 47 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, col1 / + col0, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, col1 / + col0, + col0 )
----
0

query I rowsort
SELECT DISTINCT + + ( 75 ) FROM tab0 cor0
----
75

query II rowsort
SELECT DISTINCT - - col1 * + - col0 + - 2 AS col2, - 31 FROM tab1 AS cor0
----
-427
-31
-4279
-31
-716
-31

query II rowsort
SELECT ALL + col0, 48 + col2 FROM tab2 AS cor0
----
46
71
64
88
75
106

query I rowsort
SELECT ALL col2 + + 29 AS col1 FROM tab1 cor0
----
125
88
97

query I rowsort
SELECT DISTINCT - + 62 + + - col2 AS col2 FROM tab1 cor0
----
-121
-130
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, + col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT 45 DIV - ( + 50 ) - col1 AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2385
SELECT 45 / - ( + 50 ) - col1 AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2387
SELECT COUNT( * ) AS col2, - 55 col0 FROM tab0
----
3
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2387
SELECT COUNT ( * ) AS col2, - 55 col0 FROM tab0
----
3
-55

query II rowsort
SELECT 52 AS col2, + 83 + + col2 + + col0 FROM tab2
----
52
152
52
187
52
216

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 * 92 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 * 92 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT MIN( DISTINCT - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT MIN ( DISTINCT - + col2 ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT 8 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT + COUNT( 35 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT + COUNT ( 35 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT 99 DIV col1 * + 6 AS col0 FROM tab0 AS cor0
----
24
594
6

skipif mysql # not compatible
query I rowsort label-2394
SELECT 99 / col1 * + 6 AS col0 FROM tab0 AS cor0
----
24
594
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL + - col0 / - 43 AS col1 FROM tab2 AS cor0 WHERE 86 + col2 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + - col0 / - 43 AS col1 FROM tab2 AS cor0 WHERE 86 + col2 > - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col0 FROM tab1 cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2399
SELECT 3 DIV - + col0 + + - CAST( col2 AS SIGNED ) - - col1 DIV 27 + - 9 * - 8 AS col1, - 38 * - col2 AS col2 FROM tab2
----
16
2204
34
1520
50
874

skipif mysql # not compatible
query II rowsort label-2399
SELECT 3 / - + col0 + + - CAST ( col2 AS INTEGER ) - - col1 / 27 + - 9 * - 8 AS col1, - 38 * - col2 AS col2 FROM tab2
----
16
2204
34
1520
50
874

query I rowsort
SELECT + 1 + + + col2 AS col0 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT DISTINCT 2 * - - 14 + - ( + SUM( - col0 ) ) col2 FROM tab0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2401
SELECT DISTINCT 2 * - - 14 + - ( + SUM ( - col0 ) ) col2 FROM tab0
----
227

query I rowsort
SELECT + 28 + - - ( + + col1 ) * - ( - 6 ) + - col0 FROM tab1
----
-27
219
61

query I rowsort
SELECT - col1 + + 13 FROM tab0
----
-68
-8
12

query I rowsort
SELECT ALL - 96 + + col1 + - 2 AS col1 FROM tab1
----
-51
-84
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT DISTINCT + + col0 / + CAST( NULL AS SIGNED ) / + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT + + col0 / + CAST ( NULL AS INTEGER ) / + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT - + MIN( ALL + + col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2406
SELECT - + MIN ( ALL + + col2 ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - - MIN( + - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2407
SELECT - - MIN ( + - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 WHERE - 25 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 - - 56 AS col2 FROM tab0 cor0
----
103
155
66

query II rowsort
SELECT ALL + col0 * - col1, col2 * - col2 * - + col2 AS col1 FROM tab1 AS cor0
----
-425
205379
-4277
314432
-714
884736

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * - 35 col2 FROM tab2
----
-2485
-2485
-2485

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT MIN( DISTINCT 49 ) AS col2 FROM tab2 WHERE NOT - col0 NOT IN ( + col0 + + - col0 + - col2 * col2 / + ( ( - - col0 ) ), ( - col1 ), - col1, - - col0 - + ( + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT MIN ( DISTINCT 49 ) AS col2 FROM tab2 WHERE NOT - col0 NOT IN ( + col0 + + - col0 + - col2 * col2 / + ( ( - - col0 ) ), ( - col1 ), - col1, - - col0 - + ( + col0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT COUNT( + - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2414
SELECT COUNT ( + - col0 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2415
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 86 NOT IN ( - + 10, + col0, + col1, 41 / - CAST( NULL AS DECIMAL ) * - ( - 98 ) )
----

skipif mysql # not compatible
query III rowsort label-2415
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 86 NOT IN ( - + 10, + col0, + col1, 41 / - CAST ( NULL AS REAL ) * - ( - 98 ) )
----

query I rowsort
SELECT ALL + 63 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT - col1 * 91 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT - col1 * 91 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / - - 68 NOT IN ( + + col1 / - 4, + col0, - ( - - col1 ), 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 37 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE - ( 24 ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT + 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 64 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT + - col0 DIV - col1 + col2 AS col2 FROM tab0 AS cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-2423
SELECT + - col0 / - col1 + col2 AS col2 FROM tab0 AS cor0
----
14
196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ALL COUNT( * ) * + - 6 + + + COUNT( * ) col2 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2424
SELECT ALL COUNT ( * ) * + - 6 + + + COUNT ( * ) col2 FROM tab1
----
-15

query I rowsort
SELECT ALL col0 + + - col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT + ( - col2 ) * + CAST( + 86 AS SIGNED ) FROM tab1
----
-5074
-5848
-8256

skipif mysql # not compatible
query I rowsort label-2426
SELECT + ( - col2 ) * + CAST ( + 86 AS INTEGER ) FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT 26 * + col0 AS col1 FROM tab0
----
2262
2522
390

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + - col0 + - + col1 + - col2 + - col0 + col2 + - + col0 * col0 IS NULL
----

query I rowsort
SELECT ALL col1 - - 50 AS col0 FROM tab1
----
55
64
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2430
SELECT col0 DIV + - col2 + + + 7, col2 AS col2 FROM tab2 AS cor0
----
5
23
6
40
6
58

skipif mysql # not compatible
query II rowsort label-2430
SELECT col0 / + - col2 + + + 7, col2 AS col2 FROM tab2 AS cor0
----
5
23
6
40
6
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + + 78 + - MIN( + 53 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2431
SELECT + + 78 + - MIN ( + 53 ) FROM tab1 AS cor0
----
25

query I rowsort
SELECT + 23 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL + 21 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2434
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - MIN( DISTINCT col0 ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2434
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - MIN ( DISTINCT col0 ) col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * - 28 / col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - - col1
----

query I rowsort
SELECT DISTINCT col1 - + 23 AS col0 FROM tab2
----
28
44
54

query I rowsort
SELECT col1 * + + 91 * col2 FROM tab1 cor0
----
122304
26845
290836

query I rowsort
SELECT ALL col2 * + - ( col1 ) - 92 FROM tab1 AS cor0
----
-1436
-3288
-387

query I rowsort
SELECT DISTINCT + + 84 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2440
SELECT DISTINCT - COUNT( * ) AS col1, 34 AS col1 FROM tab2 AS cor0
----
-3
34

skipif mysql # not compatible
query II rowsort label-2440
SELECT DISTINCT - COUNT ( * ) AS col1, 34 AS col1 FROM tab2 AS cor0
----
-3
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, + col0 + + col0 FROM tab0 AS cor0
----
-1
194
-21
174
-81
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 * - col2 col1 FROM tab1 AS cor0
----
-3127
-3604
-5088

query I rowsort
SELECT DISTINCT + + ( + col2 ) * - col1 AS col0 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT DISTINCT - 46 DIV - ( 74 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT - 46 / - ( 74 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT + col0 DIV + 18 AS col2 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-2445
SELECT + col0 / + 18 AS col2 FROM tab2
----
2
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2446
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( - 31 AS SIGNED ) IN ( + - col2 + - + 23 * col0, + col1 + + 91 + - col0, - 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2446
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( - 31 AS INTEGER ) IN ( + - col2 + - + 23 * col0, + col1 + + 91 + - col0, - 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) + 49 * + col2 + + col2 + - 96 / + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( - 60 ) FROM tab1
----
60
60
60

query I rowsort
SELECT + ( + 1 ) AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT + COUNT( * ) * - + 0 + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> 21
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT + COUNT ( * ) * - + 0 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> 21
----
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2452
SELECT - 43 AS col2, 20 * CAST( NULL AS DECIMAL ) * - col1 col0 FROM tab2
----
-43
NULL
-43
NULL
-43
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2452
SELECT - 43 AS col2, 20 * CAST ( NULL AS REAL ) * - col1 col0 FROM tab2
----
-43
NULL
-43
NULL
-43
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT DISTINCT + - CAST( + 21 AS SIGNED ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + - CAST ( + 21 AS INTEGER ) FROM tab1 AS cor0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 26 AS col1 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT ALL 64 AS col0 FROM tab2 AS cor0 WHERE - 66 * 76 + - - col0 IS NOT NULL
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT ALL + CAST( NULL AS SIGNED ) + + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL + CAST ( NULL AS INTEGER ) + + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2458
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - col1 + + + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2458
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - col1 + + + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 20 AS col1 FROM tab2 cor0
----
-20

query I rowsort
SELECT + - 16 + - 26 + - + col2 * col0 AS col0 FROM tab1 AS cor0
----
-4938
-5057
-6230

query I rowsort
SELECT DISTINCT + - col0 + + col2 * - col2 * - 98 + col0 + + 50 FROM tab0 AS cor0
----
216532
960548
9850

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2462
SELECT DISTINCT - 33, CAST( NULL AS DECIMAL ) / 71 - - - col1 FROM tab2 AS cor0 WHERE NULL IN ( - col2 / + col0, 90, - + CAST( NULL AS SIGNED ) * - 21 * + col0 * + + 19, - - ( col0 ) )
----

skipif mysql # not compatible
query II rowsort label-2462
SELECT DISTINCT - 33, CAST ( NULL AS REAL ) / 71 - - - col1 FROM tab2 AS cor0 WHERE NULL IN ( - col2 / + col0, 90, - + CAST ( NULL AS INTEGER ) * - 21 * + col0 * + + 19, - - ( col0 ) )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT - COUNT( * ) + 87 + - 2 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-2464
SELECT - COUNT ( * ) + 87 + - 2 FROM tab2 cor0
----
82

query I rowsort
SELECT DISTINCT col2 + - - 18 * + + 78 FROM tab2
----
1427
1444
1462

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT col2 * - 30 + - - 14 DIV col1 FROM tab0
----
-1410
-2956
-300

skipif mysql # not compatible
query I rowsort label-2466
SELECT col2 * - 30 + - - 14 / col1 FROM tab0
----
-1410
-2956
-300

query I rowsort
SELECT ALL - col0 - + col1 * + 43 AS col1 FROM tab2
----
-2239
-2956
-3375

query I rowsort
SELECT - 91 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT ALL + - SUM( 59 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL + - SUM ( 59 ) FROM tab1 AS cor0
----
-177

query I rowsort
SELECT DISTINCT + 13 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1001
663
871

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IS NULL AND NULL BETWEEN - col0 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2473
SELECT - - 49 * - COUNT( * ) * + - COUNT( + - col2 ) - - CAST( NULL AS SIGNED ) * + + COUNT( * ) + - AVG ( DISTINCT - col2 ) / - COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT - - 49 * - COUNT ( * ) * + - COUNT ( + - col2 ) - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - AVG ( DISTINCT - col2 ) / - COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - + col2 + 9 AS col2 FROM tab1 AS cor0
----
-50
-59
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - - COUNT( * ) - - - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2475
SELECT - - COUNT ( * ) - - - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + COUNT( DISTINCT - - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2476
SELECT + COUNT ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + COUNT( + 38 ) FROM tab2 AS cor0 WHERE NOT col2 = 43 + col0 - - col1
----
3

skipif mysql # not compatible
query I rowsort label-2477
SELECT + COUNT ( + 38 ) FROM tab2 AS cor0 WHERE NOT col2 = 43 + col0 - - col1
----
3

query I rowsort
SELECT 66 * + 36 FROM tab2 cor0
----
2376
2376
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL - COUNT( 87 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL - COUNT ( 87 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2480
SELECT + col0 * + - 71 * + - col2 AS col2, + 10 DIV - col1 AS col0 FROM tab0 AS cor0
----
50055
0
61770
0
681813
-10

skipif mysql # not compatible
query II rowsort label-2480
SELECT + col0 * + - 71 * + - col2 AS col2, + 10 / - col1 AS col0 FROM tab0 AS cor0
----
50055
0
61770
0
681813
-10

query II rowsort
SELECT + 25 * + col2 AS col2, col1 FROM tab0 AS cor0
----
1175
81
2475
1
250
21

query I rowsort
SELECT + 23 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 81 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT DISTINCT col1 / + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT col1 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL - MAX( - - col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - MAX ( - - col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2485
SELECT COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col2 ) / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT DISTINCT - col2 DIV + - 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - col2 / + - 79 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - + 59, col2 * + 28 AS col0 FROM tab2 AS cor0
----
-59
1120
-59
1624
-59
644

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 83, + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - COUNT( * ) FROM tab2 WHERE + - 23 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT - COUNT ( * ) FROM tab2 WHERE + - 23 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT - COUNT( * ) + - + COUNT( DISTINCT + col0 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2491
SELECT - COUNT ( * ) + - + COUNT ( DISTINCT + col0 ) FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2492
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + CAST( NULL AS SIGNED ) / + + col0 - col1
----

skipif mysql # not compatible
query III rowsort label-2492
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + CAST ( NULL AS INTEGER ) / + + col0 - col1
----

query I rowsort
SELECT - col0 + 58 FROM tab0 cor0
----
-29
-39
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2494
SELECT ALL + - col0 DIV - - col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + - col0 / - - col0 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE + 9 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 < - 48 + - col2 * + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT 6 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT 6 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 17 * col0 * + - col1 FROM tab0 AS cor0
----
-1649
-20655
-31059

query I rowsort
SELECT + - 84 * - + col0 + + + col0 FROM tab2 AS cor0
----
3910
5440
6375

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 73 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - COUNT( * ) + 68 AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - COUNT ( * ) + 68 AS col1 FROM tab0 AS cor0
----
65

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL > col1
----

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 - - - col1 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + + 39 / - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + + 39 / - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col1, col0 FROM tab1 WHERE - ( 15 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT + MAX( col2 ) col2 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2508
SELECT DISTINCT + MAX ( col2 ) col2 FROM tab2
----
58

query I rowsort
SELECT 4 + - col1 * - - col1 AS col2 FROM tab2 cor0
----
-2597
-4485
-5925

query I rowsort
SELECT ALL - - ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT DISTINCT - + col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT - + col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL + - COUNT( * ) + 61 col0 FROM tab1 cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2512
SELECT ALL + - COUNT ( * ) + 61 col0 FROM tab1 cor0
----
58

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2514
SELECT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NULL BETWEEN ( NULL ) AND + col1 ) )
----

query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0 WHERE NOT col0 * - col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + 42 + 34 - + 77 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT ALL - MAX( ALL - col2 ), - 70 * - COUNT( * ) col2 FROM tab2
----
23
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2518
SELECT ALL - MAX ( ALL - col2 ), - 70 * - COUNT ( * ) col2 FROM tab2
----
23
210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT + CAST( + + 17 AS SIGNED ) col1, - col0 AS col1 FROM tab2
----
17
-46
17
-64
17
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2519
SELECT + CAST ( + + 17 AS INTEGER ) col1, - col0 AS col1 FROM tab2
----
17
-46
17
-64
17
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT COUNT( * ) + + 5 + + - ( - 12 ) * + SUM( + col0 ) AS col2 FROM tab0
----
2396

skipif mysql # not compatible
query I rowsort label-2520
SELECT COUNT ( * ) + + 5 + + - ( - 12 ) * + SUM ( + col0 ) AS col2 FROM tab0
----
2396

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT col2 + 48 DIV col2 FROM tab0
----
14
48
99

skipif mysql # not compatible
query I rowsort label-2521
SELECT col2 + 48 / col2 FROM tab0
----
14
48
99

query I rowsort
SELECT DISTINCT 42 * + + 64 FROM tab2
----
2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL ( 61 ) * + CAST( NULL AS SIGNED ) / - + col1 / + - col2 * - CAST( col1 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL ( 61 ) * + CAST ( NULL AS INTEGER ) / - + col1 / + - col2 * - CAST ( col1 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 68 * + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 + - col0 col0 FROM tab1 AS cor0
----
-30
-64
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT + MAX( - 26 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-26

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + MAX ( - 26 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-26

query I rowsort
SELECT ALL col2 * + - col1 AS col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 WHERE 18 <= NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT DISTINCT - + col1 DIV - col2 col2 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2531
SELECT DISTINCT - + col1 / - col2 col2 FROM tab2 cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT DISTINCT col0 DIV + + 30 + - 50 - - - 25 * + col0 * - col1 * + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-23990449
-3134423
-341732347

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT col0 / + + 30 + - 50 - - - 25 * + col0 * - col1 * + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-23990449
-3134423
-341732347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) * ( + - col0 ) + + 94 col2 FROM tab1 AS cor0
----
4371
519
808

query I rowsort
SELECT - 15 + - ( + + col2 ) FROM tab2
----
-38
-55
-73

query III rowsort
SELECT * FROM tab2 WHERE - 71 * + - col0 * + col1 <= - ( - col1 ) * + col2
----

query I rowsort
SELECT ALL 79 * - col2 + col0 AS col0 FROM tab1 WHERE + - col1 IS NOT NULL
----
-4576
-5281
-7533

query II rowsort
SELECT 39 + col1, + col0 FROM tab0
----
120
15
40
97
60
87

query II rowsort
SELECT DISTINCT - col0 + + ( + col1 ) - + 74 AS col0, col2 AS col0 FROM tab1
----
-111
96
-118
68
-154
59

query I rowsort
SELECT - col0 * - + col1 + 27 + - + col0 FROM tab0
----
1227
1767
27

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - 90
----

query I rowsort
SELECT col1 * + 34 AS col0 FROM tab2
----
1734
2278
2618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT DISTINCT col1 - - CAST( - col2 AS SIGNED ) + - col0 + - 76 + - col0 FROM tab2
----
-140
-167
-217

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT col1 - - CAST ( - col2 AS INTEGER ) + - col0 + - 76 + - col0 FROM tab2
----
-140
-167
-217

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT ALL 85 DIV - + 66 + 91 AS col1 FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL 85 / - + 66 + 91 AS col1 FROM tab0
----
90
90
90

query I rowsort
SELECT DISTINCT + col2 + - col1 + - - col0 FROM tab2
----
18
27
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + + col0 + + ( + col2 ) + - col0
----

query II rowsort
SELECT ALL 60 - - + col1 AS col2, - col1 FROM tab1
----
107
-47
65
-5
74
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL BETWEEN + col1 + + + col2 + + 38 AND - 84 )
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL BETWEEN + col1 + + + col2 + + 38 AND - 84 )
----
0

query I rowsort
SELECT + 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT - col1 DIV col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT - col1 / col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + + MIN( ALL + ( col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2551
SELECT + + MIN ( ALL + ( col0 ) ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + + col1 * - 5 + col0 FROM tab0 AS cor0
----
-18
-390
92

query II rowsort
SELECT col2 AS col0, 45 AS col0 FROM tab2
----
23
45
40
45
58
45

query I rowsort
SELECT ALL 28 * - 87 AS col2 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( + 73 ) FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2557
SELECT DISTINCT + col1 AS col2, - 82 AS col2 FROM tab1 WHERE NOT - + CAST( + CAST( 59 AS DECIMAL ) AS SIGNED ) IS NULL
----
14
-82
47
-82
5
-82

skipif mysql # not compatible
query II rowsort label-2557
SELECT DISTINCT + col1 AS col2, - 82 AS col2 FROM tab1 WHERE NOT - + CAST ( + CAST ( 59 AS REAL ) AS INTEGER ) IS NULL
----
14
-82
47
-82
5
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2558
SELECT * FROM tab2 WHERE NOT + 87 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2558
SELECT * FROM tab2 WHERE NOT + 87 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT + CAST( NULL AS SIGNED ) * AVG ( DISTINCT - col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - col2 ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT - + col2 AS col0, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2561
SELECT - col0 * + 13, - CAST( - + 50 AS SIGNED ) AS col1 FROM tab2 cor0
----
-598
50
-832
50
-975
50

skipif mysql # not compatible
query II rowsort label-2561
SELECT - col0 * + 13, - CAST ( - + 50 AS INTEGER ) AS col1 FROM tab2 cor0
----
-598
50
-832
50
-975
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT - ( + col0 ) DIV col1 DIV - + ( + col2 ) * - col1 + - + col2 + + 77 AS col1 FROM tab0 AS cor0
----
-22
30
67

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - ( + col0 ) / col1 / - + ( + col2 ) * - col1 + - + col2 + + 77 AS col1 FROM tab0 AS cor0
----
-22
30
67

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

query I rowsort
SELECT DISTINCT col1 + - col1 + ( + col1 ) FROM tab1
----
14
47
5

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab0 cor1 ON NOT NULL IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT ALL + 79 * - 36 * - 94 AS col2 FROM tab2
----
267336
267336
267336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE + 9 BETWEEN NULL AND - col0 - + col1
----

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE + 9 BETWEEN NULL AND - col0 - + col1
----

query I rowsort
SELECT col0 - - ( - + ( - + col1 ) ) FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT - col1 - + col1 AS col2 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE - 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL COUNT( ALL + 25 ) + COUNT( DISTINCT + col1 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL COUNT ( ALL + 25 ) + COUNT ( DISTINCT + col1 ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT 45 + + + 35 + col0 * 90 FROM tab1
----
4670
7730
8270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 76 * col0 * - col0 - + 86 AS col2, - col2 col1 FROM tab2
----
-160902
-23
-311382
-40
-427586
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT CAST( + - col0 AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2574
SELECT CAST ( + - col0 AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 * col1 AS col1, + col2 - col2 + - + col0 FROM tab0
----
1
-97
441
-87
6561
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2577
SELECT DISTINCT + 52 DIV - COUNT( col2 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT + 52 / - COUNT ( col2 ) FROM tab2
----
-17

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( + - 33 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2579
SELECT - MIN( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT - MIN ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 65 IS NOT NULL ) OR NOT NULL < + + 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 AS col0 FROM tab0 cor0
----
196
297
3822

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 = - + col2 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, 42 FROM tab0
----
10
42
47
42
99
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT + CAST( NULL AS SIGNED ) + - + CAST( + 18 AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT + CAST ( NULL AS INTEGER ) + - + CAST ( + 18 AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 40 + + 32 + + - 25 FROM tab0
----
47
47
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2586
SELECT - col1 + - 18 + - + col0, col2 DIV col2 AS col0 FROM tab2
----
-115
1
-159
1
-160
1

skipif mysql # not compatible
query II rowsort label-2586
SELECT - col1 + - 18 + - + col0, col2 / col2 AS col0 FROM tab2
----
-115
1
-159
1
-160
1

query I rowsort
SELECT col0 + + - ( 92 ) * - col1 AS col0 FROM tab0
----
189
2019
7467

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + - col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL + COUNT( * ) * - 22 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL + COUNT ( * ) * - 22 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT COUNT( * ) + - COUNT( * ) * + COUNT( * ) + COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2590
SELECT COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 2 + + col2 + col2 * ( - col0 ) NOT BETWEEN - 24 * 8 AND NULL
----

query III rowsort
SELECT ALL - 32, col0 * - col0 AS col1, + 26 * - col0 AS col2 FROM tab2
----
9 values hashing to 073c1e02564ab9229d878a165edce96c

query I rowsort
SELECT DISTINCT + 67 + col0 AS col1 FROM tab0 AS cor0
----
154
164
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ( + + SUM( 59 ) ) FROM tab2 cor0
----
177

skipif mysql # not compatible
query I rowsort label-2594
SELECT ( + + SUM ( 59 ) ) FROM tab2 cor0
----
177

query I rowsort
SELECT + 41 + - col2 AS col2 FROM tab1 AS cor0
----
-18
-27
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2596
SELECT col2 + + 52 DIV - - col0 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-2596
SELECT col2 + + 52 / - - col0 FROM tab1 AS cor0
----
59
68
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 63 AS col2, - ( - col2 ) + + col0 col0 FROM tab2 AS cor0
----
-63
104
-63
133
-63
69

query I rowsort
SELECT - + col0 + - - col0 + + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT - MIN( ALL + + 36 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-2599
SELECT - MIN ( ALL + + 36 ) FROM tab0
----
-36

query I rowsort
SELECT ALL - col2 * + col0 * + col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT ALL * FROM tab2 WHERE 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 - + + 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 1 * - - 68 * - col2 * - 35 / col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2604
SELECT DISTINCT col0 DIV col0 + 1, - col0 AS col1 FROM tab0 AS cor0
----
2
-15
2
-87
2
-97

skipif mysql # not compatible
query II rowsort label-2604
SELECT DISTINCT col0 / col0 + 1, - col0 AS col1 FROM tab0 AS cor0
----
2
-15
2
-87
2
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT - - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2605
SELECT - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - 51 AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-51
-51
-51

query I rowsort
SELECT ALL + ( - col1 ) * - col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( + + col0 + + col2 ) AND + col0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT DISTINCT + SUM( DISTINCT + - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT + SUM ( DISTINCT + - col2 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT ALL + 67 * 34 + - col1 AS col2 FROM tab0 AS cor0
----
2197
2257
2277

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT COUNT( ALL - + 44 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2611
SELECT COUNT ( ALL - + 44 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 86 * ( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 42 * + + ( 42 ) + col0 AS col0 FROM tab1 AS cor0
----
1815
1849
1855

query I rowsort
SELECT ALL 25 + - - col2 AS col1 FROM tab1 AS cor0
----
121
84
93

onlyif mysql # DIV for integer division: 
query II rowsort label-2615
SELECT + col2, + 86 - - 81 DIV - col2 AS col0 FROM tab2 AS cor0
----
23
83
40
84
58
85

skipif mysql # not compatible
query II rowsort label-2615
SELECT + col2, + 86 - - 81 / - col2 AS col0 FROM tab2 AS cor0
----
23
83
40
84
58
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT MAX( ALL + - col0 ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2616
SELECT MAX ( ALL + - col0 ) AS col1 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2617
SELECT DISTINCT + - 94 + - + COUNT( * ) * + MAX( ALL + col0 ) AS col0, 18 AS col1 FROM tab2 WHERE NOT + col2 - col1 <= - col0
----
-319
18

skipif mysql # not compatible
query II rowsort label-2617
SELECT DISTINCT + - 94 + - + COUNT ( * ) * + MAX ( ALL + col0 ) AS col0, 18 AS col1 FROM tab2 WHERE NOT + col2 - col1 <= - col0
----
-319
18

query I rowsort
SELECT DISTINCT 91 + 10 - - - col0 FROM tab2
----
26
37
55

onlyif mysql # DIV for integer division: 
query II rowsort label-2619
SELECT - ( + - 26 ) AS col0, col2 DIV + col2 FROM tab0
----
26
1
26
1
26
1

skipif mysql # not compatible
query II rowsort label-2619
SELECT - ( + - 26 ) AS col0, col2 / + col2 FROM tab0
----
26
1
26
1
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT + 78 * 35 * - COUNT( * ) FROM tab0
----
-8190

skipif mysql # not compatible
query I rowsort label-2620
SELECT + 78 * 35 * - COUNT ( * ) FROM tab0
----
-8190

query II rowsort
SELECT + 81 + - + 68, - col1 AS col2 FROM tab2 AS cor0
----
13
-51
13
-67
13
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT DISTINCT 32 + ( + MIN( + 72 ) ) AS col0 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT 32 + ( + MIN ( + 72 ) ) AS col0 FROM tab0
----
104

query I rowsort
SELECT DISTINCT + 85 + 57 - + 54 * + + col0 - + ( - ( col2 ) ) AS col2 FROM tab0
----
-4546
-4997
-621

query I rowsort
SELECT ALL - 7 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT - col1 - - - 46 * - col1 AS col0 FROM tab1
----
2115
225
630

query I rowsort
SELECT + 94 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT ALL CAST( NULL AS SIGNED ) * ( - 31 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL CAST ( NULL AS INTEGER ) * ( - 31 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2628
SELECT 33 - + + 28 + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2628
SELECT 33 - + + 28 + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 87 BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 98 col1 FROM tab2 AS cor0
----
98

query II rowsort
SELECT DISTINCT - col0 AS col2, + 37 FROM tab1
----
-51
37
-85
37
-91
37

query I rowsort
SELECT - 50 * 21 FROM tab0
----
-1050
-1050
-1050

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2633
SELECT ALL + col2 AS col1, col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2633
SELECT ALL + col2 AS col1, col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( col0, col0, - col0 * col1 - + ( + - col2 ) * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 29 ) FROM tab1 cor0 WHERE NOT + col0 + + + 1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + - 38 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 * 23 * - 13 AS col0 FROM tab0
----
-26013
-29003
-4485

query I rowsort
SELECT DISTINCT + 50 * + col1 * col1 + + + col1 * + col1 * - - 13 * - + col0 * - ( - 19 ) AS col2 FROM tab2 cor0
----
-29422512
-82934275
-93429182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col1 + col0 col1 FROM tab1 AS cor0
----
110
2300
247

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT DISTINCT - - col1 DIV 30 * + col1 FROM tab0 AS cor0
----
0
162

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT - - col1 / 30 * + col1 FROM tab0 AS cor0
----
0
162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2642
SELECT ALL + ( + CAST( + - col1 AS SIGNED ) ) * 62 DIV col1 FROM tab1 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + ( + CAST ( + - col1 AS INTEGER ) ) * 62 / col1 FROM tab1 AS cor0
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * col0 + + - col0 IS NULL
----

query I rowsort
SELECT + 88 FROM tab2 AS cor0 WHERE - col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT + MAX( DISTINCT + + col1 ) + 65 AS col0 FROM tab1 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-2645
SELECT + MAX ( DISTINCT + + col1 ) + 65 AS col0 FROM tab1 AS cor0
----
112

query I rowsort
SELECT 77 + - col1 FROM tab0 AS cor0
----
-4
56
76

query I rowsort
SELECT 34 * - col0 + - col1 AS col1 FROM tab2
----
-1615
-2253
-2617

query I rowsort
SELECT ALL - 79 + - + col0 * col0 * + col2 AS col1 FROM tab0
----
-10654
-75769
-931570

query I rowsort
SELECT col1 + 79 FROM tab2
----
130
146
156

onlyif mysql # DIV for integer division: 
query II rowsort label-2650
SELECT DISTINCT - col1 DIV ( - + 35 ) + + 13, ( - col0 ) AS col2 FROM tab2
----
14
-46
14
-75
15
-64

skipif mysql # not compatible
query II rowsort label-2650
SELECT DISTINCT - col1 / ( - + 35 ) + + 13, ( - col0 ) AS col2 FROM tab2
----
14
-46
14
-75
15
-64

query I rowsort
SELECT ALL 56 + + - col1 FROM tab1
----
42
51
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 48 + - ( + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2653
SELECT DISTINCT - 17 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT - 17 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + 40 * col0 AS col1 FROM tab0 cor0
----
3480
3880
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2655
SELECT DISTINCT - COUNT( * ) - + 69 * - MIN( DISTINCT + col1 DIV - col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - COUNT ( * ) - + 69 * - MIN ( DISTINCT + col1 / - col0 ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT DISTINCT + col2 DIV - 81 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + col2 / - 81 AS col1 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT + col0 DIV ( col1 ) AS col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2657
SELECT + col0 / ( col1 ) AS col1 FROM tab1
----
1
17
3

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE 69 BETWEEN ( NULL ) AND ( 57 - - 36 / - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE 21 * - col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT DISTINCT + COUNT( * ) + + MAX( DISTINCT col1 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT + COUNT ( * ) + + MAX ( DISTINCT col1 ) FROM tab0
----
84

query I rowsort
SELECT 72 + - col0 * + col0 FROM tab0
----
-153
-7497
-9337

query I rowsort
SELECT 78 + - 55 FROM tab2
----
23
23
23

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( 70 ) IS NULL
----

query I rowsort
SELECT col2 * - ( - 72 ) FROM tab1
----
4248
4896
6912

query I rowsort
SELECT + 20 FROM tab0 WHERE NULL IS NULL
----
20
20
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2666
SELECT ALL - col0 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - col0 / + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN col0 / 77 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + COUNT( * ) * COUNT( * ) + + COUNT( DISTINCT - col1 ) * - MAX( - 12 ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2669
SELECT + COUNT ( * ) * COUNT ( * ) + + COUNT ( DISTINCT - col1 ) * - MAX ( - 12 ) AS col1 FROM tab2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT + CAST( NULL AS SIGNED ) * - SUM( ALL col0 ) + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT + CAST ( NULL AS INTEGER ) * - SUM ( ALL col0 ) + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 97 + + 13 * + col0 FROM tab0
----
1228
1358
292

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) = + 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT + col2 * col2 FROM tab0 WHERE ( + 90 - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2675
SELECT + col2 * col2 FROM tab0 WHERE ( + 90 - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT 91 FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 + 45 * - col1 FROM tab1
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT 76 + - COUNT( * ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT 76 + - COUNT ( * ) FROM tab2
----
73

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) NOT BETWEEN - col2 * 98 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 80 - - col1 * col0 AS col0 FROM tab2
----
2426
5008
5105

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2681
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) * - CAST( - ( + CAST( col0 AS SIGNED ) ) / + 11 AS DECIMAL ) NOT BETWEEN + 9 * 90 AND col1
----

skipif mysql # not compatible
query III rowsort label-2681
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - CAST ( - ( + CAST ( col0 AS INTEGER ) ) / + 11 AS REAL ) NOT BETWEEN + 9 * 90 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT 90 + - COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT 90 + - COUNT ( * ) FROM tab0
----
87

query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2684
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 + + CAST( + col0 AS SIGNED ) ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2684
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 + + CAST ( + col0 AS INTEGER ) ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - 73 IN ( 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 48 * - col2 FROM tab0 AS cor0
----
-2256
-4752
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 + + col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + 84 FROM tab1
----
143
152
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL - MIN( col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL - MIN ( col0 ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT - AVG ( 96 ) FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 15 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 15 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT + + MAX( col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2692
SELECT + + MAX ( col2 ) col0 FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT DISTINCT + col1 DIV + 5 FROM tab2 AS cor0
----
10
13
15

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + col1 / + 5 FROM tab2 AS cor0
----
10
13
15

query I rowsort
SELECT + 73 * + 71 FROM tab0 AS cor0
----
5183
5183
5183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT - CAST( AVG ( DISTINCT - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2695
SELECT - CAST ( AVG ( DISTINCT - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col1 + + ( - 52 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT ALL 53 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL 53 / + col1 AS col2 FROM tab1 AS cor0
----
1
10
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL COUNT( * ) + + 43 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL COUNT ( * ) + + 43 FROM tab0 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 74 + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL + COUNT( * ) + 61 FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + COUNT ( * ) + 61 FROM tab2 cor0
----
64

query I rowsort
SELECT DISTINCT - col0 + + - ( + col1 ) FROM tab2
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 * col0 + col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 54 col2 FROM tab1
----
-31
-37
3

query I rowsort
SELECT ALL col0 + - ( - 86 ) AS col0 FROM tab0
----
101
173
183

query I rowsort
SELECT - 19 FROM tab2 WHERE ( + col0 ) IN ( - 26 / + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT DISTINCT + COUNT( * ) DIV - 29 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + COUNT ( * ) / - 29 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT ALL - CAST( NULL AS SIGNED ) + col2 + + 43 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 + + 43 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE col1 NOT BETWEEN + 5 AND ( - 77 )
----
51
67
77

query I rowsort
SELECT - col2 * col0 + + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT + COUNT( * ) * 93 + 82 FROM tab1 AS cor0
----
361

skipif mysql # not compatible
query I rowsort label-2711
SELECT + COUNT ( * ) * 93 + 82 FROM tab1 AS cor0
----
361

query I rowsort
SELECT DISTINCT 99 * - 45 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col1, - 34 col2 FROM tab1 AS cor0
----
-59
-34
-68
-34
-96
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0 WHERE 88 * - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0 WHERE 88 * - col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2715
SELECT + col0 AS col1, ( col1 ) DIV col0 AS col1 FROM tab0 AS cor0
----
15
5
87
0
97
0

skipif mysql # not compatible
query II rowsort label-2715
SELECT + col0 AS col1, ( col1 ) / col0 AS col1 FROM tab0 AS cor0
----
15
5
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL COUNT( * ) * + - 73 AS col0 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL COUNT ( * ) * + - 73 AS col0 FROM tab2 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL - MIN( 60 ) * + 44 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2640

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL - MIN ( 60 ) * + 44 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2640

query I rowsort
SELECT + col2 + col0 AS col0 FROM tab2 WHERE NOT - col1 * 6 + col2 >= - 81
----
104
133
69

query I rowsort
SELECT col2 * - + ( - col1 ) * - 82 AS col2 FROM tab1
----
-110208
-24190
-262072

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( col0 + - col1 - + 22 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > col1 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) * - ( - col1 ) col1 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 37 ) col1 FROM tab2
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT ( + + CAST( - 56 AS SIGNED ) ) col2 FROM tab2
----
-56
-56
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2724
SELECT ( + + CAST ( - 56 AS INTEGER ) ) col2 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT ALL + col1 * - - ( + + 85 ) AS col1 FROM tab1
----
1190
3995
425

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN ( - col2 ) AND 36 - - 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 61 ) <> + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT DISTINCT + MAX( 77 ) AS col1 FROM tab1 AS cor0 WHERE - 7 / ( col1 ) NOT IN ( + col2 + + col0 )
----
77

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT + MAX ( 77 ) AS col1 FROM tab1 AS cor0 WHERE - 7 / ( col1 ) NOT IN ( + col2 + + col0 )
----
77

query I rowsort
SELECT DISTINCT + 15 + 59 + + - col0 FROM tab1
----
-11
-17
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2730
SELECT ALL * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) NOT BETWEEN + + col2 + - 20 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2730
SELECT ALL * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) NOT BETWEEN + + col2 + - 20 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2731
SELECT - col1 * - col1 * + 62, + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
161262
51
278318
67
367598
77

skipif mysql # not compatible
query II rowsort label-2731
SELECT - col1 * - col1 * + 62, + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
161262
51
278318
67
367598
77

query II rowsort
SELECT col2 AS col1, + col2 + + + 85 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + ( col1 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 72 + + 68 + 73 + 58 FROM tab2 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT MAX( ALL col0 ) / + ( - + 94 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT MAX ( ALL col0 ) / + ( - + 94 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> + 64 + + 38 + col2 - - col1 * col0
----

query I rowsort
SELECT ALL 31 + + + col2 * col2 FROM tab1 AS cor0
----
3512
4655
9247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT 66 + + COUNT( * ) DIV - SUM( ALL 7 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2738
SELECT 66 + + COUNT ( * ) / - SUM ( ALL 7 ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2739
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT IN ( - 84 )
----

skipif mysql # not compatible
query III rowsort label-2739
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( - 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) / - - 57 * - col2 - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) / - - 57 * - col2 - col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT CAST( - ( + col1 ) AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2741
SELECT CAST ( - ( + col1 ) AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2742
SELECT DISTINCT col2 - - + 85 AS col1, 3 * - - CAST( - + 0 AS SIGNED ) AS col2 FROM tab1
----
144
0
153
0
181
0

skipif mysql # not compatible
query II rowsort label-2742
SELECT DISTINCT col2 - - + 85 AS col1, 3 * - - CAST ( - + 0 AS INTEGER ) AS col2 FROM tab1
----
144
0
153
0
181
0

query I rowsort
SELECT ALL + col0 - - - col0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT MAX( ( col0 ) ) AS col1 FROM tab0 WHERE - col1 * - - col1 IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT MAX ( ( col0 ) ) AS col1 FROM tab0 WHERE - col1 * - - col1 IN ( + col1 )
----
NULL

query I rowsort
SELECT ALL col1 * - ( + col1 ) + - - ( + - col2 ) FROM tab0
----
-100
-451
-6608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 50 col2 FROM tab1 AS cor0 WHERE NOT col1 * - 65 + + col0 * + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT CAST( NULL AS SIGNED ) / - + 27 - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT CAST ( NULL AS INTEGER ) / - + 27 - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL - COUNT( * ) * + ( - + COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - COUNT ( * ) * + ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 54 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
2800
3693
4222

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 23 + + col1 IS NOT NULL
----

query I rowsort
SELECT 3 AS col0 FROM tab1 cor0
----
3
3
3

query I rowsort
SELECT ALL - + 60 FROM tab0 WHERE NULL NOT IN ( - - col0, col0 )
----

query I rowsort
SELECT + + col2 * - col2 AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT + 26 DIV - + 65 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT + 26 / - + 65 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col1 FROM tab1
----
66

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE - + col0 IS NULL
----

query I rowsort
SELECT + + ( - + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + - 78 ) + col0 IN ( col0, - 83 )
----

query I rowsort
SELECT - 21 * col1 FROM tab2 cor0
----
-1071
-1407
-1617

query I rowsort
SELECT ALL - col1 * 4 AS col2 FROM tab1 AS cor0
----
-188
-20
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT - - MIN( ALL + + col0 ) AS col0, - COUNT( * ) AS col2 FROM tab0 cor0
----
15
-3

skipif mysql # not compatible
query II rowsort label-2761
SELECT - - MIN ( ALL + + col0 ) AS col0, - COUNT ( * ) AS col2 FROM tab0 cor0
----
15
-3

query I rowsort
SELECT 61 * 9 FROM tab2 AS cor0
----
549
549
549

query I rowsort
SELECT + ( + col2 ) + - 28 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL <= NULL ) )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + COUNT( * ) * + + 93 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-2765
SELECT + COUNT ( * ) * + + 93 FROM tab1
----
279

query I rowsort
SELECT DISTINCT - ( - 47 ) FROM tab1
----
47

query I rowsort
SELECT col2 * + - col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 17 IS NULL OR NULL <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 45 * - 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT col1, - 67 * + col0 * col2 * + col1 + 66 AS col2, - col2 FROM tab0 AS cor0
----
9 values hashing to 6017d322ae44939c8bbaef4d829579a3

onlyif mysql # DIV for integer division: 
query II rowsort label-2771
SELECT + - col0, col1 DIV col2 + + + 45 DIV col0 AS col2 FROM tab0 AS cor0
----
-15
4
-87
2
-97
0

skipif mysql # not compatible
query II rowsort label-2771
SELECT + - col0, col1 / col2 + + + 45 / col0 AS col2 FROM tab0 AS cor0
----
-15
4
-87
2
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT DISTINCT 31 - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT 31 - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query I rowsort
SELECT ( 42 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - - 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT - 59 + CAST( NULL AS SIGNED ) * - col1 * - col1 * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT - 59 + CAST ( NULL AS INTEGER ) * - col1 * - col1 * - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL + 63 * - COUNT( * ) + - MAX( + 96 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-663

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2776
SELECT ALL + 63 * - COUNT ( * ) + - MAX ( + 96 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-663

query I rowsort
SELECT - 13 * - + 51 AS col1 FROM tab1 AS cor0
----
663
663
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2778
SELECT CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2778
SELECT CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col2 IS NOT NULL AND NOT ( NOT ( + col0 ) NOT IN ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col2 * + 39 AS col1 FROM tab0 WHERE NOT - 14 >= 57 AND + col0 IS NULL
----

query I rowsort
SELECT ALL col2 - - 32 AS col1 FROM tab2
----
55
72
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + 4 + - 14 col1 FROM tab2
----
-33
-50
-68

query I rowsort
SELECT + 91 + col0 * 94 AS col1 FROM tab2
----
4415
6107
7141

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT 28 DIV col1 + col1 FROM tab0
----
22
29
81

skipif mysql # not compatible
query I rowsort label-2785
SELECT 28 / col1 + col1 FROM tab0
----
22
29
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - - COUNT( * ) + + + 43 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2787
SELECT - - COUNT ( * ) + + + 43 FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT 93 + + - COUNT( * ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2788
SELECT 93 + + - COUNT ( * ) FROM tab1 AS cor0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL + 45 - - ( + MAX( - CAST( NULL AS SIGNED ) ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2789
SELECT ALL + 45 - - ( + MAX ( - CAST ( NULL AS INTEGER ) ) ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 96 * + col2 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + ( - 11 ) ) * + 70 * col0 + col1 col2 FROM tab0 cor0
----
-11469
-66969
-74689

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT COUNT( DISTINCT - + col2 ) FROM tab1 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2792
SELECT COUNT ( DISTINCT - + col2 ) FROM tab1 WHERE NOT + col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2793
SELECT * FROM tab0 WHERE NOT + 87 - - 21 + + 51 * + 74 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2793
SELECT * FROM tab0 WHERE NOT + 87 - - 21 + + 51 * + 74 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( + + 52 ) AS col0 FROM tab1 AS cor0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2795
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( - - col1 ) = ( NULL )
----

query II rowsort
SELECT + 46 AS col0, col1 AS col0 FROM tab2 AS cor0
----
46
51
46
67
46
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL 5 * MAX( + col2 ) FROM tab0 AS cor0
----
495

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL 5 * MAX ( + col2 ) FROM tab0 AS cor0
----
495

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL - 41 * COUNT( * ) AS col2 FROM tab0 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - 41 * COUNT ( * ) AS col2 FROM tab0 cor0
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL + COUNT( * ) * COUNT( * ) + + SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + COUNT ( * ) * COUNT ( * ) + + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-186

query I rowsort
SELECT + 95 * - - 99 FROM tab0 AS cor0
----
9405
9405
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2804
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-3

query I rowsort
SELECT DISTINCT ( + - col2 ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + 98 * + 5 * + col2 FROM tab1
----
28910
33320
47040

query II rowsort
SELECT 74 + + col2 + col0, ( 38 ) * - col0 * - 0 AS col1 FROM tab0
----
136
0
171
0
270
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT SUM( + col0 ) + + 17 * 97 col0 FROM tab1
----
1876

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2808
SELECT SUM ( + col0 ) + + 17 * 97 col0 FROM tab1
----
1876

query II rowsort
SELECT ALL ( - - col2 ), 43 AS col0 FROM tab0
----
10
43
47
43
99
43

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 + - col0 <> NULL
----

query I rowsort
SELECT - + col1 + - - col2 + + 64 AS col0 FROM tab0 AS cor0
----
162
30
53

query I rowsort
SELECT - - col2 + - - 17 FROM tab0 AS cor0
----
116
27
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < ( + col1 )
----

query I rowsort
SELECT ALL + 58 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= - - 20
----

query I rowsort
SELECT ALL col1 + + col1 * + 27 FROM tab2
----
1428
1876
2156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * 13 + + col0 * 93 + col2 NOT BETWEEN NULL AND - 24
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE ( col1 NOT BETWEEN 49 AND + col0 )
----
-10
-47
-99

query I rowsort
SELECT 13 + - + col1 FROM tab0 AS cor0
----
-68
-8
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2819
SELECT * FROM tab1 AS cor0 WHERE ( NOT + 98 * col1 + + col2 + - - 38 + - CAST( NULL AS SIGNED ) * - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2819
SELECT * FROM tab1 AS cor0 WHERE ( NOT + 98 * col1 + + col2 + - - 38 + - CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - + col2 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT - COUNT( DISTINCT + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2821
SELECT - COUNT ( DISTINCT + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + COUNT( * ) * - COUNT( - 47 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2822
SELECT + COUNT ( * ) * - COUNT ( - 47 ) FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + 91 - + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL COUNT( * ) - + 94 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL COUNT ( * ) - + 94 FROM tab2
----
-91

query I rowsort
SELECT DISTINCT + col1 * - ( + col0 ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL 52 * - 9 + + + col2 AS col0 FROM tab0 AS cor0
----
-369
-421
-458

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - ( + col2 ) * col2 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 17 * + - 63 * + col1 AS col1 FROM tab2 AS cor0
----
-54621
-71757
-82467

query I rowsort
SELECT + col1 * - 46 * 98 * + - 58 FROM tab1 AS cor0
----
12288808
1307320
3660496

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2830
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2830
SELECT - CAST ( NULL AS REAL ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT MAX( DISTINCT + 59 ) * 42 DIV COUNT( * ) AS col0 FROM tab1
----
826

skipif mysql # not compatible
query I rowsort label-2831
SELECT MAX ( DISTINCT + 59 ) * 42 / COUNT ( * ) AS col0 FROM tab1
----
826

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 * ( - + 9 ) + ( - col0 ) + - + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 * ( - + 9 ) + ( - col0 ) + - + col1 < NULL
----
0

query I rowsort
SELECT ALL col0 * + 45 AS col2 FROM tab1 AS cor0
----
2295
3825
4095

query I rowsort
SELECT ALL - 84 + + - col2 AS col2 FROM tab0 cor0 WHERE col0 >= - 14 / + col0 * 7
----
-131
-183
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT DISTINCT - + col1 DIV col1 DIV col0 - - col0 AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - + col1 / col1 / col0 - - col0 AS col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col2 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 72 * - - col0 IS NULL OR NOT ( NOT col1 * + - 62 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - 38 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col0, col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab0 WHERE NOT + 38 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + 49 FROM tab0
----
-50
2
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL 61 * - COUNT( * ) AS col0 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL 61 * - COUNT ( * ) AS col0 FROM tab2
----
-183

query I rowsort
SELECT - col0 * 68 FROM tab2
----
-3128
-4352
-5100

query I rowsort
SELECT DISTINCT - 81 * + + 27 AS col0 FROM tab1
----
-2187

query I rowsort
SELECT DISTINCT 46 * - 34 AS col1 FROM tab1
----
-1564

query I rowsort
SELECT ALL ( + + col2 ) AS col1 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 <= + 1
----

query I rowsort
SELECT + 27 + - - col1 FROM tab1 AS cor0
----
32
41
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT ALL + 9 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL + 9 / - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - 89 >= NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT DISTINCT - col2 DIV - col1 col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2852
SELECT DISTINCT - col2 / - col1 col2 FROM tab1
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - COUNT( * ) - + + 31 col1 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2853
SELECT - COUNT ( * ) - + + 31 col1 FROM tab2 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT 50 + - COUNT( * ) col2 FROM tab2 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2854
SELECT DISTINCT 50 + - COUNT ( * ) col2 FROM tab2 cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2855
SELECT ALL - + CAST( + 48 AS SIGNED ) AS col1, col1 FROM tab2 AS cor0
----
-48
51
-48
67
-48
77

skipif mysql # not compatible
query II rowsort label-2855
SELECT ALL - + CAST ( + 48 AS INTEGER ) AS col1, col1 FROM tab2 AS cor0
----
-48
51
-48
67
-48
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2856
SELECT - - COUNT( * ) - + COUNT( * ), COUNT( 33 ) AS col1 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-2856
SELECT - - COUNT ( * ) - + COUNT ( * ), COUNT ( 33 ) AS col1 FROM tab2 AS cor0
----
0
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col2 FROM tab0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT - COUNT( * ) AS col1, MAX( ALL + 31 ) col1 FROM tab2
----
-3
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2859
SELECT - COUNT ( * ) AS col1, MAX ( ALL + 31 ) col1 FROM tab2
----
-3
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT + 18 DIV - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT + 18 / - col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT COUNT( * ) AS col0, 42 col2 FROM tab0
----
3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2861
SELECT COUNT ( * ) AS col0, 42 col2 FROM tab0
----
3
42

query II rowsort
SELECT ALL + 99 * + col1 * - 92 AS col0, + col1 AS col0 FROM tab0
----
-191268
21
-737748
81
-9108
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col2 col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2864
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND - col1 * - - col2
----

skipif mysql # not compatible
query III rowsort label-2864
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - col1 * - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - + col1 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT - 52 DIV col1 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 52 / col1 FROM tab1
----
-1
-10
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT + 18 DIV + col1 AS col0 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2868
SELECT + 18 / + col1 AS col0 FROM tab1
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 / - col0 * - + ( - col2 ) - - 18 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col2 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT ALL + col0 * + 83 + + col1 FROM tab0 AS cor0
----
1326
7242
8052

query I rowsort
SELECT DISTINCT - col1 + + col1 * - 9 AS col0 FROM tab0 AS cor0
----
-10
-210
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2874
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) + - + 40 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2874
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + - + 40 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + - col0 + - col1 AS col0 FROM tab2
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + COUNT( * ) + SUM( DISTINCT 85 ) AS col1 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-2876
SELECT + COUNT ( * ) + SUM ( DISTINCT 85 ) AS col1 FROM tab1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2877
SELECT col0 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-2877
SELECT col0 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - ( - col0 ) + + 36 * + col0 + - col0 * col2 * - col2 col1 FROM tab1
----
299025
424104
471889

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 FROM tab1
----
-14
-51
-47
-91
-5
-85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1, 75 - + 74 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2881
SELECT + 99, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
99
-3

skipif mysql # not compatible
query II rowsort label-2881
SELECT + 99, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
99
-3

query I rowsort
SELECT - 38 FROM tab2 AS cor0 WHERE - 20 + - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 81 + - + col1 AS col0 FROM tab1 cor0
----
34
67
76

query I rowsort
SELECT ALL + - col1 * col0 + + 0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2885
SELECT + SUM( DISTINCT - col2 ) DIV + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2885
SELECT + SUM ( DISTINCT - col2 ) / + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT + 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT + col0 - + + col1 + 10 * - 18 FROM tab1
----
-100
-136
-143

query I rowsort
SELECT 52 + 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to abec6b3410aa771c209e22ecdf81edba

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 IS NULL
----

query I rowsort
SELECT + 38 + + ( + - col2 ) + - ( + - 15 ) FROM tab1 AS cor0
----
-15
-43
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL + - COUNT( DISTINCT + col2 ) - - - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL + - COUNT ( DISTINCT + col2 ) - - - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-2892
SELECT - + col2 AS col2, - col1 DIV - + col1 + + 56 AS col1 FROM tab0 AS cor0
----
-10
57
-47
57
-99
57

skipif mysql # not compatible
query II rowsort label-2892
SELECT - + col2 AS col2, - col1 / - + col1 + + 56 AS col1 FROM tab0 AS cor0
----
-10
57
-47
57
-99
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2893
SELECT ALL + - CAST( + 81 AS SIGNED ) FROM tab0 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL + - CAST ( + 81 AS INTEGER ) FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT - 28 * - + col2 + + col1 FROM tab2 AS cor0
----
1197
1691
695

query I rowsort
SELECT DISTINCT - 19 * col1 FROM tab2 AS cor0
----
-1273
-1463
-969

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query II rowsort
SELECT col2 * - col0, 88 AS col0 FROM tab2 AS cor0
----
-1058
88
-2560
88
-4350
88

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN - - col0 AND - ( - + 95 ) + + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - ( ( - col2 ) ) AS col0, 18 AS col0 FROM tab2 AS cor0
----
23
18
40
18
58
18

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + + col0
----

query II rowsort
SELECT ALL col0 AS col1, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( - 74 )
----

onlyif mysql # aggregate syntax: 
query III rowsort label-2903
SELECT - COUNT( * ) AS col2, + COUNT( * ) AS col2, - 27 FROM tab2 WHERE NOT NULL IS NULL
----
0
0
-27

skipif mysql # not compatible
query III rowsort label-2903
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2, - 27 FROM tab2 WHERE NOT NULL IS NULL
----
0
0
-27

query II rowsort
SELECT DISTINCT + 51 AS col0, - 69 + + + ( + col0 ) FROM tab1 AS cor0
----
51
-18
51
16
51
22

query I rowsort
SELECT ALL - + col0 * + 43 + 77 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * 71 * + - 31 NOT BETWEEN - + 10 AND NULL
----

query I rowsort
SELECT - ( - + 40 ) FROM tab1 AS cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 < + - col1 + - col2 * - 35 / - col2 / col2
----

query II rowsort
SELECT + col1, col0 + + col0 FROM tab1 AS cor0
----
14
102
47
182
5
170

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT DISTINCT 71 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
71
3

skipif mysql # not compatible
query II rowsort label-2909
SELECT DISTINCT 71 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71
3

query I rowsort
SELECT ALL + 4 + - 7 + - - 67 FROM tab0
----
64
64
64

query I rowsort
SELECT + + col1 * - - col1 / + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 > - 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 54 + - + 35 AS col1 FROM tab1
----
19

query I rowsort
SELECT col2 * col2 + - col2 AS col2 FROM tab1
----
3422
4556
9120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT + 6 * - - MIN( ALL + - CAST( NULL AS SIGNED ) ) + - COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT + 6 * - - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> - + col2 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 24 * col2 BETWEEN ( NULL ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + - COUNT( * ) + + - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + - COUNT ( * ) + + - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2919
SELECT + ( + 44 ) - + - CAST( NULL AS SIGNED ) AS col1, ( + 49 ) AS col2 FROM tab2
----
NULL
49
NULL
49
NULL
49

skipif mysql # not compatible
query II rowsort label-2919
SELECT + ( + 44 ) - + - CAST ( NULL AS INTEGER ) AS col1, ( + 49 ) AS col2 FROM tab2
----
NULL
49
NULL
49
NULL
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0, 96 + - col2 * - - col1 - col0 + + col2 * + col0, 52 * + col0 + col0, + 74, - col2, - col2 + + - col2 * - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2923
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 * + + col2 / - CAST( 90 AS SIGNED ) * - - 95 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2923
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 * + + col2 / - CAST ( 90 AS INTEGER ) * - - 95 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 45 col0 FROM tab1 AS cor0
----
2115
225
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT DISTINCT + 22 DIV + COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT + 22 / + COUNT ( * ) FROM tab0 AS cor0
----
7

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 66 / + - col0 NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT DISTINCT + col2 AS col1, col2 AS col0 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2928
SELECT 65 DIV - SUM( ALL + col2 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2928
SELECT 65 / - SUM ( ALL + col2 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2929
SELECT - 30, - col1 DIV ( col2 ) AS col2 FROM tab0
----
-30
-1
-30
-2
-30
0

skipif mysql # not compatible
query II rowsort label-2929
SELECT - 30, - col1 / ( col2 ) AS col2 FROM tab0
----
-30
-1
-30
-2
-30
0

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT + col1 / - col1 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT 6 DIV - col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT 6 / - col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col1 * col0 + + col2 IS NOT NULL AND NOT NULL NOT IN ( 79 )
----

query II rowsort
SELECT ALL + col0 AS col2, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT DISTINCT COUNT( * ), - 71 * + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-639

skipif mysql # not compatible
query II rowsort label-2934
SELECT DISTINCT COUNT ( * ), - 71 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-639

onlyif mysql # aggregate syntax: 
query III rowsort label-2935
SELECT + 13 * MAX( ALL col2 ) AS col2, COUNT( DISTINCT + col0 ) AS col2, - + COUNT( * ) FROM tab1
----
1248
3
-3

skipif mysql # not compatible
query III rowsort label-2935
SELECT + 13 * MAX ( ALL col2 ) AS col2, COUNT ( DISTINCT + col0 ) AS col2, - + COUNT ( * ) FROM tab1
----
1248
3
-3

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2937
SELECT + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 26
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 22 NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + - col1 * 21 + col1 * + 84 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 78 + + - col1 AS col1 FROM tab2
----
1
11
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT - 70 - + + MAX( - col2 ) * - 20 AS col2 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - 70 - + + MAX ( - col2 ) * - 20 AS col2 FROM tab0
----
-270

query I rowsort
SELECT col1 * - 72 * - col1 * - 32 FROM tab1 WHERE col2 IS NOT NULL
----
-451584
-5089536
-57600

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2945
SELECT DISTINCT + ( col0 ) * - CAST( NULL AS DECIMAL ) + - + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + ( col0 ) * - CAST ( NULL AS REAL ) + - + col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 36 * + 31 + - col1 FROM tab0 AS cor0
----
-1117
-1137
-1197

query I rowsort
SELECT + ( - ( + 60 ) ) FROM tab0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2948
SELECT * FROM tab2 WHERE NOT 1 + - 74 <> - + CAST( NULL AS SIGNED ) * - + 57 * - col2 * - col0 - + col2
----

skipif mysql # not compatible
query III rowsort label-2948
SELECT * FROM tab2 WHERE NOT 1 + - 74 <> - + CAST ( NULL AS INTEGER ) * - + 57 * - col2 * - col0 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2949
SELECT ALL col0 DIV + 55 col0 FROM tab0 AS cor0 WHERE 49 * - col2 * + CAST( NULL AS SIGNED ) IS NULL
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2949
SELECT ALL col0 / + 55 col0 FROM tab0 AS cor0 WHERE 49 * - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
0
1
1

query II rowsort
SELECT DISTINCT + col0 * + col1, + col0 AS col1 FROM tab0 cor0
----
1215
15
1827
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT col0 * + col0 * + + ( + + col0 ) + - CAST( - 37 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
132688
614162
753608

skipif mysql # not compatible
query I rowsort label-2951
SELECT col0 * + col0 * + + ( + + col0 ) + - CAST ( - 37 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
132688
614162
753608

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT MAX( - col1 ) col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2952
SELECT MAX ( - col1 ) col0 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + + MIN( DISTINCT - + col2 ) * + 13 FROM tab0 AS cor0
----
-1287

skipif mysql # not compatible
query I rowsort label-2953
SELECT + + MIN ( DISTINCT - + col2 ) * + 13 FROM tab0 AS cor0
----
-1287

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT - - COUNT( * ) * - SUM( ALL - - 42 ) col1 FROM tab0 AS cor0
----
-378

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2954
SELECT DISTINCT - - COUNT ( * ) * - SUM ( ALL - - 42 ) col1 FROM tab0 AS cor0
----
-378

query I rowsort
SELECT - ( col0 ) * - + col0 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - ( + 70 ) AS col2, - 87 AS col0 FROM tab1 AS cor0
----
-70
-87
-70
-87
-70
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT COUNT( * ) FROM tab1 WHERE NOT + + col0 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT COUNT ( * ) FROM tab1 WHERE NOT + + col0 + + col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 <= NULL
----

query I rowsort
SELECT ALL + 10 * col1 FROM tab0
----
10
210
810

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 50 NOT BETWEEN col2 AND NULL
----
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT DISTINCT + col2 * + - CAST( NULL AS SIGNED ) * - - col1 / + + 87 - - + 50 + + col2 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + col2 * + - CAST ( NULL AS INTEGER ) * - - col1 / + + 87 - - + 50 + + col2 + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * col1 + + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-9704
-994
1727

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT ALL + COUNT( * ), MAX( ALL + col1 ) AS col0 FROM tab0
----
3
81

skipif mysql # not compatible
query II rowsort label-2965
SELECT ALL + COUNT ( * ), MAX ( ALL + col1 ) AS col0 FROM tab0
----
3
81

query I rowsort
SELECT ALL 42 + col0 AS col2 FROM tab1
----
127
133
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT DISTINCT + 20 * col0 * col0 * col0, col2 AS col2 FROM tab2
----
1946720
23
5242880
40
8437500
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT + - col2 * 82 DIV col1 AS col1 FROM tab0 AS cor0
----
-39
-47
-8118

skipif mysql # not compatible
query I rowsort label-2969
SELECT + - col2 * 82 / col1 AS col1 FROM tab0 AS cor0
----
-39
-47
-8118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2970
SELECT + - ( - CAST( NULL AS DECIMAL ) ) * ( - - col2 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT + - ( - CAST ( NULL AS REAL ) ) * ( - - col2 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT + - CAST( NULL AS SIGNED ) * + COUNT( * ) + + MIN( - - 22 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + MIN ( - - 22 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - + col1 col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col2, - col0 AS col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL - ( - 33 ) FROM tab1 AS cor0
----
33
33
33

query II rowsort
SELECT DISTINCT 64 + - + col0 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
-21
-59
-27
-68
13
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT - ( + COUNT( - col2 ) ) FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT - ( + COUNT ( - col2 ) ) FROM tab2 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE + - col0 - + col1 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 >= + 15 * col1
----

query II rowsort
SELECT ALL + col1 * - col2 - col0 AS col1, ( - 55 ) AS col1 FROM tab1
----
-1395
-55
-3287
-55
-380
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL 42 + 1 + + COUNT( * ) AS col2 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL 42 + 1 + + COUNT ( * ) AS col2 FROM tab1
----
46

query II rowsort
SELECT - col1 + col1 + - col0 AS col1, - 46 AS col1 FROM tab1 AS cor0
----
-51
-46
-85
-46
-91
-46

query I rowsort
SELECT 46 + - 2 + + col1 AS col0 FROM tab2 AS cor0
----
111
121
95

query I rowsort
SELECT + - 1 + col1 + + + col0 FROM tab1 AS cor0
----
137
64
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT 4 + COUNT( * ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 4 + COUNT ( * ) FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT - 88 * + COUNT( * ) col1 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2985
SELECT DISTINCT - 88 * + COUNT ( * ) col1 FROM tab2 AS cor0
----
-264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col2 FROM tab0
----
78

query II rowsort
SELECT DISTINCT col1 AS col2, col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 17 - col1 - 58 / + col2, 77, + - 61 )
----

query I rowsort
SELECT ALL 75 * col1 AS col1 FROM tab1 cor0
----
1050
3525
375

query I rowsort
SELECT DISTINCT + col2 * + 40 AS col2 FROM tab2 AS cor0
----
1600
2320
920

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT COUNT( * ) * - - 80 * - - MAX( col0 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
21837

skipif mysql # not compatible
query I rowsort label-2990
SELECT COUNT ( * ) * - - 80 * - - MAX ( col0 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
21837

query I rowsort
SELECT ALL - col2 * - - col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT DISTINCT - col1 AS col0, 65 * + col1 + - col0 FROM tab0 cor0
----
-1
-32
-21
1278
-81
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT + MAX( ALL - - 94 ) col0 FROM tab1
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2993
SELECT DISTINCT + MAX ( ALL - - 94 ) col0 FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + COUNT( - + ( - 79 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2994
SELECT + COUNT ( - + ( - 79 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT SUM( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-2995
SELECT SUM ( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT ( - - MAX( - + 44 ) ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT ( - - MAX ( - + 44 ) ) FROM tab1 AS cor0
----
-44

query I rowsort
SELECT ALL + 44 AS col0 FROM tab0 cor0
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 NOT IN ( 17, col2 * + col2, - + 79, - col1 + - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT - 57 + COUNT( * ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2999
SELECT - 57 + COUNT ( * ) FROM tab1 AS cor0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + - col2
----

query I rowsort
SELECT + ( col1 ) * col1 + - col1 FROM tab0 AS cor0
----
0
420
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + + col0 col1 FROM tab1
----
121
155
161

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT DISTINCT 24 + + + 25 - + col0 DIV + col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT 24 + + + 25 - + col0 / + col0 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3004
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
81

query I rowsort
SELECT - 86 AS col2 FROM tab2 cor0
----
-86
-86
-86

query I rowsort
SELECT ALL - - 39 AS col0 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT - MIN( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT - MIN ( DISTINCT + + col1 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + + ( - 21 ) FROM tab2 AS cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT + - SUM( DISTINCT 95 ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3011
SELECT + - SUM ( DISTINCT 95 ) FROM tab1 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - ( col2 ) ) AS col2, col2 col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + col0 - + col0 - 3 AS col1 FROM tab0 WHERE NOT NULL <> + 57
----

query I rowsort
SELECT DISTINCT + 16 * - - col1 AS col2 FROM tab2
----
1072
1232
816

query I rowsort
SELECT DISTINCT + col2 * - - 9 AS col0 FROM tab1
----
531
612
864

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT COUNT( * ) AS col0, - 56 FROM tab2
----
3
-56

skipif mysql # not compatible
query II rowsort label-3016
SELECT COUNT ( * ) AS col0, - 56 FROM tab2
----
3
-56

query II rowsort
SELECT ALL col0, - col2 AS col1 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT - MAX( DISTINCT 59 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3018
SELECT - MAX ( DISTINCT 59 ) FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL + 95 * - + 41 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3898

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL + 95 * - + 41 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3898

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT MIN( ALL + + 13 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3020
SELECT MIN ( ALL + + 13 ) FROM tab1 AS cor0
----
13

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <> col2 + col0
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - col1 > NULL
----

query I rowsort
SELECT - 28 - - col0 + col1 FROM tab0 AS cor0
----
68
70
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3024
SELECT ALL + - col0 * - - CAST( NULL AS SIGNED ) + + + 16 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL + - col0 * - - CAST ( NULL AS INTEGER ) + + + 16 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - col1 * col0 + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT + 10 / - col0 + - + CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab1 WHERE NULL >= + 14
----

skipif mysql # not compatible
query I rowsort label-3026
SELECT + 10 / - col0 + - + CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab1 WHERE NULL >= + 14
----

query I rowsort
SELECT DISTINCT + col1 - - + 74 FROM tab0
----
155
75
95

query I rowsort
SELECT ALL 34 - - - col2 FROM tab2
----
-24
-6
11

query I rowsort
SELECT ALL + 14 * - + col2 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - + col1 / - + 88 + - - ( - - col2 ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT - 35 * - + col0 FROM tab2
----
1610
2240
2625

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT ALL col1 DIV + - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL col1 / + - col2 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT + - col2 DIV + 27 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + - col2 / + 27 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + + 61 * - - COUNT( * ) col1 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT + + 61 * - - COUNT ( * ) col1 FROM tab2 AS cor0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab2 cor0
----
40

query I rowsort
SELECT - 39 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT ( + 80 ) AS col2 FROM tab2
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3038
SELECT * FROM tab0 WHERE NOT - col0 + - CAST( NULL AS DECIMAL ) * + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3038
SELECT * FROM tab0 WHERE NOT - col0 + - CAST ( NULL AS REAL ) * + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 16 * - col1 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT MIN( DISTINCT - - 36 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT MIN ( DISTINCT - - 36 ) FROM tab2
----
36

query I rowsort
SELECT ALL + 57 FROM tab0 WHERE NOT + ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - 58 + - ( - 9 ) FROM tab1
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT DISTINCT - COUNT( * ) + MIN( - + col1 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT - COUNT ( * ) + MIN ( - + col1 ) FROM tab0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT - 85 + + 72 DIV 58 * - col0 FROM tab1
----
-136
-170
-176

skipif mysql # not compatible
query I rowsort label-3045
SELECT - 85 + + 72 / 58 * - col0 FROM tab1
----
-136
-170
-176

query III rowsort
SELECT * FROM tab2 WHERE col2 + + - 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 43 + - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT ALL - 69 * col0 + - col1 FROM tab2
----
-3225
-4493
-5242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + - 15 AND 59
----

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + - 15 AND 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL - MAX( + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - MAX ( + col1 ) FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT ( col2 ) * - CAST( col0 AS SIGNED ) * - col2 * col0 * + + col1 + - col2 AS col0 FROM tab1 AS cor0
----
125751066
1799693100
335591328

skipif mysql # not compatible
query I rowsort label-3051
SELECT ( col2 ) * - CAST ( col0 AS INTEGER ) * - col2 * col0 * + + col1 + - col2 AS col0 FROM tab1 AS cor0
----
125751066
1799693100
335591328

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT + CAST( NULL AS SIGNED ) + + 17 * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT + CAST ( NULL AS INTEGER ) + + 17 * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - + 29 + - 22 - - ( - + col1 ) FROM tab0
----
-151
-179
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT - SUM( - 5 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - SUM ( - 5 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col1 - + + col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col2 + - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3058
SELECT ALL + - ( CAST( NULL AS SIGNED ) ), + col0 / - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col1 + + col0 + + 54 * + col0
----

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL + - ( CAST ( NULL AS INTEGER ) ), + col0 / - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col1 + + col0 + + 54 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3059
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT ALL col2 * - CAST( - 16 AS SIGNED ) AS col1 FROM tab1
----
1088
1536
944

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL col2 * - CAST ( - 16 AS INTEGER ) AS col1 FROM tab1
----
1088
1536
944

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT - 31 DIV - col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 31 / - col2 FROM tab0
----
0
0
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3062
SELECT + CAST( - col2 AS SIGNED ) DIV col1 DIV - + col1 AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3062
SELECT + CAST ( - col2 AS INTEGER ) / col1 / - + col1 AS col0 FROM tab1
----
0
0
2

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab2 cor0
----
95

query I rowsort
SELECT ALL + + col2 * - 82 - col2 FROM tab0 AS cor0
----
-3901
-8217
-830

query I rowsort
SELECT DISTINCT + col1 * + + ( - - 49 ) AS col2 FROM tab2 AS cor0
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT - MAX( - 47 ) * - 12 col1 FROM tab2
----
-564

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3067
SELECT - MAX ( - 47 ) * - 12 col1 FROM tab2
----
-564

query I rowsort
SELECT - + 81 AS col0 FROM tab2 cor0
----
-81
-81
-81

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL < + col1 * + col0
----

query I rowsort
SELECT - + 25 * + col2 AS col0 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3071
SELECT DISTINCT + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + SUM( 13 ) AS col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3072
SELECT + SUM ( 13 ) AS col1 FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL COUNT( - ( + - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL COUNT ( - ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 52 + + col0 AS col1 FROM tab0 AS cor0
----
139
149
67

query II rowsort
SELECT ALL 68 - + + col1 + - + 57, col0 FROM tab0 WHERE NOT NULL = ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 75, col1 * col2 col0 FROM tab2
----
75
1173
75
3080
75
3886

query I rowsort
SELECT ALL - ( + 38 ) FROM tab1
----
-38
-38
-38

query II rowsort
SELECT ALL + - col0 AS col1, + 36 FROM tab0 AS cor0
----
-15
36
-87
36
-97
36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - + 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - col0 - - col2 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( 94 ) AS col0 FROM tab0 WHERE - + col1 * - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT - MIN( + 24 ) AS col0 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-3082
SELECT - MIN ( + 24 ) AS col0 FROM tab2
----
-24

query I rowsort
SELECT - - ( + col1 ) - + + col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT col2 - - + col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + 71 - 77 + + + col2 AS col2 FROM tab2 cor0
----
17
34
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 - - col0, col1 col0 FROM tab0 AS cor0
----
-2
1
-32
81
77
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3087
SELECT ALL + MIN( + ( 97 ) ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL + MIN ( + ( 97 ) ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3088
SELECT - CAST( NULL AS DECIMAL ) - + 88 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT - CAST ( NULL AS REAL ) - + 88 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < - 64 + + + col1
----

query I rowsort
SELECT - + col0 FROM tab2 cor0 WHERE NOT + col1 NOT BETWEEN + col0 AND - - col2 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT + MAX( + col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3091
SELECT DISTINCT + MAX ( + col1 ) col1 FROM tab0
----
81

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT ( - 93 ) FROM tab0
----
-93

query I rowsort
SELECT col0 * + 38 AS col2 FROM tab0
----
3306
3686
570

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE - - 44 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT - COUNT( 67 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - COUNT ( 67 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL - col0 * 85 AS col1 FROM tab0
----
-1275
-7395
-8245

query I rowsort
SELECT ALL + 32 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
32
32
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + col0 + - 1 * + 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT + COUNT( + 80 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3100
SELECT + COUNT ( + 80 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT 90 + COUNT( * ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3101
SELECT 90 + COUNT ( * ) AS col2 FROM tab0
----
93

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT - 67 * col0 >= col2 * 59
----
14
47
5

query I rowsort
SELECT - col0 + - 10 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3104
SELECT + SUM( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT + SUM ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT col0 + + 22 AS col2 FROM tab2
----
68
86
97

query I rowsort
SELECT + 75 * col1 FROM tab2 WHERE 72 <> - col0 * - col2 + ( col0 )
----
3825
5025
5775

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 45 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT COUNT( * ) + ( + 74 ) AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-3109
SELECT COUNT ( * ) + ( + 74 ) AS col0 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL + CAST( NULL AS SIGNED ) + + 85 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + CAST ( NULL AS INTEGER ) + + 85 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 68 * - 82 AS col1 FROM tab2 WHERE NULL IS NULL
----
-5576

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * - col1 BETWEEN ( 84 + col1 ) AND 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL COUNT( * ) FROM tab2 WHERE ( - col2 ) BETWEEN ( - col0 ) AND 42
----
3

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL COUNT ( * ) FROM tab2 WHERE ( - col2 ) BETWEEN ( - col0 ) AND 42
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( col1 ) col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT ( - COUNT( * ) ) + MAX( DISTINCT col0 ) AS col1 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3115
SELECT ( - COUNT ( * ) ) + MAX ( DISTINCT col0 ) AS col1 FROM tab1
----
88

query I rowsort
SELECT DISTINCT 63 * - col2 AS col2 FROM tab0
----
-2961
-6237
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT + col2 + 28 * + col2 FROM tab1 WHERE NOT CAST( + 42 AS SIGNED ) NOT BETWEEN 36 AND ( + col0 )
----
1711
1972
2784

skipif mysql # not compatible
query I rowsort label-3117
SELECT + col2 + 28 * + col2 FROM tab1 WHERE NOT CAST ( + 42 AS INTEGER ) NOT BETWEEN 36 AND ( + col0 )
----
1711
1972
2784

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3118
SELECT * FROM tab0 WHERE ( CAST( ( col0 ) AS SIGNED ) ) BETWEEN + col2 AND + col2
----

skipif mysql # not compatible
query III rowsort label-3118
SELECT * FROM tab0 WHERE ( CAST ( ( col0 ) AS INTEGER ) ) BETWEEN + col2 AND + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 20 + + col2 IN ( col0 / 49 )
----

query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 + col0 * col0 AS col0 FROM tab2
----
10025
10114
4717

query I rowsort
SELECT - col0 * 84 FROM tab2
----
-3864
-5376
-6300

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 < 84 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 >= ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 + col2 col0 FROM tab2
----
111
76
93

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE col2 * + 39 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL COUNT( * ) * 63 col2 FROM tab2
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3126
SELECT ALL COUNT ( * ) * 63 col2 FROM tab2
----
189

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 + 40 FROM tab0
----
-41
19
39

query III rowsort
SELECT * FROM tab2 WHERE NOT 46 + col1 * - 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT SUM( DISTINCT 27 ) AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-3130
SELECT SUM ( DISTINCT 27 ) AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) BETWEEN col1 AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3132
SELECT DISTINCT 33 DIV - SUM( ALL - col0 * 53 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT 33 / - SUM ( ALL - col0 * 53 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3133
SELECT ALL + COUNT( * ) DIV - 98 FROM tab2 AS cor0 WHERE NOT - col0 + - CAST( NULL AS SIGNED ) <> + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + COUNT ( * ) / - 98 FROM tab2 AS cor0 WHERE NOT - col0 + - CAST ( NULL AS INTEGER ) <> + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT - col1 * + ( + 84 ) AS col2 FROM tab0 AS cor0
----
-1764
-6804
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3135
SELECT * FROM tab0 AS cor0 WHERE + 71 * + col0 IN ( + CAST( NULL AS SIGNED ) * col0 - col1 )
----

skipif mysql # not compatible
query III rowsort label-3135
SELECT * FROM tab0 AS cor0 WHERE + 71 * + col0 IN ( + CAST ( NULL AS INTEGER ) * col0 - col1 )
----

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE ( ( - col2 ) / + 61 ) NOT BETWEEN ( - col2 + 85 * - col2 ) AND - 19 - col1
----
51
67
77

query I rowsort
SELECT col0 - col2 * col2 AS col1 FROM tab0 AS cor0
----
-13
-2194
-9704

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + 40 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
40

query I rowsort
SELECT ALL ( 36 ) * col1 + - 70 AS col1 FROM tab2 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT + ( + MAX( - col1 ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + ( + MAX ( - col1 ) ) AS col0 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 17 * + col2 - 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3143
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + + col2 <= CAST( 56 AS SIGNED ) / + col0
----

skipif mysql # not compatible
query III rowsort label-3143
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + + col2 <= CAST ( 56 AS INTEGER ) / + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 13 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 30 * - col0 AS col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - SUM( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT + 40 IN ( - col0 )
----
-121

skipif mysql # not compatible
query I rowsort label-3146
SELECT - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT + 40 IN ( - col0 )
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3147
SELECT ALL 53 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3147
SELECT ALL 53 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 61 * + col0 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT + col2 * 62 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3150
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3151
SELECT + COUNT( * ) DIV 34 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT + COUNT ( * ) / 34 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT ( - col0 ) DIV + ( + 64 ) AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT ( - col0 ) / + ( + 64 ) AS col1 FROM tab0
----
-1
-1
0

query I rowsort
SELECT + col1 * + col1 * - col1 AS col1 FROM tab0
----
-1
-531441
-9261

query I rowsort
SELECT 69 * + 9 FROM tab2
----
621
621
621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT DISTINCT + ( + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + ( + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + 76 ) * 46 FROM tab2 WHERE NOT + col1 + - ( col2 ) = ( col0 )
----
3496
3496
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT COUNT( * ) * - 61 * + COUNT( * ) col1 FROM tab0
----
-549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3157
SELECT COUNT ( * ) * - 61 * + COUNT ( * ) col1 FROM tab0
----
-549

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 84 * + + col2 FROM tab2
----
1932
3360
4872

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 * col1 > ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col2 ) NOT BETWEEN ( - col2 ) AND + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 7 FROM tab0 WHERE NOT - ( - col0 ) + col0 NOT IN ( + col1 )
----

query I rowsort
SELECT + 32 AS col2 FROM tab0 cor0
----
32
32
32

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( ( col2 ) )
----

query I rowsort
SELECT ALL + + 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <= ( 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL COUNT( * ) - - 71 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + - 55 AND - 89
----
71

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL COUNT ( * ) - - 71 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + - 55 AND - 89
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - ( + 37 ) ) col2 FROM tab2 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3170
SELECT ALL - MAX( 77 ) DIV + + 31 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - MAX ( 77 ) / + + 31 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + - 32 + - 70 AS col0 FROM tab1 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT - 43 / - + CAST( NULL AS SIGNED ) * + col1 / - col2 + 30 / - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT - 43 / - + CAST ( NULL AS INTEGER ) * + col1 / - col2 + 30 / - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT COUNT( DISTINCT ( 32 ) ) * + 60 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3173
SELECT COUNT ( DISTINCT ( 32 ) ) * + 60 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - + COUNT( ALL - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3174
SELECT - + COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT + 38 * - COUNT( * ) + 56 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-3175
SELECT + 38 * - COUNT ( * ) + 56 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3176
SELECT DISTINCT + 12 + + COUNT( * ) DIV - 31 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + 12 + + COUNT ( * ) / - 31 FROM tab2 cor0
----
12

query I rowsort
SELECT DISTINCT col2 + + 21 AS col0 FROM tab2
----
44
61
79

query I rowsort
SELECT DISTINCT col1 * - col0 + - col0 AS col1 FROM tab1
----
-4368
-510
-765

query I rowsort
SELECT 66 FROM tab1 WHERE - col1 <= - col1 * + col1
----

query I rowsort
SELECT ALL - ( col2 ) + + - col0 AS col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT ( col2 ) + 87 FROM tab2
----
110
127
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT - CAST( NULL AS SIGNED ) + 70 * col0 - + - 42 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT - CAST ( NULL AS INTEGER ) + 70 * col0 - + - 42 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT - col2 AS col2 FROM tab0 WHERE + 48 + - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3184
SELECT - col2 AS col2 FROM tab0 WHERE + 48 + - CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col0 + - - col2 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL - ( - - col2 ) - - 10 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-4335
-474
-800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT + CAST( NULL AS SIGNED ) + + 97 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT + CAST ( NULL AS INTEGER ) + + 97 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 7 * 63 + + col0 - + col2 AS col1 FROM tab0 AS cor0
----
409
439
518

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE ( + 61 * - col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - + ( + + ( col2 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( + ( 18 ) ), + col1 AS col2 FROM tab1
----
18
14
18
47
18
5

query I rowsort
SELECT - col2 * + ( + + col2 ) * + col0 FROM tab1
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 74 * - - col1 + - col2 + + col1 * + col2 * col2 FROM tab2 AS cor0
----
46
30730
64
128858
75
230288

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 63 ) >= ( 76 / - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL 96 + - COUNT( * ) * SUM( DISTINCT + 50 ) FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL 96 + - COUNT ( * ) * SUM ( DISTINCT + 50 ) FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3196
SELECT + + col0 + + CAST( NULL AS DECIMAL ) + - ( 4 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3196
SELECT + + col0 + + CAST ( NULL AS REAL ) + - ( 4 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + MIN( + - ( ( + + 66 ) ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3197
SELECT + MIN ( + - ( ( + + 66 ) ) ) FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col0 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT + col2 + - 65 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - col2 IN ( col0 )
----
-18
-55
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 18 AS col1, col2 col1 FROM tab0 AS cor0
----
-18
10
-18
47
-18
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 74 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( - 96 ) )
----

query II rowsort
SELECT - col1 * + 23, col0 FROM tab0
----
-1863
15
-23
97
-483
87

query I rowsort
SELECT + 68 * - 33 FROM tab2
----
-2244
-2244
-2244

query II rowsort
SELECT ALL 73 AS col1, - 10 + + + col1 FROM tab2
----
73
41
73
57
73
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3207
SELECT COUNT( CAST( NULL AS SIGNED ) ) col0, COUNT( * ) AS col0 FROM tab1
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3207
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) col0, COUNT ( * ) AS col0 FROM tab1
----
0
3

query II rowsort
SELECT ALL + col1 AS col1, + col2 * + + col2 + - + col2 + 36 FROM tab0
----
1
9738
21
126
81
2198

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + COUNT( * ) * + + 62 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-3209
SELECT + COUNT ( * ) * + + 62 FROM tab0
----
186

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 7 NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3211
SELECT + col0, + 35 * - CAST( NULL AS SIGNED ) + + + col0 * + 73 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3211
SELECT + col0, + 35 * - CAST ( NULL AS INTEGER ) + + + col0 * + 73 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3212
SELECT * FROM tab0 WHERE NOT col2 / CAST( NULL AS SIGNED ) NOT IN ( col0 * - col2 * col2 )
----

skipif mysql # not compatible
query III rowsort label-3212
SELECT * FROM tab0 WHERE NOT col2 / CAST ( NULL AS INTEGER ) NOT IN ( col0 * - col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL SUM( ALL 48 ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL SUM ( ALL 48 ) FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT + MIN( ALL col2 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3215
SELECT * FROM tab0 cor0 WHERE col2 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3215
SELECT * FROM tab0 cor0 WHERE col2 = + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + - 25 + - - col2 AS col1, col1 AS col1 FROM tab0 AS cor0
----
-15
21
22
81
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + SUM( DISTINCT - col0 ) + COUNT( 93 ) AS col0 FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-3217
SELECT + SUM ( DISTINCT - col0 ) + COUNT ( 93 ) AS col0 FROM tab1 AS cor0
----
-224

query I rowsort
SELECT ALL col1 + ( - col0 ) AS col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT ( - col2 ) + - col2 * + col1 + - + col1 FROM tab1
----
-1454
-3311
-359

query I rowsort
SELECT + 3 FROM tab0 WHERE col1 + 14 + - col2 * + 72 NOT BETWEEN NULL AND + 25 * - + col2 * + ( col1 ) + 93
----
3
3

query II rowsort
SELECT ALL + + col2 AS col1, + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT ALL col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + + 31, 53 * col1 )
----

query I rowsort
SELECT DISTINCT 58 + col0 FROM tab0
----
145
155
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT col2 - ( + ( CAST( NULL AS SIGNED ) ) ) / - col2 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3225
SELECT DISTINCT col2 - ( + ( CAST ( NULL AS INTEGER ) ) ) / - col2 col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 35 + - col2 FROM tab2 AS cor0
----
-23
-5
12

query I rowsort
SELECT col0 * col2 - - col1 * + col2 * + - 39 AS col1 FROM tab0 cor0
----
-147768
-7320
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT COUNT( ALL - + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3228
SELECT COUNT ( ALL - + col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT - - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3229
SELECT - - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT - col1 + - ( + 83 ) * + col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-4284
-5628
-6468

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT ALL - 30 DIV - + col2 + - - 49 + - + col1 FROM tab0 AS cor0
----
-32
31
48

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - 30 / - + col2 + - - 49 + - + col1 FROM tab0 AS cor0
----
-32
31
48

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT 4 * + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT 4 * + COUNT ( * ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT - - 86 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT + - CAST( NULL AS SIGNED ) * + ( - - 95 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT + - CAST ( NULL AS INTEGER ) * + ( - - 95 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT - + ( + - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT - + ( + - COUNT ( * ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( - - ( + - col2 ) ) - + 95 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 < 68 * + col2
----

query I rowsort
SELECT + - 17 * - col0 AS col1 FROM tab1 AS cor0
----
1445
1547
867

query I rowsort
SELECT - + col2 + col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND - col0 * + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 - col2 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT ( + - 72 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT DISTINCT + col2 DIV - + col0 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT + col2 / - + col0 AS col0 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - - 80 ) FROM tab0 AS cor0
----
-80

query I rowsort
SELECT + col1 * + + col2 + col0 FROM tab1 AS cor0
----
1395
3287
380

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT 98 + CAST( - 58 AS SIGNED ) + - + col0 AS col2 FROM tab0 AS cor0
----
-47
-57
25

skipif mysql # not compatible
query I rowsort label-3248
SELECT 98 + CAST ( - 58 AS INTEGER ) + - + col0 AS col2 FROM tab0 AS cor0
----
-47
-57
25

query I rowsort
SELECT + + ( + - 47 ) AS col2 FROM tab2 WHERE + 59 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL COUNT( * ) * - COUNT( * ) * COUNT( + 40 ) AS col2 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL COUNT ( * ) * - COUNT ( * ) * COUNT ( + 40 ) AS col2 FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT DISTINCT - 19 * - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT - 19 * - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
171

query I rowsort
SELECT + ( - - 67 ) * - 99 FROM tab1
----
-6633
-6633
-6633

query I rowsort
SELECT + col1 * col0 - - col2 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # DIV for integer division: 
query II rowsort label-3254
SELECT + col0 AS col0, col2 DIV - 13 FROM tab0 AS cor0
----
15
-3
87
0
97
-7

skipif mysql # not compatible
query II rowsort label-3254
SELECT + col0 AS col0, col2 / - 13 FROM tab0 AS cor0
----
15
-3
87
0
97
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT + - CAST( NULL AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT + - CAST ( NULL AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL - MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT + + CAST( NULL AS SIGNED ) + 41 FROM tab2 AS cor0 WHERE NULL <= col2
----

skipif mysql # not compatible
query I rowsort label-3257
SELECT + + CAST ( NULL AS INTEGER ) + 41 FROM tab2 AS cor0 WHERE NULL <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3258
SELECT + 94 - + CAST( NULL AS SIGNED ) / col1 + - - col0 + - col0 + - 32, col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3258
SELECT + 94 - + CAST ( NULL AS INTEGER ) / col1 + - - col0 + - col0 + - 32, col1 AS col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - 33 > + col0
----

query III rowsort
SELECT * FROM tab1 WHERE + - 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL MAX( - + 10 ) - - - 70 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL MAX ( - + 10 ) - - - 70 FROM tab0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT AVG ( - - col0 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT AVG ( - - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 47 ) - - col0 FROM tab2 AS cor0
----
-1
17
28

query II rowsort
SELECT - col1 * col1 AS col0, col1 FROM tab2 AS cor0
----
-2601
51
-4489
67
-5929
77

query I rowsort
SELECT ALL - + col2 * + - 14 FROM tab0 AS cor0
----
1386
140
658

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT 62 DIV - 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

skipif mysql # not compatible
query I rowsort label-3266
SELECT 62 / - 8 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query II rowsort
SELECT DISTINCT 79 AS col2, col2 FROM tab1
----
79
59
79
68
79
96

query II rowsort
SELECT - col1 AS col1, + col2 FROM tab1
----
-14
96
-47
68
-5
59

query II rowsort
SELECT - 57 AS col1, - col2 FROM tab1
----
-57
-59
-57
-68
-57
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT + 2 DIV + 32 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3270
SELECT + 2 / + 32 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT + 70 AS col2, 91 FROM tab0 cor0
----
70
91
70
91
70
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL + 93 * + + COUNT( * ) FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + 93 * + + COUNT ( * ) FROM tab0 AS cor0
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3273
SELECT ALL + - MAX( - col2 ) DIV - MAX( DISTINCT - - 6 ) AS col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL + - MAX ( - col2 ) / - MAX ( DISTINCT - - 6 ) AS col0 FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3274
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN CAST( + - col1 AS SIGNED ) * 0 / - col2 + - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3274
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN CAST ( + - col1 AS INTEGER ) * 0 / - col2 + - col0 AND NULL
----

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3276
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 = + - col2 + + CAST( - - col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3276
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 = + - col2 + + CAST ( - - col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3277
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) NOT BETWEEN CAST( NULL AS SIGNED ) + - 41 AND - col0 * - 79
----

skipif mysql # not compatible
query III rowsort label-3277
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) NOT BETWEEN CAST ( NULL AS INTEGER ) + - 41 AND - col0 * - 79
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT + + col2 + + + col1 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 21 - + 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - 59 AS col1 FROM tab0
----
-38
-58
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT 21 * - MIN( - 68 ) + - MIN( col2 ) FROM tab1
----
1369

skipif mysql # not compatible
query I rowsort label-3281
SELECT 21 * - MIN ( - 68 ) + - MIN ( col2 ) FROM tab1
----
1369

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT - + 72 AS col0 FROM tab2 WHERE - + CAST( + col1 AS SIGNED ) + + 64 <> - + col2
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-3283
SELECT - + 72 AS col0 FROM tab2 WHERE - + CAST ( + col1 AS INTEGER ) + + 64 <> - + col2
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - MIN( - 11 ) AS col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3284
SELECT - MIN ( - 11 ) AS col2 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT + COUNT( + - ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + COUNT ( + - ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + col1 + - - col1 AS col2, 69 AS col2 FROM tab2 AS cor0
----
102
69
134
69
154
69

query I rowsort
SELECT ALL - col2 - - 34 AS col1 FROM tab2
----
-24
-6
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT ALL - COUNT( * ) - + SUM( ALL + + col1 ) * - 67 / + + ( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - COUNT ( * ) - + SUM ( ALL + + col1 ) * - 67 / + + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) - 57 * + col2 + - col0 FROM tab0 AS cor0
----
-2679
-5643
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 * + col1 col0 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT - - SUM( ( 74 ) ) + 65 AS col0 FROM tab1 cor0
----
287

skipif mysql # not compatible
query I rowsort label-3291
SELECT - - SUM ( ( 74 ) ) + 65 AS col0 FROM tab1 cor0
----
287

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3292
SELECT DISTINCT - 79 + - + col0 - - - ( + CAST( NULL AS SIGNED ) ) * - col2, col1 FROM tab0 AS cor0 WHERE NOT + col0 + + + col2 IS NULL
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3292
SELECT DISTINCT - 79 + - + col0 - - - ( + CAST ( NULL AS INTEGER ) ) * - col2, col1 FROM tab0 AS cor0 WHERE NOT + col0 + + + col2 IS NULL
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 68 * + - col1 * - col1 * - 1 + + col1 col2 FROM tab1 cor0
----
13342
150259
1705

query I rowsort
SELECT ALL - + col2 + + + 22 FROM tab2 AS cor0
----
-1
-18
-36

query I rowsort
SELECT - + 72 AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND - col0 / - col0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT col1 + + + 31 AS col2 FROM tab0
----
112
32
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col0 ) < ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col1, col2 + + col2 FROM tab2
----
-23
46
-40
80
-58
116

query II rowsort
SELECT ALL + - col1 AS col1, - col0 + + col2 FROM tab1 AS cor0
----
-14
45
-47
-23
-5
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT DISTINCT + - COUNT( - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT + - COUNT ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 * + col2 + - col1 + ( + 33 ) FROM tab2 AS cor0
----
-1644
-3398
-547

query I rowsort
SELECT ALL 9 * - col1 AS col1 FROM tab1 AS cor0
----
-126
-423
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3303
SELECT + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - + col0 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + col0 * + 29 AS col2 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT ALL 80 * - col0 AS col0 FROM tab2
----
-3680
-5120
-6000

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ( + + COUNT( ( + 49 ) ) ) FROM tab2 AS cor0 WHERE NOT ( - col2 + - col0 * + ( - col1 ) ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT ( + + COUNT ( ( + 49 ) ) ) FROM tab2 AS cor0 WHERE NOT ( - col2 + - col0 * + ( - col1 ) ) <= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3308
SELECT DISTINCT + - 18 DIV col1 AS col1, col1 FROM tab1 AS cor0
----
-1
14
-3
5
0
47

skipif mysql # not compatible
query II rowsort label-3308
SELECT DISTINCT + - 18 / col1 AS col1, col1 FROM tab1 AS cor0
----
-1
14
-3
5
0
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL + CAST( + - 49 AS SIGNED ) * - + MAX( DISTINCT 90 ) FROM tab1 AS cor0
----
4410

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + CAST ( + - 49 AS INTEGER ) * - + MAX ( DISTINCT 90 ) FROM tab1 AS cor0
----
4410

onlyif mysql # DIV for integer division: 
query II rowsort label-3310
SELECT DISTINCT 82 DIV - - 83 AS col2, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-3310
SELECT DISTINCT 82 / - - 83 AS col2, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT 50 + + + COUNT( ALL + ( 83 ) ) + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT 50 + + + COUNT ( ALL + ( 83 ) ) + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
50

query I rowsort
SELECT ALL - ( col0 ) * - 88 + - ( + 43 ) + col0 FROM tab2 AS cor0
----
4051
5653
6632

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3315
SELECT DISTINCT col0, - col2 DIV - col0 FROM tab0
----
15
3
87
0
97
1

skipif mysql # not compatible
query II rowsort label-3315
SELECT DISTINCT col0, - col2 / - col0 FROM tab0
----
15
3
87
0
97
1

query II rowsort
SELECT ALL col2 AS col2, 20 AS col2 FROM tab2
----
23
20
40
20
58
20

query I rowsort
SELECT col2 * + 61 AS col1 FROM tab2
----
1403
2440
3538

query I rowsort
SELECT - col1 + - + 40 FROM tab2 AS cor0
----
-107
-117
-91

query II rowsort
SELECT + 95 + + 66 + - + 71 + - 37 AS col0, - col0 FROM tab1 AS cor0
----
53
-51
53
-85
53
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - - ( 47 ) * + MAX( DISTINCT - ( col0 ) ) + + 9 FROM tab0 AS cor0
----
-696

skipif mysql # not compatible
query I rowsort label-3320
SELECT - - ( 47 ) * + MAX ( DISTINCT - ( col0 ) ) + + 9 FROM tab0 AS cor0
----
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT DISTINCT - - ( 62 ) DIV + col0 + + col2 FROM tab0 AS cor0
----
10
51
99

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT - - ( 62 ) / + col0 + + col2 FROM tab0 AS cor0
----
10
51
99

query I rowsort
SELECT - + 66 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3323
SELECT ALL + - 74 - - ( - COUNT( * ) ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + - 74 - - ( - COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + 74 - - + MIN( + col0 ) col0 FROM tab1 AS cor0
----
125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT + 74 - - + MIN ( + col0 ) col0 FROM tab1 AS cor0
----
125

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 * - col1 * + col2 AS col2 FROM tab0 AS cor0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( - col2 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 36 NOT BETWEEN NULL AND - - col2 / + col1 * - - col1 - col2 + + - 44 + + 41
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3329
SELECT DISTINCT COUNT( * ) * - SUM( ALL col1 ) + + COUNT( * ) AS col0, + 43 AS col1 FROM tab1 AS cor0
----
-195
43

skipif mysql # not compatible
query II rowsort label-3329
SELECT DISTINCT COUNT ( * ) * - SUM ( ALL col1 ) + + COUNT ( * ) AS col0, + 43 AS col1 FROM tab1 AS cor0
----
-195
43

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col1 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 col1, - col0 FROM tab2
----
15
-46
15
-64
15
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT COUNT( DISTINCT - + 52 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3332
SELECT COUNT ( DISTINCT - + 52 ) FROM tab1
----
1

query I rowsort
SELECT ( + + 18 ) AS col0 FROM tab2
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 > + 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT + 1 DIV - col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + 1 / - col1 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3338
SELECT COUNT( * ), 23 DIV - 89 AS col0 FROM tab0 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-3338
SELECT COUNT ( * ), 23 / - 89 AS col0 FROM tab0 AS cor0
----
3
0

query II rowsort
SELECT ALL - 56, col0 FROM tab2 cor0
----
-56
46
-56
64
-56
75

query I rowsort
SELECT ALL + - col2 * - + col2 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3341
SELECT DISTINCT + 45 + - - CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
104
113
141

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + 45 + - - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
104
113
141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 57 / 58 * + 31 + col1 * + ( + col1 ) - + - 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 * + col2 + - col1 AS col2 FROM tab0 cor0
----
624
849
9602

query I rowsort
SELECT + col2 + 66 AS col2 FROM tab0
----
113
165
76

query II rowsort
SELECT DISTINCT - 90 * + 11, - col0 + + + col2 AS col2 FROM tab0
----
-990
-77
-990
2
-990
32

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + col2 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3347
SELECT ALL SUM( col2 ) + COUNT( * ) DIV COUNT( ALL + - col1 ) col0, - 42 FROM tab1
----
224
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3347
SELECT ALL SUM ( col2 ) + COUNT ( * ) / COUNT ( ALL + - col1 ) col0, - 42 FROM tab1
----
224
-42

query I rowsort
SELECT - col2 + - col0 + + - col0 * + 88 FROM tab2
----
-4117
-5736
-6733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + ( - col1 ) * + + col1 col0 FROM tab0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL COUNT( * ) * + ( + COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT + col0 + + col1 + - col1 AS col0 FROM tab0
----
15
87
97

query II rowsort
SELECT DISTINCT - ( + col2 ) + - 57, + col0 AS col0 FROM tab2 WHERE + - 71 * - - 66 IS NOT NULL
----
-115
75
-80
46
-97
64

query I rowsort
SELECT DISTINCT col0 * col2 * ( + col2 ) * + + 77 FROM tab1
----
22783145
32400368
36191232

query I rowsort
SELECT ALL col1 + - 96 FROM tab1 cor0
----
-49
-82
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT 94, + COUNT( * ) * + 43 * 50 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
94
19350

skipif mysql # not compatible
query II rowsort label-3355
SELECT 94, + COUNT ( * ) * + 43 * 50 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
94
19350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3356
SELECT ALL col1 AS col2, CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3356
SELECT ALL col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT - 34 + + + COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 34 + + + COUNT ( * ) FROM tab1
----
-31

query I rowsort
SELECT col2 + - col2 AS col1 FROM tab2 WHERE + 31 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - + ( COUNT( * ) ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3359
SELECT ALL - + ( COUNT ( * ) ) col0 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT DISTINCT + col0 * - - CAST( + col1 AS SIGNED ) * + ( - col1 ) * + + 10 AS col2 FROM tab0 AS cor0
----
-383670
-970
-984150

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + col0 * - - CAST ( + col1 AS INTEGER ) * + ( - col1 ) * + + 10 AS col2 FROM tab0 AS cor0
----
-383670
-970
-984150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 62 * 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 1 AS col0, 15 AS col1 FROM tab2 AS cor0
----
-1
15
-1
15
-1
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3363
SELECT COUNT( * ) * COUNT( * ) DIV - - MIN( DISTINCT + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3363
SELECT COUNT ( * ) * COUNT ( * ) / - - MIN ( DISTINCT + col2 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ( ( + - MAX( - col0 ) ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3364
SELECT ( ( + - MAX ( - col0 ) ) ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT + ( MAX( - + col0 ) ) * 70 AS col2 FROM tab1
----
-3570

skipif mysql # not compatible
query I rowsort label-3365
SELECT + ( MAX ( - + col0 ) ) * 70 AS col2 FROM tab1
----
-3570

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT - col2 DIV 90 * col2 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT - col2 / 90 * col2 FROM tab0
----
-99
0
0

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + COUNT( col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + COUNT ( col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col2, + col1, + col2 + + - 6 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT 28 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3373
SELECT ALL - + MIN( - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - + MIN ( - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( NULL AS SIGNED ) / + MAX( - - col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( NULL AS INTEGER ) / + MAX ( - - col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + 38 + - col2, col2 * + + ( 81 ) col2 FROM tab1 AS cor0
----
38
4779
38
5508
38
7776

query I rowsort
SELECT ALL - col0 * - 94 + - + ( + - 88 ) AS col1 FROM tab1 AS cor0
----
4882
8078
8642

query I rowsort
SELECT ALL - 99 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-99
-99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3378
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - CAST( NULL AS SIGNED ) + - COUNT( * ) + - ( 55 ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3378
SELECT DISTINCT - CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - ( 55 ) col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - col0 * - 68 * - col1 * + col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT + 79 + - - col0 AS col2 FROM tab1
----
130
164
170

query I rowsort
SELECT DISTINCT col1 - col1 + - - col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT + MIN( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + MIN ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( + 9 ) IS NULL
----

query I rowsort
SELECT - 68 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT CAST( + + 20 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT CAST ( + + 20 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + MAX( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3388
SELECT + MAX ( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - ( + - 73 ) AS col2 FROM tab0 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * + - col1 + - 40 col1 FROM tab1 AS cor0
----
-2625
-315
-810

query I rowsort
SELECT - 15 * + - col1 AS col0 FROM tab1 AS cor0
----
210
705
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + + 6 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + col2
----

query I rowsort
SELECT DISTINCT + - 95 AS col0 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT ALL col0 * + + 45 FROM tab1
----
2295
3825
4095

query II rowsort
SELECT + col2, 67 - col1 + col2 * - col1 FROM tab1
----
59
-233
68
-3176
96
-1291

query II rowsort
SELECT DISTINCT + 57, - col2 / + col1 AS col0 FROM tab1 WHERE NOT + 51 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3399
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV + + 36 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3399
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / + + 36 col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3400
SELECT DISTINCT col0 AS col1, - CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3400
SELECT DISTINCT col0 AS col1, - CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - MIN( - - ( + col2 ) ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3401
SELECT - MIN ( - - ( + col2 ) ) AS col2 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL <> - + CAST( - col0 AS SIGNED ) * - - col1 )
----

skipif mysql # not compatible
query I rowsort label-3402
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL <> - + CAST ( - col0 AS INTEGER ) * - - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3403
SELECT ALL + - 17 AS col0, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-17
-3

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL + - 17 AS col0, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-17
-3

query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 90 col0 FROM tab1
----
-1260
-4230
-450

query I rowsort
SELECT ALL + - ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT DISTINCT AVG ( + ( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT AVG ( + ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 41 + col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-3751
-82
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT COUNT( * ) + - 68 AS col0 FROM tab1, tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3409
SELECT COUNT ( * ) + - 68 AS col0 FROM tab1, tab0 AS cor0
----
-59

query II rowsort
SELECT ALL col2 * - + col2 + - + 38, + col2 AS col2 FROM tab2
----
-1638
40
-3402
58
-567
23

query I rowsort
SELECT - 60 * - + col1 - - col0 AS col2 FROM tab1 WHERE - ( - - 29 ) - + col0 IS NULL
----

query I rowsort
SELECT + col1 * - 98 FROM tab1
----
-1372
-4606
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL - + 42 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - + 42 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT 22 - + + CAST( NULL AS SIGNED ) + - + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT 22 - + + CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE col0 * + 10 >= - ( + + col0 )
----
15
87
97

query I rowsort
SELECT + col0 + + 57 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * + 81 col2 FROM tab0 AS cor0
----
17010
308367
8019

query I rowsort
SELECT + + 96 * - 86 AS col0 FROM tab2 cor0
----
-8256
-8256
-8256

query II rowsort
SELECT + col2 AS col1, 40 FROM tab1 AS cor0
----
59
40
68
40
96
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT ALL + + COUNT( * ) * + 88 * + COUNT( * ) FROM tab0 AS cor0
----
792

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL + + COUNT ( * ) * + 88 * + COUNT ( * ) FROM tab0 AS cor0
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT ALL + 27 DIV - 50 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + 27 / - 50 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 48 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < 3
----

query II rowsort
SELECT DISTINCT 67 * + + col2 * col1 * + - col2, - 16 AS col2 FROM tab1 AS cor0
----
-1166135
-16
-14560976
-16
-8644608
-16

query II rowsort
SELECT 35 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
35
59
35
68
35
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + SUM( - - col2 ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3426
SELECT + SUM ( - - col2 ) AS col1 FROM tab0 cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + 42 * - col1 col2 FROM tab0 WHERE NOT + - col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ( COUNT( DISTINCT + col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3429
SELECT ( COUNT ( DISTINCT + col1 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3430
SELECT + COUNT( * ) DIV 96 * COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3430
SELECT + COUNT ( * ) / 96 * COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL - SUM( - - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - SUM ( - - col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3432
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * ( col1 ) <= col2 + - col0 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3432
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * ( col1 ) <= col2 + - col0 * + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3433
SELECT + col1 DIV + ( - 96 ) + 72 * - col1, - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-1008
-9216
-3384
-4624
-360
-3481

skipif mysql # not compatible
query II rowsort label-3433
SELECT + col1 / + ( - 96 ) + 72 * - col1, - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-1008
-9216
-3384
-4624
-360
-3481

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE + 8 * + col0 IS NULL
----

query I rowsort
SELECT + 10 + + col0 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT DISTINCT - ( + + 14 ) AS col0 FROM tab2 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT + 93 col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( - col2 AS SIGNED ) * + ( - - col1 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3437
SELECT + 93 col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( - col2 AS INTEGER ) * + ( - - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col1 FROM tab1 AS cor0 WHERE NOT + col2 * - col0 IS NULL
----
-40
-40
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT + col2 DIV 40 AS col2 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3439
SELECT + col2 / 40 AS col2 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT COUNT( * ) * - - COUNT( ALL col1 ) * ( + + 82 ) FROM tab0 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-3440
SELECT COUNT ( * ) * - - COUNT ( ALL col1 ) * ( + + 82 ) FROM tab0 AS cor0
----
738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL + col1 - - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + col1 - - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 - col0 + + 40 + col0 * + col2 col0 FROM tab2
----
1079
2563
4342

query I rowsort
SELECT DISTINCT - col2 + - col2 + - 60 * 53 * - 90 FROM tab2
----
286084
286120
286154

query I rowsort
SELECT DISTINCT 52 + + + ( + col1 ) AS col1 FROM tab0
----
133
53
73

query I rowsort
SELECT 65 + + col1 + + + col0 * - 91 FROM tab1
----
-4562
-7665
-8169

query I rowsort
SELECT + 24 + + col2 FROM tab0 cor0
----
123
34
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 * - col1 * - 36 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT col0 DIV - 61 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT col0 / - 61 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL + 12 AS col2, - 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 147adfb189235f077150f7390a30d739

query I rowsort
SELECT ALL + col1 * 38 AS col0 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT ALL + 45 * + + col0 FROM tab0 AS cor0
----
3915
4365
675

query I rowsort
SELECT ALL ( 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - 63 BETWEEN - + ( + 16 ) AND - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3454
SELECT + col1 AS col2, ( - col2 ) DIV - 71 col2 FROM tab0
----
1
1
21
0
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3454
SELECT + col1 AS col2, ( - col2 ) / - 71 col2 FROM tab0
----
1
1
21
0
81
0

query I rowsort
SELECT - col2 * - 78 + col1 AS col2 FROM tab2
----
1845
3197
4591

query I rowsort
SELECT ALL 43 * - col2 FROM tab0
----
-2021
-4257
-430

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 40 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 70 * - 59 FROM tab2
----
-4130

query I rowsort
SELECT + col1 * + + col0 + - 46 AS col1 FROM tab2
----
2300
4882
4979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + - 21 col2 FROM tab1 cor0
----
4875
4994
6167

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT - + 6 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT - + 6 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT ALL col0 DIV - - col2 + + + 59 FROM tab0 AS cor0
----
59
59
67

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL col0 / - - col2 + + + 59 FROM tab0 AS cor0
----
59
59
67

query I rowsort
SELECT - col1 * + + 27 FROM tab2
----
-1377
-1809
-2079

query I rowsort
SELECT + col0 * + 80 * 11 + - + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
44784
74741
80012

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 81 > - col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT + ( + - col2 ) * - 75 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT ALL ( + COUNT( * ) ) / 87 * - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3468
SELECT ALL ( + COUNT ( * ) ) / 87 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col2 + col0 AS col2, ( col1 ) FROM tab0 AS cor0
----
196
1
62
81
97
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + col2 col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + MAX( + + 42 ) AS col2 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3471
SELECT + MAX ( + + 42 ) AS col2 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT + COUNT( * ) + - + 40 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + COUNT ( * ) + - + 40 FROM tab1
----
-37

query III rowsort
SELECT * FROM tab1 WHERE - + 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - - 71 ) AS col2 FROM tab1
----
71
71
71

query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 + - 35 + + col2 AS col1 FROM tab2
----
-110
-81
-99

query II rowsort
SELECT DISTINCT 3 * + ( + + 48 ) - + - 45, col2 FROM tab0
----
189
10
189
47
189
99

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL NOT IN ( col1, - 62, + col0, 26 )
----

query I rowsort
SELECT ALL col1 - - + col2 AS col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT - - MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - - MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3480
SELECT ALL + 81 AS col1, MAX( ALL col0 ) col1 FROM tab0 AS cor0
----
81
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3480
SELECT ALL + 81 AS col1, MAX ( ALL col0 ) col1 FROM tab0 AS cor0
----
81
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + - ( + col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 66 NOT IN ( + col2, 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3483
SELECT ALL * FROM tab2 WHERE ( NOT NULL >= ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3483
SELECT ALL * FROM tab2 WHERE ( NOT NULL >= ( + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT + 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query II rowsort
SELECT DISTINCT + + 70 AS col1, - col0 FROM tab0 AS cor0 WHERE ( - col2 ) >= - col2 + ( - - col0 ) / - col2
----
70
-15
70
-87
70
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL + - 49 * MAX( - col2 ) * - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-8670

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + - 49 * MAX ( - col2 ) * - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-8670

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3487
SELECT CAST( NULL AS DECIMAL ) * + 62, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3487
SELECT CAST ( NULL AS REAL ) * + 62, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL + CAST( NULL AS SIGNED ) * - CAST( - + 31 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + CAST ( NULL AS INTEGER ) * - CAST ( - + 31 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col1 <= + col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT + + COUNT( * ) * + 24 col0 FROM tab0 cor0 WHERE NOT + col0 = - col1 * - 41
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3490
SELECT DISTINCT + + COUNT ( * ) * + 24 col0 FROM tab0 cor0 WHERE NOT + col0 = - col1 * - 41
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL SUM( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL SUM ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3492
SELECT DISTINCT + 97 DIV + - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT + 97 / + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-29

query II rowsort
SELECT ALL 92, - col0 AS col1 FROM tab2
----
92
-46
92
-64
92
-75

query I rowsort
SELECT ALL - col0 * + 58 FROM tab1
----
-2958
-4930
-5278

query I rowsort
SELECT DISTINCT ( - + ( + col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL SUM( ALL 95 ) AS col2 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL SUM ( ALL 95 ) AS col2 FROM tab0
----
285

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 >= 18 + col2 * col1 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col0 * + 24 + + + col2 * - + 3 FROM tab1 AS cor0
----
-1512
-2217
-2388

query I rowsort
SELECT - 20 - - col2 * + - 39 FROM tab0 AS cor0 WHERE ( NULL < col0 + 78 * + col2 - - ( + 2 ) * - 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT ALL - - 17 DIV + + col2 + - - 49 FROM tab0 AS cor0
----
49
49
50

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - - 17 / + + col2 + - - 49 FROM tab0 AS cor0
----
49
49
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + ( col1 ) BETWEEN NULL AND - 81
----

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + ( col1 ) BETWEEN NULL AND - 81
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + 54 + + COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3503
SELECT + 54 + + COUNT ( * ) FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - - 14 ) <= + ( col1 )
----
15
81
47
87
21
10

query I rowsort
SELECT AVG ( ALL ( - 95 ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT MIN( 1 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3507
SELECT MIN ( 1 ) AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - col2 - + 16 + + - col0 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3509
SELECT + CAST( NULL AS SIGNED ) * - + 54 AS col2, + 99 AS col1 FROM tab1 AS cor0
----
NULL
99
NULL
99
NULL
99

skipif mysql # not compatible
query II rowsort label-3509
SELECT + CAST ( NULL AS INTEGER ) * - + 54 AS col2, + 99 AS col1 FROM tab1 AS cor0
----
NULL
99
NULL
99
NULL
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT ALL + COUNT( * ) DIV - + COUNT( ALL + - ( + col2 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL + COUNT ( * ) / - + COUNT ( ALL + - ( + col2 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT + - ( COUNT( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + - ( COUNT ( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT 24 + COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT 24 + COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT col1 - + col2 * + col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT ( 20 ) - + col0 AS col0 FROM tab2 AS cor0
----
-26
-44
-55

query III rowsort
SELECT ALL * FROM tab1 WHERE + 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3516
SELECT ALL CAST( 69 AS SIGNED ) DIV col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL CAST ( 69 AS INTEGER ) / col0 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL 45 * 10 AS col2 FROM tab0
----
450
450
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT + CAST( - SUM( DISTINCT + 72 ) AS SIGNED ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3518
SELECT + CAST ( - SUM ( DISTINCT + 72 ) AS INTEGER ) AS col0 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - MIN( - - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3519
SELECT - MIN ( - - col1 ) AS col0 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > - - 57
----
46
51
23
64
77
40

query I rowsort
SELECT 52 * - + col0 AS col1 FROM tab0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL + SUM( + + 12 ) AS col2 FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + SUM ( + + 12 ) AS col2 FROM tab1 cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT ALL + CAST( NULL AS SIGNED ) + + 25 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-3523
SELECT ALL + CAST ( NULL AS INTEGER ) + + 25 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> - col2 / + 1
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> - col2 / + 1
----
0

query I rowsort
SELECT ALL + col2 * - 84 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT ALL - 16 AS col1 FROM tab1 WHERE NULL IN ( - 89, col2 * - col1, - col0, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT + 30 + col2 + - + CAST( NULL AS SIGNED ) + col2 / col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT + 30 + col2 + - + CAST ( NULL AS INTEGER ) + col2 / col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = col2
----

query I rowsort
SELECT - col1 + - + 23 + 71 AS col2 FROM tab0
----
-33
27
47

query II rowsort
SELECT DISTINCT col0 + col0, + col1 AS col1 FROM tab2
----
128
77
150
67
92
51

query III rowsort
SELECT * FROM tab2 WHERE + + col2 NOT IN ( - col0, 55, - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( - col2 ), - 60 AS col0 FROM tab1
----
-59
-60
-68
-60
-96
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT + col2 DIV - + 16 AS col2 FROM tab1
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-3534
SELECT + col2 / - + 16 AS col2 FROM tab1
----
-3
-4
-6

query I rowsort
SELECT ( - 61 ) AS col1 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT + ( - 83 ) * 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eb9df9e2eed10fb7bb73c2259de1163f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT CAST( NULL AS SIGNED ) - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT CAST ( NULL AS INTEGER ) - + col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 64 + + col0 NOT BETWEEN NULL AND + 59
----

query I rowsort
SELECT DISTINCT - + ( - 62 ) AS col1 FROM tab0 AS cor0
----
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 - col1 - - col1 + col2 * - - col1 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT DISTINCT ( - ( - 74 ) ) AS col2 FROM tab2 cor0
----
74

query I rowsort
SELECT DISTINCT - - ( + col0 ) + + col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + - col0 * 54 FROM tab2 AS cor0
----
-2484
-3456
-4050

query I rowsort
SELECT ALL ( + + col0 ) * + col1 * - - 47 FROM tab2 AS cor0
----
110262
231616
236175

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT 51 DIV + col2 FROM tab2 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3546
SELECT 51 / + col2 FROM tab2 cor0
----
0
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3547
SELECT col2, col0 + - col2 DIV - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
-2

skipif mysql # not compatible
query II rowsort label-3547
SELECT col2, col0 + - col2 / - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * + 93 col0 FROM tab1
----
-1302
-4371
-465

query I rowsort
SELECT DISTINCT + 56 * + 60 AS col1 FROM tab2
----
3360

query I rowsort
SELECT + 3 * - - col2 FROM tab0
----
141
297
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL + COUNT( * ) * - 18 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + COUNT ( * ) * - 18 FROM tab0
----
-54

query I rowsort
SELECT ALL - ( + col1 ) FROM tab0 WHERE NOT - 40 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT 86 DIV COUNT( * ) AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3553
SELECT 86 / COUNT ( * ) AS col1 FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT COUNT( 46 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3554
SELECT COUNT ( 46 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3555
SELECT CAST( NULL AS SIGNED ) AS col1, - 22 + + COUNT( * ) AS col2 FROM tab0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-3555
SELECT CAST ( NULL AS INTEGER ) AS col1, - 22 + + COUNT ( * ) AS col2 FROM tab0
----
NULL
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT + 48 AS col0, COUNT( ALL col2 ) FROM tab1
----
48
3

skipif mysql # not compatible
query II rowsort label-3556
SELECT + 48 AS col0, COUNT ( ALL col2 ) FROM tab1
----
48
3

query II rowsort
SELECT DISTINCT + col0 + + 51 AS col0, + col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
102
96
136
59
142
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT 79 AS col1, 51 * - COUNT( ALL - col0 ) AS col1 FROM tab2 WHERE NOT ( + - 95 ) IS NOT NULL
----
79
0

skipif mysql # not compatible
query II rowsort label-3558
SELECT 79 AS col1, 51 * - COUNT ( ALL - col0 ) AS col1 FROM tab2 WHERE NOT ( + - 95 ) IS NOT NULL
----
79
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / - ( 76 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3561
SELECT + - 58 AS col2, COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-58
0

skipif mysql # not compatible
query II rowsort label-3561
SELECT + - 58 AS col2, COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-58
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT ALL col2 DIV 83 * - 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL col2 / 83 * - 84 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + - col1 + - col0 + - + col1 AS col2 FROM tab0 AS cor0
----
-97
333
6465

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 = 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL - 76 + + COUNT( DISTINCT - col2 ) FROM tab0 WHERE NULL NOT BETWEEN ( - - CAST( + 75 AS SIGNED ) ) AND NULL
----
-76

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - 76 + + COUNT ( DISTINCT - col2 ) FROM tab0 WHERE NULL NOT BETWEEN ( - - CAST ( + 75 AS INTEGER ) ) AND NULL
----
-76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + COUNT( + 52 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3568
SELECT + COUNT ( + 52 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / 64 / - 69 * 1 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 + - + col1, 95 - - col1 AS col1 FROM tab0 cor0
----
-11
116
-34
176
98
96

query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 + + 8 * - + col1 + - col0 + + 99 FROM tab2
----
1979
3838
703

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL + 33 * - COUNT( * ) + + 53 * + - 82 * 2 AS col2 FROM tab1
----
-8791

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + 33 * - COUNT ( * ) + + 53 * + - 82 * 2 AS col2 FROM tab1
----
-8791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL CAST( NULL AS SIGNED ) * - col2 + - col0 * + col0 FROM tab2 WHERE NOT + col1 * 74 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 + - col0 * + col0 FROM tab2 WHERE NOT + col1 * 74 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + COUNT( * ) + + 12 AS col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3575
SELECT + COUNT ( * ) + + 12 AS col1 FROM tab2 AS cor0
----
15

query I rowsort
SELECT - - col2 + - col1 - - col2 * 93 AS col2 FROM tab1 AS cor0
----
5541
6345
9010

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( 34 + col0 ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT SUM( DISTINCT col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3578
SELECT SUM ( DISTINCT col0 ) col0 FROM tab1
----
227

query I rowsort
SELECT 45 + - col2 AS col1 FROM tab1
----
-14
-23
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT MIN( DISTINCT - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3580
SELECT MIN ( DISTINCT - col2 ) FROM tab1
----
-96

query I rowsort
SELECT + 53 * + ( + col0 * - 93 ) + + col2 AS col0 FROM tab2
----
-226711
-315416
-369617

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT 56 DIV + 14 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-3582
SELECT 56 / + 14 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - SUM( + col0 ) + 65 col1 FROM tab0
----
-134

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3583
SELECT - SUM ( + col0 ) + 65 col1 FROM tab0
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT - 46 DIV col1 AS col2 FROM tab1
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-3584
SELECT - 46 / col1 AS col2 FROM tab1
----
-3
-9
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) > ( col1 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 10 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col1 * 70 FROM tab0 WHERE col2 * col0 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT + 70 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT col1 DIV - col2 + col1 FROM tab1 WHERE - col1 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3589
SELECT col1 / - col2 + col1 FROM tab1 WHERE - col1 IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( + col0 / + 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 * col0 col1 FROM tab0
----
-752
-880
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT - 28 + + CAST( NULL AS SIGNED ) * + 88 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3592
SELECT - 28 + + CAST ( NULL AS INTEGER ) * + 88 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 60 ) col0 FROM tab0
----
60
60
60

query I rowsort
SELECT DISTINCT - col1 * 72 + + col0 FROM tab0 WHERE NOT ( - 51 ) + - col0 IS NULL
----
-1425
-5817
25

query I rowsort
SELECT ALL ( 65 ) AS col0 FROM tab2 AS cor0
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN ( + col2 ) AND - col0
----

query I rowsort
SELECT DISTINCT + col2 * + 56 AS col1 FROM tab1 AS cor0
----
3304
3808
5376

query I rowsort
SELECT - 91 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT ( + col1 ) FROM tab0 cor0 WHERE ( - col2 ) NOT BETWEEN ( 37 + - col1 ) AND ( NULL )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col0 + - col0 * - ( + col1 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT - ( COUNT( 71 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT - ( COUNT ( 71 ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 18 AS col2 FROM tab2 AS cor0 WHERE ( - 95 * 32 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col2 BETWEEN 48 AND ( - col0 )
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 74 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL + COUNT( * ) * 59 FROM tab2 cor0
----
177

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + COUNT ( * ) * 59 FROM tab2 cor0
----
177

query I rowsort
SELECT - col2 + + 2 * - 18 AS col0 FROM tab1 AS cor0
----
-104
-132
-95

query I rowsort
SELECT DISTINCT 91 * col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 8 BETWEEN col1 * col1 AND + col0 * col1 + - col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3611
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 27 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3611
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 27 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3612
SELECT * FROM tab0 AS cor0 WHERE CAST( + 32 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3612
SELECT * FROM tab0 AS cor0 WHERE CAST ( + 32 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 66 + + 84 * - col2 FROM tab1 cor0
----
-4890
-5646
-7998

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE col1 / + col1 NOT BETWEEN ( col2 ) AND col0
----
-1
-21
-81

query I rowsort
SELECT - - 3 + col2 FROM tab1 AS cor0
----
62
71
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab0 WHERE ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 WHERE ( + col1 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3617
SELECT * FROM tab2 WHERE ( + CAST( - 76 AS SIGNED ) * col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3617
SELECT * FROM tab2 WHERE ( + CAST ( - 76 AS INTEGER ) * col1 ) IS NULL
----

query I rowsort
SELECT 31 + - + ( - col2 ) AS col2 FROM tab0
----
130
41
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 + col0 col0 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT ALL 24 + + col0 + 24 FROM tab1
----
133
139
99

query I rowsort
SELECT col2 * - 0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 70 * - col2 - + col1 AS col0 FROM tab0
----
-3371
-6931
-721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT DISTINCT + CAST( + 18 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + CAST ( + 18 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT - CAST( NULL AS SIGNED ) - - ( - col2 ) + + 44 * + 98 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT - CAST ( NULL AS INTEGER ) - - ( - col2 ) + + 44 * + 98 * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 78 - - 71 FROM tab2 AS cor0
----
149
149
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT ALL + col2 + - col1 DIV + 10 col0 FROM tab2
----
18
33
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3628
SELECT ALL + col2 + - col1 / + 10 col0 FROM tab2
----
18
33
52

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE + 27 + col2 IN ( col1 )
----

query I rowsort
SELECT DISTINCT col0 * + ( - - col2 ) FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 47 * 0 NOT BETWEEN + 83 / 49 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ( + + COUNT( DISTINCT + col0 ) ) * 86 AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-3632
SELECT ( + + COUNT ( DISTINCT + col0 ) ) * 86 AS col0 FROM tab2 AS cor0
----
258

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT 11 * CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 * - 19 ) IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-3634
SELECT 11 * CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 * - 19 ) IS NULL
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL ( + - COUNT( * ) ) * 28 * 65 - ( 44 ) AS col2 FROM tab0 AS cor0
----
-5504

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL ( + - COUNT ( * ) ) * 28 * 65 - ( 44 ) AS col2 FROM tab0 AS cor0
----
-5504

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT + COUNT( * ) * 31 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3636
SELECT + COUNT ( * ) * 31 FROM tab1 AS cor0
----
93

query II rowsort
SELECT DISTINCT + + col2 AS col1, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL + 58 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( + 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT - AVG ( ALL col1 ) * + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT - AVG ( ALL col1 ) * + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT 70 * + col1 AS col0, + col1 + - col0 AS col0 FROM tab1
----
3290
-44
350
-80
980
-37

query I rowsort
SELECT ALL 76 * - col2 FROM tab2
----
-1748
-3040
-4408

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 / 44 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( + col1 ) * - + col0 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
1589490
856575
931491

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + col1 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT + col1 + 79 - + col1 DIV - 97 + - - 83 * col1 FROM tab1
----
1255
4027
499

skipif mysql # not compatible
query I rowsort label-3645
SELECT + col1 + 79 - + col1 / - 97 + - - 83 * col1 FROM tab1
----
1255
4027
499

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3647
SELECT DISTINCT + 19 col0, MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
19
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3647
SELECT DISTINCT + 19 col0, MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
19
51

query I rowsort
SELECT ALL 32 - col1 FROM tab2 cor0 WHERE NOT ( ( + col0 ) / + 19 ) > - col2 * 20 + + 94 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - 59 * - 87 / + 42 + + 62 - col1 ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - 59 * - 87 / + 42 + + 62 - col1 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3650
SELECT + col1 * + CAST( NULL AS DECIMAL ) / + CAST( NULL AS SIGNED ) + + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT + col1 * + CAST ( NULL AS REAL ) / + CAST ( NULL AS INTEGER ) + + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL - - 60 * MAX( ALL col0 ) FROM tab1 AS cor0
----
5460

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - - 60 * MAX ( ALL col0 ) FROM tab1 AS cor0
----
5460

query I rowsort
SELECT ALL 61 * + + col0 + + - col0 * + 53 FROM tab2 AS cor0
----
368
512
600

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT + - ( - 36 ) FROM tab1 AS cor0
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT DISTINCT - 75 DIV + - col0 AS col2 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - 75 / + - col0 AS col2 FROM tab0 AS cor0
----
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( - col0 + col2 * + ( - CAST( + 10 AS SIGNED ) ) * ( - col0 ) + 23 / ( 79 + - col1 / 25 ) )
----

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( - col0 + col2 * + ( - CAST ( + 10 AS INTEGER ) ) * ( - col0 ) + 23 / ( 79 + - col1 / 25 ) )
----

query I rowsort
SELECT ALL col0 + - col0 + + col2 + - col0 + - col1 * + 70 FROM tab2 AS cor0
----
-3593
-4707
-5414

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT + MIN( ALL + + 1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3659
SELECT + MIN ( ALL + + 1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 WHERE ( 32 ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col2 + 12 AS col0 FROM tab1
----
-47
-56
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL SUM( ALL + 7 ) + - - COUNT( + 51 ) AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL SUM ( ALL + 7 ) + - - COUNT ( + 51 ) AS col2 FROM tab1
----
24

query I rowsort
SELECT ALL - col1 - + 96 * + col0 AS col2 FROM tab0
----
-1521
-8373
-9313

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab1, tab1 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT DISTINCT - ( col0 ) + + CAST( + - 93 AS SIGNED ) * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - ( col0 ) + + CAST ( + - 93 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + + col1, col1 ) OR NOT - - col1 NOT BETWEEN + 4 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3667
SELECT - - CAST( NULL AS SIGNED ) AS col2, MAX( DISTINCT - ( + col0 ) ) FROM tab0 AS cor0
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-3667
SELECT - - CAST ( NULL AS INTEGER ) AS col2, MAX ( DISTINCT - ( + col0 ) ) FROM tab0 AS cor0
----
NULL
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 66 ) IN ( 86 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT - CAST( - ( + 24 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
24
24
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3669
SELECT - CAST ( - ( + 24 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
24
24
24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 13 * + - 9 <= - col2 + + ( - col0 ) + - col0
----
46
51
23

query I rowsort
SELECT col2 * - - col0 * + col1 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT MAX( - - 14 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3672
SELECT MAX ( - - 14 ) FROM tab0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE NOT NULL = - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + - col0 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT + SUM( ( - col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + SUM ( ( - col0 ) ) FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3676
SELECT - CAST( + - 7 AS SIGNED ) DIV - col0 + 36, - 34 col1 FROM tab2
----
36
-34
36
-34
36
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3676
SELECT - CAST ( + - 7 AS INTEGER ) / - col0 + 36, - 34 col1 FROM tab2
----
36
-34
36
-34
36
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL COUNT( + 91 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL COUNT ( + 91 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 82 FROM tab1 WHERE 25 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL - 30 * + 38 * - - COUNT( * ) FROM tab0
----
-3420

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - 30 * + 38 * - - COUNT ( * ) FROM tab0
----
-3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT DISTINCT + CAST( 94 AS SIGNED ) * - col2 AS col0 FROM tab2
----
-2162
-3760
-5452

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + CAST ( 94 AS INTEGER ) * - col2 AS col0 FROM tab2
----
-2162
-3760
-5452

query III rowsort
SELECT * FROM tab1 WHERE + col0 / - col2 * + ( - col1 ) BETWEEN NULL AND 32
----

query I rowsort
SELECT DISTINCT + col0 * - ( - ( - col0 ) ) + + 79 FROM tab2
----
-2037
-4017
-5546

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL + 3 * + COUNT( + col0 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + 3 * + COUNT ( + col0 ) AS col0 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3685
SELECT - col2 * - col2 + CAST( NULL AS SIGNED ) * - + col2, col0 * - 81 AS col0 FROM tab0
----
NULL
-1215
NULL
-7047
NULL
-7857

skipif mysql # not compatible
query II rowsort label-3685
SELECT - col2 * - col2 + CAST ( NULL AS INTEGER ) * - + col2, col0 * - 81 AS col0 FROM tab0
----
NULL
-1215
NULL
-7047
NULL
-7857

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 50 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 45 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 45 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 - + - 38 - + col2 * + + ( - + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 62 + - - col2 ) IS NULL
----

query I rowsort
SELECT + - col2 * + + col0 + col1 AS col2 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT + 92 DIV + col2 + + - col0 FROM tab1 AS cor0
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 92 / + col2 + + - col0 FROM tab1 AS cor0
----
-51
-84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT SUM( 73 ) AS col2 FROM tab0 WHERE - 22 NOT IN ( + col1 * + col2 * + - col1 )
----
219

skipif mysql # not compatible
query I rowsort label-3692
SELECT SUM ( 73 ) AS col2 FROM tab0 WHERE - 22 NOT IN ( + col1 * + col2 * + - col1 )
----
219

query I rowsort
SELECT ALL - col2 + 0 + - ( - col1 ) FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT DISTINCT - 59 DIV + + col1 + + + col2 FROM tab1
----
48
67
92

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT - 59 / + + col1 + + + col2 FROM tab1
----
48
67
92

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + col1 ) <= 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT DISTINCT CAST( + col0 AS SIGNED ) + - + col2 + col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + - + col2 + col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT 61 AS col0, COUNT( * ) FROM tab2
----
61
3

skipif mysql # not compatible
query II rowsort label-3697
SELECT 61 AS col0, COUNT ( * ) FROM tab2
----
61
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 / + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 - 18 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - COUNT( * ) * - 2 AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3702
SELECT - COUNT ( * ) * - 2 AS col2 FROM tab0
----
6

query III rowsort
SELECT ALL col2, - col0 * + - ( + - col2 ), + col1 AS col0 FROM tab1
----
9 values hashing to 04c992c06b9ec74c9414888630b4336a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, - col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 53 - - 74 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * 46 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3707
SELECT + + CAST( NULL AS DECIMAL ) AS col1, + col1 AS col2, 44 * - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 6ce0b3de21470f64d82e5eca8d42967a

skipif mysql # not compatible
query III rowsort label-3707
SELECT + + CAST ( NULL AS REAL ) AS col1, + col1 AS col2, 44 * - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 6ce0b3de21470f64d82e5eca8d42967a

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 + + - 43 * 66 >= + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3709
SELECT + COUNT( * ) col1, + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3709
SELECT + COUNT ( * ) col1, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, col0 col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 * - + col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 * - + col0 ) AND NULL
----
0

query I rowsort
SELECT 85 * 98 AS col2 FROM tab0 AS cor0
----
8330
8330
8330

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - col0 * - + col0
----

query II rowsort
SELECT - 49 * - - 22, - 64 AS col1 FROM tab1
----
-1078
-64
-1078
-64
-1078
-64

query I rowsort
SELECT + 15 * + col1 * ( + - col0 ) FROM tab1
----
-10710
-6375
-64155

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT + ( + 34 ) + - col1 * - - col2 AS col0 FROM tab2 AS cor0
----
-1139
-3046
-3852

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NULL <> 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + + col0 col0 FROM tab2 AS cor0
----
106
117
88

query I rowsort
SELECT DISTINCT + col2 + + ( + ( + col1 ) ) * - 50 AS col1 FROM tab2
----
-2527
-3292
-3810

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 BETWEEN NULL AND - - col0
----

query I rowsort
SELECT ALL col0 - + - col0 + - + col0 FROM tab0
----
15
87
97

query II rowsort
SELECT DISTINCT col0 AS col2, + col1 + - 38 FROM tab2
----
46
13
64
39
75
29

query I rowsort
SELECT 13 * + 13 + 35 AS col2 FROM tab1 AS cor0
----
204
204
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT ALL - CAST( col1 AS SIGNED ) + + col0 + + col1 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - CAST ( col1 AS INTEGER ) + + col0 + + col1 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + ( - - col1 ) AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT - 60 - + col1 AS col2 FROM tab0 cor0
----
-141
-61
-81

query I rowsort
SELECT DISTINCT - col0 + - + 74 AS col2 FROM tab1 AS cor0
----
-125
-159
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT - - ( col1 ) FROM tab1 AS cor0 WHERE ( + - CAST( NULL AS SIGNED ) ) - - 96 * - + 26 = NULL
----

skipif mysql # not compatible
query I rowsort label-3730
SELECT - - ( col1 ) FROM tab1 AS cor0 WHERE ( + - CAST ( NULL AS INTEGER ) ) - - 96 * - + 26 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 / - 76 IS NULL )
----

query I rowsort
SELECT + col0 - - 64 AS col0 FROM tab1 AS cor0
----
115
149
155

query I rowsort
SELECT DISTINCT 87 + 13 - - 2 AS col1 FROM tab0
----
102

query I rowsort
SELECT DISTINCT - col1 + + + col0 + - col2 AS col0 FROM tab2
----
-28
-50
-53

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 * - col2 + ( - + col1 ) IN ( - col0, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + - - col1 = + 15
----

query I rowsort
SELECT ( - + 0 ) + col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT ALL COUNT( * ) * - COUNT( * ) DIV COUNT( * ) * - COUNT( * ) - - MAX( - col2 ) * 72 FROM tab0
----
-711

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL COUNT ( * ) * - COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) - - MAX ( - col2 ) * 72 FROM tab0
----
-711

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT - MAX( DISTINCT - - col1 ) * + + MIN( col1 ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-3927
3

skipif mysql # not compatible
query II rowsort label-3740
SELECT - MAX ( DISTINCT - - col1 ) * + + MIN ( col1 ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-3927
3

query I rowsort
SELECT - - 11 * 27 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 63d486414f9850266dfb6804b153668a

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT SUM( ALL col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT SUM ( ALL col2 ) FROM tab2
----
121

query I rowsort
SELECT ALL ( 42 ) AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE + 68 + - + 81 IS NULL
----

query I rowsort
SELECT DISTINCT + 22 * col0 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + - MAX( col2 ) * + + MIN( + - 10 ) AS col1 FROM tab0 AS cor0
----
990

skipif mysql # not compatible
query I rowsort label-3746
SELECT + - MAX ( col2 ) * + + MIN ( + - 10 ) AS col1 FROM tab0 AS cor0
----
990

query I rowsort
SELECT - 66 + 87 AS col0 FROM tab0
----
21
21
21

query I rowsort
SELECT DISTINCT - col0 + 59 * + 89 FROM tab2
----
5176
5187
5205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT CAST( NULL AS SIGNED ) * - - ( col2 ) * + col0 * col0 + + ( + - col2 ) + + 89 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3749
SELECT CAST ( NULL AS INTEGER ) * - - ( col2 ) * + col0 * col0 + + ( + - col2 ) + + 89 col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 84, - col0 AS col1 FROM tab1
----
84
-51
84
-85
84
-91

query I rowsort
SELECT col2 + - 80 FROM tab0
----
-33
-70
19

query I rowsort
SELECT - col1 + - 76 AS col1 FROM tab2
----
-127
-143
-153

query II rowsort
SELECT DISTINCT + col2 AS col0, - ( col0 ) AS col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3754
SELECT ALL * FROM tab0 WHERE NOT NULL <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3754
SELECT ALL * FROM tab0 WHERE NOT NULL <= - CAST ( NULL AS REAL )
----

query I rowsort
SELECT + ( 89 ) FROM tab0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3756
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - ( + - ( + + col1 ) ) + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT COUNT( ALL + 4 ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT COUNT ( ALL + 4 ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + col0
----

query I rowsort
SELECT DISTINCT - 79 * + col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN 63 AND + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2 * col2 AS col1, 82 + - col2 FROM tab1 cor0
----
3481
23
4624
14
9216
-14

query II rowsort
SELECT DISTINCT - col0, - col2 - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - 54 * MAX( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-4158

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 54 * MAX ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-4158

query I rowsort
SELECT DISTINCT - - col2 * 1 AS col0 FROM tab2 AS cor0 WHERE NOT 76 * - ( + 56 ) IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT ALL + CAST( NULL AS SIGNED ) col0, col1 FROM tab2 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) BETWEEN - + col2 / + col1 + - - 99 AND ( NULL )
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3766
SELECT ALL + CAST ( NULL AS INTEGER ) col0, col1 FROM tab2 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) BETWEEN - + col2 / + col1 + - - 99 AND ( NULL )
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 * + col0 * + 58 col1 FROM tab0 WHERE ( ( NULL ) IS NULL )
----
131196
146276
22620

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + + 8 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT SUM( ( + col1 ) ) AS col0, COUNT( * ) FROM tab2
----
195
3

skipif mysql # not compatible
query II rowsort label-3769
SELECT SUM ( ( + col1 ) ) AS col0, COUNT ( * ) FROM tab2
----
195
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT + MIN( ALL - - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3770
SELECT + MIN ( ALL - - col0 ) AS col0 FROM tab0
----
15

query II rowsort
SELECT - 75 AS col2, - 53 + - - col2 FROM tab1
----
-75
15
-75
43
-75
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL - COUNT( * ) FROM tab2 WHERE - col0 * - col2 * + col1 * col1 - + + col0 > - col1
----
-3

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - col0 * - col2 * + col1 * col1 - + + col0 > - col1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - col0 AND - 1
----

query I rowsort
SELECT ALL + 15 * - col0 FROM tab1
----
-1275
-1365
-765

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 > + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 + col2 + - col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NULL = - col1 + + + col1 + + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT DISTINCT ( ( + COUNT( * ) ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT ( ( + COUNT ( * ) ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col2 * - - col1 FROM tab0 WHERE NULL IN ( - 52 )
----

query I rowsort
SELECT ALL - col2 * - + 23 * 53 AS col2 FROM tab1
----
117024
71921
82892

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3781
SELECT DISTINCT col0 DIV + ( + col0 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT col0 / + ( + col0 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 53 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - 30 ) AS col2 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3784
SELECT + - col2 / col2, col2 * + CAST( + col0 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT col2 * 27 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3784
SELECT + - col2 / col2, col2 * + CAST ( + col0 AS REAL ) FROM tab2 AS cor0 WHERE NOT col2 * 27 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + - ( + + 0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL 29 + - + ( 61 ) * - COUNT( * ) AS col2 FROM tab2
----
212

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL 29 + - + ( 61 ) * - COUNT ( * ) AS col2 FROM tab2
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT DISTINCT 11 + + + COUNT( * ) + - COUNT( * ) * - - 18 col2 FROM tab1 WHERE NOT NULL >= ( + col0 )
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3787
SELECT DISTINCT 11 + + + COUNT ( * ) + - COUNT ( * ) * - - 18 col2 FROM tab1 WHERE NOT NULL >= ( + col0 )
----
11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 57 * - - col0 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - col2 = col2
----

query I rowsort
SELECT - 23 FROM tab2 WHERE col0 BETWEEN NULL AND - 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3791
SELECT ALL - ( - col1 ) * + - col0 AS col1, col0 + + CAST( - 14 AS SIGNED ) AS col1, - + ( - col1 ) FROM tab2
----
9 values hashing to b6f089797126e5c72358165a8841e53a

skipif mysql # not compatible
query III rowsort label-3791
SELECT ALL - ( - col1 ) * + - col0 AS col1, col0 + + CAST ( - 14 AS INTEGER ) AS col1, - + ( - col1 ) FROM tab2
----
9 values hashing to b6f089797126e5c72358165a8841e53a

query I rowsort
SELECT col2 + - 21 AS col0 FROM tab0 AS cor0
----
-11
26
78

query I rowsort
SELECT - + 95 + + col2 FROM tab1 cor0
----
-27
-36
1

query I rowsort
SELECT col2 + + 59 AS col1 FROM tab1 AS cor0
----
118
127
155

query I rowsort
SELECT DISTINCT + - 59 + col2 AS col2 FROM tab0 AS cor0
----
-12
-49
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - col2 IS NULL
----

query I rowsort
SELECT ALL - ( + + col2 ) + + 80 AS col0 FROM tab2 AS cor0
----
22
40
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
92

query I rowsort
SELECT DISTINCT - - 83 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3801
SELECT - col1 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT - col1 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 32 - + - 77 + - 85 FROM tab2 cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3803
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( DISTINCT + 56 ) AS col1 FROM tab1 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-3803
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( DISTINCT + 56 ) AS col1 FROM tab1 AS cor0
----
3
1

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 + - ( - col2 ) * - - col1 - col2 )
----

query II rowsort
SELECT ALL + 22 AS col0, + 1 AS col0 FROM tab2 AS cor0
----
22
1
22
1
22
1

query I rowsort
SELECT ALL col0 + + col0 + - 33 AS col2 FROM tab1 AS cor0
----
137
149
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3807
SELECT + CAST( NULL AS SIGNED ) * + + col0 - 90 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT + CAST ( NULL AS INTEGER ) * + + col0 - 90 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT COUNT( - - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3808
SELECT COUNT ( - - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT - ( - - COUNT( - + col0 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3809
SELECT - ( - - COUNT ( - + col0 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3810
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) >= + + col0 / - - 79
----

skipif mysql # not compatible
query III rowsort label-3810
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) >= + + col0 / - - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT + 2 DIV + col2 * + col1 * col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT + 2 / + col2 * + col1 * col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 7 * - - col2 FROM tab0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL COUNT( * ) * 31 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL COUNT ( * ) * 31 FROM tab0 AS cor0
----
93

query I rowsort
SELECT - 76 * - + col1 AS col0 FROM tab1 AS cor0
----
1064
3572
380

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3816
SELECT COUNT( - + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT COUNT ( - + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * - - 56 col0 FROM tab2
----
1848
1848
1848

query II rowsort
SELECT + + col0 AS col0, 60 AS col1 FROM tab0 AS cor0
----
15
60
87
60
97
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 18 col2, + col0 * + - col2 + - 84 AS col1 FROM tab1 AS cor0
----
18
-4980
18
-5099
18
-6272

query I rowsort
SELECT ALL - - col2 + - 36 AS col2 FROM tab2 AS cor0
----
-13
22
4

query I rowsort
SELECT ALL + col1 * + 8 FROM tab1 WHERE - col1 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 83 FROM tab1, tab1 AS cor0
----
-83

query I rowsort
SELECT - col1 + - - col0 AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT ( - col2 ) + - - col1 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT 25 * - COUNT( * ) col2 FROM tab0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3826
SELECT DISTINCT 25 * - COUNT ( * ) col2 FROM tab0
----
-75

query I rowsort
SELECT ALL - 79 * - - 17 * - col0 FROM tab2
----
100725
61778
85952

query I rowsort
SELECT ALL + 68 + + 72 FROM tab0
----
140
140
140

query III rowsort
SELECT * FROM tab0 WHERE 86 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT DISTINCT - 86 * + - 91, COUNT( - + col2 ) AS col0 FROM tab2
----
7826
3

skipif mysql # not compatible
query II rowsort label-3831
SELECT DISTINCT - 86 * + - 91, COUNT ( - + col2 ) AS col0 FROM tab2
----
7826
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT COUNT( * ) * + 71 AS col2, - COUNT( * ) FROM tab2
----
213
-3

skipif mysql # not compatible
query II rowsort label-3832
SELECT COUNT ( * ) * + 71 AS col2, - COUNT ( * ) FROM tab2
----
213
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3833
SELECT ALL + 53 DIV + col2 * - col2 * + + 47, col1 AS col2 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-3833
SELECT ALL + 53 / + col2 * - col2 * + + 47, col1 AS col2 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT + COUNT( * ) * 23 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + COUNT ( * ) * 23 FROM tab2 AS cor0
----
69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 79 > col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3836
SELECT - ( COUNT( * ) ) + - 22 AS col1, - COUNT( * ) FROM tab1
----
-25
-3

skipif mysql # not compatible
query II rowsort label-3836
SELECT - ( COUNT ( * ) ) + - 22 AS col1, - COUNT ( * ) FROM tab1
----
-25
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT ALL - + ( - col2 ) - - 79 DIV + - col2 AS col2 FROM tab1 cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - + ( - col2 ) - - 79 / + - col2 AS col2 FROM tab1 cor0
----
58
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT + + MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + + MIN ( - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT - - 59 * - - 5 * - COUNT( * ) AS col2 FROM tab2 cor0
----
-885

skipif mysql # not compatible
query I rowsort label-3839
SELECT - - 59 * - - 5 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
-885

query II rowsort
SELECT + - 10 AS col0, col1 AS col1 FROM tab0 cor0
----
-10
1
-10
21
-10
81

query II rowsort
SELECT - 52, + ( col0 ) FROM tab0
----
-52
15
-52
87
-52
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 BETWEEN + + col2 AND ( NULL )
----
15
81
47
97
1
99

query I rowsort
SELECT col2 * + + 51 FROM tab0
----
2397
5049
510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - 77 * 96 FROM tab0
----
1
-7392
21
-7392
81
-7392

query II rowsort
SELECT ALL + 25, + col1 FROM tab2
----
25
51
25
67
25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
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-3846
SELECT ALL + - COUNT ( * ) col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3847
SELECT ALL 44 AS col2, ( + COUNT( * ) ) * COUNT( * ) DIV + ( - 66 ) AS col1 FROM tab0 AS cor0
----
44
0

skipif mysql # not compatible
query II rowsort label-3847
SELECT ALL 44 AS col2, ( + COUNT ( * ) ) * COUNT ( * ) / + ( - 66 ) AS col1 FROM tab0 AS cor0
----
44
0

query I rowsort
SELECT - - ( + 49 ) FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT ( 73 ) AS col2 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL + 50 * - COUNT( * ) FROM tab1 cor0 WHERE NOT col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL + 50 * - COUNT ( * ) FROM tab1 cor0 WHERE NOT col1 < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 = - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + COUNT( * ) + - - MIN( ALL + col0 ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3852
SELECT + COUNT ( * ) + - - MIN ( ALL + col0 ) AS col2 FROM tab1
----
54

query I rowsort
SELECT ALL + col2 - - - col1 + - + 58 + col0 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + 70 + col2, - col0, + 96, + col0 )
----
-77
137
18

query I rowsort
SELECT col2 * - 5 + - col0 AS col1 FROM tab1 AS cor0
----
-380
-431
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT - ( + MAX( col2 ) ) * + 2 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - ( + MAX ( col2 ) ) * + 2 FROM tab0 AS cor0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3856
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3856
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - 50 ) AS col0, col1 col0 FROM tab0 AS cor0
----
-50
1
-50
21
-50
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL - - 97 + - COUNT( DISTINCT - 61 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - - 97 + - COUNT ( DISTINCT - 61 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT col0 * + - 50 - col1 + col0 + + - 14 * - col2 - - + col1 + - - 70 FROM tab1 AS cor0
----
-1085
-3269
-3437

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT DISTINCT - COUNT( * ) + - COUNT( * ), - ( + + 85 ) AS col0 FROM tab1 AS cor0
----
-6
-85

skipif mysql # not compatible
query II rowsort label-3860
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ), - ( + + 85 ) AS col0 FROM tab1 AS cor0
----
-6
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT DISTINCT 49 - + COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT 49 - + COUNT ( * ) FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT DISTINCT SUM( + 33 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT SUM ( + 33 ) FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3863
SELECT - CAST( - col1 AS SIGNED ) + - col1, + col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-3863
SELECT - CAST ( - col1 AS INTEGER ) + - col1, + col1 FROM tab2
----
0
51
0
67
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 89 col1 FROM tab0
----
-2
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT AVG ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + MIN( - 54 ) col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3867
SELECT DISTINCT + MIN ( - 54 ) col0 FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3868
SELECT + CAST( NULL AS DECIMAL ) / - 70 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT + CAST ( NULL AS REAL ) / - 70 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( - - col1 ) + + col2, col1 FROM tab1 AS cor0
----
110
14
115
47
64
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT DISTINCT col1 / + 67 + + col1 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT col1 / + 67 + + col1 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + + 65 AS col0 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3872
SELECT + - CAST( + COUNT( * ) AS SIGNED ) * - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) * - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT - MIN( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT - MIN ( - ( col0 ) ) AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 15 * col1 AS col1 FROM tab1 AS cor0
----
210
705
75

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT ( NULL ) >= col1
----

query I rowsort
SELECT ALL - ( - - col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col0 * - + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT col2 DIV - 56 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT col2 / - 56 AS col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + ( + 7 ) FROM tab0
----
7
7
7

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + MAX( ALL + 86 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-3882
SELECT + MAX ( ALL + 86 ) FROM tab0
----
86

query I rowsort
SELECT + col0 * - + ( + 48 ) FROM tab1
----
-2448
-4080
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT + ( + COUNT( ALL + + 70 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + ( + COUNT ( ALL + + 70 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL + - COUNT( * ) + + + ( + COUNT( * ) ) * 63 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + - COUNT ( * ) + + + ( + COUNT ( * ) ) * 63 FROM tab0 AS cor0
----
186

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + - 95 * + - ( col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * col1 col1 FROM tab0 cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 * col0 = + + 57
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 79 <> NULL )
----

query I rowsort
SELECT col1 + - 31 FROM tab1 cor0
----
-17
-26
16

query I rowsort
SELECT 68 / - col2 AS col0 FROM tab1 WHERE + + 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + MIN( + + 57 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-3892
SELECT + MIN ( + + 57 ) FROM tab2
----
57

query I rowsort
SELECT - col1 * - 64 * - col2 AS col0 FROM tab1
----
-18880
-204544
-86016

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT - ( + MAX( ALL col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3894
SELECT - ( + MAX ( ALL col1 ) ) FROM tab2
----
-77

query I rowsort
SELECT + ( ( 8 ) ) * + col1 AS col1 FROM tab2
----
408
536
616

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( + 53 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 61 * + col0 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= - 51 / - col0 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 71 col2 FROM tab2 AS cor0
----
-20
-4
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL COUNT( - 37 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL COUNT ( - 37 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT - - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3903
SELECT + CAST( + + MIN( - + col2 ) AS SIGNED ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3903
SELECT + CAST ( + + MIN ( - + col2 ) AS INTEGER ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( - 81 / col1 + 86 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + MIN( ALL + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3905
SELECT + MIN ( ALL + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col2 * + 50 FROM tab1 AS cor0
----
2950
3400
4800

query I rowsort
SELECT DISTINCT - - 42 * + - col2 FROM tab1 AS cor0
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - COUNT( * ) * 70 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - COUNT ( * ) * 70 FROM tab0 AS cor0
----
-210

query I rowsort
SELECT 39 * col0 FROM tab2 AS cor0
----
1794
2496
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT DISTINCT COUNT( 85 ) DIV - COUNT( * ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3910
SELECT DISTINCT COUNT ( 85 ) / - COUNT ( * ) col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT + col0 DIV + - 50 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3911
SELECT + col0 / + - 50 AS col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col1 FROM tab2
----
19
19
19

query I rowsort
SELECT - 65 * col2 * + + col1 AS col0 FROM tab2
----
-200200
-252590
-76245

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT DISTINCT + 31 DIV + col0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + 31 / + col0 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col1 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - - ( + 41 ) ) AS col1 FROM tab0
----
41
41
41

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - 89
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 68 * 69 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + + 19 col2 FROM tab2 cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col1 ) * - + col2 BETWEEN - 98 AND - 29 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT DISTINCT COUNT( + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT COUNT ( + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT - - ( + col0 ) + + col2 * + col1 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
1395
-14
3287
-47
380
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT col2 + + col1 DIV + - col0 AS col0 FROM tab0 AS cor0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-3923
SELECT col2 + + col1 / + - col0 AS col0 FROM tab0 AS cor0
----
10
42
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT + 90 + + 34 + - + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3924
SELECT + 90 + + 34 + - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT col2 + + 41 AS col0 FROM tab1
----
100
109
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - ( + - ( + col2 ) ) + - 32 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - ( + - ( + col2 ) ) + - 32 IS NULL
----
3

query II rowsort
SELECT DISTINCT col2, - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + MIN( - + col2 ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3929
SELECT + MIN ( - + col2 ) AS col1 FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT - 72 + - + col2 FROM tab2 AS cor0
----
-112
-130
-95

query I rowsort
SELECT + col0 - + 16 - + ( - - col0 ) FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL col1 + + 34 AS col1 FROM tab2
----
101
111
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT + CAST( NULL AS SIGNED ) + + col0 * col1 / - 47 * + 66 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT + CAST ( NULL AS INTEGER ) + + col0 * col1 / - 47 * + 66 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT AVG ( - 94 ) + ( 10 ) + + 9 AS col0 FROM tab1 WHERE NULL NOT BETWEEN - + col2 AND - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 44 ) + - 42 col2 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL - ( col1 ) * - + col2 - col1 FROM tab0
----
189
3726
98

query I rowsort
SELECT ALL - col0 + ( + col2 ) + + col1 FROM tab0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT + 10 + + COUNT( * ) AS col0 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3938
SELECT + 10 + + COUNT ( * ) AS col0 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT DISTINCT - 24 - - ( - COUNT( * ) ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT - 24 - - ( - COUNT ( * ) ) FROM tab2
----
-27

query I rowsort
SELECT ALL - - col2 - + - col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - + MAX( + - 51 ) AS col1 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3941
SELECT - + MAX ( + - 51 ) AS col1 FROM tab0 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT col1 DIV + - 48 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3942
SELECT col1 / + - 48 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 92 * + - col0 + col1 FROM tab0 AS cor0
----
1461
8025
8925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT ALL + - COUNT( ALL + col2 ) * - CAST( 74 AS SIGNED ) * - 73 FROM tab2 AS cor0
----
-16206

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + - COUNT ( ALL + col2 ) * - CAST ( 74 AS INTEGER ) * - 73 FROM tab2 AS cor0
----
-16206

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + + 82 * - SUM( - col2 ) FROM tab1 AS cor0
----
18286

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + 82 * - SUM ( - col2 ) FROM tab1 AS cor0
----
18286

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT + 0 AS col0, + ( - - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1
0
21
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL col2 * - - CAST( - col0 AS SIGNED ) col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3949
SELECT ALL col2 * - - CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL COUNT( 91 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL COUNT ( 91 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + ( + col2 ) + - col1 * + + 54 + - col1 FROM tab2
----
-2782
-3627
-4195

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT ALL - COUNT( * ) AS col1, + 49 FROM tab0
----
-3
49

skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL - COUNT ( * ) AS col1, + 49 FROM tab0
----
-3
49

query I rowsort
SELECT DISTINCT - 91 * - 27 AS col2 FROM tab1
----
2457

query I rowsort
SELECT 4 * + - 15 FROM tab1
----
-60
-60
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT - 81 DIV 17 * + 68 * - 67 AS col0 FROM tab1
----
18224
18224
18224

skipif mysql # not compatible
query I rowsort label-3955
SELECT - 81 / 17 * + 68 * - 67 AS col0 FROM tab1
----
18224
18224
18224

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT MAX( - 25 ) * + 15 FROM tab2
----
-375

skipif mysql # not compatible
query I rowsort label-3956
SELECT MAX ( - 25 ) * + 15 FROM tab2
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - MIN( ALL - col0 ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3957
SELECT - MIN ( ALL - col0 ) col1 FROM tab1
----
91

query I rowsort
SELECT ALL + col2 * + col0 + - - col1 * 45 AS col1 FROM tab1
----
5240
5526
8303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - 29 col1 FROM tab1
----
-15
-24
18

query I rowsort
SELECT ALL 65 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT ALL + COUNT( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + COUNT ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
0

query I rowsort
SELECT col2 + ( - - col1 ) FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT + 3 - + + col1 FROM tab2 AS cor0
----
-48
-64
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT DISTINCT + + col0 DIV - - col0 + + + 28 AS col2 FROM tab0 cor0
----
29

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + + col0 / - - col0 + + + 28 AS col2 FROM tab0 cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3965
SELECT 25, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
25
NULL
25
NULL
25
NULL

skipif mysql # not compatible
query II rowsort label-3965
SELECT 25, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
25
NULL
25
NULL
25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 15 + + - col1 FROM tab0 AS cor0
----
-16
-36
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - COUNT( - + col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3968
SELECT - COUNT ( - + col1 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - col2 * + - col0 + - col1 FROM tab2 cor0
----
1007
2483
4283

query I rowsort
SELECT 74 AS col1 FROM tab2 AS cor0 WHERE 29 * + - 40 + + 47 IS NOT NULL
----
74
74
74

query I rowsort
SELECT + col2 * + col0 * col0 * - - col1 * + + col2 AS col0 FROM tab0
----
15894900
40259025
92217609

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + MIN( - 86 ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-3972
SELECT + MIN ( - 86 ) FROM tab2
----
-86

query I rowsort
SELECT col0 * col1 * - col0 - 39 AS col2 FROM tab1
----
-36164
-36453
-389246

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3974
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - CAST( - 32 AS SIGNED ) / - + col1 * - + ( col1 ) IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-3974
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - CAST ( - 32 AS INTEGER ) / - + col1 * - + ( col1 ) IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT CAST( + - col1 AS SIGNED ) * + 77 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3975
SELECT CAST ( + - col1 AS INTEGER ) * + 77 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 4 <> + col2 * - col0
----

query I rowsort
SELECT ALL - col0 * - + col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL - 50 * + 9 AS col0 FROM tab2 AS cor0
----
-450
-450
-450

query III rowsort
SELECT ALL - + 16 AS col0, - col0 AS col1, 30 FROM tab1 AS cor0
----
9 values hashing to 76f925799659c11c987787e03764e3b9

query I rowsort
SELECT DISTINCT ( - + 94 ) * + - 11 FROM tab1 AS cor0
----
1034

query I rowsort
SELECT + 96 * + 74 * - 5 FROM tab2 AS cor0
----
-35520
-35520
-35520

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * - + col0 IS NULL
----

query II rowsort
SELECT - - col1, + col2 + col2 AS col0 FROM tab2 AS cor0
----
51
46
67
116
77
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT - CAST( - - col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3984
SELECT - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col0 * - ( - col0 ) FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL + col2 * + 59 AS col0 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT ALL - - 27 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * + - col0 * col1 - - col1 * col2 + + col1 IS NULL
----

query I rowsort
SELECT 73 * + col1 * + col1 AS col2 FROM tab2
----
189873
327697
432817

query I rowsort
SELECT col2 + - 40 * + - col1 * col0 FROM tab0
----
3979
48647
73090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + - ( 91 ) * - 60 col0 FROM tab0 AS cor0
----
5509
5509
5509

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE 77 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT 32 DIV + + ( + col0 ) + + 16 + - col1 * + 8 AS col1 FROM tab1 AS cor0
----
-24
-360
-96

skipif mysql # not compatible
query I rowsort label-3993
SELECT 32 / + + ( + col0 ) + + 16 + - col1 * + 8 AS col1 FROM tab1 AS cor0
----
-24
-360
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 44 >= - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 27 + - - 67 AS col2 FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL - col0 - - col0 * col1 * - - 21 FROM tab2
----
103424
105450
49220

onlyif mysql # aggregate syntax: 
query II rowsort label-3997
SELECT + COUNT( * ) AS col2, COUNT( * ) + 90 * + 80 AS col2 FROM tab0
----
3
7203

skipif mysql # not compatible
query II rowsort label-3997
SELECT + COUNT ( * ) AS col2, COUNT ( * ) + 90 * + 80 AS col2 FROM tab0
----
3
7203

query I rowsort
SELECT ALL + ( + 41 ) + + col2 AS col0 FROM tab2
----
64
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT - COUNT( * ) - - + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT - 37, col0 AS col0 FROM tab0
----
-37
15
-37
87
-37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL - 47 * + 6 - MAX( DISTINCT - col0 ) - + 28 FROM tab0 AS cor0
----
-295

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - 47 * + 6 - MAX ( DISTINCT - col0 ) - + 28 FROM tab0 AS cor0
----
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL - + SUM( ( - + ( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - + SUM ( ( - + ( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT + col1 - + + ( + - 69 ) AS col2 FROM tab0 AS cor0
----
150
70
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 50 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4005
SELECT DISTINCT - - CAST( NULL AS SIGNED ), col0 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
query II rowsort label-4005
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), col0 * + col2 AS col0 FROM tab1 AS cor0
----
NULL
4896
NULL
5015
NULL
6188

query I rowsort
SELECT DISTINCT + 3 + + + 21 AS col2 FROM tab1 AS cor0
----
24

query I rowsort
SELECT ALL col1 + col1 + + - 55 FROM tab1
----
-27
-45
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN + ( + 53 ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4009
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN - + 97 AND + 91 * col0
----

skipif mysql # not compatible
query III rowsort label-4009
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - + 97 AND + 91 * col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - - col1 <= + - col2
----

query III rowsort
SELECT ALL - col0 AS col0, - 48, col2 AS col2 FROM tab2
----
9 values hashing to ff16e23df0e159cde2e00510b4497318

query I rowsort
SELECT 56 + + 79 + - + 47 FROM tab2
----
88
88
88

query I rowsort
SELECT col0 + + - 50 AS col0 FROM tab0
----
-35
37
47

query I rowsort
SELECT - col1 + - col1 + + + col1 - - - 86 * + 53 AS col1 FROM tab1
----
-4563
-4572
-4605

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL + COUNT( * ) * + - 18 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + COUNT ( * ) * + - 18 FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT + MAX( + - ( + - 52 ) ) * + + 78 FROM tab2
----
4056

skipif mysql # not compatible
query I rowsort label-4016
SELECT + MAX ( + - ( + - 52 ) ) * + + 78 FROM tab2
----
4056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT ALL CAST( - + AVG ( - 22 ) AS SIGNED ) AS col2 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL CAST ( - + AVG ( - 22 ) AS INTEGER ) AS col2 FROM tab0
----
22

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col2 IS NULL
----
14
47
5

query I rowsort
SELECT col0 * + ( ( ( - 83 ) ) ) * col2 * col0 FROM tab1
----
-20724768
-35380825
-46737964

query I rowsort
SELECT DISTINCT - - col0 * + col0 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT - SUM( DISTINCT - - col1 ) * SUM( - col2 ) + - 41 + 75 FROM tab2 cor0
----
23629

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT - SUM ( DISTINCT - - col1 ) * SUM ( - col2 ) + - 41 + 75 FROM tab2 cor0
----
23629

query I rowsort
SELECT ALL + + 13 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT COUNT( * ) * + 25 AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4024
SELECT COUNT ( * ) * + 25 AS col2 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL COUNT( * ) * + 13 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL COUNT ( * ) * + 13 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT COUNT( * ) AS col1, + 24 AS col0 FROM tab0
----
3
24

skipif mysql # not compatible
query II rowsort label-4026
SELECT COUNT ( * ) AS col1, + 24 AS col0 FROM tab0
----
3
24

query II rowsort
SELECT 23, + 42 AS col0 FROM tab1
----
23
42
23
42
23
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT + 79 DIV 30 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4028
SELECT + 79 / 30 AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL col2 * - ( 60 ) FROM tab1
----
-3540
-4080
-5760

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN - 59 AND - - col1
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4031
SELECT - SUM( DISTINCT - col0 ) / + COUNT( * ) * + + CAST( NULL AS SIGNED ) / - - 9 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT - SUM ( DISTINCT - col0 ) / + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / - - 9 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * - col2 / col1 >= NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT 96 * + col0 + - - col2 * - + 95 + + 14 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - ( + 94 ) * + + col1 FROM tab1 AS cor0
----
-1316
-4418
-470

query III rowsort
SELECT * FROM tab0 WHERE 94 IN ( 56 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 98 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4037
SELECT col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) * col2 IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4037
SELECT col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + MAX( + col0 ) + + 59 col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4038
SELECT + MAX ( + col0 ) + + 59 col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT 31 + - col2 * col2 AS col1 FROM tab1
----
-3450
-4593
-9185

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT 69 + COUNT( * ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-4040
SELECT 69 + COUNT ( * ) FROM tab0
----
72

query I rowsort
SELECT ALL col1 + + col2 * - 54 AS col2 FROM tab1
----
-3181
-3625
-5170

query I rowsort
SELECT ALL 98 + col1 FROM tab1
----
103
112
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL COUNT( * ) FROM tab1 WHERE - col2 * - col1 < + 59 * + ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL COUNT ( * ) FROM tab1 WHERE - col2 * - col1 < + 59 * + ( + col2 )
----
3

query I rowsort
SELECT col0 / 25 + - col0 * - col1 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + 44 FROM tab0 WHERE - 58 IS NULL
----

query I rowsort
SELECT - 85 AS col2 FROM tab2 WHERE ( NULL ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 >= - col0 + 9
----

query I rowsort
SELECT ALL - 36 FROM tab0 WHERE - col0 = - col0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL MAX( col2 ) + - 58 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL MAX ( col2 ) + - 58 FROM tab0
----
41

query I rowsort
SELECT + 33 + + 70 FROM tab2
----
103
103
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT DISTINCT - 25 * col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - col0 BETWEEN - 50 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - 25 * col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - col0 BETWEEN - 50 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT COUNT( - ( - col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4053
SELECT COUNT ( - ( - col1 ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL 11 + ( + ( + ( 75 ) ) ) FROM tab2
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT - 5 DIV col1 + + col0 AS col2 FROM tab1
----
51
84
91

skipif mysql # not compatible
query I rowsort label-4055
SELECT - 5 / col1 + + col0 AS col2 FROM tab1
----
51
84
91

query I rowsort
SELECT col2 + col0 AS col0 FROM tab0 WHERE NOT + 71 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * 7 + col0 AS col2 FROM tab1
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT 10 * COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT 10 * COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT ALL ( col1 ) / 6 FROM tab0 WHERE NOT NULL < col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4060
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS DECIMAL ) * 15 AS col0 FROM tab2 WHERE NOT ( - ( + CAST( CAST( - 40 AS SIGNED ) AS DECIMAL ) ) / col0 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS REAL ) * 15 AS col0 FROM tab2 WHERE NOT ( - ( + CAST ( CAST ( - 40 AS INTEGER ) AS REAL ) ) / col0 ) < NULL
----
NULL

query I rowsort
SELECT ALL ( - 37 ) * + col1 AS col0 FROM tab2
----
-1887
-2479
-2849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col2 * - 19 col0 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 41 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN col2 AND - col1 * 11 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4065
SELECT col0 + - 68 DIV ( CAST( col0 AS SIGNED ) - col1 * 14 ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4065
SELECT col0 + - 68 / ( CAST ( col0 AS INTEGER ) - col1 * 14 ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT col2 * + 97 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4067
SELECT * FROM tab1 WHERE NOT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN col1 - 27 * + 64 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4067
SELECT * FROM tab1 WHERE NOT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN col1 - 27 * + 64 AND NULL
----

query I rowsort
SELECT ALL col2 * 58 AS col2 FROM tab1
----
3422
3944
5568

query I rowsort
SELECT ALL 27 - + col1 FROM tab2
----
-24
-40
-50

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col1 + - col1 * 17 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT - col0 * - CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT - col0 * - CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT + COUNT( * ) + 14 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + COUNT ( * ) + 14 FROM tab1
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 * + col1 col1 FROM tab1 cor0
----
252
846
90

query I rowsort
SELECT 59 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT col0 * - ( ( - col0 ) * - ( - col0 ) ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 38 + + 54 AS col2 FROM tab2
----
92

query I rowsort
SELECT - col0 - - 76 AS col1 FROM tab2
----
1
12
30

query I rowsort
SELECT DISTINCT - + col2 - + col1 * + col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT col0 + ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL <= col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * 99 ) <> NULL
----

query I rowsort
SELECT col2 * 12 AS col2 FROM tab2 cor0
----
276
480
696

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT COUNT( * ) * + 86 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4083
SELECT COUNT ( * ) * + 86 FROM tab0 AS cor0
----
258

query I rowsort
SELECT DISTINCT - - 44 * - col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL + + COUNT( * ) * + 2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL + + COUNT ( * ) * + 2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 - - col2 * col1 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL <= 69
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT ( - CAST( NULL AS SIGNED ) ) * + MIN( 58 / + ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT ( - CAST ( NULL AS INTEGER ) ) * + MIN ( 58 / + ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - col0 + - col1 FROM tab0 cor0 WHERE NOT + 26 * 28 IS NULL
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ALL - COUNT( * ) * - 33 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - COUNT ( * ) * - 33 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT + CAST( + 85 AS SIGNED ) AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT + CAST ( + 85 AS INTEGER ) AS col2 FROM tab0
----
85

query III rowsort
SELECT * FROM tab0 WHERE NOT 1 * 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4093
SELECT ALL COUNT( * ) DIV COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL COUNT ( * ) / COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT 64 * - - col2 AS col2 FROM tab0
----
3008
6336
640

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 >= 63
----
15
81
47

query I rowsort
SELECT DISTINCT 44 * + 78 FROM tab2
----
3432

query I rowsort
SELECT + AVG ( + col0 ) AS col0 FROM tab1 WHERE NOT col2 * col1 <> ( - 64 )
----
NULL

query I rowsort
SELECT ALL 89 * - 90 FROM tab2 AS cor0
----
-8010
-8010
-8010

query I rowsort
SELECT ALL + - 45 * - - col2 AS col1 FROM tab1 cor0
----
-2655
-3060
-4320

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT DISTINCT - col2 DIV col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT - col2 / col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
15
87

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT 59 FROM tab0 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT col0 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT col0 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT + MIN( - col0 ) * ( - 0 ) + 25 col0 FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4105
SELECT + MIN ( - col0 ) * ( - 0 ) + 25 col0 FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----
NULL

query I rowsort
SELECT + 43 + col0 FROM tab2 AS cor0
----
107
118
89

query I rowsort
SELECT DISTINCT 70 * 28 - - 18 AS col1 FROM tab2 AS cor0 WHERE NOT 46 IN ( - col0 )
----
1978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT - col1 + + CAST( - col0 AS SIGNED ) + + CAST( + ( 64 ) AS SIGNED ) FROM tab0 AS cor0
----
-32
-34
-44

skipif mysql # not compatible
query I rowsort label-4108
SELECT - col1 + + CAST ( - col0 AS INTEGER ) + + CAST ( + ( 64 ) AS INTEGER ) FROM tab0 AS cor0
----
-32
-34
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4109
SELECT ALL - col2 * col2 + - ( 94 ) DIV - col0 FROM tab1 AS cor0
----
-3480
-4623
-9215

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - col2 * col2 + - ( 94 ) / - col0 FROM tab1 AS cor0
----
-3480
-4623
-9215

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + col0 NOT BETWEEN ( - col0 * 5 ) AND 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT ALL - + 13 + CAST( NULL AS SIGNED ) 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-4111
SELECT ALL - + 13 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 65 + + col0 + + col1 FROM tab0 AS cor0
----
31
33
43

query I rowsort
SELECT 71 * - - 96 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 61 + - col1 * col2 FROM tab0 AS cor0
----
-2892
5097
5818

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT + COUNT( ALL col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4115
SELECT + COUNT ( ALL col0 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - - col2 * col2 AND 53 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT DISTINCT - 17 * - + col0 * - CAST( NULL AS SIGNED ) + col2 * - col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - 17 * - + col0 * - CAST ( NULL AS INTEGER ) + col2 * - col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 90 FROM tab0 WHERE + + col2 < + col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + COUNT( + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4119
SELECT + COUNT ( + + col0 ) FROM tab1
----
3

query I rowsort
SELECT ALL 85 - - - col0 * + - col1 * - - 19 AS col1 FROM tab2 AS cor0
----
44659
93717
95560

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4121
SELECT * FROM tab1 AS cor0 WHERE 4 BETWEEN NULL AND + 37 * - CAST( NULL AS DECIMAL ) + 2 / col2
----

skipif mysql # not compatible
query III rowsort label-4121
SELECT * FROM tab1 AS cor0 WHERE 4 BETWEEN NULL AND + 37 * - CAST ( NULL AS REAL ) + 2 / col2
----

query I rowsort
SELECT - col0 + col2 * col0 AS col1 FROM tab1 AS cor0 WHERE + col0 * + - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT SUM( ALL col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT SUM ( ALL col0 ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + 72 ) + - - col1 * + col1 IN ( + 98 )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE ( NOT ( NULL ) BETWEEN - 89 - - col1 AND NULL ) OR NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NULL NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NULL NOT IN ( - col1 )
----
0

query II rowsort
SELECT ALL col1 AS col1, 33 AS col0 FROM tab2 AS cor0
----
51
33
67
33
77
33

query II rowsort
SELECT ALL + - 20, col1 FROM tab1 AS cor0
----
-20
14
-20
47
-20
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 51 * - 75 BETWEEN - col0 AND ( - 15 + 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 * + - ( - col1 ), col1 + - + col2 AS col1 FROM tab0 AS cor0
----
-1215
34
-1827
11
-97
-98

query I rowsort
SELECT + col1 * + + 38 FROM tab2 AS cor0
----
1938
2546
2926

query I rowsort
SELECT DISTINCT - + 73 * 51 AS col0 FROM tab0 AS cor0
----
-3723

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT + MAX( DISTINCT + 64 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
64

skipif mysql # not compatible
query I rowsort label-4133
SELECT + MAX ( DISTINCT + 64 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
64

query I rowsort
SELECT - - 42 * - - col2 * + col0 FROM tab1 AS cor0
----
205632
210630
259896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4135
SELECT + CAST( NULL AS SIGNED ) * - col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4135
SELECT + CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - - col1 * - 83 IN ( + 27 - + 4 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT - COUNT( - 40 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT - COUNT ( - 40 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 15 + - - 62 < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col1 col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + col1 * + col1 * - col1 * - 74 FROM tab0
----
39326634
685314
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + 79 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * ( - + 35 ) FROM tab2 AS cor0
----
1400
2030
805

query I rowsort
SELECT + 52 AS col2 FROM tab0 cor0 WHERE NOT col0 / ( - col2 ) IS NULL
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT + col1 DIV + col2 + col0 FROM tab0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-4144
SELECT + col1 / + col2 + col0 FROM tab0
----
16
89
97

query I rowsort
SELECT DISTINCT 95 * + col2 + + - col1 AS col0 FROM tab1
----
5600
6413
9106

query I rowsort
SELECT ALL + col2 * - ( - col0 ) FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + col2 ) * col2 * col2 BETWEEN + col2 AND - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 20 * col0 - col0 AS col1 FROM tab2 AS cor0
----
-1344
-1575
-966

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * 76 AND - 63 * - + col2 + - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4151
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - + 87 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4151
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + 87 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 2 ) - + 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT + + 21 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + + 21 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24

query II rowsort
SELECT + + ( + 95 ) AS col2, 5 FROM tab2 AS cor0
----
95
5
95
5
95
5

query I rowsort
SELECT ( 84 ) * - + ( 61 ) - - + col0 + col0 - col2 FROM tab1 AS cor0
----
-5010
-5013
-5118

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + + COUNT( ALL - col1 ) * 86 - - COUNT( * ) FROM tab0 cor0
----
261

skipif mysql # not compatible
query I rowsort label-4156
SELECT + + COUNT ( ALL - col1 ) * 86 - - COUNT ( * ) FROM tab0 cor0
----
261

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - ( 14 ) ) + - col2 NOT BETWEEN ( - col0 ) AND NULL
----
15
81
47

query I rowsort
SELECT + ( - 80 ) + + col0 + + col2 FROM tab0
----
-18
116
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL + col2 * + 63 + - col2 + - 86 * + col0 + + 26 DIV - 75 AS col0 FROM tab0 WHERE NULL IS NULL
----
-2204
-6862
1624

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + col2 * + 63 + - col2 + - 86 * + col0 + + 26 / - 75 AS col0 FROM tab0 WHERE NULL IS NULL
----
-2204
-6862
1624

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 * + col1 * - - col0 * 38 * + col2 / - + col2 + + col0 ) IS NULL
----

query I rowsort
SELECT ALL + col0 - + 56 FROM tab1
----
-5
29
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL - CAST( 78 AS SIGNED ) + col0 FROM tab2
----
-14
-3
-32

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - CAST ( 78 AS INTEGER ) + col0 FROM tab2
----
-14
-3
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT + 71 * - COUNT( * ) - - + 78 col0 FROM tab1
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4163
SELECT DISTINCT + 71 * - COUNT ( * ) - - + 78 col0 FROM tab1
----
-135

query I rowsort
SELECT - 44 + + - col2 FROM tab1
----
-103
-112
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
16
16
16

query II rowsort
SELECT - col2, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + + 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT DISTINCT - COUNT( * ) AS col1, + 46 AS col0 FROM tab0 AS cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-4168
SELECT DISTINCT - COUNT ( * ) AS col1, + 46 AS col0 FROM tab0 AS cor0
----
-3
46

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col1, 18, + + col2 * - - 79 + - + col1 + + 39 )
----

query I rowsort
SELECT - - 58 AS col0 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4171
SELECT ALL COUNT( * ) col1, 27 + + + COUNT( ALL - col1 ) FROM tab2
----
3
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4171
SELECT ALL COUNT ( * ) col1, 27 + + + COUNT ( ALL - col1 ) FROM tab2
----
3
30

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT NULL > + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT + ( + COUNT( + 12 ) ) * + 78 AS col0 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-4173
SELECT + ( + COUNT ( + 12 ) ) * + 78 AS col0 FROM tab1
----
234

query I rowsort
SELECT - 17 * col2 FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT + col2 * + + 10 FROM tab0
----
100
470
990

query III rowsort
SELECT ALL * FROM tab2 WHERE - 66 + col2 NOT IN ( + - col1, col0 + + 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 62 * - - col0 AS col0 FROM tab0
----
5394
6014
930

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT MAX( ALL - + col1 ) * - COUNT( - col0 ) AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT MAX ( ALL - + col1 ) * - COUNT ( - col0 ) AS col0 FROM tab2
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, col2 col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL COUNT( ALL + col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4180
SELECT ALL COUNT ( ALL + col2 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * + ( - ( + 93 ) ) * col0 * + col2 - col2 col0 FROM tab1
----
-31417728
-32181314
-39708464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4183
SELECT ALL + - 12 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-12
NULL
-12
NULL
-12
NULL

skipif mysql # not compatible
query II rowsort label-4183
SELECT ALL + - 12 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-12
NULL
-12
NULL
-12
NULL

query I rowsort
SELECT 84 * + 21 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - col1 col1, 17 + - col2 AS col0 FROM tab2
----
-13
-23
-5
-6
8
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT ALL - col2 - + col2 DIV - col0 + - - col2 DIV - - col1 col0 FROM tab0
----
-10
-44
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4186
SELECT ALL - col2 - + col2 / - col0 + - - col2 / - - col1 col0 FROM tab0
----
-10
-44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT + MAX( + - 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-4187
SELECT + MAX ( + - 62 ) FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT 47, - COUNT( * ) AS col2 FROM tab0, tab1 cor0
----
47
-9

skipif mysql # not compatible
query II rowsort label-4188
SELECT 47, - COUNT ( * ) AS col2 FROM tab0, tab1 cor0
----
47
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT ALL + col1 + - + CAST( + col1 AS SIGNED ) * - 72 AS col2 FROM tab0
----
1533
5913
73

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + col1 + - + CAST ( + col1 AS INTEGER ) * - 72 AS col2 FROM tab0
----
1533
5913
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4190
SELECT col0 AS col1 FROM tab0 WHERE - - CAST( NULL AS DECIMAL ) + - col2 BETWEEN + + 78 AND + - 50
----

skipif mysql # not compatible
query I rowsort label-4190
SELECT col0 AS col1 FROM tab0 WHERE - - CAST ( NULL AS REAL ) + - col2 BETWEEN + + 78 AND + - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT MAX( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT MAX ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL = + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT + col1 DIV - + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4192
SELECT + col1 / - + col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT ALL + col1 * - 13 FROM tab2
----
-1001
-663
-871

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= + + 82
----
87
21
10
97
1
99

query II rowsort
SELECT col1 + + + 83, 57 + + 78 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL - ( ( + col1 ) ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT COUNT( * ) * - 25 col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4198
SELECT COUNT ( * ) * - 25 col1 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT 8 * - + 74 * + COUNT( * ) AS col1 FROM tab0
----
-1776

skipif mysql # not compatible
query I rowsort label-4199
SELECT 8 * - + 74 * + COUNT ( * ) AS col1 FROM tab0
----
-1776

query I rowsort
SELECT DISTINCT + 18 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col1 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT ALL 78 AS col1, 22 - col2 FROM tab1 WHERE NOT - col0 IS NULL
----
78
-37
78
-46
78
-74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 79 - + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT 7 + - - 91 + + + 45 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT 7 + - - 91 + + + 45 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
146

query II rowsort
SELECT DISTINCT + col0, + col1 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT ALL - 53 + col2 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
157
3754
46

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - 53 + col2 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
157
3754
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT - 71 / - col2 FROM tab0 WHERE NULL <= - CAST( + 16 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4207
SELECT - 71 / - col2 FROM tab0 WHERE NULL <= - CAST ( + 16 AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE - + ( - 11 ) IS NULL
----

query I rowsort
SELECT - + col1 * + + col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT - - SUM( DISTINCT - col2 ) * + - 61 FROM tab2 cor0
----
7381

skipif mysql # not compatible
query I rowsort label-4210
SELECT - - SUM ( DISTINCT - col2 ) * + - 61 FROM tab2 cor0
----
7381

query I rowsort
SELECT + + col2 - + - col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT 85 + + 81 FROM tab2 AS cor0
----
166

query I rowsort
SELECT DISTINCT - ( + + 38 ) AS col1 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT + 61 - - col1 AS col0 FROM tab2 cor0
----
112
128
138

query I rowsort
SELECT DISTINCT col2 + - + 67 FROM tab2
----
-27
-44
-9

query I rowsort
SELECT ALL + col0 + 57 FROM tab2
----
103
121
132

query II rowsort
SELECT DISTINCT col0, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - + col0 * - col0 * col2 + + col2 - - col2 FROM tab0 WHERE + ( + col2 ) = NULL
----

query I rowsort
SELECT ALL + ( - + 36 ) FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + 98 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + 98 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
294

query II rowsort
SELECT DISTINCT 27 AS col1, - col1 + + + 89 AS col0 FROM tab0 AS cor0
----
27
68
27
8
27
88

query I rowsort
SELECT - col2 * + col1 + col0 * - col0 + col2 FROM tab1 AS cor0
----
-11409
-3849
-7461

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4223
SELECT DISTINCT + col0 AS col0, CAST( 51 AS SIGNED ) + 95 + - + col1 AS col2 FROM tab2 AS cor0
----
46
95
64
69
75
79

skipif mysql # not compatible
query II rowsort label-4223
SELECT DISTINCT + col0 AS col0, CAST ( 51 AS INTEGER ) + 95 + - + col1 AS col2 FROM tab2 AS cor0
----
46
95
64
69
75
79

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + 25 * - col2 * + - col0 NOT BETWEEN NULL AND 70
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4225
SELECT + 3 DIV - COUNT( * ) col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4225
SELECT + 3 / - COUNT ( * ) col2 FROM tab2
----
-1

query I rowsort
SELECT col0 * + + 17 AS col1 FROM tab1
----
1445
1547
867

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 + + col0 IS NULL
----
15
87
97

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( 47 * + + col1 + - 94 * + col0 ) <> + col1
----

query I rowsort
SELECT DISTINCT col0 * col2 + + 31 FROM tab0 cor0
----
736
901
9634

query I rowsort
SELECT 46 + - ( + - col2 ) FROM tab0
----
145
56
93

query I rowsort
SELECT DISTINCT - AVG ( ALL 89 ) AS col2 FROM tab1 WHERE NOT - + col1 / - - col2 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT 61 * MAX( ALL + 33 ) + - COUNT( * ) AS col0 FROM tab0
----
2010

skipif mysql # not compatible
query I rowsort label-4232
SELECT 61 * MAX ( ALL + 33 ) + - COUNT ( * ) AS col0 FROM tab0
----
2010

query I rowsort
SELECT ALL - 74 * + 7 * 65 + - + 30 AS col1 FROM tab0 WHERE NOT NULL IN ( + col2, col2, - 86 )
----

query II rowsort
SELECT ALL - 87, col2 FROM tab2
----
-87
23
-87
40
-87
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + MAX( - 57 ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-4235
SELECT + MAX ( - 57 ) FROM tab2
----
-57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 33 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL + + MAX( ALL + col2 ) col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4237
SELECT ALL + + MAX ( ALL + col2 ) col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT + COUNT( * ) + + 1 AS col1 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + COUNT ( * ) + + 1 AS col1 FROM tab0 cor0
----
4

query I rowsort
SELECT ALL 46 * - col1 - - + col0 AS col2 FROM tab0
----
-3711
-879
51

query I rowsort
SELECT ALL + 13 - + + 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * - COUNT( 68 ) * - + 18 + + SUM( DISTINCT col0 ) * - COUNT( * ) - 61 AS col2 FROM tab2 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * - COUNT ( 68 ) * - + 18 + + SUM ( DISTINCT col0 ) * - COUNT ( * ) - 61 AS col2 FROM tab2 AS cor0
----
-130

query I rowsort
SELECT - 26 * + - col0 FROM tab1 AS cor0
----
1326
2210
2366

query I rowsort
SELECT ALL ( - + 31 ) AS col1 FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT ALL - col0 + - col0 + + col2 AS col1 FROM tab1 AS cor0
----
-111
-114
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col1 col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - MAX( DISTINCT + col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4246
SELECT - MAX ( DISTINCT + col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT ALL 88 * + AVG ( ALL - 60 ) AS col1 FROM tab0 WHERE NULL >= + 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT ALL col0 DIV + col2 col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4248
SELECT ALL col0 / + col2 col0 FROM tab0
----
0
0
8

query I rowsort
SELECT - 5 FROM tab2 WHERE NOT + 0 IS NULL
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT 86 DIV COUNT( * ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-4250
SELECT 86 / COUNT ( * ) AS col1 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - ( - - MIN( ALL - - 89 ) ) col2 FROM tab0 WHERE NOT - col0 IS NULL
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4251
SELECT - ( - - MIN ( ALL - - 89 ) ) col2 FROM tab0 WHERE NOT - col0 IS NULL
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - SUM( - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4252
SELECT - SUM ( - col0 ) FROM tab2
----
185

query II rowsort
SELECT ALL col0, - col0 + col2 AS col0 FROM tab1
----
51
45
85
-26
91
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT SUM( DISTINCT + col0 ) col0 FROM tab1 WHERE NOT NULL < + - 45
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4254
SELECT SUM ( DISTINCT + col0 ) col0 FROM tab1 WHERE NOT NULL < + - 45
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4 * 77 * col1 AS col1, - col2 + + col0 + - + col1 col0 FROM tab0
----
24948
-113
308
-3
6468
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= + col1
----

query I rowsort
SELECT ALL 75 * + + col1 FROM tab1 AS cor0
----
1050
3525
375

query I rowsort
SELECT - + col0 * 12 FROM tab1 AS cor0
----
-1020
-1092
-612

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + col2 - 9 IS NOT NULL
----

query I rowsort
SELECT 98 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL - + 74 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - 73 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN NULL AND + 74
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 64 - - + 19 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 83 + - col0 IS NULL
----

query II rowsort
SELECT DISTINCT - col0 + - + col2 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-104
40
-133
58
-69
23

query II rowsort
SELECT ALL col1 * - col1 AS col1, ( - - col0 ) FROM tab2 AS cor0
----
-2601
46
-4489
75
-5929
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT ALL + 38 DIV 26 + - + col2 col1 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4268
SELECT ALL + 38 / 26 + - + col2 col1 FROM tab1 AS cor0
----
-58
-67
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4269
SELECT + + COUNT( * ) * 60 + ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT + + COUNT ( * ) * 60 + ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 48 + - 25 + - col0 AS col1 FROM tab2 AS cor0
----
-23
-41
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4271
SELECT SUM ( - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT - MIN( DISTINCT + col0 ) / + 54 + 55 - - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT - MIN ( DISTINCT + col0 ) / + 54 + 55 - - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL ( + COUNT( * ) ) + COUNT( 27 ) + - 40 * + ( - COUNT( * ) ) * + 55 FROM tab1 AS cor0
----
6606

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL ( + COUNT ( * ) ) + COUNT ( 27 ) + - 40 * + ( - COUNT ( * ) ) * + 55 FROM tab1 AS cor0
----
6606

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

query II rowsort
SELECT - 11 AS col2, - col2 FROM tab2 AS cor0
----
-11
-23
-11
-40
-11
-58

query I rowsort
SELECT + col1 * - - col1 * + col1 * + 43 AS col0 FROM tab2
----
12932809
19630919
5703993

query I rowsort
SELECT 67 * - + col1 AS col2 FROM tab2
----
-3417
-4489
-5159

query I rowsort
SELECT - + 57 + + 16 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + + col0 + + 78 FROM tab1 AS cor0
----
129
163
169

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT + + col1 DIV - ( col2 ) + 29 AS col2 FROM tab1 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-4280
SELECT + + col1 / - ( col2 ) + 29 AS col2 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + col2 + 14 FROM tab1
----
110
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - + COUNT( * ) - - 51 col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4282
SELECT - + COUNT ( * ) - - 51 col1 FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT + col1 - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4283
SELECT + col1 - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 59 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4285
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4285
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 46 - + + col1 / + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 84 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT DISTINCT - MAX( + + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT - MAX ( + + col0 ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT ALL col1 * 83 * col2 AS col1 FROM tab1
----
111552
24485
265268

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + 44 AND - col0 + - - col1 * + + col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / - + 43 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 * + col1 * 84 FROM tab2 AS cor0
----
-218484
-377076
-498036

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL MAX( DISTINCT 54 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL MAX ( DISTINCT 54 ) AS col2 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT ALL - - 26 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - - 26 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 64 AS col2 FROM tab1 AS cor0
----
-17
-50
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 * - 51 col1 FROM tab1 cor0
----
-1530
-1530
-1530

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT DISTINCT + col0 DIV + 27 AS col0 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT + col0 / + 27 AS col0 FROM tab0 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - 71 + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 71 + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 5 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + 62 + 17 * + 70 AS col0 FROM tab1
----
1255

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + 62 + 17 * + 70 AS col0 FROM tab1
----
1255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 + 0 * - col0 + 30 * + col1 col2 FROM tab0
----
123
2523
723

query I rowsort
SELECT DISTINCT col2 + - 25 * - col2 FROM tab0
----
1222
2574
260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * col1 * + + ( + - col0 ) col2 FROM tab2
----
-177408
-180900
-84456

query I rowsort
SELECT ALL + col1 * 18 AS col2 FROM tab2
----
1206
1386
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - ( + + col1 ) col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL + 11 * + 59 FROM tab1
----
649
649
649

query II rowsort
SELECT ALL col2 + 4, - 69 AS col1 FROM tab2
----
27
-69
44
-69
62
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT ALL + col0 DIV + + 43 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + col0 / + + 43 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT - CAST( + - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE - ( - - ( - col1 ) ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4310
SELECT - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE - ( - - ( - col1 ) ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT + 16 + COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + 16 + COUNT ( * ) FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + 49 - - MIN( ALL - - col2 ) + + - 50 AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4312
SELECT + 49 - - MIN ( ALL - - col2 ) + + - 50 AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL + - col0 + - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT - + SUM( 10 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN + CAST( ( - 21 ) AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT - + SUM ( 10 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN + CAST ( ( - 21 ) AS INTEGER ) AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 59 + + col0 * 31 IS NOT NULL
----

query I rowsort
SELECT ALL - - 82 AS col2 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4317
SELECT DISTINCT - ( + + 34 ), col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-4317
SELECT DISTINCT - ( + + 34 ), col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
-34
NULL

query I rowsort
SELECT ALL - - 15 AS col1 FROM tab0 cor0 WHERE NOT col2 + + ( col0 ) - col1 IS NULL
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT 12 * + + CAST( NULL AS SIGNED ) / + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT 12 * + + CAST ( NULL AS INTEGER ) / + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4320
SELECT DISTINCT - 1 AS col1, COUNT( * ) DIV + - 89 FROM tab2
----
-1
0

skipif mysql # not compatible
query II rowsort label-4320
SELECT DISTINCT - 1 AS col1, COUNT ( * ) / + - 89 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT + MIN( ( col2 ) ), 34 AS col1 FROM tab0
----
10
34

skipif mysql # not compatible
query II rowsort label-4321
SELECT + MIN ( ( col2 ) ), 34 AS col1 FROM tab0
----
10
34

query III rowsort
SELECT * FROM tab1 WHERE NOT + 88 BETWEEN col1 + - - 53 * - col1 AND - - col2 * + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT + - 32 - ( + + ( - + 83 ) ) + - + SUM( + col2 ) + + SUM( ALL col0 ) FROM tab2 WHERE NOT - + 75 IS NULL
----
115

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + - 32 - ( + + ( - + 83 ) ) + - + SUM ( + col2 ) + + SUM ( ALL col0 ) FROM tab2 WHERE NOT - + 75 IS NULL
----
115

query II rowsort
SELECT DISTINCT 3, col1 FROM tab1
----
3
14
3
47
3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + col1 IN ( 91, 99, - - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4325
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col1 IN ( 91, 99, - - col2 )
----
3

query I rowsort
SELECT 97 * - col1 AS col0 FROM tab0 AS cor0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL COUNT( ALL + 9 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL COUNT ( ALL + 9 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4328
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col1 AND ( - ( - col1 ) - + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4328
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col1 AND ( - ( - col1 ) - + - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL ( - 77 ) AS col0, col1 + - col0 FROM tab2
----
-77
-8
-77
13
-77
5

query I rowsort
SELECT + 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT + - ( + MAX( DISTINCT - - 11 ) ) * 26 - + - 76 AS col2 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-4331
SELECT + - ( + MAX ( DISTINCT - - 11 ) ) * 26 - + - 76 AS col2 FROM tab1 AS cor0
----
-210

query II rowsort
SELECT - + col1 * + col0, 61 * + - col0 * + 36 + 30 AS col2 FROM tab2 AS cor0
----
-2346
-100986
-4928
-140514
-5025
-164670

onlyif mysql # DIV for integer division: 
query II rowsort label-4333
SELECT DISTINCT col1 DIV + - 92 + - ( - col2 ), 3 AS col1 FROM tab1 AS cor0 WHERE - 96 < col0
----
59
3
68
3
96
3

skipif mysql # not compatible
query II rowsort label-4333
SELECT DISTINCT col1 / + - 92 + - ( - col2 ), 3 AS col1 FROM tab1 AS cor0 WHERE - 96 < col0
----
59
3
68
3
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT ALL + + 7 * - 45 + - COUNT( * ) FROM tab2 AS cor0
----
-318

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + + 7 * - 45 + - COUNT ( * ) FROM tab2 AS cor0
----
-318

query I rowsort
SELECT DISTINCT col0 + + - 30 AS col1 FROM tab0 AS cor0
----
-15
57
67

query I rowsort
SELECT - 73 + - 34 FROM tab0
----
-107
-107
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT 33 + - - COUNT( * ) FROM tab2 WHERE + ( - 24 ) = - col2
----
33

skipif mysql # not compatible
query I rowsort label-4337
SELECT 33 + - - COUNT ( * ) FROM tab2 WHERE + ( - 24 ) = - col2
----
33

query I rowsort
SELECT DISTINCT + 83 + + + col2 FROM tab1
----
142
151
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 - 4 col0 FROM tab0
----
55

query I rowsort
SELECT DISTINCT - 56 + - 15 AS col2 FROM tab0
----
-71

query I rowsort
SELECT DISTINCT + 82 - - - ( + col1 ) * 82 FROM tab2
----
-4100
-5412
-6232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT ALL 25 * ( + ( 58 ) ) + col0 * + 1 - - col0 * 65 * - - col0 / + + col1 * - - CAST( NULL AS SIGNED ) * + - 44 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL 25 * ( + ( 58 ) ) + col0 * + 1 - - col0 * 65 * - - col0 / + + col1 * - - CAST ( NULL AS INTEGER ) * + - 44 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT - col0 DIV - - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4345
SELECT - col0 / - - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - 72 AS col2 FROM tab2 AS cor0
----
72
72
72

query II rowsort
SELECT ALL + 71 AS col2, col0 * + col2 AS col2 FROM tab1
----
71
4896
71
5015
71
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT DISTINCT col1 DIV - + 89 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT col1 / - + 89 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - - MAX( ALL - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4349
SELECT - - MAX ( ALL - + col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4350
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) * + CAST( + + COUNT( * ) AS SIGNED ) + - + 78 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) * + CAST ( + + COUNT ( * ) AS INTEGER ) + - + 78 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + + col2 AS col1, ( - col1 ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT DISTINCT + col2 * - + 16 * + col0 AS col1 FROM tab0 AS cor0
----
-11280
-13920
-153648

query I rowsort
SELECT ALL - 65 * + 6 + - 6 FROM tab2 AS cor0
----
-396
-396
-396

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= + 44 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT - col1 DIV 17 FROM tab2
----
-3
-3
-4

skipif mysql # not compatible
query I rowsort label-4355
SELECT - col1 / 17 FROM tab2
----
-3
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - 75 col2 FROM tab1
----
-367200
-376125
-464100

query III rowsort
SELECT * FROM tab2 WHERE NOT + 75 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4358
SELECT ALL + 48 DIV - col1 AS col0, ( + col0 ) AS col1 FROM tab1
----
-1
91
-3
51
-9
85

skipif mysql # not compatible
query II rowsort label-4358
SELECT ALL + 48 / - col1 AS col0, ( + col0 ) AS col1 FROM tab1
----
-1
91
-3
51
-9
85

onlyif mysql # DIV for integer division: 
query II rowsort label-4359
SELECT + col0 DIV + col0 AS col1, + col2 * + 50 + + + col2 + + col1 AS col0 FROM tab2
----
1
1224
1
2117
1
3025

skipif mysql # not compatible
query II rowsort label-4359
SELECT + col0 / + col0 AS col1, + col2 * + 50 + + + col2 + + col1 AS col0 FROM tab2
----
1
1224
1
2117
1
3025

query I rowsort
SELECT 47 * col2 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT ( - - 79 ) AS col1 FROM tab2
----
79
79
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + ( - col2 ) / - col0 + ( + ( + - 81 ) ), + col0 )
----

query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT - 84 + + COUNT( * ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-4365
SELECT - 84 + + COUNT ( * ) AS col1 FROM tab2
----
-81

query I rowsort
SELECT col0 * + col1 - - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - + 65 + - col1 AS col2 FROM tab1 cor0
----
-112
-70
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4368
SELECT ALL + - COUNT( * ) AS col0, 9 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4368
SELECT ALL + - COUNT ( * ) AS col0, 9 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT + col2 + col0 + - col2 + - col1 + + col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT + ( + 83 ) + + - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + ( + 83 ) + + - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0 cor0
----
6

query II rowsort
SELECT col2 AS col0, + 36 * + col2 - + col2 + + 85 AS col2 FROM tab0 AS cor0
----
10
435
47
1730
99
3550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT ALL col2 + 5 - - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL col2 + 5 - - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 * + col1 * col2 * - - 83 FROM tab1 AS cor0
----
-10610720
-4462080
-979400

query I rowsort
SELECT DISTINCT + col1 - + 72 AS col2 FROM tab1
----
-25
-58
-67

query I rowsort
SELECT ALL + 15 - - col0 FROM tab0
----
102
112
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT DISTINCT + ( - + ( - + AVG ( ALL col1 ) ) ) - - ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT + ( - + ( - + AVG ( ALL col1 ) ) ) - - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN 56 - - ( - 38 ) AND - col2 * + 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT MIN( + col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT MIN ( + col1 ) AS col0 FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - + col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col1 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT SUM( + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4383
SELECT SUM ( + - col0 ) FROM tab2 AS cor0
----
-185

query II rowsort
SELECT col1, 59 FROM tab0
----
1
59
21
59
81
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT ALL - COUNT( * ), + 56 AS col1 FROM tab1
----
-3
56

skipif mysql # not compatible
query II rowsort label-4385
SELECT ALL - COUNT ( * ), + 56 AS col1 FROM tab1
----
-3
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + COUNT( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT + COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT DISTINCT + CAST( 86 AS SIGNED ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + CAST ( 86 AS INTEGER ) FROM tab2
----
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 > ( - col0 + ( + - ( + ( - col0 ) ) ) + - - col0 )
----

query I rowsort
SELECT + + 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4390
SELECT * FROM tab0 cor0 WHERE - ( + col0 ) NOT BETWEEN NULL AND - + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4390
SELECT * FROM tab0 cor0 WHERE - ( + col0 ) NOT BETWEEN NULL AND - + CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT + col0 - - col0 * col0 AS col2 FROM tab0 AS cor0
----
240
7656
9506

query I rowsort
SELECT ALL 94 + - + col2 * col0 FROM tab0 AS cor0
----
-611
-776
-9509

query I rowsort
SELECT DISTINCT - col0 + + 40 * - + col1 AS col1 FROM tab2 cor0 WHERE NOT ( - col2 * + col2 IS NULL )
----
-2086
-2755
-3144

query I rowsort
SELECT DISTINCT - col1 + ( + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 + col1 * - 71 col0 FROM tab2 cor0
----
-3716
-4852
-5562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT col1 FROM tab1 WHERE + ( - - 8 ) >= - CAST( NULL AS SIGNED ) / + col1
----

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT col1 FROM tab1 WHERE + ( - - 8 ) >= - CAST ( NULL AS INTEGER ) / + col1
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + + col2 IS NULL
----

query I rowsort
SELECT ALL col1 + + ( + - 97 ) + - 99 AS col1 FROM tab1
----
-149
-182
-191

query I rowsort
SELECT + 69 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 4 > - col2 * - col0
----

query I rowsort
SELECT DISTINCT + col1 - col0 * 1 + col0 - - col1 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL - - 58 * - + col0 + - + col1 + - col2 + - col2 * col2 FROM tab0 AS cor0
----
-15527
-3207
-5177

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - - MAX( + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4403
SELECT - - MAX ( + col2 ) FROM tab0 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 75 * - - col1 + + col0 col2 FROM tab2 cor0
----
3871
5100
5839

query I rowsort
SELECT DISTINCT - 99 * 60 FROM tab1 AS cor0
----
-5940

query I rowsort
SELECT + - 30 * - col2 FROM tab2 AS cor0
----
1200
1740
690

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT + - COUNT( * ) * - MIN( ALL col0 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + - COUNT ( * ) * - MIN ( ALL col0 ) FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4408
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED ) + + col2 + + col2 / - + col1 + + 40
----

skipif mysql # not compatible
query III rowsort label-4408
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER ) + + col2 + + col2 / - + col1 + + 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT DISTINCT col1 DIV col1 * - col2 * - + 59 AS col0 FROM tab2 cor0
----
1357
2360
3422

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT col1 / col1 * - col2 * - + 59 AS col0 FROM tab2 cor0
----
1357
2360
3422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT 25 + + - col2 FROM tab1 AS cor0 WHERE NOT 28 NOT BETWEEN + col1 * + CAST( NULL AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-4410
SELECT 25 + + - col2 FROM tab1 AS cor0 WHERE NOT 28 NOT BETWEEN + col1 * + CAST ( NULL AS INTEGER ) AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT DISTINCT - CAST( + - MIN( ALL - + col0 ) AS SIGNED ) * + COUNT( 33 ) * - + 64 + + 67 + - - 9 FROM tab2 AS cor0
----
14476

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT - CAST ( + - MIN ( ALL - + col0 ) AS INTEGER ) * + COUNT ( 33 ) * - + 64 + + 67 + - - 9 FROM tab2 AS cor0
----
14476

query II rowsort
SELECT ALL - col1 + - ( - - col2 ) + - col1 + + col2, + col2 FROM tab1 AS cor0
----
-10
59
-28
96
-94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - - COUNT( * ) + 32 * - 98 col0 FROM tab1 WHERE NOT - col0 IS NULL
----
-3133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4413
SELECT - - COUNT ( * ) + 32 * - 98 col0 FROM tab1 WHERE NOT - col0 IS NULL
----
-3133

query I rowsort
SELECT + col0 * - 62 FROM tab0
----
-5394
-6014
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT CAST( - 30 AS SIGNED ) FROM tab0 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-4415
SELECT CAST ( - 30 AS INTEGER ) FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT + COUNT( DISTINCT - + col0 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT + COUNT ( DISTINCT - + col0 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 99 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 26 + - col2 AS col0 FROM tab0
----
-21
-73
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 5 col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT - col2 + 13 * + + col1 AS col1 FROM tab0 AS cor0
----
-86
1006
263

query II rowsort
SELECT ALL + 31, col2 * + col0 * + + col2 AS col1 FROM tab0 AS cor0
----
31
33135
31
8700
31
950697

query I rowsort
SELECT ALL + - 28 + - + col1 FROM tab1 AS cor0 WHERE 91 / 37 IS NOT NULL
----
-33
-42
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4424
SELECT ALL + COUNT( * ) AS col0, ( - + 27 ) DIV 17 FROM tab1 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-4424
SELECT ALL + COUNT ( * ) AS col0, ( - + 27 ) / 17 FROM tab1 AS cor0
----
3
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT - col1 - + col1 FROM tab1 AS cor0 WHERE NULL IN ( - col0, + 55, - col1 / - col2 + col1 + col0 * - 3, - + ( - col2 ) + 35 * + 57 * + - 78 * + CAST( NULL AS SIGNED ), + + col1 - - 68 )
----

skipif mysql # not compatible
query I rowsort label-4425
SELECT - col1 - + col1 FROM tab1 AS cor0 WHERE NULL IN ( - col0, + 55, - col1 / - col2 + col1 + col0 * - 3, - + ( - col2 ) + 35 * + 57 * + - 78 * + CAST ( NULL AS INTEGER ), + + col1 - - 68 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4426
SELECT + CAST( NULL AS SIGNED ) col1, col0 + - col2 - - - col1 FROM tab0 AS cor0
----
NULL
-113
NULL
-3
NULL
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4426
SELECT + CAST ( NULL AS INTEGER ) col1, col0 + - col2 - - - col1 FROM tab0 AS cor0
----
NULL
-113
NULL
-3
NULL
56

query I rowsort
SELECT DISTINCT + - ( + + col2 ) + + 96 AS col0 FROM tab0 cor0
----
-3
49
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 6 col2 FROM tab1 cor0
----
-282
-30
-84

query I rowsort
SELECT DISTINCT + col2 - + - col0 + - 73 * + 29 * - col0 * + 8 AS col0 FROM tab1
----
1439704
1541335
863883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4430
SELECT CAST( - + COUNT( * ) AS SIGNED ) - + + COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
-6
3

skipif mysql # not compatible
query II rowsort label-4430
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) - + + COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
-6
3

query I rowsort
SELECT ALL + col0 * + 77 * + col1 + - - col2 FROM tab1
----
32784
329397
55074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT + col2 / - - col2 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT + col2 / - - col2 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT + - 99 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4433
SELECT + - 99 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL COUNT( * ) * SUM( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-309

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL COUNT ( * ) * SUM ( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-309

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - ( + col0 ) AND NULL
----

query I rowsort
SELECT 45 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - col0 ) NOT BETWEEN ( NULL ) AND col2 * + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4437
SELECT + + 91, + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab0 cor0
----
91
-1

skipif mysql # not compatible
query II rowsort label-4437
SELECT + + 91, + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab0 cor0
----
91
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT DISTINCT CAST( NULL AS SIGNED ) * 69 * 98 * - - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 69 * 98 * - - col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 93 + + col2 * + 5 * - col1 FROM tab0 cor0
----
-18942
-402
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - MIN( DISTINCT + - col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4440
SELECT - MIN ( DISTINCT + - col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-231

query I rowsort
SELECT + 85 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 99 + - col1 FROM tab2 AS cor0
----
22
32
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL COUNT( + - col0 ) * - MAX( ALL 89 ) AS col2 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL COUNT ( + - col0 ) * - MAX ( ALL 89 ) AS col2 FROM tab2
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL CAST( NULL AS SIGNED ) / col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL CAST ( NULL AS INTEGER ) / col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE + col2 / - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT - SUM( + 95 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-855

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - SUM ( + 95 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + 2 - MIN( ALL + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4447
SELECT + 2 - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE 52 BETWEEN NULL AND + col1 * - - col1
----

query II rowsort
SELECT col1 - - ( - col0 ) * - ( + + col1 ), 32 AS col1 FROM tab0 cor0
----
1296
32
1848
32
98
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + COUNT( - col0 ) + - 51 AS col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4450
SELECT + COUNT ( - col0 ) + - 51 AS col2 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT - col2 + - + ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - MIN( ALL + col1 ) * SUM( ALL - + col2 ) + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
1112

skipif mysql # not compatible
query I rowsort label-4452
SELECT - MIN ( ALL + col1 ) * SUM ( ALL - + col2 ) + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1112

query I rowsort
SELECT ALL + col0 + - 48 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 7, + col1 - col0 col2 FROM tab1
----
7
-37
7
-44
7
-80

query I rowsort
SELECT DISTINCT + 65 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + - col0 ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT DISTINCT CAST( - MIN( col2 ) AS SIGNED ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT CAST ( - MIN ( col2 ) AS INTEGER ) AS col2 FROM tab1
----
-59

query II rowsort
SELECT ALL col0, col1 * + + 92 AS col1 FROM tab1
----
51
1288
85
460
91
4324

onlyif mysql # DIV for integer division: 
query I rowsort label-4459
SELECT DISTINCT col2 DIV + - 56 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT col2 / + - 56 AS col0 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4460
SELECT ALL 52 DIV + - COUNT( * ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL 52 / + - COUNT ( * ) FROM tab0 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 89 col0 FROM tab1 cor0
----
89
89
89

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - + 56 IS NULL )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ( + COUNT( * ) ) * + 48 + 29 * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-4463
SELECT ( + COUNT ( * ) ) * + 48 + 29 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4464
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 - - + col0 + + - CAST( NULL AS SIGNED ) * + col1 * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4464
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 - - + col0 + + - CAST ( NULL AS INTEGER ) * + col1 * - col0 IS NULL
----

query I rowsort
SELECT 83 * - 23 AS col1 FROM tab1
----
-1909
-1909
-1909

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + ( - - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4466
SELECT + ( - - COUNT ( * ) ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col2 ), + 7 col2 FROM tab2 cor0
----
-23
7
-40
7
-58
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT - COUNT( * ) + + COUNT( + - col0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - COUNT ( * ) + + COUNT ( + - col0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= col1
----

query I rowsort
SELECT ALL - col2 + - 93 AS col0 FROM tab2
----
-116
-133
-151

query I rowsort
SELECT ALL col0 * - + col1 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - 79 * + COUNT( * ) AS col2 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-4472
SELECT - 79 * + COUNT ( * ) AS col2 FROM tab2
----
-237

query II rowsort
SELECT col1 * - col1 * - col0 AS col0, + col1 FROM tab0
----
38367
21
97
1
98415
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT + 97 DIV - + col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4474
SELECT + 97 / - + col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - col0 * + 33 FROM tab2 AS cor0
----
1518
2112
2475

query I rowsort
SELECT + col2 * - col2 - + col1 + col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT COUNT( * ) + ( - - 73 ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
73

skipif mysql # not compatible
query I rowsort label-4477
SELECT COUNT ( * ) + ( - - 73 ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4478
SELECT DISTINCT * FROM tab1 WHERE col0 NOT IN ( + 14 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4478
SELECT DISTINCT * FROM tab1 WHERE col0 NOT IN ( + 14 * CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT - col2 - + col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4481
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND ( - 90 - + col2 / + CAST( - 40 + 10 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4481
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND ( - 90 - + col2 / + CAST ( - 40 + 10 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4482
SELECT * FROM tab2 WHERE NOT - col1 + col1 BETWEEN + CAST( NULL AS SIGNED ) + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4482
SELECT * FROM tab2 WHERE NOT - col1 + col1 BETWEEN + CAST ( NULL AS INTEGER ) + - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * ( + 14 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 55 * + 71 AS col2 FROM tab0
----
3905
3905
3905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT 61 + 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-4485
SELECT 61 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 11 FROM tab1 WHERE 16 * ( 85 ) BETWEEN 90 AND ( NULL )
----

query I rowsort
SELECT + col2 FROM tab2 WHERE + 15 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT DISTINCT ( COUNT( * ) ) DIV + 78 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4488
SELECT DISTINCT ( COUNT ( * ) ) / + 78 col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT - col1 * - CAST( 32 AS SIGNED ) FROM tab0 WHERE NOT col1 NOT IN ( - 17 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-4489
SELECT - col1 * - CAST ( 32 AS INTEGER ) FROM tab0 WHERE NOT col1 NOT IN ( - 17 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT ALL - 57 DIV col1 AS col2 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - 57 / col1 AS col2 FROM tab1
----
-1
-11
-4

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + MAX( DISTINCT - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4492
SELECT + MAX ( DISTINCT - col2 ) FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT + ( - CAST( col0 AS SIGNED ) ) col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4493
SELECT + ( - CAST ( col0 AS INTEGER ) ) col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - COUNT( * ) + MIN( ALL 17 ) AS col0 FROM tab1 WHERE NOT - 23 IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-4494
SELECT - COUNT ( * ) + MIN ( ALL 17 ) AS col0 FROM tab1 WHERE NOT - 23 IS NULL
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ( - 83 ) - - COUNT( * ) * - 64 FROM tab0
----
-275

skipif mysql # not compatible
query I rowsort label-4495
SELECT ( - 83 ) - - COUNT ( * ) * - 64 FROM tab0
----
-275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT COUNT( * ) DIV - COUNT( * ) FROM tab1 WHERE NOT ( col2 ) IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4496
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab1 WHERE NOT ( col2 ) IS NULL
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4497
SELECT ALL col2 col0 FROM tab0 WHERE ( col0 * CAST( NULL AS DECIMAL ) ) <> ( + ( - col2 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4497
SELECT ALL col2 col0 FROM tab0 WHERE ( col0 * CAST ( NULL AS REAL ) ) <> ( + ( - col2 ) )
----

query I rowsort
SELECT DISTINCT - col2 + - col2 * + col2 FROM tab0
----
-110
-2256
-9900

query I rowsort
SELECT DISTINCT - 89 * 66 FROM tab1 WHERE + 23 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4500
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 94 * + 30 < 43 * + CAST( NULL AS SIGNED ) + col0 * col0
----

skipif mysql # not compatible
query III rowsort label-4500
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 94 * + 30 < 43 * + CAST ( NULL AS INTEGER ) + col0 * col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + 74 < + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - + MAX( ALL col2 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4503
SELECT - + MAX ( ALL col2 ) AS col0 FROM tab2 cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4504
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + 25 BETWEEN 90 + CAST( NULL AS SIGNED ) * ( col1 ) AND - col0 + - col0
----

skipif mysql # not compatible
query III rowsort label-4504
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + 25 BETWEEN 90 + CAST ( NULL AS INTEGER ) * ( col1 ) AND - col0 + - col0
----

query I rowsort
SELECT ALL ( 14 ) AS col1 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT ALL - 54 + 49 * col1 AS col0 FROM tab0 AS cor0
----
-5
3915
975

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT - + COUNT( ALL + 95 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4507
SELECT - + COUNT ( ALL + 95 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + ( MIN( ALL 84 ) ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4508
SELECT + ( MIN ( ALL 84 ) ) FROM tab1 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT - 27 DIV col2 col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4509
SELECT - 27 / col2 col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col2 / col2 AS col2 FROM tab2 cor0 WHERE ( NULL ) > ( - 44 + + col0 * + 99 )
----

query I rowsort
SELECT DISTINCT col1 + - col2 * 28 AS col1 FROM tab2 AS cor0
----
-1043
-1557
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL + 45 + 38 * + COUNT( * ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + 45 + 38 * + COUNT ( * ) FROM tab1 AS cor0
----
159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - - col0 NOT BETWEEN - col2 + + ( col0 ) / col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT DISTINCT - + 64 + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - + 64 + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL COUNT( DISTINCT - + col0 ) + - 20 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL COUNT ( DISTINCT - + col0 ) + - 20 FROM tab1
----
-17

query I rowsort
SELECT 34 + + col2 + col1 AS col1 FROM tab0
----
134
162
65

query I rowsort
SELECT DISTINCT + 52 + - - 70 + col0 * - col1 FROM tab0
----
-1093
-1705
25

query I rowsort
SELECT - col1 + - 24 FROM tab2
----
-101
-75
-91

query III rowsort
SELECT * FROM tab1 WHERE ( 63 * col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT AVG ( col0 ) + + 80 AS col1 FROM tab2 WHERE NOT 78 > ( - col1 * 63 + + 8 * - 9 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT DISTINCT col1 DIV + col0 + + col0 AS col2 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT col1 / + col0 + + col0 AS col2 FROM tab2
----
47
65
75

query I rowsort
SELECT ALL col2 + + - col1 + - 83 FROM tab2
----
-111
-120
-92

query I rowsort
SELECT col1 * - 90 + + col2 * - 75 FROM tab0
----
-10815
-2640
-7515

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab2 cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT ( - ( 44 ) ) * - col2 + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT ( - ( 44 ) ) * - col2 + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 68 + - - 48 AS col0 FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4527
SELECT * FROM tab1 AS cor0 WHERE NULL <= col1 * col0 + + 13 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4527
SELECT * FROM tab1 AS cor0 WHERE NULL <= col1 * col0 + + 13 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - - col2 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + col2 NOT IN ( col2 + - 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 / + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 43 AND ( col2 )
----

query I rowsort
SELECT - col0 * - - col2 + col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL SUM( ALL ( + + col0 ) ) - + SUM( 36 ) AS col1 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL SUM ( ALL ( + + col0 ) ) - + SUM ( 36 ) AS col1 FROM tab0
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4534
SELECT + CAST( NULL AS DECIMAL ) / - MIN( DISTINCT + 72 ) col0 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4534
SELECT + CAST ( NULL AS REAL ) / - MIN ( DISTINCT + 72 ) col0 FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT col2 - - 58 AS col0 FROM tab0
----
105
157
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4537
SELECT ALL - CAST( NULL AS SIGNED ), - COUNT( * ) AS col0 FROM tab1 cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4537
SELECT ALL - CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT ( - - COUNT( - col2 ) ) * 65 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT ( - - COUNT ( - col2 ) ) * 65 FROM tab2 AS cor0
----
195

query II rowsort
SELECT - col1 AS col0, col0 + col2 FROM tab1 AS cor0
----
-14
147
-47
159
-5
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - col0 < + col0
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - col0 < + col0
----
0

query I rowsort
SELECT DISTINCT + + col1 * - col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT + COUNT( ALL - + 41 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4542
SELECT + COUNT ( ALL - + 41 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - + COUNT( * ) * + COUNT( * ) + - + COUNT( + col2 ) + + COUNT( * ) col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4543
SELECT - + COUNT ( * ) * + COUNT ( * ) + - + COUNT ( + col2 ) + + COUNT ( * ) col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 91 * col1 * + - col2 AS col0 FROM tab2 AS cor0
----
-106743
-280280
-353626

query I rowsort
SELECT DISTINCT col0 * - 16 FROM tab1 cor0
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT MIN( - col2 ) * + 3 AS col0 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT MIN ( - col2 ) * + 3 AS col0 FROM tab1 AS cor0
----
-288

query I rowsort
SELECT ALL + col0 * + ( + + col0 ) FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT 38 FROM tab2 WHERE NOT ( + col2 * + col2 * col1 + col1 - + CAST( col0 AS SIGNED ) * 23 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4548
SELECT 38 FROM tab2 WHERE NOT ( + col2 * + col2 * col1 + col1 - + CAST ( col0 AS INTEGER ) * 23 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 48 * + + 53 FROM tab2
----
2544

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4550
SELECT DISTINCT * FROM tab0 WHERE + - CAST( - ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4550
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT - COUNT( + - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT - COUNT ( + - col1 ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 62 col1 FROM tab2
----
-1426
-2480
-3596

query I rowsort
SELECT + ( - 8 ) AS col0 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4555
SELECT DISTINCT col0 DIV + + col2, - ( 26 ) AS col2 FROM tab2 AS cor0
----
1
-26
2
-26

skipif mysql # not compatible
query II rowsort label-4555
SELECT DISTINCT col0 / + + col2, - ( 26 ) AS col2 FROM tab2 AS cor0
----
1
-26
2
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT ALL COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( + + 3 ) * col2 )
----

query I rowsort
SELECT - - 91 + - col0 AS col0 FROM tab1 AS cor0
----
0
40
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 + - col0 IN ( - col1 )
----

query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 28 / - - col1 + + col0 + col2 * - col2 * - 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT DISTINCT - 27 + + + col0 + col1 DIV - + col2 AS col2 FROM tab0 AS cor0
----
-13
58
70

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT - 27 + + + col0 + col1 / - + col2 AS col2 FROM tab0 AS cor0
----
-13
58
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4563
SELECT * FROM tab0 AS cor0 WHERE col1 - - + CAST( NULL AS SIGNED ) BETWEEN ( col0 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4563
SELECT * FROM tab0 AS cor0 WHERE col1 - - + CAST ( NULL AS INTEGER ) BETWEEN ( col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col2, + 38 AS col2 FROM tab2 AS cor0
----
51
38
67
38
77
38

query I rowsort
SELECT ALL - col1 + + col1 FROM tab2 AS cor0 WHERE 28 * 60 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4566
SELECT * FROM tab1 WHERE 90 * + CAST( NULL AS SIGNED ) * - + 25 NOT IN ( + + ( + 63 ) )
----

skipif mysql # not compatible
query III rowsort label-4566
SELECT * FROM tab1 WHERE 90 * + CAST ( NULL AS INTEGER ) * - + 25 NOT IN ( + + ( + 63 ) )
----

query I rowsort
SELECT + col1 FROM tab2 WHERE - col2 + + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + 8 AS col0 FROM tab1
----
104
67
76

query II rowsort
SELECT + col2 AS col2, ( col1 ) * + col0 AS col1 FROM tab0
----
10
1827
47
1215
99
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT - - ( - COUNT( 30 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT - - ( - COUNT ( 30 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 21 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 38 IS NULL
----

query I rowsort
SELECT ALL col1 * - 52 + + col2 FROM tab1 cor0
----
-201
-2376
-632

query I rowsort
SELECT 8 + - col0 + - col2 FROM tab0
----
-188
-54
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT + ( + col2 ) * CAST( NULL AS SIGNED ) + - - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT + ( + col2 ) * CAST ( NULL AS INTEGER ) + - - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4577
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + - col2 + + + col0 * + + CAST( - col2 AS DECIMAL ) / 5 AND ( - 63 * + 61 )
----

skipif mysql # not compatible
query III rowsort label-4577
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + - col2 + + + col0 * + + CAST ( - col2 AS REAL ) / 5 AND ( - 63 * + 61 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT - ( - 55 ) + 68, + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
123
9

skipif mysql # not compatible
query II rowsort label-4578
SELECT - ( - 55 ) + 68, + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
123
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 32 NOT BETWEEN NULL AND + 60
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4580
SELECT ( + CAST( - + COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4580
SELECT ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4581
SELECT - CAST( NULL AS SIGNED ) * - col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4581
SELECT - CAST ( NULL AS INTEGER ) * - col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT - CAST( - 9 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-189
-729
-9

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - CAST ( - 9 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-189
-729
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + MIN( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( ( - col2 ) + col1 )
----
46

skipif mysql # not compatible
query I rowsort label-4584
SELECT + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( ( - col2 ) + col1 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 18 < - col1 * - - col0
----
3

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 18 < - col1 * - - col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT - COUNT( * ) / ( - CAST( NULL AS SIGNED ) ) * - 76 + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT - COUNT ( * ) / ( - CAST ( NULL AS INTEGER ) ) * - 76 + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 84 * - col1 AS col2 FROM tab1
----
-1176
-3948
-420

query I rowsort
SELECT - + 13 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-13
-13
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 IN ( + ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4590
SELECT DISTINCT CAST( CAST( col1 AS SIGNED ) AS SIGNED ), + col1 + ( + col1 ) AS col2 FROM tab0
----
1
2
21
42
81
162

skipif mysql # not compatible
query II rowsort label-4590
SELECT DISTINCT CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ), + col1 + ( + col1 ) AS col2 FROM tab0
----
1
2
21
42
81
162

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT - 81 AS col0, COUNT( * ) FROM tab2
----
-81
3

skipif mysql # not compatible
query II rowsort label-4591
SELECT - 81 AS col0, COUNT ( * ) FROM tab2
----
-81
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT ALL - 63 DIV + col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - 63 / + col0 FROM tab2 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col0 AS col2 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + COUNT( 85 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + COUNT ( 85 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 87 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( ( + 82 ) > col2 + + col2 * col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 25 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT + 18 * - col1 * + 92 FROM tab1 AS cor0
----
-23184
-77832
-8280

query I rowsort
SELECT + + col0 * col1 * + 41 FROM tab2 AS cor0
----
202048
206025
96186

query I rowsort
SELECT DISTINCT ( col1 ) * 75 + 10 FROM tab0 AS cor0 WHERE NOT 87 * col0 * + 7 * + - 62 / + - col0 * + 78 * col1 <= ( - col2 )
----
1585
6085
85

query I rowsort
SELECT + + 77 AS col1 FROM tab2 AS cor0
----
77
77
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 97 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + 51 * col2 FROM tab2 AS cor0
----
1224
2117
3025

query I rowsort
SELECT - - 60 - + + col2 FROM tab2 AS cor0
----
2
20
37

query I rowsort
SELECT DISTINCT + + 93 AS col0 FROM tab2 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 89 + + col1 * + col1 - - 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 - - col2 * col1 + + - col0 + + col2 AS col0 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4608
SELECT + col1 * - + CAST( NULL AS DECIMAL ) + - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT + col1 * - + CAST ( NULL AS REAL ) + - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NULL ) = NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 * CAST( NULL AS SIGNED ) + - - 23 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 * CAST ( NULL AS INTEGER ) + - - 23 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - + col0 + - 18 * 31 * - col1 * + 52 FROM tab2
----
1479747
1943939
2234128

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4612
SELECT * FROM tab0 WHERE - ( + CAST( - col1 AS SIGNED ) ) > - + 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4612
SELECT * FROM tab0 WHERE - ( + CAST ( - col1 AS INTEGER ) ) > - + 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4613
SELECT ALL 69 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL 69 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL BETWEEN col1 * + - col0 * - col1 AND NULL
----

query II rowsort
SELECT ALL - + col2 + - + col2 + + ( - col1 ) AS col0, + 16 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4616
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - col0 / + col2 + col0 * ( + 89 ) AND ( + CAST( + col0 AS DECIMAL ) / - 26 )
----

skipif mysql # not compatible
query III rowsort label-4616
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - col0 / + col2 + col0 * ( + 89 ) AND ( + CAST ( + col0 AS REAL ) / - 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + ( - COUNT( DISTINCT + - ( - 81 ) ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4617
SELECT + ( - COUNT ( DISTINCT + - ( - 81 ) ) ) FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 44 AS col0, col1 * - col1 col2 FROM tab1
----
44
-196
44
-2209
44
-25

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE ( - - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT 23 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4620
SELECT 23 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - - ( - COUNT( * ) ) * MAX( - + col2 ) + - + ( + - SUM( - 40 ) ) - 91 FROM tab1 AS cor0 WHERE NOT 48 * col1 + - + 0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT - - ( - COUNT ( * ) ) * MAX ( - + col2 ) + - + ( + - SUM ( - 40 ) ) - 91 FROM tab1 AS cor0 WHERE NOT 48 * col1 + - + 0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT COUNT( * ) * - - COUNT( * ) DIV + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( * ) * - - COUNT ( * ) / + + COUNT ( * ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( ( col1 IN ( 55 ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4623
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( ( col1 IN ( 55 ) ) )
----
-3

query II rowsort
SELECT ALL - 47 * + - 88 AS col1, col0 FROM tab2
----
4136
46
4136
64
4136
75

query I rowsort
SELECT 4 * - + col1 FROM tab0
----
-324
-4
-84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - + col1 )
----

query II rowsort
SELECT DISTINCT col2 + col1 AS col2, col0 AS col0 FROM tab2 AS cor0
----
117
64
125
75
74
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT DISTINCT + + col0 + - col2 DIV + 82 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT + + col0 + - col2 / + 82 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + ( - col1 ) + + col0 col0 FROM tab1 AS cor0
----
-340
-4186
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * - 46 + + - col2 + + col2 col1 FROM tab1
----
2346
3910
4186

query I rowsort
SELECT DISTINCT + col0 * + 12 AS col2 FROM tab0
----
1044
1164
180

query I rowsort
SELECT - col2 + 8 * - col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-167
-706
-875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4633
SELECT ALL - + col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL - + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT - - 66, + col1 AS col1 FROM tab0 AS cor0
----
66
1
66
21
66
81

query I rowsort
SELECT ALL ( - - 75 ) FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT ALL - col1 + - 3 AS col0 FROM tab1 AS cor0
----
-17
-50
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT + COUNT( col0 ) + - + CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT + COUNT ( col0 ) + - + CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL + col1 + - col2 - 79 * - col0 - - + 61 + + CAST( col2 AS SIGNED ) * + col1 AS col1 FROM tab1
----
10425
5352
7017

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + col1 + - col2 - 79 * - col0 - - + 61 + + CAST ( col2 AS INTEGER ) * + col1 AS col1 FROM tab1
----
10425
5352
7017

query I rowsort
SELECT DISTINCT - col0 * + col0 * + + col1 * + 27 + - col1 AS col2 FROM tab0
----
-254044
-4291644
-492156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT - ( - CAST( NULL AS SIGNED ) ) - + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT - ( - CAST ( NULL AS INTEGER ) ) - + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 94 - + - col0 AS col0 FROM tab1
----
145
179
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4643
SELECT * FROM tab0 WHERE - - 92 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4643
SELECT * FROM tab0 WHERE - - 92 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * + col0 - - + 0 + - + col0 AS col2 FROM tab1
----
340
4186
663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT DISTINCT - ( + CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT - ( + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT - ( - SUM( + ( - col1 ) ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4647
SELECT - ( - SUM ( + ( - col1 ) ) ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4648
SELECT ALL - COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * - - 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT + SUM( - ( + col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4650
SELECT + SUM ( - ( + col2 ) ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + - ( - 68 ) AS col1 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT DISTINCT + ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + 77 col1 FROM tab2 cor0
----
1677
3441
606

query III rowsort
SELECT * FROM tab1 WHERE NOT + 73 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT ALL + 5 * + + col0 DIV - col0 + - col0 FROM tab1
----
-56
-90
-96

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + 5 * + + col0 / - col0 + - col0 FROM tab1
----
-56
-90
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + + - col2 * - + 20 AS col2 FROM tab0
----
113
1883
925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col2 FROM tab0 WHERE NOT NULL IN ( col1 + + + col2 / 87 / + 7 + - + 76, - 8 * col2, 14 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col2 col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT 92 * + + COUNT( * ) AS col0 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-4660
SELECT 92 * + + COUNT ( * ) AS col0 FROM tab0
----
276

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 * col0 + + 57 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT ALL + 66, MAX( - 97 ) AS col0 FROM tab2
----
66
-97

skipif mysql # not compatible
query II rowsort label-4662
SELECT ALL + 66, MAX ( - 97 ) AS col0 FROM tab2
----
66
-97

query I rowsort
SELECT DISTINCT - col0 - - 93 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4664
SELECT - 43 / - col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 43 / - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - col1 ) + + 87 AS col1 FROM tab1 AS cor0
----
40
73
82

query I rowsort
SELECT DISTINCT + 1 - + + col0 AS col0 FROM tab0
----
-14
-86
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4667
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 55 * - 56 * + - 82 AS col1 FROM tab0 AS cor0
----
252560
252560
252560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT DISTINCT + CAST( + 9 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + CAST ( + 9 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT + col1 - + - col2 * 84 + ( + 1 ) DIV 46 AS col0 FROM tab1 AS cor0
----
4961
5759
8078

skipif mysql # not compatible
query I rowsort label-4670
SELECT + col1 - + - col2 * 84 + ( + 1 ) / 46 AS col0 FROM tab1 AS cor0
----
4961
5759
8078

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4671
SELECT 36 DIV + 33 + - - COUNT( * ) col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
4
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4671
SELECT 36 / + 33 + - - COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
4
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT 37 * - + ( SUM( DISTINCT + 55 ) ) AS col2 FROM tab0 AS cor0
----
-2035

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT 37 * - + ( SUM ( DISTINCT + 55 ) ) AS col2 FROM tab0 AS cor0
----
-2035

query II rowsort
SELECT + + ( + col2 ) + + col2, col2 * + 39 AS col0 FROM tab1 AS cor0
----
118
2301
136
2652
192
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL - COUNT( * ) + 98 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL - COUNT ( * ) + 98 FROM tab0 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT ALL col1 DIV + - 68 - + 70 + + 19 FROM tab2
----
-51
-51
-52

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL col1 / + - 68 - + 70 + + 19 FROM tab2
----
-51
-51
-52

query I rowsort
SELECT + 10 + 39 AS col1 FROM tab1
----
49
49
49

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + MIN( - - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4678
SELECT + MIN ( - - col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT MAX( DISTINCT + col0 ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4679
SELECT MAX ( DISTINCT + col0 ) col1 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT CAST( NULL AS SIGNED ) + - ( 19 ) AS col2 FROM tab1 WHERE NOT + + 98 * + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT CAST ( NULL AS INTEGER ) + - ( 19 ) AS col2 FROM tab1 WHERE NOT + + 98 * + col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT ALL - 85 DIV + - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - 85 / + - col1 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 9 * + 68 + 34 >= - ( col1 ) * - - ( ( + - col0 ) )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT - - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4685
SELECT DISTINCT 89 / + CAST( NULL AS SIGNED ) col2, col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4685
SELECT DISTINCT 89 / + CAST ( NULL AS INTEGER ) col2, col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + MIN( + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4686
SELECT + MIN ( + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - 97 + - + ( - 53 ) * - + col0 FROM tab0 cor0
----
-4708
-5238
-892

query I rowsort
SELECT - + col2 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
-34
100
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 * - col2 + ( 19 ) * + col2 col2 FROM tab2
----
1218
483
840

query I rowsort
SELECT ALL col1 + - + ( - 91 ) * col0 + + ( + 46 ) AS col1 FROM tab1
----
4701
7786
8374

query I rowsort
SELECT DISTINCT ( - 73 ) FROM tab0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT col2 FROM tab0 WHERE + CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4693
SELECT col2 FROM tab0 WHERE + CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT + CAST( NULL AS SIGNED ) * + 51 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT + CAST ( NULL AS INTEGER ) * + 51 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 2 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT + COUNT( * ) * COUNT( + col2 ) * - + MAX( ALL col0 ) AS col0 FROM tab1
----
-819

skipif mysql # not compatible
query I rowsort label-4696
SELECT + COUNT ( * ) * COUNT ( + col2 ) * - + MAX ( ALL col0 ) AS col0 FROM tab1
----
-819

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT ( + 34 ) DIV col2 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4697
SELECT ( + 34 ) / col2 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT 81 - + 82 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 84 + - + 74 < - col0
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 84 + - + 74 < - col0
----
0

query I rowsort
SELECT ALL col1 - - col0 + - 32 AS col1 FROM tab1 AS cor0
----
106
33
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4701
SELECT * FROM tab1 cor0 WHERE CAST( + 35 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4701
SELECT * FROM tab1 cor0 WHERE CAST ( + 35 AS INTEGER ) < NULL
----

query I rowsort
SELECT - col0 * - 94 + + 97 + 63 AS col1 FROM tab0 AS cor0 WHERE NULL > col2 * col2 / col1 + ( + 82 )
----

query I rowsort
SELECT col1 - 20 AS col2 FROM tab0 cor0
----
-19
1
61

query I rowsort
SELECT ALL - - col1 * - - 57 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT - 52 DIV + COUNT( - + 66 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-4705
SELECT - 52 / + COUNT ( - + 66 ) FROM tab2
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4706
SELECT DISTINCT ( col0 ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT ( col0 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT + col0 / col0 * + - ( - ( - - col0 ) ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT + col0 / col0 * + - ( - ( - - col0 ) ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL - MAX( DISTINCT + col2 ) FROM tab2 WHERE NULL NOT IN ( - 28 - - col2, 0 + col0 + col0 + col2, + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - MAX ( DISTINCT + col2 ) FROM tab2 WHERE NULL NOT IN ( - 28 - - col2, 0 + col0 + col0 + col2, + + col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT - col2 DIV ( + 31 ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4709
SELECT - col2 / ( + 31 ) FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL + 29 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL 7 * + - 71 * + col0 AS col0 FROM tab0 AS cor0
----
-43239
-48209
-7455

query I rowsort
SELECT ALL col2 + + + col2 AS col1 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT - + COUNT( * ) DIV - 85 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT - + COUNT ( * ) / - 85 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 NOT BETWEEN - col0 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4, - col0 col1 FROM tab2 AS cor0
----
4
-46
4
-64
4
-75

query I rowsort
SELECT DISTINCT - col1 + + - 25 FROM tab1 AS cor0
----
-30
-39
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT + 14 col2, + COUNT( * ) FROM tab2 AS cor0
----
14
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4717
SELECT + 14 col2, + COUNT ( * ) FROM tab2 AS cor0
----
14
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4718
SELECT + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( - ( + 77 ) ) FROM tab0 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT - 57 * - - ( - - COUNT( * ) ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-4720
SELECT - 57 * - - ( - - COUNT ( * ) ) FROM tab0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT + 42 FROM tab2 WHERE - ( CAST( + ( - + col0 ) AS SIGNED ) ) IS NOT NULL
----
42
42
42

skipif mysql # not compatible
query I rowsort label-4721
SELECT + 42 FROM tab2 WHERE - ( CAST ( + ( - + col0 ) AS INTEGER ) ) IS NOT NULL
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) * + - 23 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) * + - 23 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col2 FROM tab2
----
60
60
60

query I rowsort
SELECT DISTINCT ( - col0 ) + + ( - col0 ) FROM tab0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col1, 28 AS col2 FROM tab1 cor0
----
3
28

skipif mysql # not compatible
query II rowsort label-4726
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col1, 28 AS col2 FROM tab1 cor0
----
3
28

query I rowsort
SELECT - 58 + + + ( - col1 ) FROM tab2 AS cor0
----
-109
-125
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - COUNT( * ) + 40 AS col2 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-4728
SELECT - COUNT ( * ) + 40 AS col2 FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT DISTINCT + COUNT( * ) + - SUM( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT + COUNT ( * ) + - SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + 74 * + 93 * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + - 94
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT + 74 * + 93 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + - 94
----
0

query I rowsort
SELECT - 3 - col1 FROM tab2 AS cor0
----
-54
-70
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL - SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT + - col1 / col1 AS col1 FROM tab1 AS cor0 WHERE - col2 / - col2 * + 46 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 * - 97 col2 FROM tab1 AS cor0
----
-8051

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < - 62
----

query II rowsort
SELECT ALL 84, - col2 AS col1 FROM tab0 AS cor0
----
84
-10
84
-47
84
-99

query I rowsort
SELECT DISTINCT ( - - col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

query II rowsort
SELECT + + col0 * 95, - col2 + + + ( - - 53 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + ( + - 11 ) FROM tab1 AS cor0
----
-11
-11
-11

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT - col0 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT ALL - COUNT( * ) AS col0, SUM( + col0 ) FROM tab1
----
-3
227

skipif mysql # not compatible
query II rowsort label-4743
SELECT ALL - COUNT ( * ) AS col0, SUM ( + col0 ) FROM tab1
----
-3
227

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 1 IS NOT NULL
----

query II rowsort
SELECT col2, 11 FROM tab0
----
10
11
47
11
99
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4746
SELECT col1, + col1 - + col2 + CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4746
SELECT col1, + col1 - + col2 + CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4747
SELECT - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT MIN( + 42 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4748
SELECT MIN ( + 42 ) FROM tab1 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT col0 * col2 DIV - 36 FROM tab2 AS cor0
----
-120
-29
-71

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT col0 * col2 / - 36 FROM tab2 AS cor0
----
-120
-29
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL + col0 * CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + col0 * CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE NOT + 71 * - - 26 + - + 91 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 85 ) AS col1 FROM tab1
----
85
85
85

query I rowsort
SELECT ALL col2 + + - 59 AS col0 FROM tab1 AS cor0 WHERE col1 = - col0 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT + col0 + - CAST( 57 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-11
18
7

skipif mysql # not compatible
query I rowsort label-4754
SELECT + col0 + - CAST ( 57 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-11
18
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4755
SELECT + col2 + - + ( 65 ) * 44 DIV - + col2 AS col2 FROM tab0 cor0
----
107
127
296

skipif mysql # not compatible
query I rowsort label-4755
SELECT + col2 + - + ( 65 ) * 44 / - + col2 AS col2 FROM tab0 cor0
----
107
127
296

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT DISTINCT - - COUNT( * ) * + 54 col0, + ( - 40 ) col0 FROM tab1 AS cor0
----
162
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4756
SELECT DISTINCT - - COUNT ( * ) * + 54 col0, + ( - 40 ) col0 FROM tab1 AS cor0
----
162
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4757
SELECT ALL 81 DIV COUNT( * ) * - - 46 AS col0 FROM tab1 cor0
----
1242

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL 81 / COUNT ( * ) * - - 46 AS col0 FROM tab1 cor0
----
1242

onlyif mysql # DIV for integer division: 
query I rowsort label-4758
SELECT ALL + + col2 * col2 + + - col0 + col1 DIV + col0 - + col1 col2 FROM tab0 AS cor0
----
-8
2118
9703

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4758
SELECT ALL + + col2 * col2 + + - col0 + col1 / + col0 - + col1 col2 FROM tab0 AS cor0
----
-8
2118
9703

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 77 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + col2 FROM tab2 WHERE col2 IS NOT NULL
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT 97 * - COUNT( * ) AS col1 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-4761
SELECT 97 * - COUNT ( * ) AS col1 FROM tab1
----
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col2 AS col1 FROM tab1
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT DISTINCT - 69 * + 12 FROM tab2
----
-828

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4764
SELECT 38 * + CAST( + col0 AS SIGNED ), + ( col0 ) + col2 AS col1 FROM tab1
----
1938
147
3230
144
3458
159

skipif mysql # not compatible
query II rowsort label-4764
SELECT 38 * + CAST ( + col0 AS INTEGER ), + ( col0 ) + col2 AS col1 FROM tab1
----
1938
147
3230
144
3458
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL - MAX( - + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL - MAX ( - + col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4766
SELECT ALL - - ( CAST( + col1 AS SIGNED ) ) DIV + + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - - ( CAST ( + col1 AS INTEGER ) ) / + + col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT DISTINCT col2 DIV + col1 AS col0 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT col2 / + col1 AS col0 FROM tab1 cor0
----
1
11
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT DISTINCT - - 11, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-4768
SELECT DISTINCT - - 11, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
11
3

query I rowsort
SELECT + col2 * - col1 + + + 98 AS col2 FROM tab0 AS cor0
----
-1
-112
-3709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT + - 82 FROM tab1 WHERE col2 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4770
SELECT + - 82 FROM tab1 WHERE col2 >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 71 * - + col2 + - + col2 FROM tab2 cor0
----
-1656
-2880
-4176

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 66 AS col2 FROM tab0 cor0
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT - 42 DIV + + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 42 / + + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 72 * - col0 + + - col2 FROM tab2
----
3289
4568
5342

query I rowsort
SELECT DISTINCT col0 * col0 + + col0 + 37 FROM tab0
----
277
7693
9543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT - CAST( - + 90 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-4777
SELECT - CAST ( - + 90 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT ALL - CAST( - 41 AS SIGNED ) AS col1 FROM tab2 cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - CAST ( - 41 AS INTEGER ) AS col1 FROM tab2 cor0
----
41
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT 62 DIV + + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4779
SELECT 62 / + + col2 FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col2 * - col2
----

query I rowsort
SELECT + col2 * - 47 AS col1 FROM tab1 AS cor0
----
-2773
-3196
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL + 70 * + - SUM( ALL + 5 ) AS col0 FROM tab2 AS cor0
----
-1050

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL + 70 * + - SUM ( ALL + 5 ) AS col0 FROM tab2 AS cor0
----
-1050

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + 67, 84 / - + col1, 33, + col1 + col2 + 55 / + col0 * - - col2, + col1, col1 )
----

query I rowsort
SELECT DISTINCT + 77 * - 48 * + 12 + col1 AS col1 FROM tab0 AS cor0
----
-44271
-44331
-44351

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT - ( - col1 ) DIV + - col1 + 21 FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-4785
SELECT - ( - col1 ) / + - col1 + 21 FROM tab2
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 82 col2 FROM tab0
----
-103
-163
-83

query I rowsort
SELECT DISTINCT - 40 + + - col0 + - col1 * + col0 + col1 * + 16 FROM tab0
----
-1618
-218
26

query I rowsort
SELECT ALL col1 - 31 FROM tab2
----
20
36
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4789
SELECT DISTINCT ( + col2 ) * 57, + ( - + CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab1
----
3363
5
3876
47
5472
14

skipif mysql # not compatible
query II rowsort label-4789
SELECT DISTINCT ( + col2 ) * 57, + ( - + CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab1
----
3363
5
3876
47
5472
14

query I rowsort
SELECT - 36 + - col2 + col1 * + col2 * + col1 AS col0 FROM tab0
----
-36
308284
4364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * col2 * + 35 + + col1 col1 FROM tab1 AS cor0
----
136295
157127
221774

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab0, tab1 cor0
----
-95

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - col2 * + col1
----

query I rowsort
SELECT DISTINCT col1 - + 67 FROM tab0 WHERE + col2 IS NOT NULL
----
-46
-66
14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col0 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4796
SELECT ALL + col2, - col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL + col2, - col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( - - col2 ), + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - + COUNT( ALL 57 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4798
SELECT - + COUNT ( ALL 57 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL COUNT( 26 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL COUNT ( 26 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT ALL + col1 DIV - + col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + col1 / - + col2 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT col0 DIV - 35 col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4801
SELECT col0 / - 35 col2 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT - 41 DIV - - col1 AS col2 FROM tab1
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT - 41 / - - col1 AS col2 FROM tab1
----
-2
-8
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4803
SELECT - MAX( DISTINCT + 55 ) AS col2, 87 DIV 72 AS col2 FROM tab0
----
-55
1

skipif mysql # not compatible
query II rowsort label-4803
SELECT - MAX ( DISTINCT + 55 ) AS col2, 87 / 72 AS col2 FROM tab0
----
-55
1

query I rowsort
SELECT DISTINCT + col1 + - - col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + 96 * - - col0 FROM tab0
----
1440
8352
9312

query I rowsort
SELECT col2 + + - 18 FROM tab0
----
-8
29
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) + + - 67 * - + 3 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + - 67 * - + 3 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 1 IS NULL
----

query I rowsort
SELECT col2 * col0 + - 56 + 30 FROM tab2 AS cor0
----
1032
2534
4324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + 87 + + - col0 col0 FROM tab0 AS cor0
----
1
-10
21
0
81
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + + MIN( ALL + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4813
SELECT + + MIN ( ALL + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4814
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( 60 AS SIGNED ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4814
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( 60 AS INTEGER ) + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + - 47 <> + col2 + - + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT COUNT( * ) + + 93 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT COUNT ( * ) + + 93 FROM tab0
----
96

query I rowsort
SELECT ALL col1 + - col0 + - + col2 + col2 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT 1 AS col0, + MAX( DISTINCT + 86 ) + + 81 FROM tab0
----
1
167

skipif mysql # not compatible
query II rowsort label-4818
SELECT 1 AS col0, + MAX ( DISTINCT + 86 ) + + 81 FROM tab0
----
1
167

query II rowsort
SELECT ALL + 47 - - + col1 - + col0 - + col2 AS col2, col0 * 85 AS col1 FROM tab2
----
-19
6375
20
5440
29
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL + - SUM( + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + - SUM ( + col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - col1 * 17 + + col1 + - - 37 AS col1 FROM tab2 AS cor0
----
-1035
-1195
-779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 0 * + col1 * col0 + - col1 col1, 12 AS col0 FROM tab1 AS cor0
----
-14
12
-47
12
-5
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT COUNT( - 8 ) * 44 AS col0 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4823
SELECT COUNT ( - 8 ) * 44 AS col0 FROM tab2 AS cor0
----
132

query I rowsort
SELECT - 43 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 9 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT DISTINCT + col2 DIV + 56 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + col2 / + 56 AS col0 FROM tab0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 42 - + 29 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT SUM( + 61 ) AS col1 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-4827
SELECT SUM ( + 61 ) AS col1 FROM tab1
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4828
SELECT ALL + ( + MAX( - + col1 ) ) / - CAST( NULL AS SIGNED ) * 69 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL + ( + MAX ( - + col1 ) ) / - CAST ( NULL AS INTEGER ) * 69 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT - col2 DIV + + ( + 96 ) AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4829
SELECT - col2 / + + ( + 96 ) AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - 29 * - - col1 FROM tab2 AS cor0
----
-1479
-1943
-2233

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
144
147
159

query II rowsort
SELECT - col0 AS col2, col1 * + col0 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 + col2 NOT IN ( 86, - col1 ) )
----
-46
107916
-64
315392
-75
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT DISTINCT MIN( ALL - col2 ) * - 87 FROM tab1 AS cor0
----
8352

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT MIN ( ALL - col2 ) * - 87 FROM tab1 AS cor0
----
8352

query I rowsort
SELECT + 74 FROM tab2 WHERE NOT - ( + + ( + col2 ) ) NOT BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT - col2 * - col0 * 33 + + col0 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 29 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT - ( col0 ) DIV 8 DIV + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4838
SELECT - ( col0 ) / 8 / + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4839
SELECT DISTINCT 52 DIV 53 DIV - COUNT( * ) AS col2, COUNT( * ) FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-4839
SELECT DISTINCT 52 / 53 / - COUNT ( * ) AS col2, COUNT ( * ) FROM tab0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT SUM( - 96 ) AS col0 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT SUM ( - 96 ) AS col0 FROM tab2
----
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col1 col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4842
SELECT + 40 + - 73 - + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT + 40 + - 73 - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 43 + 70 FROM tab2 AS cor0
----
113
113
113

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - col1 * col0 NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <> - - 46
----

query I rowsort
SELECT DISTINCT + - 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-60

query I rowsort
SELECT + - 20 * + + col1 + col0 FROM tab0 AS cor0
----
-1605
-333
77

query I rowsort
SELECT + col1 * - col0 AS col1 FROM tab1 AS cor0 WHERE + col1 = col0
----

query I rowsort
SELECT + col2 - col2 - + - 17 + col2 * + + ( + ( + - col1 ) ) * - - ( + 30 ) - col2 AS col2 FROM tab2 AS cor0
----
-116621
-35196
-92423

query I rowsort
SELECT + 22 - - + col0 FROM tab1 AS cor0
----
107
113
73

query I rowsort
SELECT col2 - + - ( - 77 ) AS col2 FROM tab2 AS cor0
----
-19
-37
-54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col0 + + col0 BETWEEN col0 * + 85 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 97 + + col2 col1, 59 FROM tab1 AS cor0
----
156
59
165
59
193
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4854
SELECT * FROM tab1 AS cor0 WHERE 87 BETWEEN - CAST( NULL AS SIGNED ) AND + col2 * + 78
----

skipif mysql # not compatible
query III rowsort label-4854
SELECT * FROM tab1 AS cor0 WHERE 87 BETWEEN - CAST ( NULL AS INTEGER ) AND + col2 * + 78
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col1 col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT ALL - col2 + + 5 DIV + col0 - + - col1 FROM tab1 cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL - col2 + + 5 / + col0 - + - col1 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + 37 + + MAX( ALL + col1 ) * - 6 * + 73 FROM tab2
----
-33689

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 37 + + MAX ( ALL + col1 ) * - 6 * + 73 FROM tab2
----
-33689

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + MAX( 90 ) * COUNT( - col0 ) AS col1 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-4858
SELECT + MAX ( 90 ) * COUNT ( - col0 ) AS col1 FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT 24 * + - SUM( ALL - col1 ) FROM tab0 AS cor0
----
2472

skipif mysql # not compatible
query I rowsort label-4859
SELECT 24 * + - SUM ( ALL - col1 ) FROM tab0 AS cor0
----
2472

query II rowsort
SELECT + col2 * + col1 * + - col2 AS col2, - 68 AS col2 FROM tab0 AS cor0
----
-178929
-68
-2100
-68
-9801
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL + - CAST( - 33 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + - CAST ( - 33 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - 83 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1245
-7221
-8051

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4863
SELECT ALL CAST( - + col2 AS SIGNED ) * + col1 + - 54 + - ( + col1 ), - col2 col2 FROM tab2
----
-1278
-23
-3211
-40
-4007
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4863
SELECT ALL CAST ( - + col2 AS INTEGER ) * + col1 + - 54 + - ( + col1 ), - col2 col2 FROM tab2
----
-1278
-23
-3211
-40
-4007
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 85 NOT BETWEEN + col0 AND - col0 + - 36
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 36
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4866
SELECT DISTINCT - col1 DIV + col0, col0 FROM tab2 AS cor0
----
-1
46
-1
64
0
75

skipif mysql # not compatible
query II rowsort label-4866
SELECT DISTINCT - col1 / + col0, col0 FROM tab2 AS cor0
----
-1
46
-1
64
0
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50 col2, col1 FROM tab0 AS cor0
----
50
1
50
21
50
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT DISTINCT + COUNT( * ) * - 91, 93 AS col2 FROM tab2 cor0 WHERE NOT NULL < col2
----
0
93

skipif mysql # not compatible
query II rowsort label-4868
SELECT DISTINCT + COUNT ( * ) * - 91, 93 AS col2 FROM tab2 cor0 WHERE NOT NULL < col2
----
0
93

query I rowsort
SELECT 32 / + + col2 * + 70 / 43 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT + SUM( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + SUM ( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL - col2 * - col1 + + + col1 FROM tab1 cor0
----
1358
300
3243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col0 col2 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 >= - - ( + col1 ) + - col0 )
----

query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab1 WHERE NOT NULL <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + - col0 col2, 2 + col0 * - ( col0 ) * col2 - - col2 AS col1 FROM tab1
----
-4896
-249598
-5015
-426214
-6188
-563038

query I rowsort
SELECT col1 * + - col0 AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL col2 * - - col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - 55 * - col0 AS col2 FROM tab1 AS cor0
----
2805
4675
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0 WHERE 78 * - - 79 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT DISTINCT - 78 * SUM( ALL - - ( - col0 ) ) FROM tab1 AS cor0
----
17706

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - 78 * SUM ( ALL - - ( - col0 ) ) FROM tab1 AS cor0
----
17706

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL - COUNT( DISTINCT - 58 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL - COUNT ( DISTINCT - 58 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 57 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # DIV for integer division: 
query II rowsort label-4884
SELECT DISTINCT + col0 AS col1, - col2 - - col0 DIV - 2 AS col0 FROM tab2 AS cor0
----
46
-46
64
-72
75
-95

skipif mysql # not compatible
query II rowsort label-4884
SELECT DISTINCT + col0 AS col1, - col2 - - col0 / - 2 AS col0 FROM tab2 AS cor0
----
46
-46
64
-72
75
-95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - ( + col0 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + COUNT( * ) + ( 72 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + COUNT ( * ) + ( 72 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4887
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - 29 + + - MIN( DISTINCT + 34 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT - 29 + + - MIN ( DISTINCT + 34 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT ALL - col0 + - + 68 + - + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-155
-165
-88

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL - col0 + - + 68 + - + col1 / col0 AS col1 FROM tab0 AS cor0
----
-155
-165
-88

query I rowsort
SELECT + col0 * + 28 AS col1 FROM tab1 AS cor0
----
1428
2380
2548

query I rowsort
SELECT 7 * + ( - 34 ) + col0 FROM tab0 AS cor0 WHERE 47 - - 36 * - + col2 IS NOT NULL
----
-141
-151
-223

query I rowsort
SELECT + 58 * + col2 - + col0 AS col0 FROM tab2
----
1288
2256
3289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT - col0 * - 76 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT - col0 * - 76 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - + col1 * + 85 FROM tab0
----
-1698
-6870
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + 82 col2 FROM tab1
----
-14
-23
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4896
SELECT col0 DIV + CAST( ( + col2 ) AS SIGNED ) col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4896
SELECT col0 / + CAST ( ( + col2 ) AS INTEGER ) col2 FROM tab2
----
1
1
2

query I rowsort
SELECT - col2 * + col1 * - - col0 AS col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT col1 * + 10 AS col0 FROM tab2
----
510
670
770

query I rowsort
SELECT ( + col1 ) * - + 96 + col2 FROM tab1 WHERE NOT col1 <= - + 90
----
-1248
-421
-4444

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 + 72 * 63 / - 11 + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT + - CAST( - - CAST( - - col0 AS SIGNED ) AS SIGNED ) * - col2 col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4901
SELECT + - CAST ( - - CAST ( - - col0 AS INTEGER ) AS INTEGER ) * - col2 col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4902
SELECT ALL - COUNT( ALL - - CAST( col2 AS DECIMAL ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL - COUNT ( ALL - - CAST ( col2 AS REAL ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + + 58 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 60 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL + COUNT( * ) * 91 AS col1 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + COUNT ( * ) * 91 AS col1 FROM tab2 AS cor0
----
273

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - + 71 AS col2, 62 AS col1 FROM tab0 AS cor0
----
-71
62
-71
62
-71
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL + 31 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + 31 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
93

query I rowsort
SELECT ( col1 ) + + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 col0 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - col2 * + col0 + - + col1 + col2 FROM tab0 AS cor0
----
-739
-881
-9505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col1 * - + ( + + 70 ) + + col1 col0, col2 AS col1 FROM tab1 cor0
----
-20645
59
-223673
68
-94066
96

query II rowsort
SELECT + - 21, col1 AS col1 FROM tab2 AS cor0
----
-21
51
-21
67
-21
77

query I rowsort
SELECT ALL ( - + 7 ) + + col1 FROM tab2
----
44
60
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT ALL ( + MAX( DISTINCT + - 12 ) ) + COUNT( * ) DIV - MIN( DISTINCT - + col0 ) * COUNT( * ) + + 21 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL ( + MAX ( DISTINCT + - 12 ) ) + COUNT ( * ) / - MIN ( DISTINCT - + col0 ) * COUNT ( * ) + + 21 FROM tab1
----
9

query II rowsort
SELECT DISTINCT col1, + 46 + - 68 AS col2 FROM tab0
----
1
-22
21
-22
81
-22

query II rowsort
SELECT - col0, + 41 * col1 AS col0 FROM tab1
----
-51
574
-85
205
-91
1927

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT 67 + 60 + MAX( DISTINCT + - col0 ) AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4919
SELECT 67 + 60 + MAX ( DISTINCT + - col0 ) AS col0 FROM tab2
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * - 60 + - col1 + + col0 * - col0 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-11330
-2226
-9510

query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
110
2300
247

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + - MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4922
SELECT + - MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT ALL - 13 + col2 DIV - - 82 FROM tab0 AS cor0
----
-12
-13
-13

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL - 13 + col2 / - - 82 FROM tab0 AS cor0
----
-12
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT + ( - + 66 ) * - 87 - + - COUNT( * ) FROM tab1
----
5745

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + ( - + 66 ) * - 87 - + - COUNT ( * ) FROM tab1
----
5745

query I rowsort
SELECT ALL + col2 - - - col0 FROM tab0
----
-77
2
32

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 14 + + 40 * + col1 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col0 - + col1 AS col2, - ( col1 ) AS col1 FROM tab1 AS cor0
----
-138
-47
-65
-14
-90
-5

query II rowsort
SELECT + col0 - + col0 AS col1, col0 AS col1 FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4930
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + + CAST( NULL AS SIGNED ) IS NULL AND ( NULL ) >= - col2
----

skipif mysql # not compatible
query III rowsort label-4930
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + + CAST ( NULL AS INTEGER ) IS NULL AND ( NULL ) >= - col2
----

query I rowsort
SELECT + col0 * + 30 + + + 56 FROM tab0 cor0
----
2666
2966
506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT DISTINCT + COUNT( * ) DIV 13 * - - 59 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + COUNT ( * ) / 13 * - - 59 AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 57 + - col0 col2, + col0 FROM tab2 AS cor0
----
-103
46
-121
64
-132
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 87 / 44 = - 50 * - + col1 AND NOT NULL IS NULL
----

query I rowsort
SELECT 31 + col0 * - - 89 AS col2 FROM tab2 AS cor0
----
4125
5727
6706

query I rowsort
SELECT - col0 + - col1 + + 71 FROM tab0 cor0
----
-25
-27
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4937
SELECT - COUNT( - - 91 ) + - 71 AS col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
-74

skipif mysql # not compatible
query I rowsort label-4937
SELECT - COUNT ( - - 91 ) + - 71 AS col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + 59 + SUM( col2 ) AS col1 FROM tab0 WHERE NOT ( NOT col2 * ( - - col2 ) NOT BETWEEN - col0 AND - 37 * - ( - - col0 ) + ( 79 ) + + 77 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT + 59 + SUM ( col2 ) AS col1 FROM tab0 WHERE NOT ( NOT col2 * ( - - col2 ) NOT BETWEEN - col0 AND - 37 * - ( - - col0 ) + ( 79 ) + + 77 * + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT MAX( + - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT MAX ( + - col1 ) FROM tab2
----
-51

query I rowsort
SELECT ALL + 29 AS col1 FROM tab0 WHERE + col2 + + 60 IS NOT NULL
----
29
29
29

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - + COUNT( col0 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4942
SELECT DISTINCT - + COUNT ( col0 ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + - col1 * + + col1 * + col0 FROM tab1 AS cor0 WHERE NOT + 6 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) BETWEEN 16 + 61 AND col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 61 <= 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * 39 FROM tab0 WHERE NULL > 50
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col0 + - col0 * col1 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= ( - col0 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT MIN( DISTINCT 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT MIN ( DISTINCT 34 ) FROM tab1
----
34

query III rowsort
SELECT * FROM tab1 WHERE + 82 <= ( NULL )
----

query I rowsort
SELECT + col0 * - 80 AS col2 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT - col1 + + CAST( + ( - 45 ) AS SIGNED ) AS col0 FROM tab2
----
-112
-122
-96

skipif mysql # not compatible
query I rowsort label-4953
SELECT - col1 + + CAST ( + ( - 45 ) AS INTEGER ) AS col0 FROM tab2
----
-112
-122
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4954
SELECT ALL - col2 - 90 DIV col2 AS col1 FROM tab2
----
-26
-42
-59

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - col2 - 90 / col2 AS col1 FROM tab2
----
-26
-42
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4955
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4955
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - 44 / 43 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 > NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( col0 ) NOT BETWEEN col2 AND - 99
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 64 BETWEEN ( ( - col2 ) ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT + SUM( - col2 ) + - 67 * + 11 FROM tab1
----
-960

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + SUM ( - col2 ) + - 67 * + 11 FROM tab1
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 76 * col0 + - col0 FROM tab1 WHERE NOT ( + col2 ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT MAX( 41 ) AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-4963
SELECT MAX ( 41 ) AS col0 FROM tab1
----
41

query I rowsort
SELECT 99 + 77 FROM tab2
----
176
176
176

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col2 NOT IN ( col2 )
----

query I rowsort
SELECT 18 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE - 2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL ( - col2 ) * 4 FROM tab0
----
-188
-396
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT DISTINCT col1 * + 89 col1 FROM tab1 WHERE NOT + col0 * col1 + ( col2 ) / - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT DISTINCT col1 * + 89 col1 FROM tab1 WHERE NOT + col0 * col1 + ( col2 ) / - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + COUNT( - ( col0 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4970
SELECT + COUNT ( - ( col0 ) ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 36 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT DISTINCT 57 DIV - 20 AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT 57 / - 20 AS col2 FROM tab1 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT ALL + col2 DIV 57 + col1 FROM tab2 cor0
----
51
68
77

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL + col2 / 57 + col1 FROM tab2 cor0
----
51
68
77

query I rowsort
SELECT - 57 + col1 AS col0 FROM tab1 AS cor0
----
-10
-43
-52

query I rowsort
SELECT DISTINCT 79 * ( + col1 ) + + col0 AS col1 FROM tab0
----
1746
176
6414

query I rowsort
SELECT + col0 + ( + 0 ) FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + col1 + - ( + col2 ) AS col2 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT ALL - col1 - CAST( + col0 AS SIGNED ) FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - col1 - CAST ( + col0 AS INTEGER ) FROM tab0
----
-108
-96
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col2 FROM tab2 AS cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col0 = - 69 + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT COUNT( * ) * 4 col0 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4982
SELECT COUNT ( * ) * 4 col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT 1 * 70 FROM tab1
----
70
70
70

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT SUM( - 64 ) * + 9 AS col1 FROM tab2
----
-1728

skipif mysql # not compatible
query I rowsort label-4985
SELECT SUM ( - 64 ) * + 9 AS col1 FROM tab2
----
-1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT col1 + + col0 FROM tab1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4986
SELECT col1 + + col0 FROM tab1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT ALL - 2 DIV - col1 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - 2 / - col1 AS col2 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT col2 * - 53 AS col1 FROM tab0
----
-2491
-5247
-530

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4989
SELECT ALL - CAST( NULL AS DECIMAL ) / + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - CAST ( NULL AS REAL ) / + + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT DISTINCT - col0 * col1 DIV 83 + - col0 AS col1 FROM tab1 AS cor0
----
-142
-59
-90

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT - col0 * col1 / 83 + - col0 AS col1 FROM tab1 AS cor0
----
-142
-59
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( col1 ) AND NOT - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4992
SELECT * FROM tab2 WHERE NOT ( + col2 ) BETWEEN 57 + CAST( NULL AS SIGNED ) AND + CAST( NULL AS SIGNED ) * - col1 + - col0
----

skipif mysql # not compatible
query III rowsort label-4992
SELECT * FROM tab2 WHERE NOT ( + col2 ) BETWEEN 57 + CAST ( NULL AS INTEGER ) AND + CAST ( NULL AS INTEGER ) * - col1 + - col0
----

query II rowsort
SELECT DISTINCT col0, 53 FROM tab2
----
46
53
64
53
75
53

query I rowsort
SELECT DISTINCT - 42 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL 41 + + 89 AS col0 FROM tab0 cor0 WHERE + col0 <= ( NULL )
----

query II rowsort
SELECT ALL col0 AS col0, col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 72 + + col1 ) BETWEEN ( 58 / col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 43 ) <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 + - col0 + + 3 col0 FROM tab2 AS cor0
----
-120
-138
-149

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT + 76 AS col0, COUNT( * ) FROM tab0 AS cor0
----
76
3

skipif mysql # not compatible
query II rowsort label-5000
SELECT + 76 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
76
3

query I rowsort
SELECT + - 8 + - + ( - col0 ) FROM tab1 AS cor0
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ( - COUNT( * ) ) + 54 + - 26 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5002
SELECT ( - COUNT ( * ) ) + 54 + - 26 FROM tab2 AS cor0
----
25

query I rowsort
SELECT - 79 + col0 FROM tab2
----
-15
-33
-4

query I rowsort
SELECT ALL ( col2 ) + - - col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT DISTINCT 67 + COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT 67 + COUNT ( * ) FROM tab2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 71 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 71 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT - col1 + - CAST( - 10 AS SIGNED ) + + + col0 * - col0 FROM tab1
----
-2605
-7220
-8318

skipif mysql # not compatible
query I rowsort label-5007
SELECT - col1 + - CAST ( - 10 AS INTEGER ) + + + col0 * - col0 FROM tab1
----
-2605
-7220
-8318

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT + col1 + - + 40 DIV - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + col1 + - + 40 / - col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE ( + ( col2 ) NOT BETWEEN 42 + - col2 AND ( col1 + col0 * col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 55 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL + 23 + 70 AS col0 FROM tab0 WHERE ( + ( CAST( NULL AS SIGNED ) ) + + 36 ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + 23 + 70 AS col0 FROM tab0 WHERE ( + ( CAST ( NULL AS INTEGER ) ) + + 36 ) <> ( NULL )
----

query I rowsort
SELECT col1 - + col2 + + - col1 * - + col1 FROM tab2
----
2629
4498
5966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT 18 * col1 * + - col2 - + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT 18 * col1 * + - col2 - + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 86 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col0 FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - + MIN( + col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5017
SELECT - + MIN ( + col0 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT 86 FROM tab1 AS cor0 WHERE NOT NULL <> ( - 18 / - 29 * - col0 )
----

query I rowsort
SELECT 53 * 91 FROM tab2 AS cor0
----
4823
4823
4823

query I rowsort
SELECT ALL - - 83 * - 95 * + + 60 FROM tab2 AS cor0
----
-473100
-473100
-473100

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT ALL - col0 DIV + 38 FROM tab1 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - col0 / + 38 FROM tab1 cor0
----
-1
-2
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 89
----

query I rowsort
SELECT DISTINCT - 63 * + col0 * 42 * 55 AS col0 FROM tab1 AS cor0
----
-12370050
-13243230
-7422030

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 87 NOT BETWEEN - - 6 AND + 74
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + - ( COUNT( + col2 ) ) * 6 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + - ( COUNT ( + col2 ) ) * 6 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT DISTINCT col1 * col2 / - CAST( NULL AS SIGNED ) + - col0 * - 51 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT col1 * col2 / - CAST ( NULL AS INTEGER ) + - col0 * - 51 AS col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - col0 col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT ALL COUNT( * ) col1, ( 42 ) * - 29 * - COUNT( * ) col1 FROM tab2
----
3
3654

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5029
SELECT ALL COUNT ( * ) col1, ( 42 ) * - 29 * - COUNT ( * ) col1 FROM tab2
----
3
3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5030
SELECT ALL 58 DIV 81 * MIN( ALL + - col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL 58 / 81 * MIN ( ALL + - col2 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5031
SELECT DISTINCT COUNT( * ) DIV SUM( DISTINCT 6 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT COUNT ( * ) / SUM ( DISTINCT 6 ) FROM tab0
----
0

query I rowsort
SELECT ALL + col2 * + 72 * - - 24 FROM tab2
----
100224
39744
69120

query II rowsort
SELECT DISTINCT col1 AS col1, 0 AS col2 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT MAX( - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT MAX ( - col1 ) AS col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - ( COUNT( ALL col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5035
SELECT - ( COUNT ( ALL col2 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( DISTINCT - 69 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( DISTINCT - 69 ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( DISTINCT + col0 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col2, - ( + ( + - 39 ) ) + 65 FROM tab0 AS cor0
----
10
104
47
104
99
104

query II rowsort
SELECT - col2 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT - COUNT( DISTINCT + + col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE ( - + 95 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN col2 * - 69 * col1 AND + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 3 > NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) + col1 AS col1 FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 + - - col0 * col0, ( - ( + 56 ) ) * + - col0 col0 FROM tab0 AS cor0
----
306
840
7590
4872
9410
5432

query I rowsort
SELECT - col1 * - 4 AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
324
4
84

query III rowsort
SELECT * FROM tab2 WHERE ( + 58 + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 47 ) AS col1 FROM tab0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL

query I rowsort
SELECT + + 51 + 40 - 70 AS col1 FROM tab1 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-5051
SELECT DISTINCT + 13 AS col0, ( COUNT( + col0 ) ) AS col2, - 49 col0 FROM tab2
----
13
3
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5051
SELECT DISTINCT + 13 AS col0, ( COUNT ( + col0 ) ) AS col2, - 49 col0 FROM tab2
----
13
3
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, - 60 col2 FROM tab2
----
51
-60
67
-60
77
-60

query I rowsort
SELECT - ( - col2 ) FROM tab1 WHERE NULL <= + - 41
----

query I rowsort
SELECT + col1 - 66 + + 29 AS col1 FROM tab1
----
-23
-32
10

query I rowsort
SELECT DISTINCT + 65 * col1 FROM tab0
----
1365
5265
65

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab1 AS cor0 WHERE - col2 NOT IN ( - col0 ) AND NOT ( 78 * - col0 ) NOT IN ( - 1 + col2 )
----

query I rowsort
SELECT ALL + 76 + + col1 FROM tab0 AS cor0
----
157
77
97

query I rowsort
SELECT DISTINCT 37 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
37

query I rowsort
SELECT DISTINCT - - 14 + - - col1 FROM tab0 AS cor0
----
15
35
95

query I rowsort
SELECT + col2 + - ( + col0 ) AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL + MAX( ALL - 79 ) FROM tab2, tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL + MAX ( ALL - 79 ) FROM tab2, tab0 AS cor0
----
-79

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query II rowsort
SELECT ALL + - col2 * ( col1 ) + + col2 + - + 32 AS col1, col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1280
-1344
-268
-295
-3160
-3196

query I rowsort
SELECT ALL - col0 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col1 AS col1, + 80 + + 26 * - + 25, col0 col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT + COUNT( * ) * - 51 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + COUNT ( * ) * - 51 FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT MAX( ALL + + 88 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT MAX ( ALL + + 88 ) FROM tab1 AS cor0
----
88

query II rowsort
SELECT - ( col0 ) AS col2, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - 77 * + - COUNT( + + col1 ) col0 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5069
SELECT - 77 * + - COUNT ( + + col1 ) col0 FROM tab0 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT ALL + + 56 * COUNT( * ) FROM tab1 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + + 56 * COUNT ( * ) FROM tab1 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT + 0 * + - 54 * - ( COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 0 * + - 54 * - ( COUNT ( * ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 47 * - col1 AS col0 FROM tab1
----
2209
235
658

onlyif mysql # DIV for integer division: 
query II rowsort label-5073
SELECT ALL col1, - col2 + col2 + + + col1 DIV - col1 FROM tab0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL col1, - col2 + col2 + + + col1 / - col1 FROM tab0
----
1
-1
21
-1
81
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5074
SELECT - COUNT( * ) AS col0, + MAX( ALL + 54 ) AS col1 FROM tab0
----
-3
54

skipif mysql # not compatible
query II rowsort label-5074
SELECT - COUNT ( * ) AS col0, + MAX ( ALL + 54 ) AS col1 FROM tab0
----
-3
54

query II rowsort
SELECT 20, - col0 AS col2 FROM tab1
----
20
-51
20
-85
20
-91

query I rowsort
SELECT ALL col1 * + + 35 AS col2 FROM tab1
----
1645
175
490

query II rowsort
SELECT 40, 57 FROM tab2 WHERE NOT 73 + + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5078
SELECT DISTINCT - + CAST( + + 69 AS DECIMAL ) + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + col2 + CAST( NULL AS SIGNED ), - 23 - + 42 )
----

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT - + CAST ( + + 69 AS REAL ) + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( + col2 + CAST ( NULL AS INTEGER ), - 23 - + 42 )
----

query I rowsort
SELECT ALL + col2 * + - 17 FROM tab2 AS cor0
----
-391
-680
-986

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - - col1 <> + - col2 * + col0 + + ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT ALL + - 61 + 66 DIV col2 + + 53 FROM tab0 AS cor0
----
-2
-7
-8

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + - 61 + 66 / col2 + + 53 FROM tab0 AS cor0
----
-2
-7
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT col2 * - 43 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT col2 * - 43 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 * - 11 BETWEEN ( NULL ) AND + col0 + 12 * - col0 * + 70 * - 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5084
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1, - col1 + + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5084
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1, - col1 + + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 85 * - - col1 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT + + 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query II rowsort
SELECT + col2 AS col0, + 4 + - 6 AS col0 FROM tab2 WHERE - - col1 <> NULL
----

query I rowsort
SELECT + 2 FROM tab0 WHERE - + 36 BETWEEN + col1 AND - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 85 AS col1, + col1 col2 FROM tab0 AS cor0
----
85
1
85
21
85
81

query I rowsort
SELECT + 75 * - col2 FROM tab2 AS cor0
----
-1725
-3000
-4350

query I rowsort
SELECT DISTINCT - + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL col1 * - 53 * + - col2 FROM tab2 AS cor0
----
163240
205958
62169

query I rowsort
SELECT DISTINCT + 68 + - col1 FROM tab1 AS cor0
----
21
54
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL - COUNT( * ) + MAX( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - COUNT ( * ) + MAX ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT DISTINCT 67 + - col0 - + 77 + + col0 + - col0 * - CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT 67 + - col0 - + 77 + + col0 + - col0 * - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT + 80 * - CAST( - MAX( DISTINCT 14 ) AS SIGNED ) FROM tab0 cor0 WHERE - col1 + + 33 IS NOT NULL
----
1120

skipif mysql # not compatible
query I rowsort label-5097
SELECT + 80 * - CAST ( - MAX ( DISTINCT 14 ) AS INTEGER ) FROM tab0 cor0 WHERE - col1 + + 33 IS NOT NULL
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL COUNT( * ) + 29 AS col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL COUNT ( * ) + 29 AS col1 FROM tab0 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab0 WHERE - 59 IS NULL
----

query I rowsort
SELECT 72 * col1 FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT ( + COUNT( * ) ) AS col1, 57 + - COUNT( * ) + - - 10 * + COUNT( * ) AS col1 FROM tab0
----
3
84

skipif mysql # not compatible
query II rowsort label-5101
SELECT ( + COUNT ( * ) ) AS col1, 57 + - COUNT ( * ) + - - 10 * + COUNT ( * ) AS col1 FROM tab0
----
3
84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT 20 BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 20 BETWEEN NULL AND col2
----
0

query I rowsort
SELECT 21 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL - 55 * + col0 AS col2 FROM tab0 AS cor0
----
-4785
-5335
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT DISTINCT + 92 * 5 + + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * + 62 IS NULL
----
457

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + 92 * 5 + + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * + 62 IS NULL
----
457

query I rowsort
SELECT + col2 * + - col0 * - 78 FROM tab0
----
54990
67860
749034

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - + col0 + - - 89
----

query I rowsort
SELECT - 17 * + + col1 FROM tab0
----
-1377
-17
-357

onlyif mysql # DIV for integer division: 
query II rowsort label-5111
SELECT col2 DIV + - 98 col2, - 31 FROM tab0
----
-1
-31
0
-31
0
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5111
SELECT col2 / + - 98 col2, - 31 FROM tab0
----
-1
-31
0
-31
0
-31

query I rowsort
SELECT + col2 * + + col1 AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL 31 * - + col0 FROM tab1
----
-1581
-2635
-2821

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 17 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - 83 + MAX( DISTINCT col1 ) + ( + COUNT( * ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5116
SELECT - 83 + MAX ( DISTINCT col1 ) + ( + COUNT ( * ) ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT col1 + + - CAST( NULL AS SIGNED ) + - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT col1 + + - CAST ( NULL AS INTEGER ) + - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 43 ) * col0 * - col0 + - 76 FROM tab2 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT + - MAX( ALL + - col2 ) + SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-5119
SELECT + - MAX ( ALL + - col2 ) + SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE col0 * + col0 IS NULL
----

query I rowsort
SELECT ALL - - 34 * - 69 FROM tab1 cor0
----
-2346
-2346
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT MAX( ALL 21 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT MAX ( ALL 21 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL + 50 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL + 50 / + col1 AS col1 FROM tab1 AS cor0
----
1
10
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col0 * - 63 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 39 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT MIN( - - col2 ) FROM tab2 AS cor0 WHERE NOT - col0 + + col2 + - + 35 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT MIN ( - - col2 ) FROM tab2 AS cor0 WHERE NOT - col0 + + col2 + - + 35 <> NULL
----
NULL

query I rowsort
SELECT ALL col1 * + 71 + - col0 FROM tab1
----
270
3246
943

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL 70 - - + SUM( ALL + col1 ) FROM tab0
----
173

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL 70 - - + SUM ( ALL + col1 ) FROM tab0
----
173

query I rowsort
SELECT DISTINCT + 65 - + 3 FROM tab2
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-5130
SELECT + col2 - 67 DIV 55 - col1 AS col1, + col0 * - 52 AS col2 FROM tab0
----
-12
-4524
-35
-780
97
-5044

skipif mysql # not compatible
query II rowsort label-5130
SELECT + col2 - 67 / 55 - col1 AS col1, + col0 * - 52 AS col2 FROM tab0
----
-12
-4524
-35
-780
97
-5044

query I rowsort
SELECT + 90 - col0 FROM tab0
----
-7
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT MAX( DISTINCT - col2 ) - + + 2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5132
SELECT MAX ( DISTINCT - col2 ) - + + 2 FROM tab0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5133
SELECT ALL - col2 - - - CAST( - 93 AS SIGNED ) FROM tab1
----
-3
25
34

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - col2 - - - CAST ( - 93 AS INTEGER ) FROM tab1
----
-3
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT MAX( - + 28 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5134
SELECT MAX ( - + 28 ) FROM tab1 AS cor0
----
-28

query II rowsort
SELECT ALL + col1 AS col0, col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1
97
21
87
81
15

query I rowsort
SELECT + 79 * + 32 FROM tab1 AS cor0
----
2528
2528
2528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT DISTINCT - CAST( 83 AS SIGNED ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT - CAST ( 83 AS INTEGER ) FROM tab2 AS cor0
----
-83

query I rowsort
SELECT DISTINCT - ( + 26 ) AS col0 FROM tab1 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - SUM( ALL + + 8 ) AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5141
SELECT - SUM ( ALL + + 8 ) AS col2 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 <= - ( - col1 ) + + col1 + + - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 WHERE 21 > - col0 * + + col0
----
3

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 WHERE 21 > - col0 * + + col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5145
SELECT DISTINCT COUNT( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT COUNT ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT col0 * - - 76 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT ALL 28 * 91 AS col1 FROM tab2
----
2548
2548
2548

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT + ( COUNT( - - col2 ) ) + - + ( - - COUNT( - - 86 ) ) + - MIN( ALL - 11 ) AS col1, + ( - 35 ) * + - 69 FROM tab2 WHERE NOT + 52 * - + col1 IN ( + col2 )
----
11
2415

skipif mysql # not compatible
query II rowsort label-5148
SELECT + ( COUNT ( - - col2 ) ) + - + ( - - COUNT ( - - 86 ) ) + - MIN ( ALL - 11 ) AS col1, + ( - 35 ) * + - 69 FROM tab2 WHERE NOT + 52 * - + col1 IN ( + col2 )
----
11
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT COUNT( * ) + - MIN( ALL + col0 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5149
SELECT COUNT ( * ) + - MIN ( ALL + col0 ) FROM tab0
----
-12

query I rowsort
SELECT ALL + col1 * + - ( - col0 ) * - - 83 FROM tab0
----
100845
151641
8051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col0 + + ( + - col2 ) FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 + - col1 col0 FROM tab2 AS cor0
----
12
2
28

query I rowsort
SELECT + ( - 42 ) - - 65 * - + 71 + + ( - col1 ) + col1 FROM tab1 AS cor0
----
-4657
-4657
-4657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + col1 col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5157
SELECT - 33 + + CAST( col2 AS SIGNED ) + + - col2 AS col0, col1 * - + ( - CAST( + + 11 AS SIGNED ) ) * 82 AS col0 FROM tab2 AS cor0
----
-33
46002
-33
60434
-33
69454

skipif mysql # not compatible
query II rowsort label-5157
SELECT - 33 + + CAST ( col2 AS INTEGER ) + + - col2 AS col0, col1 * - + ( - CAST ( + + 11 AS INTEGER ) ) * 82 AS col0 FROM tab2 AS cor0
----
-33
46002
-33
60434
-33
69454

query I rowsort
SELECT ALL 0 * + col0 * col2 + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5159
SELECT * FROM tab2 WHERE + - col1 * - - ( + 70 ) - 30 > + CAST( + col0 AS SIGNED ) * - col0
----
75
67
58

skipif mysql # not compatible
query III rowsort label-5159
SELECT * FROM tab2 WHERE + - col1 * - - ( + 70 ) - 30 > + CAST ( + col0 AS INTEGER ) * - col0
----
75
67
58

query III rowsort
SELECT * FROM tab2 WHERE + - col1 = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col2 FROM tab1 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5162
SELECT DISTINCT ( - col2 ) + - CAST( + + 21 AS SIGNED ) * + col0 + - + col2 * - col1 AS col1 FROM tab2
----
1696
184
2253

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT ( - col2 ) + - CAST ( + + 21 AS INTEGER ) * + col0 + - + col2 * - col1 AS col1 FROM tab2
----
1696
184
2253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 21 ) col2 FROM tab1 cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 40 * + col2 FROM tab0 AS cor0 WHERE - col1 * - col1 - - col0 IS NOT NULL
----
1880
3960
400

query I rowsort
SELECT - + col0 * - col0 * + col0 FROM tab0 AS cor0
----
3375
658503
912673

query II rowsort
SELECT col2 AS col0, + 64 FROM tab1 AS cor0
----
59
64
68
64
96
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + + CAST( NULL AS SIGNED ) * + 51 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * + 51 AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 50 * - col0 * col2 AS col1, - 85 col0 FROM tab0 AS cor0
----
-35250
-85
-43500
-85
-480150
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col2 NOT BETWEEN + col1 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 80 + 10 FROM tab2 AS cor0 WHERE ( 1 ) NOT BETWEEN col2 * - col2 AND col2
----

query II rowsort
SELECT - - col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 96 + - 70 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ( - 79 ) + + col0 + col2 AS col1, 11 AS col2 FROM tab2 AS cor0
----
-10
11
25
11
54
11

query II rowsort
SELECT DISTINCT 27, 6 * + col0 AS col1 FROM tab1 AS cor0
----
27
306
27
510
27
546

query I rowsort
SELECT DISTINCT - - 26 + - 2 FROM tab0 cor0
----
24

query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT col1 + CAST( + 91 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
142
158
168

skipif mysql # not compatible
query I rowsort label-5178
SELECT col1 + CAST ( + 91 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
142
158
168

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 22 IS NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 20 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + col1 ) + - - col0 AS col2 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT COUNT( * ) * + 23 * + + 78 AS col0 FROM tab0
----
5382

skipif mysql # not compatible
query I rowsort label-5183
SELECT COUNT ( * ) * + 23 * + + 78 AS col0 FROM tab0
----
5382

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NULL BETWEEN + ( + - col0 ) - + - col2 AND + col1
----

query I rowsort
SELECT col2 * - ( - - col1 ) * col0 AS col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL 38 + + 76 + + + 87 FROM tab0
----
201
201
201

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT DISTINCT MIN( ALL + col1 ) + 78 AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT MIN ( ALL + col1 ) + 78 AS col0 FROM tab2
----
129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL - COUNT( * ) * 79 * 46 FROM tab2
----
-10902

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL - COUNT ( * ) * 79 * 46 FROM tab2
----
-10902

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL - - ( + COUNT( - col0 ) ) * - 84 * 79 - - 19 + - 45 AS col0 FROM tab0 AS cor0
----
-19934

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - - ( + COUNT ( - col0 ) ) * - 84 * 79 - - 19 + - 45 AS col0 FROM tab0 AS cor0
----
-19934

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT - + col2 + - col1 DIV col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5191
SELECT - + col2 + - col1 / col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT + COUNT( + + col2 ) FROM tab1 AS cor0 WHERE - 33 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT + COUNT ( + + col2 ) FROM tab1 AS cor0 WHERE - 33 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - col1 / + + col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - col1 / + + col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT ALL - 5 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - 5 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 = + + col2
----

query I rowsort
SELECT col0 * 22 AS col0 FROM tab2 AS cor0
----
1012
1408
1650

query I rowsort
SELECT ALL col2 * + + 59 * - - col1 AS col2 FROM tab0 AS cor0
----
12390
224613
5841

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col1 col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT 63 * 19 AS col1 FROM tab2
----
1197

query I rowsort
SELECT ALL + col2 * - + 91 * + 69 AS col2 FROM tab0
----
-295113
-621621
-62790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT DISTINCT 30 * + CAST( CAST( COUNT( + 60 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT 30 * + CAST ( CAST ( COUNT ( + 60 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
90

query I rowsort
SELECT - 33 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT + COUNT( DISTINCT col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5204
SELECT + COUNT ( DISTINCT col2 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT DISTINCT + col2 * col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT + col2 * col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) * col0 * col0 + + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL col1 * ( - col0 ) * CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL col1 * ( - col0 ) * CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 * + 62 + - col1 AS col1 FROM tab0 AS cor0
----
1407
1467
1487

query I rowsort
SELECT - 70 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL - COUNT( + - col2 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5210
SELECT ALL - COUNT ( + - col2 ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL - - 40 * + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
360

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL - - 40 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
360

query I rowsort
SELECT DISTINCT col1 + + 20 + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5213
SELECT DISTINCT COUNT( * ) AS col0, - 76 FROM tab1
----
3
-76

skipif mysql # not compatible
query II rowsort label-5213
SELECT DISTINCT COUNT ( * ) AS col0, - 76 FROM tab1
----
3
-76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col2 / - 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL + SUM( ALL + 44 ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + SUM ( ALL + 44 ) FROM tab2 AS cor0
----
132

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND 69
----

query I rowsort
SELECT 38 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 - - col1 * + col2 + 58 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT DISTINCT + MAX( DISTINCT - 65 ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT + MAX ( DISTINCT - 65 ) FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT col2 + - 77 FROM tab0 AS cor0
----
-30
-67
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT COUNT( * ) + + MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT COUNT ( * ) + + MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL col2 + + - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT DISTINCT ( CAST( + COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT ( CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 16 * + - ( - + col1 ) + col1 - col1 FROM tab1
----
224
752
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT ALL - col0 DIV + - ( + - col1 ) + + col2 AS col0 FROM tab2
----
23
40
57

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - col0 / + - ( + - col1 ) + + col2 AS col0 FROM tab2
----
23
40
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 WHERE NULL <> + - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5225
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 WHERE NULL <> + - col1
----
0

query I rowsort
SELECT ALL + 93 + + 7 FROM tab1
----
100
100
100

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NULL = + - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL - MAX( ALL + ( col1 ) ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - MAX ( ALL + ( col1 ) ) AS col1 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL - MIN( - + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - MIN ( - + col0 ) FROM tab0 cor0
----
97

query I rowsort
SELECT 81 + + col0 FROM tab1 cor0
----
132
166
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL - - 20 + + MIN( - 13 ) AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL - - 20 + + MIN ( - 13 ) AS col1 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT ALL COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT ALL COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 30 ) col1 FROM tab0, tab0 AS cor0
----
30

query I rowsort
SELECT ALL - ( col2 ) - 2 AS col1 FROM tab0 AS cor0
----
-101
-12
-49

query I rowsort
SELECT DISTINCT + 18 * ( col2 ) AS col1 FROM tab1 cor0
----
1062
1224
1728

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
14
47
5

query I rowsort
SELECT - ( + 77 ) * - 54 FROM tab2 AS cor0
----
4158
4158
4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT DISTINCT - + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5239
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( col0 ) IS NULL
----
3

query I rowsort
SELECT ALL col1 * - col0 + - 52 + - + col1 + + col1 * - col2 FROM tab2 AS cor0
----
-3622
-8137
-9030

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT - 73 DIV - col0 + ( - - col1 ) FROM tab2 AS cor0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-5241
SELECT - 73 / - col0 + ( - - col1 ) FROM tab2 AS cor0
----
52
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - MIN( - - 31 ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-5242
SELECT - MIN ( - - 31 ) FROM tab2
----
-31

query II rowsort
SELECT DISTINCT + 41, col1 + + col1 + - + 54 AS col1 FROM tab1
----
41
-26
41
-44
41
40

query II rowsort
SELECT ALL - col2 AS col2, + ( + + 9 ) AS col0 FROM tab0
----
-10
9
-47
9
-99
9

query I rowsort
SELECT ALL col1 * - + 64 AS col1 FROM tab2
----
-3264
-4288
-4928

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 < - 39 + + col0 AND NOT NULL BETWEEN ( NULL ) AND + 58
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= NULL AND NOT + col0 > col1 - - + col2
----

query I rowsort
SELECT ( + 66 ) AS col2 FROM tab0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL - COUNT( - 20 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - COUNT ( - 20 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT MIN( DISTINCT + 26 ) FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-5250
SELECT MIN ( DISTINCT + 26 ) FROM tab0 cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5251
SELECT DISTINCT col0 AS col1, CAST( - 69 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
-69
87
-69
97
-69

skipif mysql # not compatible
query II rowsort label-5251
SELECT DISTINCT col0 AS col1, CAST ( - 69 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
-69
87
-69
97
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 70 > 52 / - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5253
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT ( - + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + 70 + - - col1 AS col0 FROM tab1 cor0
----
117
75
84

onlyif mysql # DIV for integer division: 
query II rowsort label-5256
SELECT + 72 + + col1 AS col0, col2 DIV - 23 AS col0 FROM tab2 AS cor0
----
123
-1
139
-2
149
-1

skipif mysql # not compatible
query II rowsort label-5256
SELECT + 72 + + col1 AS col0, col2 / - 23 AS col0 FROM tab2 AS cor0
----
123
-1
139
-2
149
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE 97 / - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL 55 + + COUNT( * ) + + 92 AS col0 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL 55 + + COUNT ( * ) + + 92 AS col0 FROM tab2 AS cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT DISTINCT - COUNT( * ) * 40 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT - COUNT ( * ) * 40 FROM tab0 AS cor0
----
-120

query I rowsort
SELECT - col1 * + 54 FROM tab1 cor0
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT ALL + COUNT( * ) - 91 AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL + COUNT ( * ) - 91 AS col1 FROM tab1
----
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5262
SELECT ALL 46 DIV - - CAST( + - col1 AS SIGNED ) * - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL 46 / - - CAST ( + - col1 AS INTEGER ) * - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT MIN( ALL - col0 ) - - 77 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5263
SELECT MIN ( ALL - col0 ) - - 77 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT ALL - - 31 AS col1 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + 51 + + - col2 FROM tab0 AS cor0
----
-48
4
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT 94 + - SUM( col1 ) FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-5266
SELECT 94 + - SUM ( col1 ) FROM tab2 AS cor0
----
-101

query I rowsort
SELECT ALL 84 + + - col1 FROM tab2 AS cor0
----
17
33
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT + - 98 + + + MIN( 24 ) AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT + - 98 + + + MIN ( 24 ) AS col0 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5270
SELECT CAST( NULL AS SIGNED ) * MAX( - col0 ) + + AVG ( DISTINCT - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5270
SELECT CAST ( NULL AS INTEGER ) * MAX ( - col0 ) + + AVG ( DISTINCT - col2 ) FROM tab0
----
NULL

query I rowsort
SELECT + 97 + - + 38 FROM tab2
----
59
59
59

query I rowsort
SELECT - 71 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT DISTINCT col0 DIV + + 37 - + 61 * - col0 col2 FROM tab2
----
2807
3905
4577

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5273
SELECT DISTINCT col0 / + + 37 - + 61 * - col0 col2 FROM tab2
----
2807
3905
4577

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + ( + COUNT( * ) ) * - COUNT( * ) * 65 AS col2 FROM tab0
----
-585

skipif mysql # not compatible
query I rowsort label-5274
SELECT + ( + COUNT ( * ) ) * - COUNT ( * ) * 65 AS col2 FROM tab0
----
-585

query I rowsort
SELECT - 7 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT ALL + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5277
SELECT col0 col2, + col2 + col1 DIV - 98 FROM tab0 AS cor0
----
15
47
87
10
97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5277
SELECT col0 col2, + col2 + col1 / - 98 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT + - COUNT( + 82 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5279
SELECT + - COUNT ( + 82 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5280
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL > + + col0 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5280
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL > + + col0 - - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT col2, + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 67 * 60 AS col2, 22 AS col1 FROM tab1 AS cor0
----
4020
22
4020
22
4020
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT MAX( - - 6 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT MAX ( - - 6 ) AS col1 FROM tab1
----
6

query I rowsort
SELECT - 21 * - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1071
1407
1617

query I rowsort
SELECT ALL + col2 * - 30 * col1 FROM tab1
----
-40320
-8850
-95880

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col0 + + + col2 AND - 71
----

query I rowsort
SELECT ALL col0 * + + col0 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT + + 29 FROM tab1 AS cor0 WHERE NOT - 99 * 8 IS NULL
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + ( + 89 ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-5289
SELECT + ( + 89 ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + + MAX( 66 ) AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5290
SELECT + + MAX ( 66 ) AS col0 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL - CAST( NULL AS SIGNED ) + - + 37 * + CAST( NULL AS SIGNED ) * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 37 * + CAST ( NULL AS INTEGER ) * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5292
SELECT * FROM tab0 WHERE NULL >= col1 * - + col2 * + + col0 + + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5292
SELECT * FROM tab0 WHERE NULL >= col1 * - + col2 * + + col0 + + CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT 70 * - MAX( - 33 ) * COUNT( * ) * ( - 91 ) FROM tab0
----
-630630

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT 70 * - MAX ( - 33 ) * COUNT ( * ) * ( - 91 ) FROM tab0
----
-630630

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT COUNT( * ) AS col0 FROM tab0 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5294
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL IS NULL )
----
3

query I rowsort
SELECT - ( - - 79 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab2 WHERE NOT - col2 = col0 - 97 + + + col2 * - col1 + col2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col1 * - col2, col2 col0 FROM tab2 AS cor0
----
197120
40
291450
58
53958
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> 32
----

query I rowsort
SELECT - col2 * + - 8 AS col2 FROM tab2 cor0
----
184
320
464

query I rowsort
SELECT col1 - + + 34 * - - col2 - + ( + 32 ) FROM tab1 cor0
----
-2033
-2297
-3282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT + + CAST( NULL AS SIGNED ) + + - COUNT( * ) - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + 80 FROM tab1 AS cor0
----
-16
12
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT ALL - 74 + CAST( NULL AS SIGNED ) * + 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL - 74 + CAST ( NULL AS INTEGER ) * + 23 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 + + + col2 col2 FROM tab1 AS cor0
----
118
127
155

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NULL AND NOT col1 <> NULL
----

query I rowsort
SELECT DISTINCT + 71 - + 45 - - col1 AS col0 FROM tab1
----
31
40
73

query I rowsort
SELECT ALL 43 - - + 96 + col1 FROM tab1
----
144
153
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT COUNT( * ) * + 61 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-5308
SELECT COUNT ( * ) * + 61 FROM tab2 AS cor0
----
183

query I rowsort
SELECT - col2 - + ( col0 ) FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5310
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) * - 87 + col2 <> col0 * - CAST( + + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5310
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) * - 87 + col2 <> col0 * - CAST ( + + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT + - col1 DIV col2 - col1 + 45 + 60 * + col1 FROM tab2 AS cor0
----
3052
3997
4587

skipif mysql # not compatible
query I rowsort label-5311
SELECT + - col1 / col2 - col1 + 45 + 60 * + col1 FROM tab2 AS cor0
----
3052
3997
4587

query I rowsort
SELECT - - ( + col1 ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 91 / - - col2 + col0 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT + + SUM( DISTINCT - - ( + col0 ) ) * - - 62 FROM tab2 AS cor0
----
11470

skipif mysql # not compatible
query I rowsort label-5314
SELECT + + SUM ( DISTINCT - - ( + col0 ) ) * - - 62 FROM tab2 AS cor0
----
11470

query II rowsort
SELECT DISTINCT col2, - col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT MAX( ALL - col1 ) * - 51 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT MAX ( ALL - col1 ) * - 51 FROM tab0
----
51

query I rowsort
SELECT 53 * + 35 FROM tab0
----
1855
1855
1855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 80 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT - ( + - 52 ) + COUNT( * ) AS col0 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-5320
SELECT - ( + - 52 ) + COUNT ( * ) AS col0 FROM tab0
----
55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 6 * - - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT DISTINCT - - SUM( ALL + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT - - SUM ( ALL + - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT col1 * col0 / - col1 AS col1 FROM tab0 AS cor0 WHERE 60 / + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 63 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + col0 * 16 FROM tab2 cor0
----
1125
690
960

query I rowsort
SELECT DISTINCT + 90 * + - col0 + + ( - col0 ) + + + 3 FROM tab0 cor0
----
-1362
-7914
-8824

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT 37 * COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-5327
SELECT 37 * COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
111

query I rowsort
SELECT DISTINCT + col0 - + - col1 AS col2 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5329
SELECT col1 - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT col1 - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5330
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5330
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - + - col0 + + + col0 FROM tab1
----
153
255
273

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT ALL col1 DIV col2 - + col0 + - col1 col0 FROM tab0
----
-106
-95
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5332
SELECT ALL col1 / col2 - + col0 + - col1 col0 FROM tab0
----
-106
-95
-98

query I rowsort
SELECT col0 - + 49 FROM tab2
----
-3
15
26

query I rowsort
SELECT + - col0 AS col0 FROM tab2 cor0 WHERE col1 * - col2 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT DISTINCT + SUM( + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + SUM ( + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156

query I rowsort
SELECT ALL - col1 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

onlyif mysql # DIV for integer division: 
query II rowsort label-5337
SELECT col0 DIV - + 85 + + col2 AS col0, - 18 AS col1 FROM tab2 cor0
----
23
-18
40
-18
58
-18

skipif mysql # not compatible
query II rowsort label-5337
SELECT col0 / - + 85 + + col2 AS col0, - 18 AS col1 FROM tab2 cor0
----
23
-18
40
-18
58
-18

query I rowsort
SELECT DISTINCT - 24 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-24

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col2 = NULL
----

query I rowsort
SELECT ALL - - ( + 17 ) AS col2 FROM tab1 AS cor0
----
17
17
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 8 <> - 34
----

query I rowsort
SELECT ALL + col0 * - col1 - + 87 AS col2 FROM tab0 AS cor0 WHERE + 28 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 < - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT DISTINCT - COUNT( * ) DIV 81 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT - COUNT ( * ) / 81 AS col1 FROM tab1
----
0

query I rowsort
SELECT 43 * - col1 AS col1 FROM tab1
----
-2021
-215
-602

query I rowsort
SELECT ALL + 4 + + 90 AS col1 FROM tab1
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT 92 * - + MIN( DISTINCT - - col0 ) col2 FROM tab2
----
-4232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5347
SELECT 92 * - + MIN ( DISTINCT - - col0 ) col2 FROM tab2
----
-4232

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 AS col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - MAX( - 90 ) AS col2 FROM tab2 WHERE NOT + 22 * + - 19 * - ( + - col1 ) * + + 68 IS NULL
----
90

skipif mysql # not compatible
query I rowsort label-5349
SELECT - MAX ( - 90 ) AS col2 FROM tab2 WHERE NOT + 22 * + - 19 * - ( + - col1 ) * + + 68 IS NULL
----
90

query II rowsort
SELECT - col1, - col0 AS col1 FROM tab2
----
-51
-46
-67
-75
-77
-64

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 45 AND + + 30
----

query I rowsort
SELECT + - 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 - - col0 AS col0 FROM tab2 AS cor0
----
23
92
40
128
58
150

query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + - col1 col2 FROM tab0 AS cor0
----
-66
66
96

query II rowsort
SELECT + 90 + + - 36 AS col1, col1 FROM tab1 AS cor0
----
54
14
54
47
54
5

query I rowsort
SELECT ALL + + col0 * - - 64 FROM tab0 AS cor0
----
5568
6208
960

query I rowsort
SELECT 97 + - - col2 + - col1 * + col0 FROM tab0 cor0
----
-1071
-1720
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - + col0 - col0 / 80 * + col2 + - col0 + - col2 - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT ALL col2 - - 39 DIV 68 + + + col1 + 37 + - col2 AS col1 FROM tab0
----
118
38
58

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL col2 - - 39 / 68 + + + col1 + 37 + - col2 AS col1 FROM tab0
----
118
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT 57 + SUM( - col0 ) * + - 90 AS col1 FROM tab0
----
17967

skipif mysql # not compatible
query I rowsort label-5361
SELECT 57 + SUM ( - col0 ) * + - 90 AS col1 FROM tab0
----
17967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT DISTINCT 62 - CAST( + - col2 AS SIGNED ) + col1 * col0 AS col0 FROM tab2
----
2431
5030
5145

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT 62 - CAST ( + - col2 AS INTEGER ) + col1 * col0 AS col0 FROM tab2
----
2431
5030
5145

query I rowsort
SELECT ALL col2 - 91 FROM tab1
----
-23
-32
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5364
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - + col0 + + 52 * - + 96 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + CAST ( NULL AS REAL ) - + col0 + + 52 * - + 96 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - 8 + + 45 + + col2 / - - col0 + + 76 + - - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL COUNT( * ) - - COUNT( * ) + + 26 AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL COUNT ( * ) - - COUNT ( * ) + + 26 AS col2 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5367
SELECT SUM( ALL - 25 ), - MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
-75
-46

skipif mysql # not compatible
query II rowsort label-5367
SELECT SUM ( ALL - 25 ), - MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
-75
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT - - MIN( DISTINCT - 43 ) * COUNT( * ) FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - - MIN ( DISTINCT - 43 ) * COUNT ( * ) FROM tab0 AS cor0
----
-129

query I rowsort
SELECT DISTINCT col0 / - - col1 FROM tab1 AS cor0 WHERE - col0 > + 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5370
SELECT ALL - - CAST( + + COUNT( * ) AS SIGNED ) DIV ( + COUNT( * ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - - CAST ( + + COUNT ( * ) AS INTEGER ) / ( + COUNT ( * ) ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + ( + + col2 ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + col0 * - - col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + col2 + - 7 FROM tab2 AS cor0
----
16
33
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT COUNT( * ) * MIN( DISTINCT + col0 ) + 3 + 94 FROM tab2 cor0
----
235

skipif mysql # not compatible
query I rowsort label-5374
SELECT COUNT ( * ) * MIN ( DISTINCT + col0 ) + 3 + 94 FROM tab2 cor0
----
235

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT - + 16 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - + 16 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT 41 + + col2 DIV 95 + - col1 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
139
38408
98456

skipif mysql # not compatible
query I rowsort label-5376
SELECT 41 + + col2 / 95 + - col1 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
139
38408
98456

query I rowsort
SELECT DISTINCT 62 * 72 FROM tab2 AS cor0
----
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL - - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL - - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + ( - - col2 ) + - ( col2 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - 72 * + 66 FROM tab2
----
-4752
-4752
-4752

query I rowsort
SELECT DISTINCT col2 * + - col1 * col0 AS col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # DIV for integer division: 
query II rowsort label-5382
SELECT col0 DIV - - col2, col0 FROM tab2
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-5382
SELECT col0 / - - col2, col0 FROM tab2
----
1
64
1
75
2
46

query I rowsort
SELECT + 94 + + - col0 AS col0 FROM tab2
----
19
30
48

query I rowsort
SELECT ALL + 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT col2 * + col2 - 90 + - col2 FROM tab1
----
3332
4466
9030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5386
SELECT COUNT( * ) DIV - 82 * - 30 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT COUNT ( * ) / - 82 * - 30 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5387
SELECT 40 DIV col2 col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5387
SELECT 40 / col2 col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + - 83 FROM tab1 cor0
----
-83
-83
-83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 47 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col2 ) + + 42 col0, 78 + + col2 AS col0 FROM tab0 AS cor0
----
141
177
52
88
89
125

query I rowsort
SELECT + col1 * ( + + col2 ) FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5392
SELECT * FROM tab0 AS cor0 WHERE CAST( 81 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5392
SELECT * FROM tab0 AS cor0 WHERE CAST ( 81 AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-199

skipif mysql # not compatible
query I rowsort label-5393
SELECT - SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT + 64, - 32 * - 96 * - + COUNT( * ) col2 FROM tab1 AS cor0
----
64
-9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5394
SELECT + 64, - 32 * - 96 * - + COUNT ( * ) col2 FROM tab1 AS cor0
----
64
-9216

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 87 - 56 + + col0 IS NOT NULL
----

query II rowsort
SELECT + - col0 - - col1 * - col0 AS col1, col1 FROM tab1 AS cor0
----
-4368
47
-510
5
-765
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT SUM( - - col1 ) + + - COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT SUM ( - - col1 ) + + - COUNT ( * ) FROM tab2
----
192

query I rowsort
SELECT ALL 44 - col2 + - - 49 AS col0 FROM tab0
----
-6
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT 26 - - - COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-5399
SELECT 26 - - - COUNT ( * ) FROM tab0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT DISTINCT CAST( 69 AS SIGNED ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT CAST ( 69 AS INTEGER ) FROM tab1
----
69

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 * col2 + + ( - col2 ) * + 66 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 22 + - col2 = NULL
----

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) * - col0 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT col2 * - - col2 AS col2 FROM tab0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + ( col1 ) col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL + SUM( ALL - - 47 ) FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + SUM ( ALL - - 47 ) FROM tab1 cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5408
SELECT * FROM tab2 cor0 WHERE NOT + CAST( 83 AS SIGNED ) + - col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5408
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( 83 AS INTEGER ) + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 84 AS col1 FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT + - SUM( ALL - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 51 * 92 > NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col0 * col1 * ( - col0 ) AS col2 FROM tab0
----
1476225
3337929
9409

query I rowsort
SELECT + col2 / + - col0 + + col1 AS col2 FROM tab1 WHERE ( NOT - col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 30 + col2 * - col2 + + col2, col0 col2 FROM tab1
----
-3392
85
-4526
91
-9090
51

query I rowsort
SELECT DISTINCT + col1 * - + 15 FROM tab1
----
-210
-705
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT DISTINCT 36 DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT 36 / + col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 42 AND NULL
----

query I rowsort
SELECT ALL + col1 * + 84 AS col1 FROM tab0 AS cor0
----
1764
6804
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT ALL - + col1 * + ( + col2 ) * + 88 * ( - col0 ) + ( + + col0 ) * - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2201585
25587380
6026976

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - + col1 * + ( + col2 ) * + 88 * ( - col0 ) + ( + + col0 ) * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2201585
25587380
6026976

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col2 * + col2 * + - col1 + - col1 / - 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN col2 * col0 - - 87 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( 5 ) IS NOT NULL
----

query I rowsort
SELECT + 47 + - col2 AS col0 FROM tab1 WHERE ( col2 + 88 ) IN ( col0 )
----

query I rowsort
SELECT ALL 29 / col2 + + col2 FROM tab1 WHERE NOT + 59 + 81 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT col0 DIV - 78 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT col0 / - 78 AS col0 FROM tab1
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT BETWEEN + ( + 99 ) AND 57 * 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND 69 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT 39 DIV - 3 FROM tab2
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-5429
SELECT 39 / - 3 FROM tab2
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT CAST( 99 AS SIGNED ) * col1 - col2 FROM tab2
----
5026
6575
7583

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT CAST ( 99 AS INTEGER ) * col1 - col2 FROM tab2
----
5026
6575
7583

query I rowsort
SELECT col0 + - 9 AS col2 FROM tab2
----
37
55
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT col2 DIV + 11 FROM tab2
----
2
3
5

skipif mysql # not compatible
query I rowsort label-5432
SELECT col2 / + 11 FROM tab2
----
2
3
5

query I rowsort
SELECT - 78 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + ( ( 90 ) ) * + 70 + + col1 FROM tab1
----
6305
6314
6347

query I rowsort
SELECT ALL + col1 + - col1 * 6 AS col1 FROM tab1
----
-235
-25
-70

query I rowsort
SELECT + col2 * - 19 FROM tab0
----
-1881
-190
-893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) + - 46 * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 46 * COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT - col1 * col1 + + 2 * + ( - col0 DIV - ( - col0 ) + + col2 * col0 ) FROM tab2
----
-487
-811
4209

skipif mysql # not compatible
query I rowsort label-5438
SELECT - col1 * col1 + + 2 * + ( - col0 / - ( - col0 ) + + col2 * col0 ) FROM tab2
----
-487
-811
4209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 73 col1 FROM tab2
----
-3723
-4891
-5621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT - 1 * + 20 + CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
-10
27
79

skipif mysql # not compatible
query I rowsort label-5440
SELECT - 1 * + 20 + CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
-10
27
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 40 * 0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * 81 FROM tab0
----
3807
8019
810

query I rowsort
SELECT - 28 * col2 + + col1 FROM tab1
----
-1647
-1857
-2674

query I rowsort
SELECT DISTINCT - ( col1 ) + - 67 FROM tab1
----
-114
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + MIN( + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5445
SELECT + MIN ( + col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT SUM( DISTINCT - col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5446
SELECT SUM ( DISTINCT - col2 ) AS col1 FROM tab1
----
-223

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IN ( col0 )
----

query I rowsort
SELECT ALL - ( 48 ) AS col2 FROM tab0
----
-48
-48
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 4 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT col1 * - col0 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT col1 * - col0 + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5451
SELECT * FROM tab1 WHERE NULL < col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5451
SELECT * FROM tab1 WHERE NULL < col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 6 * 72 FROM tab0 cor0
----
-432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT DISTINCT + CAST( + MIN( ALL - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT + CAST ( + MIN ( ALL - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( + col0 + ( 88 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT DISTINCT COUNT( ALL - ( col2 ) ) FROM tab2 AS cor0 WHERE 11 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT COUNT ( ALL - ( col2 ) ) FROM tab2 AS cor0 WHERE 11 <= ( NULL )
----
0

query I rowsort
SELECT ALL - 69 FROM tab2 WHERE NOT - col0 + + col2 * + 44 NOT BETWEEN + col0 * 34 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * - col1 col0 FROM tab2
----
-510
-670
-770

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 * col2 ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + col0 + - 47 FROM tab2
----
-1
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT COUNT( * ) * 32 + + COUNT( * ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5460
SELECT COUNT ( * ) * 32 + + COUNT ( * ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + 37 + - COUNT( - 92 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5461
SELECT + 37 + - COUNT ( - 92 ) FROM tab2 AS cor0
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT DISTINCT + - CAST( MAX( DISTINCT col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + - CAST ( MAX ( DISTINCT col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 95 + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 BETWEEN 4 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT DISTINCT col2 DIV col2 + col0 FROM tab1 AS cor0 WHERE NOT col1 * col1 IS NULL
----
52
86
92

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT col2 / col2 + col0 FROM tab1 AS cor0 WHERE NOT col1 * col1 IS NULL
----
52
86
92

query I rowsort
SELECT col2 * - - col1 * - col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL COUNT( * ) * + 17 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL COUNT ( * ) * + 17 FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 15 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 15 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 27 AS col2 FROM tab0
----
-2187
-27
-567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5471
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE 74 + 27 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 92 + col0 * - 19 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5475
SELECT col1 * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT col1 * + - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT MIN( ALL 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-5476
SELECT MIN ( ALL 67 ) FROM tab0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 20 col0 FROM tab2
----
-1280
-1500
-920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5478
SELECT DISTINCT + 0 / - MIN( CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) * - CAST( - COUNT( * ) / + SUM( - col1 ) AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + 0 / - MIN ( CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) * - CAST ( - COUNT ( * ) / + SUM ( - col1 ) AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * - 70 * 89 AS col2 FROM tab0
----
-542010
-604310
-93450

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT ALL + 76 DIV - + 10 col2 FROM tab0 cor0
----
-7
-7
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5480
SELECT ALL + 76 / - + 10 col2 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - - col0 + + 96 FROM tab1 cor0
----
147
181
187

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab0 WHERE - - col1 * - col0 BETWEEN col1 * + col1 + + col1 AND ( col0 * + 80 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL 66 - - MIN( - - col1 ) AS col1 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL 66 - - MIN ( - - col1 ) AS col1 FROM tab0
----
67

query I rowsort
SELECT + + ( + 47 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL - SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5488
SELECT DISTINCT - - col0 DIV + - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT - - col0 / + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT DISTINCT - + 23 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT col2 >= + + col2 + ( 75 ) / ( + 46 )
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( + col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL col2 * col0 col2 FROM tab2 AS cor0 WHERE NOT ( + 80 * + 56 / CAST( NULL AS SIGNED ) ) > ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5492
SELECT ALL col2 * col0 col2 FROM tab2 AS cor0 WHERE NOT ( + 80 * + 56 / CAST ( NULL AS INTEGER ) ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT col2 DIV - + col1 * + - col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5493
SELECT col2 / - + col1 * + - col1 FROM tab0
----
0
0
99

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5495
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND ( + - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5495
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND ( + - CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - + ( - col0 ) * 14 NOT IN ( ( 13 ) - - 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5497
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - + col2 < ( - col2 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5497
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - + col2 < ( - col2 - - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + SUM( - 30 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5499
SELECT + SUM ( - 30 ) FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT - SUM( DISTINCT - - col1 ) AS col2, 84 * - 37 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-66
-3105

skipif mysql # not compatible
query II rowsort label-5500
SELECT - SUM ( DISTINCT - - col1 ) AS col2, 84 * - 37 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-66
-3105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - + 17 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5503
SELECT - CAST( + 7 AS SIGNED ) * 50, + COUNT( * ) * + ( 0 ) AS col0 FROM tab0
----
-350
0

skipif mysql # not compatible
query II rowsort label-5503
SELECT - CAST ( + 7 AS INTEGER ) * 50, + COUNT ( * ) * + ( 0 ) AS col0 FROM tab0
----
-350
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT - 95 * + COUNT( + col2 ) AS col1 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - 95 * + COUNT ( + col2 ) AS col1 FROM tab1
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-5505
SELECT + col0 * 38 DIV + + col1 FROM tab2
----
31
34
42

skipif mysql # not compatible
query I rowsort label-5505
SELECT + col0 * 38 / + + col1 FROM tab2
----
31
34
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + + COUNT( * ) * - - COUNT( * ) - + 24 + - COUNT( * ) * + 9 AS col0 FROM tab2 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5506
SELECT + + COUNT ( * ) * - - COUNT ( * ) - + 24 + - COUNT ( * ) * + 9 AS col0 FROM tab2 cor0
----
-42

query I rowsort
SELECT ALL + + col0 * - + 15 + + - col0 + + 30 AS col1 FROM tab0 AS cor0
----
-1362
-1522
-210

query I rowsort
SELECT DISTINCT + ( - 29 ) * - col2 * + - 94 + + - 64 AS col0 FROM tab2 AS cor0
----
-109104
-158172
-62762

query I rowsort
SELECT + + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT + MIN( DISTINCT col0 ) + + SUM( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5510
SELECT + MIN ( DISTINCT col0 ) + + SUM ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + MAX( col2 ) + - 25 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5511
SELECT + MAX ( col2 ) + - 25 FROM tab2 AS cor0
----
33

query I rowsort
SELECT ALL ( + col2 ) + 4 * + col0 FROM tab0
----
107
358
487

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - 20 * + 70 + - + 32 + + col1 AND NULL
----

query I rowsort
SELECT col0 + + 55 AS col2 FROM tab2
----
101
119
130

query I rowsort
SELECT 89 + - col2 AS col0 FROM tab0
----
-10
42
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 4 * - - 98 + - + AVG ( ALL - - 1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 4 * - - 98 + - + AVG ( ALL - - 1 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT DISTINCT SUM( - col0 ) + MIN( + col1 ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT SUM ( - col0 ) + MIN ( + col1 ) FROM tab1
----
-222

query I rowsort
SELECT ALL + col1 - - 53 + - - col0 AS col1 FROM tab0
----
149
151
161

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT DISTINCT MAX( - 74 ) - - + COUNT( * ) + - MAX( DISTINCT col0 ) AS col1 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT MAX ( - 74 ) - - + COUNT ( * ) + - MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
-168

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 67 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE ( 71 * + 47 ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - col1 / col1 + + col0 - - ( col0 ) AND col1
----

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - col1 / col1 + + col0 - - ( col0 ) AND col1
----

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab1 AS cor0 WHERE NOT + 66 < - col1 / + - col0
----
-39

query I rowsort
SELECT + + col2 * + 66 FROM tab2 cor0
----
1518
2640
3828

query II rowsort
SELECT ALL - 29 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-29
14
-29
47
-29
5

query I rowsort
SELECT + col1 * - + 17 FROM tab1 AS cor0
----
-238
-799
-85

query I rowsort
SELECT DISTINCT 1 + + - col1 + - col2 - + 5 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 * + col1 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - 9 * - - MAX( + + col2 ) AS col1 FROM tab2 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-5529
SELECT - 9 * - - MAX ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT DISTINCT - MAX( CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - MAX ( CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5531
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + + ( + - ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5532
SELECT + + ( + - ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT CAST( + - 54 AS SIGNED ) + + col2 FROM tab2 AS cor0 WHERE NOT NULL < ( + CAST( + + col0 AS SIGNED ) * + 49 + col2 )
----

skipif mysql # not compatible
query I rowsort label-5533
SELECT CAST ( + - 54 AS INTEGER ) + + col2 FROM tab2 AS cor0 WHERE NOT NULL < ( + CAST ( + + col0 AS INTEGER ) * + 49 + col2 )
----

query I rowsort
SELECT + ( + 31 ) FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT - ( - col1 ) * + col1 AS col0 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT + col1 = + - col1 * 5
----
3

skipif mysql # not compatible
query I rowsort label-5536
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT + col1 = + - col1 * 5
----
3

query I rowsort
SELECT col1 * - + col0 * + 39 FROM tab2 AS cor0
----
-192192
-195975
-91494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT + 72 * CAST( NULL AS SIGNED ) / - + AVG ( col1 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5538
SELECT DISTINCT + 72 * CAST ( NULL AS INTEGER ) / - + AVG ( col1 ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT DISTINCT 49 DIV - col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT 49 / - col2 FROM tab2
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT ALL - col1 DIV - col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5541
SELECT ALL - col1 / - col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT DISTINCT + 33 DIV + + col1 AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + 33 / + + col1 AS col0 FROM tab1
----
0
2
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND - 77
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 / - ( + 22 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5545
SELECT DISTINCT col2 col1, 37 DIV - + col1 * - + col1 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5545
SELECT DISTINCT col2 col1, 37 / - + col1 * - + col1 FROM tab2
----
23
0
40
0
58
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, - 26 * + col0 + - + col2 col2 FROM tab0
----
1
-2621
21
-2272
81
-437

query I rowsort
SELECT ALL - ( col1 ) AS col1 FROM tab2 WHERE NOT + 95 NOT IN ( - 5 + - col0 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col1 AS col0 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5549
SELECT DISTINCT + COUNT( + CAST( - + 90 AS SIGNED ) ) AS col2 FROM tab1 WHERE + - col0 + + CAST( NULL AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT + COUNT ( + CAST ( - + 90 AS INTEGER ) ) AS col2 FROM tab1 WHERE + - col0 + + CAST ( NULL AS REAL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 18 col1 FROM tab0 AS cor0
----
1782
180
846

query I rowsort
SELECT 26 AS col0 FROM tab1 cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT ALL - MIN( DISTINCT + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - MIN ( DISTINCT + col2 ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT - 19 + - col0 DIV 20 + + - col0 AS col1 FROM tab1
----
-108
-114
-72

skipif mysql # not compatible
query I rowsort label-5554
SELECT - 19 + - col0 / 20 + + - col0 AS col1 FROM tab1
----
-108
-114
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5555
SELECT 74 + + CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT 74 + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 * + col2 + - col0 AS col1 FROM tab2
----
-1664
-3439
-575

query I rowsort
SELECT 12 + - col1 FROM tab2 AS cor0
----
-39
-55
-65

query I rowsort
SELECT ALL + 43 AS col1 FROM tab2 WHERE NOT ( - col1 * col0 + 78 * - 64 ) <> ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + 77 - - MIN( DISTINCT col2 ) * - 31 AS col0 FROM tab1 WHERE NULL IS NULL
----
-1752

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 77 - - MIN ( DISTINCT col2 ) * - 31 AS col0 FROM tab1 WHERE NULL IS NULL
----
-1752

query I rowsort
SELECT - 40 - col1 AS col1 FROM tab0
----
-121
-41
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT - col0 IS NULL AND NOT NULL <= ( col2 + - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT - col0 IS NULL AND NOT NULL <= ( col2 + - + col2 )
----
0

query II rowsort
SELECT ALL col0, + ( 5 ) + + - 13 AS col1 FROM tab1
----
51
-8
85
-8
91
-8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - - col0 * - - ( - - col0 ) = NULL AND NULL IN ( + col0 + - col2 * - - col1 + - - col0 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT - col1 DIV + col0 - - + col2 FROM tab0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-5564
SELECT - col1 / + col0 - - + col2 FROM tab0
----
10
42
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5565
SELECT * FROM tab0 AS cor0 WHERE 76 - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5565
SELECT * FROM tab0 AS cor0 WHERE 76 - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT MAX( col0 ) AS col2 FROM tab1 cor0 WHERE ( ( ( - 68 + + 64 + col0 * 47 * + 30 ) NOT IN ( - col0 ) ) )
----
91

skipif mysql # not compatible
query I rowsort label-5566
SELECT MAX ( col0 ) AS col2 FROM tab1 cor0 WHERE ( ( ( - 68 + + 64 + col0 * 47 * + 30 ) NOT IN ( - col0 ) ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL + + COUNT( * ) - + + 8 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5567
SELECT ALL + + COUNT ( * ) - + + 8 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT + 12 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL col0 * 33 + + col2 FROM tab1 AS cor0
----
1779
2864
3071

query I rowsort
SELECT DISTINCT + 58 * + + col1 AS col2 FROM tab1 cor0
----
2726
290
812

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + - col2 + + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + + MIN( + col1 ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + + MIN ( + col1 ) AS col2 FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5573
SELECT CAST( + - MAX( ALL - col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5573
SELECT CAST ( + - MAX ( ALL - col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - - col0 * + + col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 40 <= NULL
----

query I rowsort
SELECT - ( + 14 ) * col2 AS col2 FROM tab0 cor0
----
-1386
-140
-658

query I rowsort
SELECT DISTINCT - col1 * - ( + col2 ) FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * col0 <= - col1
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5580
SELECT ALL col2 DIV + col1 AS col2, col1 * - + col0 * col1 FROM tab0
----
0
-38367
0
-98415
99
-97

skipif mysql # not compatible
query II rowsort label-5580
SELECT ALL col2 / + col1 AS col2, col1 * - + col0 * col1 FROM tab0
----
0
-38367
0
-98415
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT CAST( NULL AS SIGNED ) * + + 56 * - CAST( - 18 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5581
SELECT CAST ( NULL AS INTEGER ) * + + 56 * - CAST ( - 18 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - - 13 + - 5 AS col1, col2 FROM tab0 AS cor0
----
8
10
8
47
8
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 * - 31 + + + col0 * + col0 + - col0, 27 * 43 col2 FROM tab0 AS cor0
----
737
1161
8009
1161
9839
1161

query II rowsort
SELECT DISTINCT - col1 + col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-13
64
-5
46
8
75

query I rowsort
SELECT - 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5586
SELECT * FROM tab0 AS cor0 WHERE NULL <= col1 * col2 * + - 94 * - 69 + - + col2 + - + col0 - + col2 + 36 + - col2 * - CAST( NULL AS SIGNED ) * - + col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-5586
SELECT * FROM tab0 AS cor0 WHERE NULL <= col1 * col2 * + - 94 * - 69 + - + col2 + - + col0 - + col2 + 36 + - col2 * - CAST ( NULL AS INTEGER ) * - + col2 * + col0
----

query II rowsort
SELECT col2, + col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + - col0 NOT BETWEEN col0 / - col1 AND + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - + ( - col0 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + 55 + + COUNT( * ) + - 57 col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5590
SELECT + 55 + + COUNT ( * ) + - 57 col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT 1 + - COUNT( * ) / - + ( - ( + - CAST( NULL AS SIGNED ) ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5591
SELECT 1 + - COUNT ( * ) / - + ( - ( + - CAST ( NULL AS INTEGER ) ) ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT + COUNT( * ) + - COUNT( * ) * + + ( 38 ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5592
SELECT + COUNT ( * ) + - COUNT ( * ) * + + ( 38 ) FROM tab2 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT + - MIN( ALL col2 ) + 47 AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5593
SELECT + - MIN ( ALL col2 ) + 47 AS col2 FROM tab2 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT + col1 * + col1 + + col0 DIV + 64 AS col1 FROM tab1 AS cor0
----
196
2210
26

skipif mysql # not compatible
query I rowsort label-5594
SELECT + col1 * + col1 + + col0 / + 64 AS col1 FROM tab1 AS cor0
----
196
2210
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 25 + - 62 col0 FROM tab0 AS cor0
----
-102
-174
-184

query I rowsort
SELECT ALL col2 - - - ( - 18 ) FROM tab0
----
117
28
65

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col1 * ( + - col2 ) AND col0 + col1
----

query I rowsort
SELECT DISTINCT + col2 - 28 * + col1 * 81 FROM tab2
----
-115645
-151898
-174596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT - CAST( NULL AS SIGNED ) / - ( + ( - col1 ) ) - - - 57 - - - 60 + - - col1 * col2 * - - col0 - - col0 + ( col2 ) + + col1 * - col0 * + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT - CAST ( NULL AS INTEGER ) / - ( + ( - col1 ) ) - - - 57 - - - 60 + - - col1 * col2 * - - col0 - - col0 + ( col2 ) + + col1 * - col0 * + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 15 AS col0 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT + - col2 * 77 * - col1 FROM tab2 AS cor0
----
237160
299222
90321

query III rowsort
S